/* ===================================================================
   Bernardo Quaranta — Kinesiología · Osteopatía Deportiva
   Minimal monocromo — inspirado en el isologo (círculo negro, monograma
   BQ en trazo fino, versalitas espaciadas). Blanco/negro puro, sin color.
   Motivo propio: la "columna" — una línea vertical + articulación
   circular que atraviesa el sitio, eco del sello del logo.
=================================================================== */

:root {
  --bg:        #fbfaf8;
  --bg-2:      #f3f1ec;
  --surface:   #ffffff;
  --ink:       #0a0a0a;
  --ink-soft:  #2b2b2b;
  --ink-mute:  #6f6f6b;
  --line:      rgba(10, 10, 10, 0.14);
  --line-soft: rgba(10, 10, 10, 0.07);

  /* the one dark band (Trayectoria) echoes the logo's black circle */
  --dark-bg:   #0a0a0a;
  --cream:     #fbfaf8;
  --cream-2:   #cfcac2;
  --cream-3:   #8f8b85;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  scrollbar-color: var(--ink-mute) var(--bg);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }

/* ----- Browser surfaces ----- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.trayectoria :focus-visible { outline-color: var(--cream); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink-mute); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }

/* ----- Grain ----- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.02;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Reveal -----
   Content is visible by default (no-JS / JS-failure safe).
   Only once `.has-js` lands on <html> (inline script in <head>) do we
   hide-then-reveal via IntersectionObserver in main.js. */
.has-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.has-js .reveal[data-split] { opacity: 1; transform: none; } /* defensive: split-text handles its own reveal */

.has-js .split-word { opacity: 0; transform: translateY(100%); }
.split-word { display: inline-block; }
.is-visible .split-word,
[data-split].split-ready.is-visible .split-word { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.nav.is-solid { background: rgba(251, 250, 248, 0.88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav-brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); transition: color .35s var(--ease-out); }
.nav-mark-wrap {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(0,0,0,.07);
  transition: box-shadow .35s var(--ease-out);
}
.nav:not(.is-solid) .nav-mark-wrap { box-shadow: 0 0 0 1px rgba(251,250,248,.4), 0 2px 10px rgba(0,0,0,.25); }
.nav-mark { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.nav-links { display: contents; }
.nav-links-track { display: flex; gap: 2rem; }
.nav-links a { font-family: var(--font-body); font-size: .84rem; letter-spacing: .03em; color: var(--ink-mute); position: relative; padding: .3rem 0; transition: color .35s var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .3s var(--ease-out), background .35s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), background .35s var(--ease-out); }

/* Over the hero photo (before the nav solidifies) the bar rides on dark imagery */
.nav:not(.is-solid) .nav-brand,
.nav:not(.is-solid) .nav-links a { color: var(--cream); }
.nav:not(.is-solid) .nav-links a::after { background: var(--cream); }
.nav:not(.is-solid) .nav-links a:hover { color: var(--cream); }
.nav:not(.is-solid) .nav-burger span { background: var(--cream); }

/* Without JS, .is-solid never toggles on scroll, so the rule above
   would apply everywhere — including light sections far past the hero
   — leaving cream text unreadable. Force the always-solid, always-dark
   reading whenever JS hasn't run at all. */
html:not(.has-js) .nav:not(.is-solid) { background: rgba(251, 250, 248, 0.88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
html:not(.has-js) .nav:not(.is-solid) .nav-brand,
html:not(.has-js) .nav:not(.is-solid) .nav-links a { color: var(--ink); }
html:not(.has-js) .nav:not(.is-solid) .nav-links a::after { background: var(--ink); }
html:not(.has-js) .nav:not(.is-solid) .nav-links a:hover { color: var(--ink); }
html:not(.has-js) .nav:not(.is-solid) .nav-burger span { background: var(--ink); }

@media (max-width: 860px) {
  .nav-links {
    display: grid; grid-template-rows: 0fr;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transition: grid-template-rows .35s var(--ease-out);
  }
  .nav-links.is-open { grid-template-rows: 1fr; }
  .nav-links-track { flex-direction: column; gap: 0; overflow: hidden; min-height: 0; }
  .nav-links a { padding: 1rem clamp(1.25rem, 4vw, 3rem); border-top: 1px solid var(--line-soft); }
  /* The dropdown panel is always an opaque light surface, even while the
     nav bar itself still rides transparent over the hero — so its links
     must stay ink-colored regardless of nav state, or they vanish (cream
     text on a cream panel). */
  .nav:not(.is-solid) .nav-links a { color: var(--ink-mute); }
  .nav:not(.is-solid) .nav-links a::after { background: var(--ink); }
  .nav:not(.is-solid) .nav-links a:hover { color: var(--ink); }
  .nav .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-brand span { font-size: .8rem; letter-spacing: .06em; max-width: min(230px, 62vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ===================== BUTTONS ===================== */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.5rem; border-radius: 999px; font-size: .86rem; letter-spacing: .02em; font-weight: 500; border: 1px solid transparent; transition: transform .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out); white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); background: #222; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: .92rem; }

/* ===================== TYPE ===================== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--ink-mute); }

.section-title { text-align: center; font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.4rem); letter-spacing: -0.015em; max-width: 18ch; margin: 0 auto 1rem; text-wrap: balance; }

section { position: relative; padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem); }

/* ===================== SECONDARY PAGES (404 / privacidad) ===================== */
.error-page { min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: calc(var(--nav-h) + 4rem); }
.error-code { font-family: var(--font-display); font-style: italic; font-size: clamp(4rem, 12vw, 7rem); color: var(--line-soft); line-height: 1; margin: 0 0 .5rem; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; letter-spacing: -0.02em; max-width: 16ch; }
.error-lead { color: var(--ink-mute); max-width: 46ch; margin: 1.4rem 0 0; }
.error-page .hero-actions { justify-content: center; margin-top: 2.2rem; }
.error-page .btn-ghost { border-color: var(--line); color: var(--ink); }
.error-page .btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.legal-page { max-width: 780px; margin: 0 auto; padding-top: calc(var(--nav-h) + 3rem); }
.legal-page h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: .6rem; }
.legal-updated { color: var(--ink-mute); font-size: .82rem; margin-bottom: 3rem; }
.legal-page h2 { font-size: 1.3rem; font-weight: 500; margin: 2.4rem 0 .9rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== HERO — full-bleed cinematic ===================== */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-h) + 2rem);
  overflow: hidden;
  color: var(--cream);
}

/* Wrapper is oversized (bled top/bottom) so the scroll-linked parallax
   never exposes an edge. Three independent layers, three transforms,
   never the same element twice — so nothing ever fights: the wrapper
   carries the scroll parallax (JS), the intro layer plays one cinematic
   arrival (CSS, like a Natuzzi hero load), the photo itself breathes
   forever (CSS Ken Burns). */
.hero-media { position: absolute; inset: -8% 0; z-index: -2; overflow: hidden; will-change: transform; }

.hero-photo-intro {
  width: 100%; height: 100%;
  animation: heroIntroIn 2.8s cubic-bezier(.16,1,.3,1) both;
}
@keyframes heroIntroIn {
  from { transform: scale(1.18); opacity: 0; filter: brightness(.32) blur(9px); }
  55%  { opacity: 1; filter: brightness(.7) blur(2px); }
  to   { transform: scale(1); opacity: 1; filter: brightness(1) blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo-intro { animation: heroIntroInReduced .6s ease-out both; }
}
@keyframes heroIntroInReduced { from { opacity: 0; } to { opacity: 1; } }

.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: grayscale(1) contrast(1.1) brightness(.82);
  transform-origin: 50% 38%;
  animation: heroBreathe 26s ease-in-out infinite alternate;
}
@keyframes heroBreathe { from { transform: scale(1); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.34) 32%, rgba(10,10,10,.5) 68%, rgba(10,10,10,.82) 100%),
    linear-gradient(0deg, rgba(10,10,10,.35), transparent 40%);
}

.hero-inner { max-width: 780px; position: relative; z-index: 1; will-change: transform, opacity; }
.hero-seal {
  width: min(400px, 78vw); margin: 0 auto 2rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
  opacity: 0; animation: heroSealIn .7s var(--ease-out) .5s both;
}
.hero-seal img { width: 100%; height: auto; display: block; }
@keyframes heroSealIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

.hero-title { color: var(--cream); font-size: clamp(2.9rem, 7.6vw, 5.8rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; max-width: 16ch; margin-inline: auto; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-title em { color: var(--cream); }
.hero-sub { color: var(--cream-2); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; margin: 1.7rem auto 0; text-wrap: pretty; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.hero .btn-ghost { border-color: rgba(251,250,248,.4); color: var(--cream); }
.hero .btn-ghost:hover { border-color: var(--cream); background: var(--cream); color: var(--ink); }
.hero-response { font-family: var(--font-body); font-size: .8rem; color: var(--cream-2); margin: 1.1rem 0 0; }
.hero-badges { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; font-family: var(--font-body); font-size: .74rem; letter-spacing: .03em; color: var(--cream-2); }
.hero-badges span { border: 1px solid rgba(251,250,248,.3); border-radius: 999px; padding: .5rem 1rem; }
.hero-badges strong { color: var(--cream); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Hero content arrives a beat after the photo, staggered — the photo
   leads, the words follow. */
.hero .hero-title.reveal { transition-delay: .35s; }
.hero .hero-sub.reveal { transition-delay: .55s; }
.hero .hero-actions.reveal { transition-delay: .72s; }
.hero .hero-response.reveal { transition-delay: .82s; }
.hero .hero-badges.reveal { transition-delay: .92s; }
.nav { animation: navIn .9s var(--ease-out) .15s both; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ===================== PILLARS — the diptych ===================== */
.pillars-title { text-align: center; font-size: clamp(2.5rem, 5.2vw, 4.2rem); font-weight: 400; letter-spacing: -0.02em; max-width: 17ch; margin: 0 auto 5rem; text-wrap: balance; }

.diptych { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); max-width: 1160px; margin: 0 auto; }

.spine { position: absolute; inset: -1rem 0; pointer-events: none; }
.spine-track, .spine-line { position: absolute; top: 0; bottom: 0; left: calc(50% - 0.5px); width: 1px; }
.spine-track { background: var(--line); }
.spine-line { background: var(--ink); transform-origin: top; transform: scaleY(0); }
.spine-joint {
  position: absolute; top: 50%; left: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(0);
  box-shadow: 0 0 0 6px var(--bg);
}

.pane { position: relative; padding: 0 .25rem; }
.pane-numeral {
  position: absolute; top: -2.4rem; right: -.3rem;
  font-family: var(--font-display); font-style: italic; font-size: clamp(5rem, 9vw, 8rem); line-height: 1;
  color: var(--line-soft); z-index: -1; user-select: none;
}
.pane:first-child .pane-numeral { right: auto; left: -.3rem; }
.pane h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -0.01em; margin: 0 0 1.1rem; }
.pane p { color: var(--ink-mute); font-size: 1rem; max-width: 46ch; }
.pane-badge { display: inline-block; border: 1px solid var(--ink); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.3rem; }
.pane-badge strong { color: inherit; }
.pane-tags { list-style: none; padding: 0; margin: 1.7rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pane-tags li { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: .76rem; letter-spacing: .02em; color: var(--ink-mute); }

.pillars-note { text-align: center; max-width: 640px; margin: 4.5rem auto 0; color: var(--ink-mute); font-size: .92rem; }
.pillars-note em { color: var(--ink); font-style: italic; }

@media (max-width: 820px) {
  .diptych { grid-template-columns: 1fr; gap: 3.5rem; }
  .spine { display: none; }
  .pane-numeral { font-size: 4.5rem; top: -1.8rem; }
}

/* ===================== ABOUT ===================== */
.about { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-media { position: sticky; top: calc(var(--nav-h) + 2rem); }
.about-photo-wrap { position: relative; isolation: isolate; }
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 70px -28px rgba(10,10,10,.4), 0 14px 24px -14px rgba(10,10,10,.22);
  will-change: transform;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* Two textured panels peeking from the TOP corners only — never the
   bottom, so nothing can ever collide with the stat cards underneath.
   The texture is a pure-CSS marble-like veining (no photograph), kept
   inside this brand's monochrome vocabulary. Their drift is scroll-
   driven (JS, scrubbed against the whole section) rather than a fixed
   loop, so it reads clearly as parallax while scrolling, not ambient
   motion — never rotation, that reads as a spinning clock, which this
   brand has already ruled out elsewhere. */
.about-deco { position: absolute; border-radius: 3px; pointer-events: none; z-index: -1; will-change: transform; }
.about-deco-a {
  width: 54%; aspect-ratio: 4 / 5; top: -9%; left: -9%;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(10,10,10,.1);
  background:
    radial-gradient(130% 70% at 15% 18%, rgba(10,10,10,.055), transparent 55%),
    radial-gradient(100% 60% at 88% 78%, rgba(10,10,10,.045), transparent 55%),
    linear-gradient(128deg, transparent 38%, rgba(10,10,10,.03) 40%, transparent 43%),
    linear-gradient(152deg, transparent 60%, rgba(10,10,10,.025) 62%, transparent 65%),
    var(--surface);
}
.about-deco-b {
  width: 38%; aspect-ratio: 4 / 5; bottom: -6%; right: -10%;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(10,10,10,.08);
  background:
    radial-gradient(120% 65% at 82% 78%, rgba(10,10,10,.045), transparent 55%),
    radial-gradient(90% 55% at 18% 18%, rgba(10,10,10,.038), transparent 55%),
    linear-gradient(48deg, transparent 40%, rgba(10,10,10,.028) 42%, transparent 45%),
    linear-gradient(20deg, transparent 62%, rgba(10,10,10,.02) 64%, transparent 67%),
    var(--surface);
}
.about-stats { display: flex; gap: 1.5rem; margin-top: 2.75rem; }
.stat { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 1.2rem; text-align: center; background: var(--surface); }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.3rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { font-size: .72rem; letter-spacing: .04em; color: var(--ink-mute); }

.about-copy h2 { font-size: clamp(2.2rem, 3.8vw, 3.1rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 1.7rem; max-width: 13ch; }
.about-copy p { color: var(--ink-mute); margin-bottom: 1.1rem; max-width: 64ch; }
.pull-quote { border-left: 1px solid var(--ink); margin: 2.2rem 0; padding: .2rem 0 .2rem 1.4rem; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.credentials-list { list-style: none; margin: 2.2rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .9rem; }
.credentials-list li { display: flex; gap: 1rem; font-size: .92rem; color: var(--ink-soft); }
.credentials-list span { font-family: var(--font-body); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); min-width: 88px; padding-top: .1rem; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 360px; margin-inline: auto; }
  .about-deco-a { width: 50%; top: -7%; left: -7%; }
  .about-deco-b { width: 34%; bottom: -5%; right: -7%; }
}

/* ===================== TRAYECTORIA — the one dark band ===================== */
.trayectoria { overflow: hidden; background: var(--dark-bg); color: var(--cream); }
.trayectoria-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,10,.95), rgba(10,10,10,.98)), url("assets/img/trayectoria-deportiva-rugby-alto-rendimiento.webp") center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}
.trayectoria-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.trayectoria .section-title { color: var(--cream); }
.trayectoria-lead { color: var(--cream-2); max-width: 56ch; margin: 1.4rem auto 0; }

.clubs-list { list-style: none; padding: 0; margin: 3.5rem auto 0; max-width: 620px; text-align: left; }
.clubs-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid rgba(251,250,248,.14); }
.clubs-list li:last-child { border-bottom: 1px solid rgba(251,250,248,.14); }
.club-name { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--cream); }
.club-place { font-family: var(--font-body); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); white-space: nowrap; }
.trayectoria-cta { display: inline-block; margin-top: 3rem; font-family: var(--font-body); font-size: .86rem; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(251,250,248,.4); transition: text-decoration-color .3s var(--ease-out); }
.trayectoria-cta:hover { text-decoration-color: var(--cream); }

/* ===================== EN ACCIÓN — galería ===================== */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; max-width: 1200px; margin: 3.5rem auto 0; }
.m-item { margin: 0; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 4 / 5; position: relative; }
/* The wrapper carries the scroll-linked parallax drift (JS); the img
   inside keeps its own hover scale/desaturate transition — two motions,
   two elements, so neither fights the other's transform. */
.m-photo { position: absolute; inset: -14% 0; height: 128%; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease-out), transform .6s var(--ease-out); }
@media (hover: hover) {
  .m-item:hover .m-photo img { filter: grayscale(0) contrast(1.02); transform: scale(1.045); }
}

@media (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===================== TESTIMONIOS — mensajes reales, sin capturas ===================== */
.testimonios { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quotes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; max-width: 1160px; margin: 3.5rem auto 0;
}
.quote-card {
  margin: 0; padding: 2.1rem 1.7rem 1.7rem; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); position: relative;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
@media (hover: hover) {
  .quote-card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -22px rgba(10,10,10,.2); border-color: rgba(10,10,10,.24); }
}
.quote-mark { display: block; font-family: var(--font-display); font-style: italic; font-size: 3rem; line-height: 1; color: var(--line); margin-bottom: .2rem; }
.quote-card p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.48; color: var(--ink); margin: 0 0 1.5rem; }
.quote-card footer { font-family: var(--font-body); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); }

/* Sixth card, closing the 3x2 grid: a quiet CTA in the same brand
   language (the logo's circular monogram) instead of decoration that
   says nothing. */
.quote-card-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--bg-2); }
.quote-cta-mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.quote-card-cta p { font-family: var(--font-body); font-style: normal; font-size: .96rem; color: var(--ink-mute); max-width: 20ch; margin: 0 0 1.4rem; }

.quote-card.reveal:nth-child(1) { transition-delay: 0s; }
.quote-card.reveal:nth-child(2) { transition-delay: .08s; }
.quote-card.reveal:nth-child(3) { transition-delay: .16s; }
.quote-card.reveal:nth-child(4) { transition-delay: .24s; }
.quote-card.reveal:nth-child(5) { transition-delay: .32s; }
.quote-card.reveal:nth-child(6) { transition-delay: .4s; }

@media (max-width: 860px) {
  .quotes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .quotes-grid { grid-template-columns: 1fr; }
}

/* ===================== CONSULTORIO — spine echo, no cards ===================== */
.consultorio-lead { text-align: center; color: var(--ink-mute); font-size: 1.05rem; max-width: 640px; margin: 1rem auto 0; }

.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); max-width: 960px; margin: 4.5rem auto 0; }
.duo-divider { position: absolute; top: 0; bottom: 0; left: calc(50% - .5px); width: 1px; background: var(--line); }
.duo-divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--bg);
}
.duo-pane h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: .3rem; }
.duo-pane .loc-address { color: var(--ink-mute); font-size: .86rem; margin-bottom: 1.4rem; }
.duo-pane ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .5rem; }
.duo-pane li { font-size: .92rem; color: var(--ink-soft); padding-left: 1.1rem; position: relative; }
.duo-pane li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.loc-map { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 1rem; filter: grayscale(.6) contrast(1.05); background: var(--bg-2); }
.loc-map iframe { display: block; width: 100%; height: 220px; border: 0; }
.duo-pane a.map-link { font-family: var(--font-body); font-size: .78rem; letter-spacing: .02em; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; gap: 3rem; }
  .duo-divider { display: none; }
}

/* ===================== PREGUNTAS FRECUENTES ===================== */
.faq-list { max-width: 760px; margin: 3rem auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-body); font-size: 1.5rem; line-height: 1; color: var(--ink-mute);
  flex: none; transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-mute); margin: 1rem 0 0; max-width: 62ch; }

/* ===================== CTA FINAL ===================== */
.cta-final { text-align: center; }
.cta-final-inner { max-width: 640px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 400; letter-spacing: -0.02em; margin: 1rem 0 2.2rem; text-wrap: balance; }
.cta-final .hero-actions { margin-top: 0; }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--line); padding: 3rem clamp(1.25rem, 4vw, 3rem) 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto 2rem; }
.footer-brand { font-family: var(--font-body); font-weight: 600; font-size: .88rem; letter-spacing: .09em; text-transform: uppercase; margin: 0; color: var(--ink); }
.footer-role { color: var(--ink-mute); font-size: .8rem; margin: .2rem 0 0; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { font-size: .84rem; color: var(--ink-mute); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { text-align: center; font-size: .72rem; color: var(--ink-mute); margin: 0; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 400;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -12px rgba(10,10,10,.4);
  transition: transform .25s var(--ease-out), background .25s var(--ease-out);
  overflow: visible;
}
.whatsapp-float:hover { transform: scale(1.08); background: #222; }
.whatsapp-float svg { position: relative; z-index: 1; }
.wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--ink);
  animation: waPulse 2.8s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* ===================== MOTION GATING ===================== */
@media (prefers-reduced-motion: reduce) {
  .wa-pulse { animation: none; opacity: 0; }
}
