/* Fuentes alojadas en la propia web (sin llamadas a Google) */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/figtree-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/newsreader-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Clínica Sevila. Dirección editorial: titulares en Newsreader (serif de lectura, sobria), texto en Figtree.
   Un fondo blanco, una tinta azul marino, el azul del logo como acento y el verde solo en WhatsApp.
   Sin sombras en reposo, sin degradados, sin líneas: las superficies se separan con un paso de tono. Fotos reales grandes y de esquina recta. */
:root {
  --brand: #2c6aa6;        /* azul del logo, oscurecido para texto */
  --brand-deep: #12324f;   /* campos de color oscuros */
  --brand-soft: #e4edf6;
  --accent: #5d9bd6;
  --wa: #1c9e55;
  --wa-ink: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --sunk: #f1f4f7;
  --fg: #10233a;
  --muted: #4d5c6b;
  --line: #d5dee7;         /* solo bordes de campos de formulario */
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Figtree', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 18px/1.55 var(--font-body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .4vw, 1.55rem); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 1rem/1.3 var(--font-body); color: var(--brand); }
.lead { font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); line-height: 1.5; color: var(--fg); max-width: 56ch; }
.section { padding-block: clamp(72px, 10vw, 152px); }
.section.alt { background: var(--sunk); }
.section-head { display: grid; gap: 16px; max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 12px; }

/* Botones: planos, redondos del todo */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; font: 600 1.02rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #178a49; }
.btn-ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: .92rem; color: var(--muted); }

/* Cabecera: barra lisa */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(16, 35, 58, .07); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.logo img { height: 44px; width: auto; }
.wordmark { font: 500 1.4rem/1 var(--font-display); color: #77787a; letter-spacing: -.01em; }
.wordmark b { font-weight: 500; color: var(--brand); }
.wordmark small { display: block; font: 500 .75rem/1.4 var(--font-body); color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn), .nav-item > button { color: var(--fg); text-decoration: none; font: 500 .98rem/1 var(--font-body); padding: 12px 12px; background: none; border: 0; cursor: pointer; border-radius: 999px; transition: background-color .15s ease; }
.nav > a:not(.btn):hover, .nav-item > button:hover, .nav-item > button[aria-expanded="true"] { background: var(--sunk); }
.nav > a.lang { font-weight: 700; }
.nav-item { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--surface); box-shadow: 0 18px 48px rgba(16, 35, 58, .16); padding: 10px; display: grid; }
.nav-menu a { padding: 11px 14px; text-decoration: none; color: var(--fg); font-size: 1rem; }
.nav-menu a:hover { background: var(--sunk); }
.nav .btn { min-height: 46px; padding: 10px 20px; margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; background: var(--sunk); border: 0; border-radius: 999px; width: 48px; height: 48px; color: var(--fg); }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px)); max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 18px 48px rgba(16, 35, 58, .12); }
  .nav.open { display: flex; }
  .nav > a:not(.btn), .nav-item > button { font-size: 1.15rem; padding: 14px 4px; border-radius: 0; text-align: left; width: 100%; }
  .nav-menu { position: static; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
}

/* Hero: texto a la izquierda, foto grande a sangre hasta el borde derecho */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(calc(100svh - 80px), 860px); }
.hero-copy { display: grid; gap: 24px; min-width: 0; padding-block: clamp(40px, 6vw, 88px); }
.hero-copy h1 em { font-style: normal; }
.hero-copy .eyebrow { font-size: 1.02rem; }
.hero .visual { align-self: stretch; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter))); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--muted); }
.trust b { color: var(--fg); }
.stars { color: #e39a0f; letter-spacing: 1px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding-block: 28px 36px; }
  .hero .visual { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3.4; min-height: 0; }
}

/* Visual: fotos que se funden despacio, o ilustración */
.visual { position: relative; min-height: 420px; overflow: hidden; background: var(--sunk); }
.visual .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slide 21s infinite; }
.visual .slides img:nth-child(2) { animation-delay: 7s; }
.visual .slides img:nth-child(3) { animation-delay: 14s; }
.visual .slides img:only-child { animation: drift 24s ease-in-out infinite alternate; opacity: 1; }
.visual .slides img:first-child { opacity: 1; }
@keyframes slide { 0% { opacity: 0; transform: scale(1.06); } 5% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.visual .illus { position: absolute; inset: 10%; width: 80%; height: 80%; }
.illus .draw { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 0; animation: draw 2.6s ease-out both; }
.illus .soft { fill: var(--brand); opacity: .09; }
.illus .hot { fill: var(--accent); }
.illus .pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.visual-badge { display: none; }

/* Mapa del cuerpo */
.bodymap { position: relative; aspect-ratio: 4 / 5.2; width: 100%; max-width: 520px; margin-inline: auto; }
.bodymap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bodymap .figure { fill: var(--brand-soft); }
.bodymap .spot circle.core { fill: var(--brand); transition: r .2s ease; }
.bodymap .spot:hover circle.core, .bodymap .spot:focus circle.core { r: 12; }
.bodymap .spot text { font: 600 16px var(--font-body); fill: var(--fg); }
.bodymap .spot:hover text { fill: var(--brand); text-decoration: underline; }
.bodymap .spot line { stroke: var(--brand); stroke-width: 1.5; opacity: .5; }
.bodymap .pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.field-dark .bodymap .figure { fill: #1f4a73; }
.field-dark .bodymap .spot circle.core { fill: #ffffff; }
.field-dark .bodymap .spot text { fill: #ffffff; }
.field-dark .bodymap .spot line { stroke: #9fc2e6; }

/* Campos de color */
.field-dark { background: var(--brand-deep); color: #eef4fa; }
.field-dark h2, .field-dark h3 { color: #ffffff; }
.field-dark .lead, .field-dark p { color: #d3e1ef; }
.field-dark a { color: #ffffff; }
.field-soft { background: var(--brand-soft); }

/* Rejillas y listas de enlaces (sin tarjetas con borde) */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px 32px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 8px 32px; }
.card { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 28px 0 30px; }
.card h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); }
.card p { color: var(--muted); font-size: 1rem; }
a.card { text-decoration: none; color: inherit; position: relative; padding-inline: min(20px, var(--gutter)); margin-inline: calc(-1 * min(20px, var(--gutter))); transition: background-color .2s ease; }
a.card:hover { background: var(--sunk); }
.section.alt a.card:hover, .field-soft a.card:hover { background: var(--surface); }
a.card h3 { transition: color .2s ease; }
a.card:hover h3 { color: var(--brand); }
.card .more { color: var(--brand); font-weight: 600; font-size: .98rem; margin-top: 4px; }
.icon { display: none; }

/* Mosaico de unidades con foto */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tile { display: grid; gap: 14px; text-decoration: none; color: inherit; align-content: start; }
.tile figure { margin: 0; aspect-ratio: 4 / 3.6; overflow: hidden; background: var(--sunk); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile h3 { font-size: clamp(1.45rem, 1.2rem + .7vw, 1.9rem); transition: color .2s ease; }
.tile:hover h3 { color: var(--brand); }
.tile p { color: var(--muted); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { gap: 24px 12px; } .tile p { display: none; } }

/* Lista tipográfica de deportes */
.bigwords { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3vw, 48px); }
.bigwords a { font: 500 clamp(2.4rem, 1.2rem + 5vw, 6rem)/1.05 var(--font-display); letter-spacing: -0.03em; color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: .2em; transition: color .2s ease; }
.bigwords a::after { content: "→"; font-size: .45em; opacity: 0; transform: translateX(-8px); transition: opacity .2s ease, transform .3s var(--ease); }
.bigwords a:hover { color: var(--brand); }
.bigwords a:hover::after, .bigwords a:focus-visible::after { opacity: 1; transform: none; }
.field-dark .bigwords a:hover { color: #9fc2e6; }

/* Bloque partido: foto y lista */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-photo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-photo figure { margin: 0; position: sticky; top: 104px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sunk); }
.split-photo figure img { width: 100%; height: 100%; object-fit: cover; }
.split-photo .grid-3 { grid-template-columns: 1fr; gap: 0; }
@media (max-width: 720px) { .card { padding-block: 18px 20px; } }
@media (max-width: 900px) { .split, .split-photo { grid-template-columns: 1fr; } .split-photo figure { position: static; aspect-ratio: 4 / 3; } }

/* Lista de síntomas */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px 48px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.08rem; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Pasos del método: columnas de texto, el orden lo da la posición */
.steps { display: grid; gap: 40px clamp(24px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { display: grid; gap: 10px; align-content: start; padding-top: 22px; position: relative; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 6px; background: var(--brand); }
.step h3 { font-size: clamp(1.4rem, 1.2rem + .5vw, 1.75rem); }
.step p { color: var(--muted); font-size: 1rem; }
.field-dark .step::before { background: #9fc2e6; }

.stats { display: flex; flex-wrap: wrap; gap: 16px 48px; padding-top: 8px; }
.stat b { display: block; font: 500 clamp(2.4rem, 2rem + 1.4vw, 3.4rem)/1 var(--font-display); color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { font-size: .95rem; color: var(--muted); }

/* Fases: línea de tiempo interactiva */
.phases { display: grid; gap: 24px; }
.phase-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.phase-tabs button { flex: none; border: 0; background: var(--surface); color: var(--fg); border-radius: 999px; padding: 12px 18px; font: 600 .98rem/1.1 var(--font-body); cursor: pointer; text-align: left; transition: background-color .2s ease; }
.phase-tabs button:hover { background: var(--brand-soft); }
.phase-tabs button small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.phase-tabs button[aria-selected="true"] { background: var(--brand); color: #ffffff; }
.phase-tabs button[aria-selected="true"] small { color: inherit; opacity: .85; }
.phase-track { height: 6px; background: var(--brand-soft); overflow: hidden; }
.phase-track span { display: block; height: 100%; width: 20%; background: var(--brand); transition: width .5s var(--ease); }
.phase-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; background: var(--surface); padding: clamp(24px, 4vw, 48px); }
.phase-panel h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.phase-panel ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.gate { background: var(--brand-soft); padding: 20px; display: grid; gap: 8px; align-content: start; }
@media (max-width: 720px) { .phase-panel { grid-template-columns: 1fr; } }
.note { font-size: .92rem; color: var(--muted); max-width: 70ch; }

/* Equipo */
.team { display: grid; gap: 40px clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 520px) { .team { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }
.person { display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; }
.person .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sunk); display: grid; place-items: center; margin-bottom: 6px; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
a.person:hover .ph img { transform: scale(1.04); }
a.person:hover h3 { color: var(--brand); }
.person .ph span { font: 500 3rem/1 var(--font-display); color: var(--brand); }
.person h3 { font-size: 1.3rem; transition: color .2s ease; }
.person p { font-size: .95rem; color: var(--muted); }
.person-photo { aspect-ratio: 4 / 5; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 8px; max-width: 900px; }
.faq details { background: var(--surface); padding: 0 24px; }
.section:not(.alt) .faq details { background: var(--sunk); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 600 1.1rem/1.4 var(--font-body); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.7rem/1 var(--font-body); color: var(--brand); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--fg); max-width: 70ch; }

/* Banda de cita: campo azul del logo */
.cta-band { background: var(--brand); color: #ffffff; }
.cta-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(72px, 9vw, 136px); }
.cta-band h2 { color: #ffffff; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.8rem); }
.cta-band p { color: #e6effa; font-size: 1.12rem; }
.cta-band .cta-note { color: #d2e2f3; font-size: .95rem; }
.cta-band .btn-wa { background: #ffffff; color: #0d5c31; }
.cta-band .btn-wa:hover { background: #e8f6ee; }
.cta-band .btn-wa svg { color: var(--wa); }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Formulario "te llamamos" */
.callback { background: var(--surface); color: var(--fg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; }
.callback h3 { font-size: 1.6rem; }
.cta-band .callback .cta-note { color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: .92rem; font-weight: 600; }
.field input, .field select { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--fg); min-height: 50px; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--brand); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.callback .btn { justify-content: center; background: var(--fg); color: var(--surface); }
.callback .btn:hover { background: var(--brand); }
.form-ok { background: var(--brand-soft); color: var(--fg); padding: 12px 14px; font-size: .95rem; }

/* Franja de fotos */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.strip figure { margin: 0; scroll-snap-align: start; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sunk); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* Entrada al hacer scroll: el contenido siempre es visible si falla el script */
.reveal { transition: transform .8s var(--ease), opacity .8s ease; }
.js .reveal.pending { transform: translateY(24px); opacity: 0; }

/* Migas */
.crumbs { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }

/* Pie: cierre con el nombre a todo el ancho */
.site-footer { background: var(--brand-deep); color: #d3e1ef; padding-block: clamp(64px, 8vw, 112px) calc(96px + env(safe-area-inset-bottom, 0px)); font-size: .98rem; }
.site-footer p { color: #d3e1ef; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-name { display: block; font: 500 clamp(3.2rem, 1rem + 9vw, 10rem)/.95 var(--font-display); letter-spacing: -0.035em; color: #ffffff; margin-bottom: clamp(40px, 5vw, 72px); }
.footer-name span { color: #9fc2e6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font: 600 1rem/1.3 var(--font-body); color: #ffffff; margin-bottom: 14px; letter-spacing: 0; }
.footer-grid > div { align-content: start; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid img { display: none; }
.legal { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: #a9bfd6; font-size: .88rem; }
.site-footer .legal a { color: #a9bfd6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante y barra móvil */
.wa-float { position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .wa-float { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); box-shadow: 0 -8px 24px rgba(16, 35, 58, .08); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .mobile-bar .btn { justify-content: center; padding-inline: 12px; min-height: 50px; }
  .mobile-bar .btn-ghost { background: var(--sunk); border-color: transparent; }
}

/* Cookies */
.cookie { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 440px; background: var(--surface); box-shadow: 0 18px 48px rgba(16, 35, 58, .2); padding: 20px; display: grid; gap: 14px; font-size: .92rem; }
.cookie .btn { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.cookie .btn-accept { background: var(--fg); color: var(--surface); }
@media (max-width: 720px) { .cookie { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

.prose { display: grid; gap: 18px; max-width: 70ch; }
.prose p { color: var(--fg); }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-top: 16px; }
.info-list { display: grid; gap: 16px; }
.info-list div { display: grid; gap: 2px; }
.info-list dt { font-size: .92rem; color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .visual .slides img:first-child { opacity: 1; }
  .js .reveal.pending { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Carrusel de opiniones */
.reviews { position: relative; max-width: 900px; }
.reviews-track { display: grid; }
.review { grid-area: 1 / 1; margin: 0; display: grid; gap: 18px; align-content: start; opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease); pointer-events: none; }
.review.on { opacity: 1; transform: none; pointer-events: auto; }
.review blockquote { margin: 0; font: 500 clamp(1.4rem, 1.1rem + 1vw, 2.1rem)/1.3 var(--font-display); letter-spacing: -0.01em; }
.review.long blockquote { font-size: clamp(1.1rem, 1rem + .45vw, 1.45rem); line-height: 1.4; }
.review figcaption { color: var(--muted); font-size: 1rem; }
.review .stars { color: #e39a0f; letter-spacing: 2px; }
.reviews-dots { display: flex; gap: 8px; margin-top: 24px; }
.reviews-dots button { width: 28px; height: 6px; border: 0; background: var(--brand-soft); padding: 0; cursor: pointer; }
.reviews-dots button[aria-current="true"] { background: var(--brand); }
html:not(.js) .review { opacity: 1; transform: none; grid-area: auto; }

.reviewed { margin-top: 28px; font-size: .95rem; color: var(--muted); }
.section-tight { padding: 8px 0 40px; }
.section:not(.alt) .phase-panel, .section:not(.alt) .phase-tabs button:not([aria-selected="true"]) { background: var(--sunk); }

.h1-tail{display:block;font-size:.62em;line-height:1.15;color:var(--brand);margin-top:.3em}
