/* =========================================================
   Club Natación Leganés · estilos
   Mobile first. Colores y tipografías en :root.
   ========================================================= */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta */
  --abismo: #0B2545;      /* texto, fondos oscuros */
  --azul: #0063C6;        /* enlaces, detalles */
  --agua: #1BB0E0;        /* decorativo */
  --espuma: #EEF7FC;      /* fondos alternos */
  --blanco: #FFFFFF;
  --acento: #FF6A13;      /* corchera: botones y detalles */
  --acento-hover: #FF8540;

  --ink: var(--abismo);
  --ink-soft: #3D5470;
  --line: #CFDDEA;
  --focus: var(--azul);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --radius: 6px;
  --cut: 28px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 720px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--blanco);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--azul); text-underline-offset: .2em; }
a:hover { color: var(--abismo); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: .005em; margin: 0 0 .5em; }
h2 { font-size: clamp(2.75rem, 9vw, 5.75rem); font-weight: 900; }
h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h4 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
ul { list-style: none; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .section-dark, .site-footer, .site-nav { --focus: #FF9A5C; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--acento); color: var(--abismo); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 12px; }
.lead { font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.45; font-weight: 600; }
.muted { color: var(--ink-soft); }
.text-accent { color: var(--acento); }

/* Marcador de datos pendientes */
.completar { display: inline-block; padding: 0 .35em; background: #FFF1C2; color: #6B4A00; border: 1px dashed #C99A00; border-radius: 4px; font-size: .9em; font-weight: 600; line-height: 1.5; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .5rem 1.5rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 56px; padding-inline: 2rem; font-size: 1.35rem; }
.btn-accent { background: var(--acento); color: var(--abismo); }
.btn-accent:hover { background: var(--acento-hover); color: var(--abismo); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: var(--blanco); }
.btn-ghost:hover { background: var(--blanco); color: var(--abismo); }
.btn-outline { border-color: var(--abismo); color: var(--abismo); }
.btn-outline:hover { background: var(--abismo); color: var(--blanco); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 700; color: var(--azul); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--blanco);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.96); color: var(--abismo); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(11,37,69,.08); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; position: relative; z-index: 2; }
.brand-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; line-height: .9; display: flex; flex-direction: column; }
.brand-text strong { font-weight: 900; }
.brand:hover { color: inherit; }

.nav-toggle { position: relative; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: inherit; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 26px; height: 3px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); background: var(--blanco); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); background: var(--blanco); }
body.menu-open .site-header .brand { color: var(--blanco); }

.site-nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--abismo); color: var(--blanco);
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.site-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .25rem 0; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 10vw, 3.25rem); text-transform: uppercase; line-height: 1.1; }
.site-nav a:not(.btn):hover { color: var(--acento); }
.nav-cta { align-self: flex-start; }
body.menu-open { overflow: hidden; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; flex-direction: row; align-items: center; gap: 1.75rem; padding: 0;
    background: none; color: inherit; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .site-nav ul { flex-direction: row; gap: 1.5rem; }
  .site-nav a:not(.btn) { font-size: 1.15rem; letter-spacing: .06em; padding: .5rem 0; position: relative; }
  .site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--acento); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-nav a:not(.btn):hover, .site-nav a[aria-current="true"] { color: inherit; }
  .site-nav a:not(.btn):hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
  .site-header.is-scrolled .site-nav { --focus: var(--azul); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--blanco); background: var(--abismo); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,37,69,.94) 0%, rgba(11,37,69,.55) 45%, rgba(11,37,69,.25) 75%, rgba(11,37,69,.5) 100%); }
.hero-content { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 2.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 36px; height: 4px; background: var(--acento); }
.hero-title { font-size: clamp(3.75rem, min(18vw, 14svh), 11rem); font-weight: 900; line-height: .9; margin: 0 0 1.5rem; letter-spacing: -.005em; }
.hero-title span { display: block; }
.hero-lead { max-width: 34rem; font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.45; margin-bottom: 2rem; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.quick-links { border-top: 1px solid rgba(255,255,255,.22); background: rgba(11,37,69,.55); }
.quick-links ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.quick-links li + li { border-left: 1px solid rgba(255,255,255,.22); }
.quick-links li:nth-child(3) { border-left: 0; }
.quick-links li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
.quick-links a { display: flex; align-items: baseline; gap: .6rem; padding: 1.1rem .75rem; color: var(--blanco); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; transition: background-color .2s, color .2s; }
.quick-links li:first-child a, .quick-links li:nth-child(3) a { padding-left: 0; }
.quick-links a:hover { color: var(--acento); }
.ql-num { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--agua); }
@media (min-width: 720px) {
  .quick-links ul { grid-template-columns: repeat(4, 1fr); }
  .quick-links li:nth-child(3) { border-left: 1px solid rgba(255,255,255,.22); }
  .quick-links li:nth-child(n+3) { border-top: 0; }
  .quick-links li:nth-child(3) a { padding-left: 1.25rem; }
  .quick-links a { padding: 1.5rem 1.25rem; font-size: 1.75rem; }
}

/* ---------- Cifras ---------- */
.stats { background: var(--blanco); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.stats-grid li { padding: 1.75rem .75rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.stats-grid li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.stats-grid li:nth-child(n+3) { border-bottom: 0; }
.stats-grid strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1; text-transform: uppercase; color: var(--abismo); }
.stats-grid strong::after { content: ""; display: block; width: 32px; height: 4px; margin-top: .6rem; background: var(--acento); }
.stats-grid li > span { display: block; margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid li { padding: 2.5rem 1.5rem; border-bottom: 0; }
  .stats-grid li:first-child { padding-left: 0; }
  .stats-grid li + li { border-left: 1px solid var(--line); }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4.5rem, 11vw, 8.5rem); }
.section-alt { background: var(--espuma); }
.section-dark { background: var(--abismo); color: var(--blanco); }
.section-dark a { color: var(--agua); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 52rem; }
.section-num { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-weight: 700; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.section-num::before { content: ""; width: 28px; height: 4px; background: var(--acento); }
.section-dark .section-num { color: var(--agua); }
.section-intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }
.section-dark .section-intro { color: rgba(255,255,255,.82); }

.block { margin-top: clamp(4rem, 9vw, 6.5rem); }
.block-title { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 900; }
.block-intro { max-width: 46rem; color: var(--ink-soft); margin-bottom: 2rem; }



/* El club */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 5rem; } }

.values { display: grid; gap: 1px; margin-top: clamp(3.5rem, 8vw, 5.5rem); background: var(--line); border: 1px solid var(--line); }
.value { background: var(--blanco); padding: 2rem 1.5rem; }
.value-num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--agua); margin-bottom: 1rem; }
.value h3 { font-size: 1.75rem; }
.value p { margin: 0; color: var(--ink-soft); }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } .value { padding: 2.5rem 2rem; } }

.achievements, .trophies { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .achievements { grid-template-columns: repeat(3, 1fr); } .trophies { grid-template-columns: repeat(2, 1fr); } }
.achievement, .trophy { background: var(--espuma); padding: 2rem 1.5rem; border-top: 5px solid var(--acento); }
.achievement h4, .trophy h4 { font-size: 1.85rem; }
.achievement > p:not(.achievement-tag), .trophy > p:not(.achievement-tag) { color: var(--ink-soft); }
.achievement-tag { display: inline-block; margin-bottom: 1rem; padding: .2rem .6rem; background: var(--abismo); color: var(--blanco); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.medal-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.doc-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 2px solid var(--abismo); border-radius: var(--radius); color: var(--abismo); font-weight: 700; text-decoration: none; }
.doc-links a:hover { background: var(--abismo); color: var(--blanco); }

.venues { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .venues { grid-template-columns: repeat(2, 1fr); } }
.venue { background: var(--blanco); border: 1px solid var(--line); }
.venue img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.venue-body { padding: 1.5rem; }
.venue-body p { color: var(--ink-soft); margin-bottom: .5rem; }

/* Desplegables */
.more { margin-top: 1rem; }
.more summary { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--azul); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid currentColor; border-radius: 50%; font-size: 1.1rem; line-height: 1; transition: transform .25s var(--ease); }
.more[open] summary::before { transform: rotate(45deg); }
.more[open] > *:not(summary) { animation: fade-in .35s var(--ease); }
.more-box { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--blanco); border: 1px solid var(--line); border-left: 5px solid var(--agua); }
.more-box summary { color: var(--abismo); font-size: 1.1rem; }
.tips { counter-reset: tip; list-style: none; display: grid; gap: .75rem; margin-top: 1rem; }
.tips li { counter-increment: tip; position: relative; padding-left: 2.75rem; }
.tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; left: 0; top: -.05em; font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--azul); }
@media (min-width: 900px) { .tips { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }

/* ---------- Actividades ---------- */
.activity-group + .activity-group { margin-top: clamp(4rem, 9vw, 6.5rem); }
.group-head { display: grid; gap: .5rem 3rem; margin-bottom: 2rem; }
.group-head h3 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 900; }
.group-head p { color: var(--ink-soft); max-width: 44rem; margin: 0; }
@media (min-width: 900px) { .group-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: end; } .group-head h3 { margin: 0; } }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.cards-two { margin-top: 2rem; }
@media (min-width: 900px) { .cards-two { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,37,69,.12); }
.card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cards-compact .card { border-top: 0; position: relative; }
.cards-compact .card::before { content: ""; height: 6px; background: repeating-linear-gradient(90deg, var(--acento) 0 18px, var(--blanco) 18px 22px, var(--azul) 22px 40px, var(--blanco) 40px 44px); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card-body > p:not(.card-tag) { color: var(--ink-soft); font-size: 1rem; }
.card-tag { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); margin-bottom: .5rem; }
.card h4 { font-size: 2.1rem; font-weight: 900; margin-bottom: 1rem; }
.card-facts { margin: 0 0 1rem; display: grid; gap: 0; }
.card-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.card-facts dt { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: .15em; }
.card-facts dd { margin: 0; font-weight: 600; font-size: .98rem; }
.card .link-arrow { margin-top: auto; }

.master-intro { display: grid; gap: 2rem; align-items: start; }
.master-intro img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.master-intro h3 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 900; }
.master-intro p:not(.lead) { color: var(--ink-soft); }
.master-intro h4 { margin-top: 1.5rem; font-size: 1.4rem; }
@media (min-width: 900px) { .master-intro { grid-template-columns: .9fr 1.1fr; gap: 4rem; } .master-intro img { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* ---------- Horarios ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { min-height: 44px; padding: .4rem 1.1rem; border: 2px solid var(--abismo); border-radius: 999px; background: var(--blanco); color: var(--abismo); font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--espuma); }
.chip[aria-pressed="true"] { background: var(--abismo); color: var(--blanco); }

.table-wrap { width: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table thead th { background: var(--abismo); color: var(--blanco); text-align: left; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; padding: .9rem 1rem; }
.data-table tbody th { text-align: left; font-weight: 700; }
.data-table tbody th, .data-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: var(--espuma); }
.data-table tr[hidden] { display: none; }
.tarifas-title { margin-top: clamp(3.5rem, 8vw, 5rem); }
.table-note { margin-top: 1.5rem; color: var(--ink-soft); }

@media (max-width: 719px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table tbody tr { margin-bottom: .75rem; border: 1px solid var(--line); border-left: 5px solid var(--azul); background: var(--blanco) !important; }
  .data-table tbody tr[data-tipo="escuela"] { border-left-color: var(--agua); }
  .data-table tbody tr[data-tipo="master"] { border-left-color: var(--abismo); }
  .data-table tbody tr[data-tipo="adultos"] { border-left-color: var(--acento); }
  .data-table tbody th { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; border: 0; padding-bottom: .25rem; }
  .data-table td { display: grid; grid-template-columns: 6rem 1fr; gap: .5rem; padding: .35rem 1rem; border: 0; }
  .data-table td:last-child { padding-bottom: 1rem; }
  .data-table td::before { content: attr(data-label); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: .15em; }
}

/* ---------- Equipo ---------- */
.coaches { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.coach { background: var(--abismo); padding: 2rem 1.5rem; }
.avatar { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 1.25rem; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--azul), var(--agua)); font-family: var(--font-display); font-weight: 900; font-size: 2.25rem; color: var(--blanco); }
.coach h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.coach p { margin: 0; color: var(--acento-hover); font-weight: 700; }
.board { margin-top: clamp(3.5rem, 8vw, 5rem); }
.board > p { color: rgba(255,255,255,.82); max-width: 46rem; }
.board-list { display: grid; gap: 0 2.5rem; margin: 1.5rem 0; }
.board-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.board-list dt { color: var(--agua); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding-top: .2em; }
.board-list dd { margin: 0; text-align: right; font-weight: 600; }
.board .muted { color: rgba(255,255,255,.7); }
@media (min-width: 800px) { .board-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Galería ---------- */
.gallery { columns: 2; column-gap: .75rem; }
.gallery li { break-inside: avoid; margin-bottom: .75rem; }
@media (min-width: 900px) { .gallery { columns: 3; column-gap: 1.25rem; } .gallery li { margin-bottom: 1.25rem; } }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--espuma); cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox { max-width: min(92vw, 1200px); max-height: 92vh; padding: 0; border: 0; background: transparent; color: var(--blanco); overflow: visible; }
.lightbox::backdrop { background: rgba(11,37,69,.92); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; }
.lightbox-caption { text-align: center; margin: .75rem 0 0; font-weight: 600; }
.lightbox-btn { position: fixed; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--blanco); color: var(--abismo); font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox-btn:hover { background: var(--acento); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Inscripción ---------- */
.signup { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .signup { grid-template-columns: .85fr 1.15fr; gap: 5rem; } .signup-text { position: sticky; top: calc(var(--header-h) + 2rem); } }
.signup-text h2 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
.notice { padding: 1rem 1.25rem; background: var(--blanco); border-left: 5px solid var(--acento); font-weight: 600; }

.form { background: var(--blanco); padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 6px solid var(--azul); box-shadow: 0 24px 60px rgba(11,37,69,.1); }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  font: inherit; color: var(--ink); background: var(--blanco);
  border: 2px solid #9FB3C8; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0,99,198,.2); }
.field [aria-invalid="true"] { border-color: #C42B1C; }
.field-error { color: #B3261E; font-size: .9rem; font-weight: 600; }
.check { flex-direction: row; align-items: flex-start; gap: .75rem; }
.check input { width: 24px; min-height: 24px; height: 24px; flex: none; margin-top: .15rem; accent-color: var(--azul); }
.check label { font-weight: 500; }
.form-hint { font-size: .9rem; color: var(--ink-soft); }
.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status.ok { color: #1B6E3A; }
.form-status.error { color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.contact-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4.5vw, 2.25rem); text-transform: uppercase; line-height: 1.1; color: var(--abismo); text-decoration: none; overflow-wrap: anywhere; }
a.contact-value:hover { color: var(--azul); }
a.contact-value[href^="mailto"] { text-transform: none; font-size: clamp(1.3rem, 4vw, 1.9rem); }
.contact-sub { color: var(--ink-soft); }
a.contact-sub { font-weight: 700; color: var(--azul); }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.1rem; border: 2px solid var(--abismo); border-radius: 999px; color: var(--abismo); font-weight: 700; text-decoration: none; }
.social a:hover { background: var(--abismo); color: var(--blanco); }

.map { position: relative; aspect-ratio: 4 / 3.4; background: var(--abismo) url("../img/hero.svg") center / cover; overflow: hidden; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(11,37,69,.72); }
.map-placeholder { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; padding: clamp(1.5rem, 5vw, 3rem); color: var(--blanco); --focus: #FF9A5C; }
.map-placeholder p:first-child { font-size: 1.2rem; font-weight: 600; max-width: 28rem; }
.map-note { font-size: .9rem; color: rgba(255,255,255,.8); margin: 0; }
.map-note a { color: var(--blanco); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded::before { display: none; }

/* ---------- Pie ---------- */
.site-footer { background: var(--abismo); color: rgba(255,255,255,.85); }
.site-footer a { color: var(--blanco); }
.lane-rope { height: 10px; background: repeating-linear-gradient(90deg, var(--acento) 0 26px, var(--blanco) 26px 32px, var(--azul) 32px 58px, var(--blanco) 58px 64px); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.1fr 1fr; } }
.footer-brand .brand { color: var(--blanco); margin-bottom: 1rem; }
.footer-title { font-size: 1.3rem; color: var(--blanco); letter-spacing: .06em; margin-bottom: 1rem; }
.footer-grid nav a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.footer-grid nav a:hover { color: var(--acento); }
.sponsors { display: flex; flex-wrap: wrap; gap: .75rem; }
.sponsors li { display: grid; place-items: center; min-width: 110px; min-height: 64px; padding: .5rem; background: var(--blanco); border-radius: var(--radius); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Páginas legales / 404 ---------- */
.page-simple { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; }
.page-simple .site-header { background: var(--blanco); color: var(--abismo); box-shadow: 0 1px 0 var(--line); }
.legal { max-width: 48rem; }
.legal h1 { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 900; }
.legal h2 { font-size: clamp(2rem, 6vw, 3rem); margin-top: 3rem; padding-top: 1rem; border-top: 4px solid var(--acento); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }

/* ---------- Animaciones (solo si el usuario no pide menos movimiento) ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes rise-y { from { transform: translateY(.35em); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .hero .eyebrow, .hero-lead, .hero-actions { animation: rise .9s var(--ease) both; }
  /* El titular no parte de opacidad 0 para no retrasar el LCP */
  .hero-title span { animation: rise-y .9s var(--ease) both; }
  .hero .eyebrow { animation-delay: .05s; }
  .hero-title span:nth-child(1) { animation-delay: .12s; }
  .hero-title span:nth-child(2) { animation-delay: .22s; }
  .hero-title span:nth-child(3) { animation-delay: .32s; }
  .hero-lead { animation-delay: .45s; }
  .hero-actions { animation-delay: .55s; }
  .hero-media img { animation: hero-zoom 14s var(--ease) both; }
  @keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .bubbles, .ripples, .hero-light { display: none; }
}

/* =========================================================
   EFECTOS DE AGUA
   Todo se anima con transform/opacity. Las animaciones infinitas
   se pausan fuera de pantalla (.is-paused) y no se ejecutan con
   prefers-reduced-motion: reduce.
   ========================================================= */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-paused :is(.bubble, .waves use, .marquee-track, .marquee-wave), .wave-top.is-paused use,
.is-paused .hero-light::before, .is-paused .hero-light::after { animation-play-state: paused !important; }

/* Progreso de lectura: corchera + gorro */
.scroll-lane { position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled .scroll-lane { opacity: 1; }
.scroll-lane-rope { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--acento) 0 12px, var(--blanco) 12px 14px, var(--azul) 14px 26px, var(--blanco) 26px 28px); transform-origin: left; transform: scaleX(var(--p, 0)); }
.scroll-lane-cap { position: absolute; top: -6px; left: calc(var(--p, 0) * 100%); width: 18px; height: 16px; margin-left: -9px; border-radius: 50% 50% 40% 40%; background: var(--acento); box-shadow: inset 0 -5px 0 var(--abismo), 0 2px 6px rgba(11,37,69,.3); }

/* Hero: luz bajo el agua, burbujas, ondas y olas */
.hero { padding-bottom: clamp(40px, 7vw, 90px); }
.hero-content, .quick-links { position: relative; z-index: 2; }
.hero-light { position: absolute; inset: -10%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.hero-light::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 70px, rgba(255,255,255,.07) 70px 110px, transparent 110px 190px, rgba(159,224,245,.06) 190px 215px, transparent 215px 300px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.hero-light::after {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background:
    radial-gradient(ellipse 16% 9% at 18% 28%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(ellipse 12% 7% at 66% 18%, rgba(255,255,255,.14), transparent 70%),
    radial-gradient(ellipse 20% 8% at 42% 58%, rgba(159,224,245,.14), transparent 70%),
    radial-gradient(ellipse 14% 9% at 84% 62%, rgba(255,255,255,.12), transparent 70%);
}
.bubbles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.bubble {
  position: absolute; bottom: -40px; left: var(--x, 50%); width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 12%, rgba(255,255,255,.22) 35%, rgba(255,255,255,.04) 70%);
  border: 1px solid rgba(255,255,255,.5);
}
.ripples { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ripple { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); transform: scale(.2); opacity: 0; }
.ripple::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); }
.hero-squiggle { display: block; width: 3.4em; max-width: 100%; height: .15em; margin-top: .06em; overflow: visible; }
.hero-squiggle path { fill: none; stroke: var(--acento); stroke-width: 3.5; stroke-linecap: round; }
.waves { position: absolute; left: 0; bottom: -1px; z-index: 1; width: 100%; height: clamp(40px, 7vw, 90px); pointer-events: none; }
.waves use { fill: var(--blanco); }
.waves use:nth-child(1) { fill-opacity: .16; }
.waves use:nth-child(2) { fill-opacity: .32; }
.waves use:nth-child(3) { fill-opacity: .55; }

/* Separadores de ola entre secciones */
.section-alt, .section-dark, .site-footer { position: relative; }
.wave-top { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(32px, 5vw, 70px); pointer-events: none; color: var(--espuma); }
.wave-top svg { display: block; width: 100%; height: 100%; }
.section-dark .wave-top, .site-footer .wave-top { color: var(--abismo); }
.wave-top use { fill: currentColor; }
.wave-top use:nth-child(1) { fill-opacity: .2; }
.wave-top use:nth-child(2) { fill-opacity: .4; }
.wave-top use:nth-child(3) { fill-opacity: .65; }
.section-dark > .container, .section-alt > .container { position: relative; z-index: 1; }
.section-dark .bubbles { z-index: 0; opacity: .6; }

/* Marquesina */
.marquee { overflow: hidden; background: var(--abismo); color: var(--blanco); padding-block: clamp(.9rem, 2.5vw, 1.4rem); }
.marquee-track { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.25rem); width: max-content; }
.marquee-track span:not(.marquee-wave) { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 6.5vw, 4.25rem); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.marquee-track span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.5px var(--blanco); }
.marquee-wave { flex: none; width: 72px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 18'%3E%3Cpath d='M0 9q9-8 18 0t18 0' fill='none' stroke='%23FF6A13' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / 36px 18px repeat-x; }

/* Por qué nadar con nosotros */
.trust-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.trust-item { position: relative; overflow: hidden; isolation: isolate; padding: 2rem 1.75rem 2.25rem; background: var(--espuma); transition: color .45s var(--ease); }
.trust-item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -20px; bottom: 0; z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10q30-10 60 0t60 0V20H0z' fill='%230063C6'/%3E%3C/svg%3E") 0 0 / 120px 20px repeat-x,
    linear-gradient(var(--azul), var(--azul)) 0 19px / 100% calc(100% - 19px) no-repeat;
  transform: translateY(101%); transition: transform .7s var(--ease);
}
.trust-item:hover, .trust-item:focus-within { color: var(--blanco); }
.trust-item:hover::before, .trust-item:focus-within::before { transform: translateY(0); }
.trust-item h3 { font-size: 1.75rem; }
.trust-item p { margin: 0; color: var(--ink-soft); transition: color .45s var(--ease); }
.trust-item:hover p, .trust-item:focus-within p { color: rgba(255,255,255,.92); }
.icon { width: 56px; height: 56px; margin-bottom: 1.25rem; fill: none; stroke: var(--azul); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s var(--ease); }
.trust-item:hover .icon, .trust-item:focus-within .icon { stroke: var(--blanco); }
.trust-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
.trust-phone { display: inline-flex; flex-direction: column; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1; color: var(--abismo); text-decoration: none; }
.trust-phone span { font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .3rem; }
.trust-phone:hover { color: var(--azul); }

/* Botones y elementos con onda al pulsar */
.btn, .chip, .gallery-item { position: relative; overflow: hidden; isolation: isolate; }
.press-ripple { position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255,255,255,.55); pointer-events: none; transform: scale(0); }
.btn-outline .press-ripple, .chip .press-ripple { background: rgba(27,176,224,.35); }
.gallery-item .press-ripple { z-index: 1; }

/* Accesos rápidos: se llenan de agua al pasar */
.quick-links a { position: relative; isolation: isolate; }
.quick-links a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(27,176,224,.35), rgba(27,176,224,.05)); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.quick-links a:hover::before, .quick-links a:focus-visible::before { transform: scaleY(1); }

/* Tarjetas: ola en la base al pasar */
.card { position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7q14-7 28 0t28 0V14H0z' fill='%231BB0E0'/%3E%3C/svg%3E") 0 0 / 56px 14px repeat-x; transform: translateY(100%); transition: transform .35s var(--ease); }
.card:hover::after, .card:focus-within::after { transform: none; }

/* Galería: velo de agua al pasar */
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,99,198,.45), transparent 60%); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

/* ---------- Animaciones de agua (solo sin reducir movimiento) ---------- */
@keyframes wave-move { 0% { transform: translate3d(-90px, 0, 0); } 100% { transform: translate3d(85px, 0, 0); } }
@keyframes bubble-up {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate3d(var(--drift, 20px), -55vh, 0) scale(1); }
  90% { opacity: .7; }
  100% { transform: translate3d(0, -110vh, 0) scale(1.1); opacity: 0; }
}
@keyframes ripple-out { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(9); opacity: 0; } }
@keyframes press { to { transform: scale(30); opacity: 0; } }
@keyframes rays { 0% { transform: translateX(-4%) skewX(-4deg); opacity: .7; } 100% { transform: translateX(4%) skewX(4deg); opacity: 1; } }
@keyframes caustics { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3%, 2%, 0) scale(1.08); } 100% { transform: translate3d(-2%, -1%, 0) scale(.96); } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wave-slide { to { background-position-x: 36px; } }
@keyframes wave-slide-card { to { background-position-x: 56px; } }
@keyframes wave-slide-fill { to { background-position: 120px 0, 0 19px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes water-fill { to { background-position: -480px 100%; } }
@keyframes icon-draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .waves use, .wave-top use { animation: wave-move 25s cubic-bezier(.55, .5, .45, .5) infinite; }
  .waves use:nth-child(1), .wave-top use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
  .waves use:nth-child(2), .wave-top use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
  .waves use:nth-child(3), .wave-top use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
  .waves use:nth-child(4), .wave-top use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }
  .bubble { animation: bubble-up var(--dur, 12s) linear var(--delay, 0s) infinite; }
  .ripple { animation: ripple-out 1.5s cubic-bezier(.2, .6, .3, 1) forwards; }
  .press-ripple { animation: press .7s ease-out forwards; }
  .hero-light::before { animation: rays 9s ease-in-out infinite alternate; }
  .hero-light::after { animation: caustics 14s ease-in-out infinite alternate; }
  .hero-squiggle path { stroke-dasharray: 100; animation: draw 1.4s var(--ease) .75s both; }
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-wave { animation: wave-slide 1.1s linear infinite; }
  .card::after { animation: wave-slide-card 1.4s linear infinite; }
  .trust-item::before { animation: wave-slide-fill 2.2s linear infinite; }
  .trust-item:hover .icon, .trust-item:focus-within .icon { animation: bob 1.6s ease-in-out infinite; }
  .js .trust-item.reveal .icon :is(path, circle) { stroke-dasharray: 200; stroke-dashoffset: 200; }
  .js .trust-item.reveal.is-visible .icon :is(path, circle) { animation: icon-draw 1.6s var(--ease) calc(var(--d, 0s) + .2s) forwards; }

  /* Títulos que se llenan de agua al aparecer */
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .js .section-head h2, .js .signup-text h2 {
      color: transparent;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400' preserveAspectRatio='none'%3E%3Crect width='240' height='400' fill='%23B9E3F4'/%3E%3Cpath d='M0 186q30-16 60 0t60 0 60 0 60 0V400H0z' fill='%230B2545'/%3E%3C/svg%3E");
      background-size: 240px 200%;
      background-repeat: repeat-x;
      background-position: 0 0;
      -webkit-background-clip: text; background-clip: text;
    }
    .js .section-dark .section-head h2 {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400' preserveAspectRatio='none'%3E%3Crect width='240' height='400' fill='%23355B82'/%3E%3Cpath d='M0 186q30-16 60 0t60 0 60 0 60 0V400H0z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    }
    .js .reveal.is-visible h2 { animation: water-fill 1.9s var(--ease) .15s forwards; }
  }
}

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: .75rem; max-width: 56rem; }
.faq-item { background: var(--blanco); border: 1px solid var(--line); border-left: 5px solid var(--agua); transition: border-color .3s; }
.faq-item[open] { border-left-color: var(--acento); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--espuma); color: var(--azul); font-size: 1.35rem; font-weight: 700; transition: transform .3s var(--ease), background-color .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--acento); color: var(--abismo); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }

/* ---------- Pie: NAP ---------- */
.footer-nap { font-style: normal; }
.footer-nap p { margin-bottom: .75rem; }

/* ---------- Barra de acción fija (móvil) ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); box-shadow: 0 -6px 24px rgba(11,37,69,.14);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.page-scrolled .mobile-cta { transform: none; }
body.menu-open .mobile-cta { display: none; }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; border-radius: var(--radius); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.mobile-cta-call { background: var(--abismo); color: var(--blanco); }
.mobile-cta-call::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mobile-cta-join { background: var(--acento); color: var(--abismo); }
.mobile-cta-call:hover { color: var(--blanco); }
.mobile-cta-join:hover { color: var(--abismo); }
@media (max-width: 719px) { body { padding-bottom: 76px; } }
@media (min-width: 720px) { .mobile-cta { display: none; } }
