/* =========================================
   MIRIAM CISNEROS — Licenciada en Nutrición
   Sistema de diseño basado en identidad de marca
   ========================================= */

:root {
  /* Paleta */
  --crema: #FAF6F0;
  --crema-suave: #F3ECE3;
  --blanco: #FFFFFF;
  --sage: #7A9471;
  --sage-oscuro: #5F7857;
  --terracota: #C97B84;
  --terracota-suave: #E8B4BA;
  --dorado: #D4A574;
  --texto: #3A3A3A;
  --texto-suave: #6B6B6B;

  /* Tipografía */
  --font-script: 'Cormorant Garamond', serif;
  --font-titulo: 'Playfair Display', serif;
  --font-cuerpo: 'Jost', sans-serif;

  /* Espaciado */
  --max-width: 1180px;
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cuerpo);
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Foco visible para accesibilidad */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-oscuro);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Divisor corazón */
.divider-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0;
}
.divider-heart::before,
.divider-heart::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--dorado);
  opacity: 0.6;
}
.divider-heart svg {
  width: 16px;
  height: 16px;
  fill: var(--terracota);
}

.eyebrow {
  font-family: var(--font-cuerpo);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--sage-oscuro);
  font-weight: 500;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 22px;
  height: 22px;
  fill: var(--terracota);
  flex-shrink: 0;
}

.logo-text .nombre {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--terracota);
  line-height: 1.1;
  display: block;
}

.logo-text .sub {
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-oscuro);
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracota);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terracota);
  border-radius: 2px;
}

.btn-whatsapp-nav {
  background: var(--sage);
  color: var(--blanco);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-whatsapp-nav:hover {
  background: var(--sage-oscuro);
  transform: translateY(-1px);
}

.btn-whatsapp-nav svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  fill: var(--texto);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-deco-top-left,
.hero-deco-bottom-left {
  position: absolute;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.hero-deco-top-left {
  top: -40px;
  left: -60px;
  width: 220px;
}

.hero-deco-bottom-left {
  bottom: -30px;
  left: -40px;
  width: 200px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-text .heart-mark {
  width: 22px;
  height: 22px;
  fill: var(--terracota);
  margin-bottom: 18px;
  opacity: 0.85;
}

.hero-text h1 {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--terracota);
  margin-bottom: 18px;
}

.hero-text .titulo {
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-oscuro);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-text .subtitulo {
  font-family: var(--font-cuerpo);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dorado);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-text .matricula {
  font-family: var(--font-cuerpo);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--texto-suave);
  font-weight: 400;
  margin-top: -4px;
  margin-bottom: 14px;
}

.hero-quote {
  font-family: var(--font-titulo);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--texto);
  line-height: 1.5;
  position: relative;
  padding-left: 28px;
  margin-bottom: 34px;
  max-width: 460px;
}

.hero-quote .quote-mark {
  position: absolute;
  left: -4px;
  top: -10px;
  font-size: 2.6rem;
  color: var(--terracota-suave);
  font-family: Georgia, serif;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--sage);
  color: var(--blanco);
}
.btn-primary:hover {
  background: var(--sage-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(95, 120, 87, 0.3);
}
.btn-primary svg {
  fill: var(--blanco);
}

.btn-outline {
  background: var(--blanco);
  color: var(--texto);
  border: 1px solid rgba(212, 165, 116, 0.4);
}
.btn-outline:hover {
  border-color: var(--terracota);
  color: var(--terracota);
  transform: translateY(-2px);
}
.btn-outline svg {
  fill: var(--terracota);
}

.hero-img-wrap {
  position: relative;
  border-radius: 50% 50% 4% 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  box-shadow: 0 30px 60px -20px rgba(122, 148, 113, 0.35);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-ring {
  position: absolute;
  inset: -16px;
  border: 1.5px solid var(--dorado);
  border-radius: 50% 50% 4% 50%;
  opacity: 0.55;
  pointer-events: none;
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
section {
  padding: 90px 0;
}

.section-title {
  font-family: var(--font-titulo);
  font-size: 2.1rem;
  font-weight: 700;
  text-align: center;
  color: var(--texto);
  letter-spacing: 1px;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ENFOQUE */
.enfoque {
  background: var(--crema-suave);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.enfoque-deco {
  position: absolute;
  opacity: 0.85;
  pointer-events: none;
}
.enfoque-deco.left {
  left: -50px;
  top: 30%;
  width: 170px;
}
.enfoque-deco.right {
  right: -50px;
  top: 20%;
  width: 190px;
}

.enfoque-texto {
  max-width: 700px;
  margin: 26px auto 0;
  font-size: 1.08rem;
  color: var(--texto-suave);
  position: relative;
  z-index: 1;
}

/* AYUDA / CARDS */
.ayuda-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.ayuda-card {
  text-align: center;
  padding: 10px 14px;
}

.ayuda-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--crema-suave);
  border: 1px solid rgba(212, 165, 116, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ayuda-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--sage-oscuro);
  fill: none;
  stroke-width: 1.6;
}

.ayuda-card h3 {
  font-family: var(--font-titulo);
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--texto);
}

.ayuda-card p {
  font-size: 0.9rem;
  color: var(--texto-suave);
}

/* CONSULTORIO */
.consultorio {
  background: var(--blanco);
}

.consultorio-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px -25px rgba(58, 58, 58, 0.18);
}

.consultorio-img {
  height: 100%;
  min-height: 360px;
}

.consultorio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consultorio-info {
  background: var(--crema-suave);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.consultorio-info h3 {
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  margin-bottom: 22px;
  color: var(--texto);
}

.consultorio-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.consultorio-item svg {
  width: 19px;
  height: 19px;
  stroke: var(--sage-oscuro);
  fill: none;
  stroke-width: 1.8;
  margin-top: 2px;
  flex-shrink: 0;
}

.consultorio-info .btn {
  margin-top: 14px;
  align-self: flex-start;
}

.consultorio-mapa {
  position: relative;
}

.consultorio-mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  filter: saturate(0.85);
}

/* TESTIMONIOS */
.testimonios {
  background: var(--crema-suave);
  position: relative;
  overflow: hidden;
}

.testimonios-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonio-card {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 14px 34px -20px rgba(58, 58, 58, 0.15);
}

.testimonio-card .quote-mark {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  color: var(--terracota-suave);
  line-height: 1;
  margin-bottom: 6px;
}

.testimonio-card p {
  font-size: 0.92rem;
  color: var(--texto-suave);
  margin-bottom: 18px;
  font-style: italic;
}

.testimonio-card .autor {
  font-family: var(--font-titulo);
  font-size: 0.95rem;
  color: var(--terracota);
  font-weight: 600;
}

/* FOOTER */
.site-footer {
  background: var(--sage-oscuro);
  color: var(--crema);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-frase {
  font-family: var(--font-titulo);
  font-style: italic;
  font-size: 1.05rem;
}

.footer-contacto {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-contacto a {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}
.footer-contacto a:hover {
  opacity: 0.75;
}

.footer-contacto svg {
  width: 17px;
  height: 17px;
  fill: var(--crema);
}

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 246, 240, 0.18);
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(95, 120, 87, 0.4);
  z-index: 90;
  transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  background: var(--sage-oscuro);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--blanco);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-img-wrap {
    max-width: 420px;
    margin: 0 auto;
    order: -1;
  }
  .hero-text h1 {
    font-size: 3.6rem;
  }
  .ayuda-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .consultorio-grid {
    grid-template-columns: 1fr;
  }
  .consultorio-img,
  .consultorio-mapa iframe {
    min-height: 280px;
  }
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .btn-whatsapp-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-wrap.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--crema);
    padding: 24px 32px;
    gap: 18px;
    border-bottom: 1px solid rgba(212,165,116,0.25);
  }
  .nav-wrap.menu-open .btn-whatsapp-nav {
    display: flex;
    margin: 18px 32px 0;
  }
  .hero {
    padding: 40px 0 60px;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .ayuda-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 60px 0;
  }
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  .hero-text h1 {
    font-size: 2.3rem;
  }
  .hero-quote {
    font-size: 1.05rem;
  }
}
