/* =========================================================
   Club Tenis Utebo — home
   Estático: sin CMS, sin dependencias.
   ========================================================= */

/* Fuentes alojadas en el propio servidor (sin llamadas a Google) */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/big-shoulders.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-tight.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-tight-italic.woff2) format("woff2"); }

:root {
  --navy: #0B1F4B;
  --navy-2: #12306B;
  --blue: #1E5BD8;        /* pista */
  --blue-2: #3D7BFF;
  --ball: #D9F43A;        /* pelota */
  --ball-2: #C4E01F;
  --orange: #FF7A2F;      /* acento competición */
  --paper: #F3F5F9;
  --ink: #0A1530;
  --muted: #5A6785;
  --line: rgba(10, 21, 48, .12);
  --white: #fff;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ball); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.5em;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-ball { background: var(--ball); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(217, 244, 58, .7); }
.btn-ball:hover { background: var(--white); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--ink); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(11, 31, 75, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  position: relative;
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--white); color: var(--navy);
  font-family: var(--f-display); font-weight: 900; font-size: 21px; letter-spacing: .02em;
  font-style: italic;
}
.brand-mark i {
  position: absolute; right: -5px; top: -5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ball); box-shadow: 0 0 0 3px var(--navy);
}
.brand-text { display: flex; flex-direction: column; font-family: var(--f-display); text-transform: uppercase; line-height: .9; }
.brand-text span { font-weight: 600; font-size: 14px; letter-spacing: .18em; opacity: .8; }
.brand-text strong { font-weight: 900; font-size: 27px; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: 10px 14px; border-radius: 999px;
  opacity: .85; transition: opacity .2s, background .2s;
}
.nav a:not(.btn):hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav-cta { margin-left: 10px; padding: .75em 1.3em; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 130px 0 40px;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}
/* Foto real: solo un degradado para que se lea el texto */
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  filter: saturate(1.05) contrast(1.03);
  animation: zoomout 2.4s var(--ease) both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,22,56,.9) 0%, rgba(8,22,56,.72) 42%, rgba(8,22,56,.2) 70%, transparent 88%),
    linear-gradient(0deg, rgba(8,22,56,.9) 0%, rgba(8,22,56,0) 38%),
    linear-gradient(180deg, rgba(8,22,56,.45) 0%, rgba(8,22,56,0) 18%);
}
@keyframes zoomout { from { transform: scale(1.08); } to { transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 4px rgba(217,244,58,.2); }

.hero-title {
  font-weight: 900; font-style: italic;
  font-size: clamp(4.2rem, 13vw, 11rem);
  text-shadow: 0 6px 40px rgba(8,22,56,.35);
  line-height: .82; letter-spacing: -.005em;
  display: flex; flex-direction: column;
}
.hero-title span { display: block; animation: rise .9s var(--ease) both; }
.hero-title .l2 { color: rgba(255,255,255,.12); -webkit-text-stroke: 2px #fff; animation-delay: .08s; }
.hero-title .l3 { color: var(--ball); animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) skewY(3deg); } to { opacity: 1; transform: none; } }

.hero-lead { max-width: 560px; margin-top: 30px; font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stats {
  margin: 64px 0 0; padding-top: 26px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stats div { display: flex; flex-direction: column; }
.stats dt { order: 2; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.stats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.stats span { order: 3; font-size: .85rem; opacity: .6; }

/* ---------- Cinta ---------- */
.ticker { background: var(--ball); color: var(--ink); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg) scale(1.02); margin-top: -10px; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker span {
  font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: .02em; padding: 0 22px;
  display: inline-flex; align-items: center; gap: 44px;
}
.ticker span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); margin-left: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head h2 { font-weight: 900; font-size: clamp(2.9rem, 7.5vw, 6rem); }
.kicker { font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.section-lead { margin-top: 22px; color: var(--muted); font-size: 1.08rem; max-width: 560px; }

/* Fotos reales, con un retoque mínimo */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--navy-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); transition: transform .9s var(--ease); }

/* ---------- Deportes ---------- */
.sport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sport-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.sport-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,31,75,.35); }
.sport-card:hover .photo img { transform: scale(1.05); }
.sport-card .photo { aspect-ratio: 16 / 10; }
.sport-body { padding: 30px 30px 34px; }
.sport-body h3 { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 900; font-style: italic; margin-bottom: 14px; }
.sport-body p { color: var(--muted); max-width: 460px; }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper); }

/* ---------- Clases ---------- */
.classes { background: var(--white); }
.classes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 34px; }
.classes-head .section-head { margin-bottom: 0; }

.filters { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  padding: .7em 1.3em; border-radius: 999px; border: 0;
  background: var(--paper); color: var(--ink);
  transition: background .25s, color .25s;
}
.chip:hover { background: #E3E8F2; }
.chip.is-active { background: var(--navy); color: var(--white); }

.programs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.program {
  position: relative; display: flex; flex-direction: column;
  padding: 24px 24px 22px; min-height: 290px;
  border-radius: var(--radius); background: var(--paper);
  transition: background .3s, color .3s, transform .3s var(--ease), opacity .3s;
}
.program[hidden] { display: none; }
.program:hover { background: var(--navy); color: var(--white); transform: translateY(-4px); }
.program:hover p, .program:hover .p-age small { color: rgba(255,255,255,.7); }
.program:hover .p-meta li { background: rgba(255,255,255,.1); }
.p-sport { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .55; margin-bottom: 14px; }
.p-age { font-family: var(--f-display); font-weight: 900; font-size: 3.1rem; line-height: 1; color: var(--blue); display: flex; align-items: baseline; gap: 6px; transition: color .3s; }
.program:hover .p-age { color: var(--ball); }
.p-age small { font-family: var(--f-body); font-size: .8rem; font-weight: 600; color: var(--muted); }
.program h3 { font-size: 1.8rem; font-weight: 800; margin: 14px 0 10px; }
.program p { font-size: .95rem; color: var(--muted); }
.p-meta { list-style: none; padding: 18px 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p-meta li { font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--white); transition: background .3s; }
.program-hot { background: var(--navy); color: var(--white); }
.program-hot .p-age { color: var(--orange); }
.program-hot p { color: rgba(255,255,255,.72); }
.program-hot .p-meta li { background: rgba(255,255,255,.1); }
.program-padel .p-age { color: var(--navy-2); }
.program-padel { background: #E6EEFF; }
.program-alt { background: var(--ball); }
.programs[data-view="all"] .program-alt { grid-column: span 3; min-height: 0; }
.program-alt .p-age { color: var(--ink); }
.program-alt p { color: rgba(10,21,48,.75); }
.classes-note { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.classes-note b { color: var(--ink); }

/* ---------- Pistas ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(200px, 24vw, 330px); gap: 16px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--navy-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); transition: transform .9s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink);
}
.g-tall { grid-row: span 2; }
.g-wide:first-child { grid-column: 1; grid-row: 1; }
.g-wide:last-child { grid-column: 1; grid-row: 2; }

/* ---------- Actividades ---------- */
.activities { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.activities::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(255,255,255,.12) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(0deg, transparent 18%, rgba(255,255,255,.12) 18% calc(18% + 3px), transparent calc(18% + 3px) 82%, rgba(255,255,255,.12) 82% calc(82% + 3px), transparent calc(82% + 3px));
  pointer-events: none;
}
.act-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.activities .kicker { color: var(--ball); }
.activities .section-lead { color: rgba(255,255,255,.8); margin-bottom: 30px; }
.act-list { list-style: none; padding: 0; margin: 0; }
.act-list li { display: flex; gap: 22px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.22); }
.act-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.22); }
.act-n { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; transition: background .3s, color .3s; }
.act-list li:hover .act-n { background: var(--ball); color: var(--ink); }
.act-list h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin-bottom: 6px; }
.act-list p { color: rgba(255,255,255,.78); }

/* ---------- Socios ---------- */
.members { background: var(--ball); }
.members-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.members .kicker { color: var(--navy); }
.members h2 { font-weight: 900; font-size: clamp(3.2rem, 9vw, 7.5rem); margin-bottom: 24px; }
.members h2 em { font-style: italic; color: var(--navy-2); }
.members-copy > p { max-width: 460px; color: rgba(10,21,48,.8); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.perks li { background: var(--white); border-radius: 16px; padding: 20px 22px 20px 62px; position: relative; color: var(--muted); }
.perks li b { color: var(--ink); }
.perks li::before { content: "✓"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--ball); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

/* ---------- Club ---------- */
.club-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 clamp(40px, 6vw, 90px); }
.club .section-head { grid-column: 1 / -1; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 30px 44px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.timeline li:last-child::before { background: var(--ball); border-color: var(--navy); }
.timeline span { font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--navy); }
.timeline p { color: var(--muted); }
.club-photo { border-radius: var(--radius); aspect-ratio: 4 / 5; max-height: 560px; width: 100%; align-self: start; }

/* ---------- Contacto ---------- */
.contact { background: var(--navy); color: var(--white); }
.contact .kicker { color: var(--ball); }
.contact .section-lead { color: rgba(255,255,255,.75); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.c-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; }
.c-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.c-main { grid-row: span 2; display: flex; flex-direction: column; background: var(--blue); border-color: transparent; }
.c-main h3 { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 900; font-style: italic; }
.c-addr { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.c-links { margin-top: auto; padding-top: 30px; display: grid; gap: 10px; }
.c-links a { display: flex; flex-direction: column; text-decoration: none; padding: 14px 18px; border-radius: 14px; background: rgba(11,31,75,.35); font-weight: 700; font-size: 1.12rem; transition: background .25s, color .25s; overflow-wrap: anywhere; }
.c-links a small { font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.c-links a:hover { background: var(--ball); color: var(--ink); }
.hours { margin: 0; display: grid; gap: 14px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hours div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { font-weight: 600; color: rgba(255,255,255,.7); }
.hours dd { margin: 0; text-align: right; font-weight: 700; }
.c-note p { color: rgba(255,255,255,.75); }
.c-note b { color: var(--white); }
.c-phone { display: inline-block; margin-top: 18px; font-family: var(--f-display); font-weight: 900; font-size: 2rem; color: var(--ball); text-decoration: none; }
.c-map { grid-column: 2 / -1; border-radius: var(--radius); overflow: hidden; min-height: 260px; background: var(--navy-2); }
.c-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 70px 0 30px; overflow: hidden; }
.footer-big {
  font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(3rem, 12.5vw, 11.5rem); line-height: .85; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.2); white-space: nowrap; margin-bottom: 40px;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; font-size: .88rem; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.to-top { color: var(--ball); text-decoration: none; font-weight: 700; }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .programs { grid-template-columns: repeat(2, 1fr); }
  .programs[data-view="all"] .program-alt { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .c-main { grid-row: auto; grid-column: 1 / -1; }
  .c-map { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 100px var(--gutter) 40px;
    background: var(--navy);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.6rem; padding: 4px 0; opacity: 1; }
  .nav a:not(.btn):hover { background: none; color: var(--ball); }
  .nav-cta { margin: 24px 0 0; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  /* el blur crea un contenedor que atrapa al menú fijo: se quita al abrirlo */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy); }
  .nav { height: 100vh; height: 100dvh; }
  .brand { position: relative; z-index: 2; }

  .sport-grid, .act-grid, .members-inner, .club-grid { grid-template-columns: 1fr; }
  .club-photo { margin-top: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; margin-top: 48px; }
  .hero-img { object-position: 72% 50%; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(8,22,56,.95) 0%, rgba(8,22,56,.75) 45%, rgba(8,22,56,.35) 75%, rgba(8,22,56,.55) 100%);
  }
  .club-photo { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; gap: 12px; }
  .g-wide:first-child, .g-wide:last-child { grid-column: 1 / -1; grid-row: auto; }
  .g-tall { grid-row: span 1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .programs { grid-template-columns: 1fr; }
  .program { min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .hero-title .l2 { -webkit-text-stroke-width: 1.5px; }
  .sport-body { padding: 24px 22px 28px; }
  .c-card { padding: 22px; }
  .brand-text strong { font-size: 23px; }
}

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

/* ---------- H1 (marca + lema) ---------- */
.hero-h1 { margin: 0; display: block; }
.hero-h1 .eyebrow { font-family: var(--f-body); line-height: 1.3; }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq .section-lead a { color: var(--blue); font-weight: 600; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 50px 22px 0; font-weight: 700; font-size: 1.08rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); font-size: 1.3rem; font-weight: 600; transition: transform .3s var(--ease), background .3s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--ball); }
.faq-list details p { padding: 0 50px 24px 0; color: var(--muted); }

/* ---------- Mapa bajo demanda ---------- */
.map-placeholder {
  height: 100%; min-height: 260px; padding: 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  background:
    linear-gradient(rgba(18,48,107,.88), rgba(18,48,107,.88)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.08) 38px 40px);
  color: rgba(255,255,255,.8);
}
.map-title { font-family: var(--f-display); font-weight: 900; font-size: 1.8rem; text-transform: uppercase; color: var(--white); line-height: 1; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.map-placeholder small { opacity: .6; font-size: .78rem; }

/* ---------- Pie legal ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .85rem; }
.footer-legal a, .link-btn { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-legal a:hover, .link-btn:hover { color: var(--white); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Aviso de cookies ---------- */
.cookie-bar {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-left: auto;
  background: var(--white); color: var(--ink);
  border-radius: 18px; padding: 20px 22px;
  box-shadow: 0 20px 60px -15px rgba(10,21,48,.45);
  display: grid; gap: 14px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { font-size: .92rem; color: var(--muted); }
.cookie-bar a { color: var(--blue); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-actions .btn { padding: .75em 1.4em; }
.btn-ghost-dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Páginas legales y 404 ---------- */
.legal-body .site-header { position: sticky; top: 0; }
.legal-body .header-inner .btn { padding: .7em 1.2em; }
.legal { padding: clamp(50px, 8vw, 90px) 0 clamp(70px, 10vw, 120px); }
.legal-wrap { max-width: 820px; }
.legal h1 { font-weight: 900; font-size: clamp(2.8rem, 7vw, 4.8rem); margin-bottom: 26px; }
.legal h2 { font-weight: 800; font-size: 1.7rem; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 14px 0; }
.legal a:not(.btn) { color: var(--blue); }
.legal b { color: var(--ink); }
.legal mark { background: var(--ball); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.legal-data { list-style: none; padding: 20px 22px !important; background: var(--white); border-radius: 16px; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
.legal table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; font-size: .92rem; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--navy); color: var(--white); font-weight: 700; }
.notfound { text-align: left; padding: 40px 0; }
.nf-code { font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(6rem, 22vw, 12rem); line-height: .8; color: var(--blue); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px !important; }
@media (max-width: 560px) {
  .legal-body .brand-text { display: none; }
}
