/* --- 1. Estilos Generales y Tipografía --- */
html {
  scroll-behavior: smooth;
  font-size: 15px;
}
body {
  font-family: "Lexend", "Noto Sans", sans-serif;
  background-color: #ece2ea; /* FONDO: Rosa principal */
  margin: 0;
  color: #0f24a3; /* TEXTO: Azul (por defecto) */
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
.contenedor-principal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.contenido-principal {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seccion {
  width: 100%;
  max-width: 960px;
  padding: 5rem 1.25rem;
  margin: 0 auto;
}

/* --- 2. Header y Navegación --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 36, 163, 0.2);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  background-color: rgba(245, 153, 166, 0.9);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #0f24a3;
}

.img-logo {
  width: 40px;
  height: 40px;
}

.logo img {
  width: 5rem;
  height: 5rem;
}
.logo h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: #0f24a3;
}
.nav-escritorio {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
.nav-escritorio a {
  text-decoration: none;
  color: #0f24a3;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-escritorio a.activo {
  color: #0f24a3;
  font-weight: 700;
} /* ACENTO: Nuevo Verde */

/* --- 3. Menú Móvil --- */
.btn-hamburguesa {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 40;
  color: #0f24a3;
}
.mobile-menu-container {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 30;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}
.mobile-menu-container.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 16rem;
  background-color: #f599a6;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.mobile-menu-container.is-open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu-nav a {
  text-decoration: none;
  color: #0f24a3;
  font-size: 1.125rem;
  font-weight: 500;
}
.mobile-menu-nav a.activo {
  color: #96a2e4;
  font-weight: 700;
} /* ACENTO: Nuevo Verde */
.mobile-menu-nav .btn-primario {
  margin-top: 1.5rem;
  width: 100%;
}

/* --- 4. Botones --- */
.btn-primario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #9770c1;
  color: white;
  height: 40px;
  padding: 0 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-primario.escritorio {
  display: none;
}
.btn-primario:hover {
  background-color: #0f24a3;
}

/* --- 5. Secciones Específicas --- */
.hero-section {
  background-image: url("https://images.unsplash.com/photo-1588776814546-da63177c03a8?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 5rem 2.5rem;
}
.hero-content {
  background-color: rgba(245, 153, 166, 0.8);
  backdrop-filter: blur(4px);
  padding: 2.5rem;
  border-radius: 0.5rem;
  display: inline-block;
}
.hero-content h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #0f24a3;
}
.hero-content p {
  font-size: 1.125rem;
  color: #0f24a3;
  opacity: 0.9;
  margin-top: 1rem;
  max-width: 42rem;
}
.hero-content .btn-primario {
  margin-top: 2rem;
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}
.titulo-seccion {
  text-align: center;
  margin-bottom: 2.5rem;
}
.titulo-seccion h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #0f24a3;
}
.titulo-seccion p {
  color: #0f24a3;
  opacity: 0.8;
  max-width: 48rem;
  margin: 0 auto;
}
.grid-3-columnas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.card {
  background-color: #f2d8f0;
  border: 1px solid #53d994;
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  max-width: 350px; /* ¡CLAVE! Limita el ancho máximo */
  margin: 0 auto;    /* Centra la tarjeta si hay espacio extra */
} /* BORDE DE TARJETA: Nuevo Verde */
.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: #0f24a3;
}
.card .precio {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f24a3;
}
.about-section {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.marco-doctora {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #53d994;
  overflow: hidden;
  flex-shrink: 0;
} /* BORDE FOTO: Nuevo Verde */
.marco-doctora img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.about-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f24a3;
}
.about-content .subtitulo {
  color: #9770c1;
} /* SUBTÍTULO: Morado */
.testimonial-card {
  text-align: left;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-author img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}
.testimonial-author p {
  margin: 0;
  font-weight: 500;
}
.testimonial-author .fecha {
  font-size: 0.875rem;
  color: #9770c1;
} /* FECHA: Morado */
.estrellas {
  display: flex;
  gap: 0.125rem;
  color: #9770c1;
} /* ESTRELLAS: Morado */
.contact-grid {
  display: grid;
  gap: 3rem;
  background-color: white;
  padding: 2rem;
  border: 1px solid #53d994;
  border-radius: 0.5rem;
} /* BORDE CONTACTO: Nuevo Verde */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}
.contact-info h3,
.contact-info p {
  margin: 0;
}
.contact-info div {
  margin-bottom: 1rem;
}
.contact-info .label {
  font-weight: 600;
  color: #0f24a3;
}
.contact-info .valor {
  color: #0f24a3;
  opacity: 0.8;
}

/* --- Estilos para las Tarjetas de Producto --- */
.card .producto {
    width: 100%;
    height: 200px; /* Define una altura fija para todas las imágenes */
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
    border-radius: 0.5rem; /* Redondea las esquinas de la imagen */
    margin-bottom: 1rem; /* Añade un espacio entre la imagen y el título */
}

/* --- 6. Footer --- */
.footer {
  border-top: 1px solid rgba(15, 36, 163, 0.2);
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  text-decoration: none;
  color: #0f24a3;
  opacity: 0.8;
}
.footer p {
  color: #0f24a3;
  opacity: 0.8;
  margin: 0;
}

/* --- 7. Media Queries --- */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
  .header {
    padding: 0.75rem 2.5rem;
  }
  .nav-escritorio {
    display: flex;
  }
  .btn-hamburguesa {
    display: none;
  }
  .btn-primario.escritorio {
    display: inline-flex;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .about-section {
    flex-direction: row;
    text-align: left;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }
}

/* --- 8. Estilos para la Página Principal (Hub) --- */
.hub-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background-color: #ece2ea; /* FONDO: Rosa principal */
}
.hub-container {
  max-width: 1200px;
  padding: 2rem;
}
.hub-header {
  margin-bottom: 3rem;
}
.hub-logo {
  width: 200px; /* Aumentado de 50px */
  height: 200px; /* Aumentado de 50px */
  margin: 0 auto 1.5rem; /* Aumenté un poco el margen inferior */
  object-fit: contain; /* Buena práctica para que el logo no se deforme */
}
.hub-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #0f24a3;
  margin: 0;
}
.hub-header p {
  font-size: 1.125rem;
  color: #0f24a3;
  opacity: 0.9;
  max-width: 600px;
  margin: 0.5rem auto 0;
}
.hub-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.hub-card {
  background-color: #f2d8f0;
  border: 1px solid #d953c7; /* BORDE DE TARJETA: Nuevo Verde */
  border-radius: 1rem;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}
.hub-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(15, 36, 163, 0.1);
}
.hub-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hub-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #0f24a3;
}
.hub-card p {
  margin: 0;
  color: #0f24a3;
  opacity: 0.8;
}
@media (min-width: 768px) {
  .hub-main {
    grid-template-columns: repeat(3, 1fr);
  }
  .hub-header h1 {
    font-size: 3rem;
  }
}
