/* ===========================================================
   MENTE SANA — Landing page
   Tokens derivados del manual de marca real (Brand Mente Sana.pdf)
   =========================================================== */

:root {
  /* Color — valores exactos del manual de marca */
  --teal: #2B6368;          /* Azul verdoso — marca primaria */
  --teal-deep: #142B27;     /* Tinta profunda para fondos oscuros */
  --teal-deep-2: #1B3833;
  --turquoise: #30B5AD;     /* Turquesa — acento / acción */
  --turquoise-dark: #24928C;
  --orange: #ED8F00;        /* Naranja — acento cálido */
  --orange-soft: #FBEAD0;

  /* Variantes "ink": mismos colores de marca oscurecidos para usarse como
     TEXTO sobre fondos claros. Los tonos de marca (#30B5AD, #ED8F00) tienen
     2.3–3.5:1 sobre blanco y no alcanzan el 4.5:1 que pide WCAG AA; estas
     variantes sí. Los tonos brillantes se conservan para fondos oscuros,
     rellenos e íconos, donde sí cumplen. */
  --turquoise-ink: #197570; /* 5.1:1 sobre fondo claro */
  --orange-ink: #9A5D00;    /* 5.0:1 sobre fondo claro */
  --cta-from: #1B7A74;      /* Gradiente del botón primario: 5.1:1 con texto blanco */
  --cta-to: #146560;        /* 6.9:1 con texto blanco */
  --star: #A66400;          /* Ámbar oscuro: 4.7:1, cumple como texto (las ★ son glifos) */

  --mist: #F5F8F7;          /* Fondo de página */
  --paper: #FFFFFF;         /* Tarjetas */
  --line: #E1E9E7;          /* Bordes finos */
  --text: #16302B;          /* Texto principal */
  --text-soft: #52655F;     /* Texto secundario */
  --text-faint: #5F726C;    /* 5.1:1 sobre blanco */

  /* Tipografía */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1220px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  --shadow-soft: 0 20px 45px -25px rgba(20, 43, 39, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(20, 43, 39, 0.25);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* El header flota fijo sobre el contenido; sin este margen los enlaces
     de ancla dejaban el título de la sección escondido debajo (visible
     sobre todo en móvil, donde el padding de sección es menor). */
  scroll-padding-top: 6.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--text); }
p { margin: 0; }

:focus-visible {
  outline: 2.5px solid var(--turquoise-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Salto al contenido: primer tabulador de la página, oculto hasta enfocarse */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--teal-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: calc(var(--section-pad) * 0.6); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquoise-ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; letter-spacing: -0.01em; }
.section-head p { margin-top: 1rem; color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Loop motif (firma visual) ----------
   Trazo inspirado en la construcción real del isotipo:
   lóbulos orgánicos (naranja) + anillos entrelazados (turquesa) */
.loop-mark { display: inline-block; line-height: 0; }
.loop-mark svg { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Brillo líquido que recorre el botón al pasar el cursor */
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -35%;
  width: 30%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn--primary {
  background: linear-gradient(180deg, var(--cta-from) 0%, var(--cta-to) 100%);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(27, 122, 116, 0.55), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn--primary:hover { background: linear-gradient(180deg, #17706A 0%, #105955 100%); box-shadow: 0 18px 34px -14px rgba(27, 122, 116, 0.7), inset 0 1px 0 rgba(255,255,255,0.28); }

.btn--ghost {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-color: rgba(20, 43, 39, 0.18);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--teal); background: rgba(255,255,255,0.55); }

.btn--dark {
  background: linear-gradient(180deg, var(--teal-deep) 0%, #0e2320 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--dark:hover { background: linear-gradient(180deg, #0e2320 0%, #081714 100%); }

.btn--sm { padding: 0.7rem 1.35rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: fixed;
  top: 0.9rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
/* ---------- Liquid glass (firma del header y elementos flotantes) ----------
   Panel translúcido con blur, un realce especular superior y un barrido de
   luz diagonal, imitando el refractado de un panel de vidrio líquido. */
.header__inner {
  pointer-events: auto;
  width: min(calc(100% - 2rem), 1180px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.4) 100%);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(255,255,255,0.2),
    inset 0 0 24px rgba(255,255,255,0.25);
  transition: box-shadow .3s ease;
  overflow: hidden;
}
.header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 78%, rgba(255,255,255,0.3) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.header__inner > * { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; }
.brand img { height: 51px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: clamp(0.9rem, 1.8vw, 1.7rem); }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--teal-deep); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.nav__cta-short { display: none; }

.nav__toggle {
  display: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.35));
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 10px -4px rgba(20,43,39,0.2);
  width: 42px; height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--teal-deep);
  position: relative;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle::before { position: absolute; transform: translateY(-6px); }
.nav__toggle::after { position: absolute; transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] span { opacity: 0; }
.nav__toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  padding-top: clamp(7.5rem, 14vw, 10.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__eyebrow { color: var(--orange-ink); }
.hero__eyebrow::before { background: var(--turquoise-ink); }

.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--turquoise-dark);
  position: relative;
}

.hero__lead {
  margin-top: 1.5rem;
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero__meta {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-faint);
}
.hero__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--turquoise); }

.hero__art { position: relative; }
.hero__art-bg {
  position: absolute;
  inset: -18% -25%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-soft);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.floater {
  position: absolute;
  z-index: 2;
  isolation: isolate;
  background: linear-gradient(165deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.32) 100%);
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -6px 12px -8px rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--teal-deep);
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}
.floater::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 35%);
  pointer-events: none;
}
.floater--a { top: 8%; left: -6%; animation-delay: 0s; }
.floater--b { bottom: 10%; right: -8%; animation-delay: -3s; }
.floater .ico {
  position: relative;
  z-index: 1;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.floater > span:not(.ico) { position: relative; z-index: 1; }
.floater--a .ico { background: var(--orange-soft); color: var(--orange); }
.floater--b .ico { background: rgba(48,181,173,0.14); color: var(--turquoise-dark); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 720px) {
  .floater { position: static; margin-top: 1rem; animation: none; }
  .hero__floaters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
}

/* ===========================================================
   MARQUEE
   =========================================================== */
.marquee {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.9);
  overflow: hidden;
  padding-block: 1.1rem;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255,255,255,0.85);
}
.marquee__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin-left: 2.2rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================================================
   SOBRE MÍ
   =========================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/4.8;
  object-fit: cover;
  object-position: 62% 22%;
  box-shadow: var(--shadow-soft);
}
.about__media::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--turquoise);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about__signature {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--teal-deep);
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.about__lead { font-size: 1.35rem; font-weight: 500; color: var(--teal-deep); margin-top: 1.1rem; line-height: 1.45; font-family: var(--font-display); }
.about__body { margin-top: 1.3rem; display: grid; gap: 1rem; color: var(--text-soft); font-size: 1.02rem; max-width: 58ch; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-deep);
}

.about__closing {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-style: normal;
  color: var(--text);
  font-size: 1.02rem;
  max-width: 56ch;
}
.about__closing strong { color: var(--teal-deep); }

/* ===========================================================
   SERVICIOS
   =========================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }

.service-card__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  transition: transform .45s var(--ease);
}
.service-card:nth-child(odd) .service-card__icon { background: rgba(48, 181, 173, 0.13); color: var(--turquoise-dark); }
.service-card:nth-child(even) .service-card__icon { background: var(--orange-soft); color: var(--orange); }
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.08); }

.service-card h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
.service-card p { color: var(--text-soft); font-size: 0.96rem; margin-bottom: 1.4rem; }
.service-card a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  /* WCAG 2.5.8 pide 24px mínimo de área táctil; antes medían 22px */
  min-height: 44px;
}
.service-card a svg { transition: transform .3s var(--ease); }
.service-card a:hover svg { transform: translateX(4px); }

/* ===========================================================
   PROCESO (timeline)
   =========================================================== */
.section--dark {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.92);
}
.section--dark .eyebrow { color: var(--orange); }
.section--dark .eyebrow::before { background: var(--turquoise); }
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head p { color: rgba(255,255,255,0.68); }

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.timeline__step {
  position: relative;
  padding-top: 2.6rem;
}
.timeline__step::before {
  content: "";
  position: absolute;
  top: 14px; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.18);
  transform: scaleX(1);
  transform-origin: left;
}
.timeline__step:first-child::before { left: 14px; }
.timeline__step.reveal-pending::before { transform: scaleX(0); transition: transform .8s var(--ease) .2s; }
.timeline__step.reveal-pending.is-visible::before { transform: scaleX(1); }
.timeline__marker {
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-deep);
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: transform .5s var(--ease) .25s, background .3s ease, color .3s ease;
}
.timeline__step.reveal-pending .timeline__marker { transform: scale(.4); }
.timeline__step.reveal-pending.is-visible .timeline__marker { transform: scale(1); }
.timeline__step:hover .timeline__marker { background: var(--turquoise); color: #fff; }
.timeline__step h3 { font-size: 1.02rem; color: #fff; margin-bottom: 0.55rem; font-family: var(--font-display); font-weight: 600; }
.timeline__step p { font-size: 0.88rem; color: rgba(255,255,255,0.65); }

/* ===========================================================
   QUÉ PUEDES ESPERAR
   =========================================================== */
.expect__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.expect-card {
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}
.expect-card--yes { background: rgba(48, 181, 173, 0.09); border: 1px solid rgba(48, 181, 173, 0.25); }
.expect-card--no { background: var(--paper); border: 1px solid var(--line); }
.expect-card h3 {
  font-size: 1.05rem;
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.3rem;
}
.expect-card h3 .tag {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.expect-card--yes h3 .tag { background: var(--turquoise); color: #fff; }
.expect-card--no h3 .tag { background: var(--text-faint); color: #fff; }
.expect-card ul { display: grid; gap: 0.85rem; }
.expect-card li { display: flex; gap: 0.7rem; font-size: 0.96rem; color: var(--text-soft); align-items: flex-start; }
.expect-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-top: 0.55rem; flex-shrink: 0; }
.expect-card--yes li::before { background: var(--turquoise); }
.expect-card--no li::before { background: var(--text-faint); }

/* ===========================================================
   ESPACIO (galería)
   =========================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 210px);
  gap: 1rem;
}
.gallery a { border-radius: var(--radius-md); overflow: hidden; display: block; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery a { cursor: zoom-in; }

/* ---------- Visor de fotografías (lightbox) ---------- */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 24, 22, 0.88); backdrop-filter: blur(6px); }
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(3.5rem, 8vw, 5rem) clamp(0.75rem, 4vw, 3rem);
}
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.lightbox__figure figcaption {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox__close, .lightbox__nav {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.24); transform: scale(1.06); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox:focus-visible, .lightbox__figure img:focus { outline: none; }

@media (max-width: 720px) {
  .lightbox__nav { position: absolute; bottom: 1.1rem; }
  .lightbox__nav--prev { left: 25%; }
  .lightbox__nav--next { right: 25%; }
  .lightbox__figure img { max-height: calc(100vh - 12rem); }
}

/* ===========================================================
   MI COMPROMISO (recomendaciones)
   =========================================================== */
.commitment__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.commitment-card {
  margin: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2.3rem 2rem 2rem;
  position: relative;
  transition: transform .4s var(--ease), background .4s ease, border-color .4s ease;
}
.commitment-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); border-color: rgba(48,181,173,0.4); }
.commitment-card__quote {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--turquoise);
  margin-bottom: 0.4rem;
}
.commitment-card p { font-size: 1.02rem; color: rgba(255,255,255,0.86); line-height: 1.6; margin-bottom: 1.4rem; }
.commitment-card cite { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--orange); }

/* ===========================================================
   TESTIMONIOS
   =========================================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

.testimonial-card__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
/* Las iniciales son texto real (13.6px), así que el relleno tiene que dar
   4.5:1 contra el blanco. Con los tonos de marca puros daban 2.5:1. */
.testimonial-card__avatar--a { background: linear-gradient(150deg, var(--cta-from), var(--cta-to)); }
.testimonial-card__avatar--b { background: linear-gradient(150deg, var(--orange-ink), #7A4A00); }

.testimonial-card__who { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial-card__who strong { font-family: var(--font-display); font-size: 0.95rem; color: var(--teal-deep); }
.testimonial-card__date { font-size: 0.78rem; color: var(--text-faint); }

.testimonial-card__stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 0.8rem; }
.testimonial-card p { color: var(--text-soft); font-size: 0.96rem; line-height: 1.65; }

@media (max-width: 980px) {
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial-card { text-align: center; }
  .testimonial-card__head { justify-content: center; }
  .testimonial-card__who { align-items: center; }
}

/* ===========================================================
   FAQ
   =========================================================== */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal-deep);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease), background .3s ease;
}
.faq-item[open] .faq-item__icon { background: var(--turquoise); color: #fff; transform: rotate(135deg); }
.faq-item__a {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 65ch;
  overflow: hidden;
  transition: max-height .45s var(--ease), padding-bottom .45s var(--ease), opacity .35s ease;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q { cursor: pointer; }

/* ===========================================================
   AGENDA
   =========================================================== */
.agenda { background: var(--paper); }
.agenda__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
/* Enlaces de WhatsApp dentro de un párrafo. Varias frases del sitio decían
   "escríbeme por WhatsApp" en texto plano, sin enlace: el visitante leía la
   instrucción y no tenía cómo ejecutarla desde ahí. Cada uno lleva además un
   mensaje distinto ya escrito, para que a Diana le llegue el contexto de qué
   quiere la persona sin tener que preguntarlo. */
.wa-inline {
  color: var(--turquoise-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color .2s ease;
}
.wa-inline:hover { color: var(--teal-deep); }
.section--dark .wa-inline { color: #fff; }
.section--dark .wa-inline:hover { color: var(--orange); }

.agenda__lead { margin-top: 1rem; color: var(--text-soft); font-size: 1.05rem; }
.agenda__list { display: grid; gap: 0.9rem; margin: 1.8rem 0 2.2rem; }
.agenda__list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  font-size: 0.96rem; color: var(--text-soft);
}
.agenda__list .tick {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(48,181,173,0.14); color: var(--turquoise-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.agenda__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.cal-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(165deg, rgba(255,255,255,0.85) 0%, rgba(240,246,245,0.55) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
}
.cal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 25%);
  pointer-events: none;
}
.cal-card > * { position: relative; z-index: 1; }
.cal-embed { min-height: 620px; border-radius: var(--radius-md); overflow: hidden; background: var(--paper); }
.cal-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 620px;
  text-align: center;
  padding: 2rem;
  color: var(--text-soft);
}
.cal-fallback.is-visible { display: flex; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--teal-deep-2);
  color: rgba(255,255,255,0.75);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer__brand img { height: 64px; width: auto; }
.footer__tagline { max-width: 34ch; font-size: 0.95rem; }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, transform .3s ease;
}
.footer__social a:hover { background: var(--turquoise); transform: translateY(-3px); }

.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.2rem; font-family: var(--font-display); }
.footer__links { display: grid; gap: 0.25rem; }
.footer__links a {
  font-size: 0.94rem;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.footer__links a:hover { color: #fff; }

.footer__contact { display: grid; gap: 0.9rem; font-size: 0.94rem; }
.footer__contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer__contact svg { flex-shrink: 0; margin-top: 2px; color: var(--turquoise); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.8rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
/* Bloque de crisis: discreto pero localizable de un vistazo cuando hace falta */
.footer__crisis {
  margin-block: 2rem 1.6rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  max-width: 900px;
}
/* `.footer h4` (0,1,1) gana a una sola clase, de ahí el selector anidado:
   este título es una pregunta larga y en versalitas se vuelve difícil de leer,
   justo en el bloque donde la lectura rápida importa más. */
.footer .footer__crisis-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.6rem;
}
.footer__crisis-title svg { color: var(--orange); flex-shrink: 0; }
.footer__crisis p { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
.footer__crisis-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 0.9rem;
}
.footer__crisis-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.footer__crisis-lines strong { color: var(--orange); font-weight: 600; margin-right: 0.35rem; }
.footer__crisis-lines a:hover { color: #fff; border-bottom-color: var(--orange); }

/* ===========================================================
   WHATSAPP FLOAT
   =========================================================== */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  isolation: isolate;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: radial-gradient(120% 130% at 30% 20%, #38e878 0%, #25D366 45%, #1fb857 100%);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.65), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -6px 10px -6px rgba(0,0,0,0.25);
  transition: transform .3s var(--ease);
  animation: waPulse 2.8s ease-in-out infinite;
  overflow: hidden;
}
.wa-float::before {
  content: "";
  position: absolute;
  top: -30%; left: -10%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.wa-float svg { position: relative; z-index: 1; }
.wa-float svg { width: 30px; height: 30px; display: block; }
.wa-float:hover { transform: scale(1.08); animation-play-state: paused; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.65), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* ===========================================================
   REVEAL ON SCROLL
   =========================================================== */
/* Los elementos [data-reveal] son visibles por defecto (sin JS, se ven).
   El JS añade .reveal-pending justo antes de observarlos y lo quita al
   entrar en viewport, así nunca dependen de JS para ser visibles. */
[data-reveal].reveal-pending { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].reveal-pending.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ===========================================================
   ANIMACIÓN DE ENTRADA — HERO
   Puramente CSS (sin dependencia de JS): el estado final (visible)
   se alcanza solo con la animación, aunque JS esté desactivado.
   =========================================================== */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes artIn {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero__copy > * { animation: riseIn .8s var(--ease) both; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .16s; }
.hero__copy > *:nth-child(3) { animation-delay: .27s; }
.hero__copy > *:nth-child(4) { animation-delay: .38s; }
.hero__copy > *:nth-child(5) { animation-delay: .48s; }
.hero__art { animation: artIn 1s var(--ease) .25s both; }

/* Movimiento ambiental sutil del trazo decorativo (firma visual) */
@keyframes gentleSway {
  0%, 100% { transform: rotate(-2.5deg) scale(1); }
  50% { transform: rotate(2.5deg) scale(1.015); }
}
.hero__art-bg { animation: gentleSway 11s ease-in-out infinite; transform-origin: 50% 50%; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; margin-inline: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; margin-inline: auto; }
  .expect__grid { grid-template-columns: 1fr; }
  .agenda__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 200px); }
  .gallery__item--wide { grid-column: span 2; grid-row: span 1; }
  .commitment__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  /* El CTA sigue visible en móvil, en versión compacta */
  .nav__cta { padding: 0.6rem 1.05rem; font-size: 0.82rem; }
  .nav__cta-full { display: none; }
  .nav__cta-short { display: inline; }
  .nav__toggle { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.2rem; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline__step::before { display: none; }
  .section { padding-block: clamp(3rem, 10vw, 4.5rem); }

  /* ---------- Contenido centrado en móvil ---------- */
  .hero__copy { text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-content: center; }

  .about__grid > div:last-child { text-align: center; }
  .about__body { margin-inline: auto; }
  .chips { justify-content: center; }
  .about__closing { margin-inline: auto; }

  .section-head { text-align: center; margin-inline: auto; }

  .service-card { text-align: center; }
  .service-card__icon { margin-inline: auto; }
  .service-card a { justify-content: center; }

  .timeline__step { text-align: center; }
  .timeline__marker { left: 50%; transform: translateX(-50%); }
  .timeline__step.reveal-pending .timeline__marker { transform: translateX(-50%) scale(.4); }
  .timeline__step.reveal-pending.is-visible .timeline__marker { transform: translateX(-50%) scale(1); }

  .expect-card h3 { justify-content: center; }
  .expect-card li { justify-content: center; text-align: left; }

  .commitment-card { text-align: center; }
  .commitment-card__quote { margin-inline: auto; }

  .agenda__grid > div:first-child { text-align: center; }
  .agenda__list li { justify-content: center; text-align: left; }
  .agenda__actions { justify-content: center; }

  .footer__top > div { text-align: center; }
  .footer__brand { justify-content: center; }
  .footer__social { justify-content: center; }
  .footer__contact li { justify-content: center; text-align: left; }
  .footer__disclaimer { margin-inline: auto; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 150px); }
  .timeline { grid-template-columns: 1fr; }
  .header__inner { border-radius: 24px; }
}

/* Mobile nav drawer — mismo cristal líquido que el header */
.nav-drawer {
  position: fixed;
  pointer-events: auto;
  inset: 5.4rem 1rem auto 1rem;
  isolation: isolate;
  background: linear-gradient(165deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.55) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius-md);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(255,255,255,0.2);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 99;
  overflow: hidden;
}
.nav-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 30%);
  pointer-events: none;
}
.nav-drawer.is-open { display: flex; }
/* `:not(.btn)` es indispensable: sin él esta regla gana por especificidad a
   `.btn--primary` y pintaba el texto del botón "Agendar consulta" en tinta
   oscura en vez de blanco, solo dentro del menú móvil. */
.nav-drawer a:not(.btn) {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-deep);
  text-align: right;
  padding-block: 0.35rem;
}
.nav-drawer .btn { position: relative; z-index: 1; }
