:root {
  --accent: #7A3CE6;
  --bg: #F9F9FB;
  --text: #1A1A1A;
  --muted: #6B6B6B;

  --primary: #71507a;
  --primary-light: #f36100;
  --primary-soft: #FFE082;

  --secondary: #b892c2;
  --text-dark: #4E342E;
  --bg-light: #F5F5F5;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}


[data-lang] {
  overflow: hidden;
}

/* HEADER */
header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--secondary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 40px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}


/* CONTENEDOR PRINCIPAL DEL NAV */
.nav {
  display: flex;
  justify-content: space-between; /* logo izquierda, botones derecha */
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

/* LOGO */
.logo-area img {
  height: 50px; /* ajusta según tu diseño */
}

/* CONTENEDOR DERECHA */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px; /* espacio entre idioma y hamburguesa */
}

/* BOTÓN DE IDIOMA */
.lang-btn {
  background: var(--primary); /* color de tu imagen */
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* HAMBURGUESA */
.menu-toggle {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 4px;
  background: #333;
  border-radius: 4px;
}

/* MENÚ DESPLEGABLE */
.nav-links {
  position: fixed !important;
  top: 75px !important;      /* pegado al header */
  right: 20px !important;    /* pegado a la derecha */
  width: 180px !important;   /* tamaño compacto */
  background: white;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 99999 !important;
}

.nav-links.show {
  display: flex !important;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
}

.lang-btn:hover {
  background: var(--primary-light);
}


.hero {
  display: grid;
  grid-template-columns:1.2fr 0.8fr; /* derecha más ancha */
  gap: 3rem;
  align-items: center;
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: auto; 
}

.hero-logo {
  width: 300px;
  margin-bottom: 0rem;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-title span {
  color: var(--secondary);
}

.hero-subtitle span {
  color: var(--primary-light);
}

.hero-product-img {
  width: 200px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 45px var(--secondary);
}


@media (max-width: 768px) {

 
  /* HERO en una sola columna y sin espacio extra */
  .hero {
    grid-template-columns: 1fr;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: center;
  }

  /* Permitir reordenar elementos internos */
  .hero-left,
  .hero-right {
    display: contents;
    padding: 0;
    margin: 0;
  }

  /* Logo */
  .hero-logo {
    order: 1;
    margin: 0;
  }

  /* Título */
  .hero-title {
    order: 2;
    margin: 0;
  }

  /* PH14 */
  .hero-title span {
    order: 3;
    margin: 0;
    padding: 0;
  }

  /* IMAGEN DEL FRASCO — entre PH14 y subtítulo */
  .hero-product-img {
    order: 4;
    width: 150px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;      /* sin espacio arriba */
    margin-bottom: 0;   /* sin espacio abajo */
    padding: 0;
  }

  /* Subtítulo */
  .hero-subtitle {
    order: 5;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    padding: 0;
    text-align: left;
  }

  /* Botones */
  .hero-actions {
    order: 6;
    margin-top: 0.5rem;
  }



  /* Quitar espacio de títulos */
  h2, h3, h4 {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  .mockup-img {
    margin-bottom: 1.5rem;
  } 
}


/* BUTTONS */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.btn-primary {
  background: var(--primary-light);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--secondary);
}

/* SECTIONS */
.section {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 0.5rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.benefits-grid span, .befenits-more span, .uso-card span, 
.evidencia-card span, .exp-case-info span, .registro-info span {
  color: var(--primary-light);
}

.uso-title, .exp-case-title, .registro-title, .publicaciones-title {
  color: var(--secondary);
}

/* PRODUCTO */
.product-card {
  text-align: center;
}

.product-title {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: -0.8rem;
}

.product-sub {
  color: var(--primary-light);

}

.product-info {
  text-align: left;
}

.product-info span {
  color: var(--primary-light);
}

/* MOCKUP 3D */
.mockup-3d {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  margin-bottom: -1.5rem;
}

.mockup-img {
  width: 200px;
  border-radius: 18px;
  transform: rotateY(-18deg) rotateX(4deg);
  box-shadow: 0 10px 25px var(--primary);
  transition: transform 0.4s ease;
}

.mockup-img:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

/* BENEFICIOS */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px var(--secondary);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  color: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}


/* EVIDENCIA CLÍNICA */
.evidencia-subtitle {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.evidencia-img-wrapper {
  text-align: center;
}

.evidencia-img {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  border: 3px solid var(--secondary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* CARRUSEL */
#carousel-en, #carousel-es {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel {
  max-width: 1100px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  flex: 0 0 100%;
}

.slide-inner {
  background: white;
  padding: 2rem;
  border-radius: 20px;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.exp-img {
  width: 100%;
  max-width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-light);
  color: white;
  border: none;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  z-index: 10;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }


/*REGISTROS*/

.registro-subtitle {
  color: var(--muted);
}

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid var(--secondary);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.7rem;
  cursor: pointer;
  color: var(--secondary);
  font-weight: bold;
}

.faq-answer {
  display: none;
  margin-top: 0.5rem;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}



/* PUBLICACIONES*/


  /* GRID RESPONSIVO */
  .pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: start;   /* BLOQUES PEGADOS A LA IZQUIERDA */
    align-items: start;
    text-align: left;
    margin-top: 1rem;
  }

  /* BLOQUE INDIVIDUAL */
  .pub-box {
  display: flex;
  flex-direction: column;
  align-items: center;   /* CENTRA título, imagen y botón */
  text-align: center;    /* CENTRA texto */
  width: 100%;
}

  .publicaciones-title {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: .5rem;
    min-block-size: 50px;
  }

  /* IMAGEN */
  .cover {
    max-block-size:150px ;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
  }

  /* BOTÓN */
  .dbtn {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: var(--primary-light);
    color: white;
    font-size: 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: -0.50rem;
  }


/* FOOTER */
footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-logo {
 vertical-align: middle;
  text-align: center;
  height: 40px;
  /* margin-bottom: 0.5rem; */

}