/* =========================================================
   Dra. Verónica Vargas Díaz — Landing page
   Dirección visual: clara y clínica, a partir de los colores del logo VV.
   · El blanco domina; gris perla neutro para alternar secciones con calma;
     un tinte azul muy claro solo en la zona de agendar (momento de acción).
   · Azul real del logo solo para acciones (botones, enlaces, pestaña activa);
     azul marino del logo para títulos, años y números.
   · Una sola familia (la letra del logo). Versión nueva: escala editorial con contraste
     de tamaño y peso: titulares grandes en peso 300, el semibold queda para tarjetas y acciones.
   ========================================================= */

/* Plus Jakarta Sans servida desde la propia página (fonts/, licencia OFL), sin Google Fonts */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --ice: #f6f7f9;             /* gris perla neutro: secciones alternas */
  --mist: #f2f5fa;            /* tinte azul muy claro: zona de agendar */
  --sky: #e7edf6;             /* fondos de ilustración */
  --navy: #192e50;            /* azul marino del logo: títulos, años, números */
  --blue: #335ec7;            /* azul real del logo: acciones */
  --blue-dark: #284ca6;
  --text: #27324a;            /* texto: oscuro para que no se pierda en el blanco */
  --muted: #4b566b;           /* texto secundario con buen contraste */
  --line: #e4e8ef;
  --wa: #25D366;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica editorial */
  --fs-display: clamp(2.6rem, 6.4vw, 5.5rem); /* hasta 88 px: titular del inicio */
  --fs-xl: clamp(3rem, 8vw, 6.5rem);          /* hasta 104 px: "Reumatología" */
  --fs-lg: clamp(2rem, 3.8vw, 3rem);          /* hasta 48 px: títulos de sección */
  --fs-md: 1.25rem;                           /* 20 px: títulos de tarjeta */
  --fs-base: 1.0625rem;                       /* 17 px: texto */
  --fs-sm: .9375rem;                          /* 15 px: texto secundario */
  --fs-xs: .8125rem;                          /* 13 px: notas */

  --r-card: 22px;
  --r-inner: 14px;
  --shadow-float: 0 24px 60px rgba(25, 46, 80, .14);
  --maxw: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 var(--fs-base)/1.65 var(--font);
  word-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--navy); text-wrap: balance; }
h2 { font-size: var(--fs-lg); line-height: 1.08; letter-spacing: -0.035em; word-spacing: .04em; font-weight: 300; margin-bottom: 1rem; }
h3 { font-size: var(--fs-md); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.title-xl { font-size: var(--fs-xl); line-height: .95; letter-spacing: -0.055em; font-weight: 300; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 920px; }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--blue); margin-bottom: .5rem; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---------- Logo VV ---------- */
.logo-mark { width: 44px; height: auto; flex: none; }

/* ---------- Botones (píldora) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--blue);
  background: var(--blue); color: var(--white); font: 600 .95rem var(--font);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: #d3dae7; }
.btn--ghost:hover { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn--small { padding: 9px 18px; font-size: .86rem; color: var(--white) !important; }
.btn--block { width: 100%; }
.icon { width: 18px; height: 18px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.nav__text { display: flex; flex-direction: column; line-height: 1.25; }
.nav__name { font-size: 1rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.nav__role { font-size: .82rem; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--text);
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__links a:not(.btn):hover { background: var(--ice); color: var(--navy); }
.nav__links .btn { margin-left: 10px; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--navy); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- 1. Inicio: titular editorial + foto grande ---------- */
.hero { padding: clamp(28px, 5vw, 72px) 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.045em; word-spacing: .02em;
  font-weight: 300; max-width: 11ch; margin-bottom: 1.6rem;
}
.hero__tagline { font-size: clamp(1.06rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 30em; margin: 0 0 2rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__modes { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); margin: 1.4rem 0 0; }
.hero__modes .dot:not(:first-child) { margin-left: 14px; }
/* Foto completa con fondo continuo (sin el círculo recortado del archivo original) y la firma de la doctora */
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 900 / 820; object-fit: cover; border-radius: var(--r-card); background: #efe3d7; }
.hero__sig { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--blue); }
.hero__name { font-size: var(--fs-md); font-weight: 600; color: var(--navy); letter-spacing: -0.015em; }
.hero__role { font-size: var(--fs-sm); color: var(--muted); }

/* Entrada del inicio: el único momento orquestado de la página */
.intro { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes wordUp { to { transform: none; } }

/* ---------- 2. Franja de confianza ---------- */
.trust { padding: clamp(56px, 7vw, 96px) 0 8px; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats__grid > div { padding: 4px 28px 4px 0; }
.stats__grid > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.stats__grid strong {
  display: block; font-size: clamp(2.6rem, 4.6vw, 3.5rem); line-height: 1; font-weight: 300;
  color: var(--navy); letter-spacing: -0.04em; margin-bottom: .6rem; font-variant-numeric: tabular-nums;
}
.stats__grid > div > span { display: block; font-size: var(--fs-sm); color: var(--muted); max-width: 18em; }

/* Contador tipo odómetro: los dígitos ruedan hasta el valor final */
.roll { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.roll__track { display: flex; flex-direction: column; transition: transform 2.4s cubic-bezier(.16, 1, .3, 1); }
.roll__track > span { display: block; height: 1em; line-height: 1; text-align: right; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--ice); }
.section--action { background: var(--mist); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section__head--row h2 { margin-bottom: 0; }
.section__hint { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* ---------- 3. La especialidad ---------- */
.specialty { display: grid; grid-template-columns: .75fr 1.25fr; column-gap: 64px; align-items: start; }
.specialty__lead { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; color: var(--navy); margin-bottom: 1.4rem; text-wrap: pretty; }
.specialty__body > p:not(.specialty__lead) { max-width: 40em; }
.specialty__note { margin: 1.6rem 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--blue); color: var(--muted); max-width: 38em; }
/* ¿Cuándo consultar?: las señales se escriben en tinta a medida que entran en pantalla */
.when { grid-column: 1 / -1; display: grid; grid-template-columns: .75fr 1.25fr; column-gap: 64px; margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line); align-items: start; }
.when__head { position: sticky; top: 120px; }
.when__head h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 400; letter-spacing: -0.025em; margin-bottom: .7rem; }
.when__head p { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 1.6rem; max-width: 22em; }
.when__lines { list-style: none; padding: 0; margin: 0; }
.when__line {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.03em;
  color: var(--navy); padding: .75em 0; border-bottom: 1px solid var(--line); text-wrap: balance;
}
.when__line:first-child { padding-top: 0; }
.when__line strong { font-weight: 400; }
.when__line .w { color: #c3cbd8; transition: color .35s var(--ease); }
.when__line .w.is-lit { color: var(--navy); }
.when__line strong .w.is-lit { color: var(--blue); }

/* ---------- 4. Áreas de atención: mapa del cuerpo ----------
   · Índice editorial a la izquierda, mapa de articulaciones al centro, ficha a la derecha.
   · Al elegir una condición se encienden en el mapa las zonas que suele afectar:
     los puntos laten y se iluminan los tramos que los unen.
   · Al entrar en pantalla, el mapa se dibuja trazo a trazo. */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.atlas__index { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.atlas__index li { border-bottom: 1px solid var(--line); }
.atlas__item {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  font: 300 clamp(1.1rem, 1.55vw, 1.4rem)/1.25 var(--font); letter-spacing: -0.02em; color: var(--muted);
  background: none; border: 0; padding: 14px 0 14px 0; transition: color .35s, padding .45s var(--ease);
}
.atlas__item::before {
  content: ""; position: absolute; left: 0; top: calc(14px + .62em); width: 18px; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.atlas__item:hover { color: var(--navy); }
.atlas__item.is-active { color: var(--navy); font-weight: 400; padding-left: 30px; }
.atlas__item.is-active::before { transform: scaleX(1); }

.atlas__figure { position: relative; }
/* Cuerpo dibujado con puntos (canvas). Las zonas afectadas se encienden en azul y laten. */
.body { display: block; width: 100%; aspect-ratio: 220 / 570; max-height: 620px; margin: 0 auto; }

.atlas__info { min-height: 260px; }
.atlas__zones { font-size: var(--fs-sm); font-weight: 600; color: var(--blue); margin-bottom: .9rem; }
.atlas__name { font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1rem; }
.atlas__desc { color: var(--muted); max-width: 24em; margin-bottom: 1.8rem; text-wrap: pretty; }
.atlas__info.is-swapping > * { animation: rise .55s var(--ease) both; }
.atlas__info.is-swapping > :nth-child(2) { animation-delay: .06s; }
.atlas__info.is-swapping > :nth-child(3) { animation-delay: .12s; }
.atlas__info.is-swapping > :nth-child(4) { animation-delay: .18s; }

/* ---------- 5. Trayectoria: foto + pestañas ---------- */
.career { max-width: 920px; }
.career__photo { margin: 0; position: sticky; top: 104px; }
/* Foto completa, sin recorte, para que la doctora se vea entera */
.career__photo img { width: 100%; height: auto; border-radius: var(--r-card); }
.career__photo figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: .7rem; }
.tabs { display: inline-flex; padding: 4px; background: var(--ice); border-radius: 999px; }
.tab {
  border: 0; background: transparent; font: 600 .9rem var(--font); color: var(--muted);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s;
}
.tab:hover { color: var(--navy); }
.tab.is-active { background: var(--blue); color: var(--white); }
.cv { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cv__year { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); padding-top: 1px; }
.cv h3 { font-size: var(--fs-base); margin-bottom: .2rem; }
.cv p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.cv.is-entering li { animation: rise .5s var(--ease) both; }
.cv.is-entering li:nth-child(2) { animation-delay: 50ms; }
.cv.is-entering li:nth-child(3) { animation-delay: 100ms; }
.cv.is-entering li:nth-child(4) { animation-delay: 150ms; }
.cv.is-entering li:nth-child(5) { animation-delay: 200ms; }

/* ---------- 6. Trabajos científicos ---------- */
.pubs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub[hidden] { display: none; }
.pub__year { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); padding-top: 2px; }
.pub__title { font-size: var(--fs-base); line-height: 1.45; margin-bottom: .35rem; }
.pub__event { font-size: var(--fs-sm); margin: 0; color: var(--muted); }
.pub__role { display: inline-block; margin-top: .5rem; font-size: var(--fs-xs); font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.pubs__more { margin-top: 28px; }

/* ---------- 7. Cómo es la atención ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process__card { background: var(--ice); border-radius: var(--r-card); padding: 36px 30px; display: flex; flex-direction: column; }
.process__n { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); margin-bottom: 36px; }
.process__card h3 { margin-bottom: .55rem; }
.process__card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.process__modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.process__modes span {
  display: inline-flex; align-items: center; gap: 7px; background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 7px 14px; font-size: .84rem; font-weight: 500;
}
.process__modes svg { width: 16px; height: 16px; color: var(--blue); }

/* ---------- 8. Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 600; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' fill='none' stroke='%23335ec7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10' fill='none' stroke='%23335ec7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.faq__item p { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 22px; max-width: 40em; }

/* ---------- 9. Agendar ---------- */
.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.booking__lead { color: var(--muted); max-width: 26em; margin-bottom: 1.8rem; }
.booking__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; border-top: 1px solid #dde3ee; }
.booking__mail { font-size: var(--fs-sm); color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.form { display: grid; gap: 18px; background: var(--white); border-radius: var(--r-card); padding: 40px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--text);
  background: var(--ice); border: 1px solid var(--line); border-radius: 999px; padding: .85rem 1.2rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23192e50' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 11px; padding-right: 2.6rem; }
.form textarea { border-radius: 18px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #8f98a8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 94, 199, .14); }
.form .is-invalid { border-color: #c2413a !important; box-shadow: 0 0 0 3px rgba(194, 65, 58, .12) !important; }
.form__choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__choice legend { font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.pill { display: block !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 9px 20px; border-radius: 999px; background: var(--ice); border: 1px solid var(--line); color: var(--navy); font-size: .92rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.pill input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent { grid-template-columns: 18px 1fr !important; align-items: start; gap: 10px !important; line-height: 1.5; color: var(--text) !important; font-weight: 400 !important; font-size: var(--fs-sm) !important; }
.consent input { margin-top: 3px; accent-color: var(--blue); }
.form__status { margin: 0; font-size: var(--fs-sm); color: var(--navy); }
.form__status:empty { display: none; }
.form__note { margin: 0; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 10. Pie ---------- */
.footer { background: var(--white); color: var(--muted); padding: 56px 0 36px; font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 32px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer p { margin: 0 0 .25rem; }
.footer__name { font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.footer__links, .footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer__links a { text-decoration: none; color: var(--text); }
.footer__links a:hover { color: var(--blue); }
.footer__contact a { color: var(--blue); font-weight: 500; text-underline-offset: 3px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--muted); }

/* ---------- Política de privacidad (privacidad.html) ---------- */
.legal { max-width: 720px; }
.legal h1 { font-size: var(--fs-lg); font-weight: 300; line-height: 1.08; letter-spacing: -0.035em; margin-bottom: .75rem; }
.legal h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin: 2.5rem 0 .75rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--blue); text-underline-offset: 3px; }
.legal__date { color: var(--muted); font-size: var(--fs-sm); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(25, 46, 80, .18);
  opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9);
  transition: transform .35s var(--ease), opacity .25s;
}
/* Aparece cuando el inicio ya quedó atrás, para no tapar los botones */
.wa-float.is-on { opacity: 1; pointer-events: auto; transform: none; }
.wa-float.is-on:hover { transform: scale(1.07); }
.wa-float svg { width: 29px; height: 29px; }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .intro { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .wa-float { transform: none; }
  .when__line .w { color: var(--navy); }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .atlas { grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); }
  .atlas__info { grid-column: 1 / -1; min-height: 0; }
  .when__head { position: static; margin-bottom: 28px; }
  .specialty, .when, .booking, .faq, .career { grid-template-columns: 1fr; }
  .specialty { row-gap: 22px; }
  .when { row-gap: 24px; margin-top: 48px; }
  .booking, .faq, .career { gap: 36px; }
  .career__photo { position: static; max-width: 520px; }
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 460px; }
  /* Áreas en celular: índice deslizable arriba, mapa y ficha debajo */
  .atlas { grid-template-columns: 1fr; gap: 20px; }
  .atlas__index { display: flex; overflow-x: auto; gap: 22px; border: 0; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .atlas__index::-webkit-scrollbar { display: none; }
  .atlas__index li { border: 0; flex: none; }
  .atlas__item { white-space: nowrap; font-size: 1.15rem; padding: 10px 0; border-bottom: 1.5px solid transparent; }
  .atlas__item::before { display: none; }
  .atlas__item.is-active { padding-left: 0; border-bottom-color: var(--blue); }
  .atlas__figure { max-width: 190px; margin: 0 auto; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 20px; background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links .btn { margin: 16px 0 0; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__grid > div { display: flex; align-items: center; gap: 20px; padding: 16px 0; }
  .stats__grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats__grid strong { margin: 0; min-width: 2.2em; font-size: 2.6rem; }
  .process { grid-template-columns: 1fr; }
  .process__n { margin-bottom: 18px; }
  .section { padding: 72px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav__name { font-size: .92rem; }
  .logo-mark { width: 38px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .cv li, .pub { grid-template-columns: 1fr; gap: 4px; }
}
