/* TeeFrame · web de producto (prototipo)
   Estructura de galería blanca + marca propia de la app (ver mobile/DESIGN.md). */

:root {
  color-scheme: light;

  /* Página (galería) */
  --white: #ffffff;
  --mist: #f5f5f7;
  --frost: #fafafc;
  --hair: #d6d6d6;
  --ctrl: #e6e6e8;
  --ink: #1d1d1f;
  --slate: #6e6e73;
  --steel: #86868b;
  --launch: #a63e00;

  /* Golf */
  --grass-50: #f1f7f0;
  --grass-100: #e2efe1;
  --fairway: #78b884;
  --fairway-2: #6dad79;
  --rough: #3f7f4c;
  --green-ink: #1f6b3a;
  --green-deep: #0f2a1d;
  --green-deep-2: #12321f;
  --sand: #efe3c4;
  --putting: #8fcb97;

  /* Marca */
  --accent: #4ea3ff;
  --accent-press: #2f86e6;
  --accent-ink: #1560bd;
  --on-accent: #04111f;

  /* App (oscura) */
  --app-bg: #0a100c;
  --s1: #131b16;
  --s2: #1b251f;
  --s3: #243029;
  --line: #27332c;
  --app-ink: #eef3ec;
  --app-ink2: #aab8ad;
  --app-ink3: #85938a;
  --accent-soft: #102438;
  --accent-border: #1d3a5a;
  --good: #5ed08a;
  --good-soft: #12301f;
  --warn: #f3c04a;
  --warn-soft: #382d10;
  --bad: #ff7759;
  --bad-soft: #3a1a14;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ui: 'Barlow', system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --section-gap: 96px;
  --gutter: 22px;
  --radius-card: 28px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Tipografía ---------- */
.kicker {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.launch {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--launch);
  vertical-align: middle;
}
.h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1;
}
.lead {
  margin-top: 18px;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.42;
  color: var(--slate);
  text-wrap: pretty;
}
.text-link {
  color: var(--accent-ink);
  font-size: 17px;
}
.text-link:hover { text-decoration: underline; }

/* Banderín de golf delante de los antetítulos de sección */
.section-head .kicker::before, .rigor-strip .kicker::before, .phases .kicker::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 16px;
  margin-right: 9px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M1.5 0v16' stroke='%231d1d1f' stroke-width='1.6'/%3E%3Cpath d='M2.2 1l9 3.2-9 3.2z' fill='%23b64400'/%3E%3C/svg%3E") no-repeat;
}
.club-box .kicker::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M1.5 0v16' stroke='%23eef3ec' stroke-width='1.6'/%3E%3Cpath d='M2.2 1l9 3.2-9 3.2z' fill='%23f3c04a'/%3E%3C/svg%3E");
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 17px;
  transition: background .15s, transform .12s var(--ease);
}
.btn:hover { background: #69b2ff; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  margin-top: 30px;
}

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--ctrl); }
.nav-inner {
  max-width: 1080px;
  height: 56px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.app-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.app-icon img { width: 100%; height: 100%; }
.wordmark {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark b { color: #2f8a52; font-weight: 600; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { position: relative; font-size: 13px; color: rgba(0, 0, 0, .8); padding: 6px 0; }
.nav-links a.on { color: var(--green-ink); font-weight: 600; }
.nav-links a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 1px; background: var(--green-ink); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: 4px; }

/* ---------- Hero: escena de range con el swing en bucle ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: max(660px, calc(100svh - 56px));
  background: #e3f0f8;
}
/* El horizonte (--horizon) lo coloca app.js justo debajo del texto; por defecto, al 56 %. */
.hero-trees { position: absolute; left: 0; top: calc(var(--horizon, 56%) - 114px); width: 100%; height: 120px; }
.hero-fairway { position: absolute; left: 0; top: var(--horizon, 56%); bottom: 0; display: block; width: 100%; height: auto; }
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 56px var(--gutter) 0; }
.hero-copy { max-width: 560px; }
/* Si en una pantalla muy baja el texto aún cae sobre los árboles, pasa a blanco (lo decide app.js). */
.hero .on-grass { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.hero-title {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 78px);
  line-height: .95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 18px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.4;
  color: #3d4a42;
  text-wrap: pretty;
}
.hero .cta-row { justify-content: flex-start; }
.trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-ink);
}
.trust li::before { content: '✓ '; }
.stage {
  position: absolute;
  z-index: 1;
  right: max(var(--gutter), calc((100vw - 1180px) / 2));
  bottom: 0;
  width: var(--stage-w, min(60vw, 780px));
  height: auto;
  overflow: visible;
}
.vf { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.rec { fill: var(--bad); animation: blink 1.4s infinite; }
.vf-l { font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: .06em; fill: #fff; }
.stage .tracer { stroke: var(--accent-ink); stroke-width: 3; }
.stage-ball { fill: #fff; stroke: #8a8f94; stroke-width: .6; opacity: 0; }
.stage-chips rect { fill: rgba(10, 16, 12, .74); transition: fill .2s; }
.stage-chips text { font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: .08em; fill: #eef3ec; text-anchor: middle; transition: fill .2s; }
.stage-chips .on rect { fill: var(--accent); }
.stage-chips .on text { fill: var(--on-accent); }
.hud-card { opacity: 0; transition: opacity .5s var(--ease); }
.hud-card.show { opacity: 1; }
.hc-k { font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: .08em; fill: #85938a; }
.hc-n { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 54px; fill: #eef3ec; }
.hc-chip { font-family: var(--ui); font-weight: 600; font-size: 12px; fill: var(--good); text-anchor: middle; }
.hc-p { font-family: var(--ui); font-size: 12.5px; fill: #aab8ad; }

/* Entrada del hero */
.js .hero-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
}
.js.ready .hero-in, .ready .hero-in { opacity: 1; transform: none; }

/* ---------- Teléfono ---------- */
.phone-fit {
  --s: 1;
  width: calc(300px * var(--s));
  height: calc(630px * var(--s));
}
.phone {
  position: relative;
  width: 300px;
  height: 630px;
  padding: 10px;
  border-radius: 54px;
  background: #1d1d1f;
  box-shadow: inset 0 0 0 2px #3a3a3c, 0 0 0 1px #c7c7cc;
  transform: scale(var(--s));
  transform-origin: top left;
}
.island {
  position: absolute;
  z-index: 5;
  top: 21px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: 20px;
  background: #000;
}
.screen {
  position: absolute;
  inset: 10px;
  border-radius: 44px;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  padding: 0 16px;
}
.steps-phone .screen {
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.steps-phone .screen.is-on { opacity: 1; }
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 4px 14px 0 18px;
  font-weight: 600;
  font-size: 14px;
}
.sb-icons { display: flex; gap: 4px; align-items: center; }
.sb-icons i { width: 14px; height: 9px; border-radius: 2px; background: var(--app-ink); opacity: .9; }
.sb-icons i:first-child { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sb-icons b { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid var(--app-ink); position: relative; }
.sb-icons b::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--app-ink); border-radius: 1px; }

.app-top { display: flex; justify-content: space-between; align-items: center; height: 30px; }
.app-back { font-size: 26px; line-height: 1; color: var(--app-ink2); }
.app-caption { font-size: 12px; font-weight: 500; color: var(--app-ink2); }
.app-title { font-family: var(--display); font-size: 30px; line-height: 1.1; margin: 6px 0 12px; }
.app-h { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.app-section { margin-top: 14px; }
.app-good { display: flex; gap: 8px; font-size: 13px; color: var(--app-ink); padding: 3px 0; }
.app-good span { color: var(--good); font-weight: 700; }

.result-hero { display: flex; flex-direction: column; align-items: center; margin-top: 2px; }
.result-hero .chip { margin-top: -6px; }

/* Arco de la marca como medidor */
.arc-wrap { position: relative; flex: none; }
.arc-wrap svg { display: block; }
.arc-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-right: 6%;
}
.arc-fill { transition: stroke-dashoffset .9s var(--ease); }
.score-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.score-md { font-size: 68px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.chip-sm { height: 22px; padding: 0 8px; font-size: 11px; }
.chip-good { color: var(--good); background: var(--good-soft); }
.chip-warn { color: var(--warn); background: var(--warn-soft); }
.chip-bad { color: var(--bad); background: var(--bad-soft); }
.chip-info { color: var(--app-ink3); background: var(--s2); }

.coach-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.coach-k { font-size: 11px; font-weight: 600; color: var(--accent); }
.coach-t { margin-top: 2px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.08; color: var(--app-ink); }
.coach-b { margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--app-ink2); }
.coach-card-lg .coach-t { font-size: 24px; }

/* Fila de métrica */
.mrow { padding: 9px 0 10px; border-top: 1px solid var(--line); }
.mrow:first-of-type { border-top: 0; }
.mrow-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mrow-name { font-size: 12px; font-weight: 500; color: var(--app-ink2); }
.mrow-val {
  margin-top: 1px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}
.mrow-val small { font-size: 15px; color: var(--app-ink3); margin-left: 2px; font-style: normal; font-weight: 600; }
.range { position: relative; height: 6px; margin-top: 8px; border-radius: 3px; display: flex; overflow: hidden; gap: 2px; }
.range span { height: 100%; }
.range .z-good { background: var(--good); opacity: .55; }
.range .z-warn { background: var(--warn); opacity: .45; }
.range .z-bad { background: var(--bad); opacity: .4; }
.range-wrap { position: relative; }
.range-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -3px 0 0 -6px;
  border-radius: 50%;
  background: var(--app-ink);
  box-shadow: 0 0 0 3px var(--app-bg);
  transition: left .9s var(--ease);
}

.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 54px;
  border-radius: 999px;
  background: rgba(19, 27, 22, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--app-ink3);
}
.tab { padding: 6px 9px; border-radius: 999px; }
.tab.on { background: var(--s2); color: var(--app-ink); }
.tab-rec { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); position: relative; }
.tab-rec::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--on-accent); }

/* Pantalla Grabar */
.screen-record { padding: 0; }
.screen-record .statusbar { position: relative; z-index: 2; }
.cam {
  position: absolute;
  inset: 0 0 124px;
  background:
    linear-gradient(to bottom, transparent 73%, #13201a 73%) ,
    #0d1511;
}
.cam-pill {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 12, .7);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.cam-guide {
  position: absolute;
  inset: 96px 34px 40px;
  border-radius: 20px;
  border: 1.5px dashed rgba(238, 243, 236, .45);
}
.cam .skel { position: absolute; left: 50%; top: 104px; width: 190px; transform: translateX(-50%); }
.cam-hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--app-ink2);
}
.rec-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 124px;
  padding: 18px 26px 30px;
  background: var(--s1);
  border-radius: 26px 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rec-btn-side { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--app-ink2); width: 58px; }
.rec-btn-side i { width: 40px; height: 40px; border-radius: 14px; background: var(--s2); display: block; position: relative; }
.ic-gal::after { content: ''; position: absolute; inset: 12px; border: 2px solid var(--app-ink2); border-radius: 4px; }
.ic-flip::after { content: ''; position: absolute; inset: 12px; border: 2px solid var(--app-ink2); border-radius: 50%; border-right-color: transparent; }
.rec-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid var(--app-ink);
  display: grid;
  place-items: center;
  position: relative;
}
.rec-btn i { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); display: block; }
.rec-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(1.45); opacity: 0; }
}

.rec-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--bad); vertical-align: 1px; animation: blink 1.4s infinite; }
.rs-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--s2);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  color: var(--app-ink);
}
.rs-txt { font-size: 15px; font-style: normal; font-weight: 700; color: var(--app-ink2); }

/* Pantalla Analizando */
.an-frame {
  position: relative;
  height: 300px;
  border-radius: 22px;
  background: var(--s1);
  overflow: hidden;
}
.an-frame .skel { position: absolute; left: 50%; top: 8px; height: 250px; transform: translateX(-50%); }
.phase-strip {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}
.phase-strip span {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  border-radius: 8px;
  background: var(--s2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--app-ink3);
  transition: background .2s, color .2s;
}
.phase-strip span.on { background: var(--accent); color: var(--on-accent); }
.an-row { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.an-pct { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; }
.an-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 11.5px; white-space: nowrap; color: var(--app-ink3); }
.an-steps li { display: flex; gap: 7px; align-items: center; transition: color .25s; }
.an-steps li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; box-sizing: border-box; }
.an-steps li.on { color: var(--app-ink); }
.an-steps li.on::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.an-steps li.done { color: var(--app-ink2); }
.an-steps li.done::before { content: '✓'; border: 0; background: var(--good-soft); color: var(--good); font-size: 9px; font-weight: 700; display: grid; place-items: center; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pantalla Coach */
.card-dark { padding: 12px 14px; border-radius: 18px; background: var(--s1); }
.drill { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(78, 163, 255, .08); }
.drill-k { font-size: 11px; font-weight: 600; color: var(--app-ink2); }
.drill-t { margin-top: 3px; font-size: 12.5px; color: var(--app-ink); }
.chat-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 44px;
  border-radius: 999px;
  background: var(--s2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 16px;
  color: var(--app-ink3);
}
.chat-bar i { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); }

/* Esqueleto */
.skel { overflow: visible; }
.skel .bone { stroke: var(--app-ink); stroke-width: 3.2; stroke-linecap: round; opacity: .88; }
.skel .club { stroke: var(--app-ink2); stroke-width: 1.8; stroke-linecap: round; }
.skel .joint { fill: var(--accent); }
.skel .head { fill: none; stroke: var(--app-ink); stroke-width: 3; opacity: .88; }
.skel .ground { stroke: var(--line); stroke-width: 1.5; }
.skel .ball { fill: #fff; }
.skel .trail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }

.skel .turf { fill: #10261a; }
.cam .skel .turf { display: none; }
.stat-num { color: var(--green-deep); }

/* ---------- Swing fase a fase ---------- */
.phases { margin-top: var(--section-gap); background: var(--grass-50); }

.phases-sticky { padding: 32px 0 44px; }
.phases-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.phases-scene { position: relative; }
.scene { display: block; width: 100%; height: auto; border-radius: var(--radius-card); background: var(--fairway); }
.lightskel .bone { stroke: var(--ink); opacity: 1; }
.lightskel .head { stroke: var(--ink); opacity: 1; }
.lightskel .club { stroke: #4a4f54; stroke-width: 2; }
.lightskel .joint { fill: var(--accent-ink); }
.lightskel .ground, .lightskel .turf { display: none; }
.lightskel .ball { fill: #fff; stroke: #8a8f94; stroke-width: .6; }
.lightskel .trail { stroke: var(--accent-ink); opacity: .75; }
.tracer { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene-ball { fill: #fff; stroke: #8a8f94; stroke-width: .6; opacity: 0; }
.phase-dots { display: flex; gap: 6px; margin-top: 14px; }
.phase-dots button {
  flex: 1;
  cursor: pointer;
  padding: 7px 0;
  border-radius: 999px;
  background: var(--grass-100);
  text-align: center;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--green-ink);
  transition: background .25s, color .25s;
}
.phase-dots button.on { background: var(--green-ink); color: #fff; }
.phases-copy .h2 { margin-top: 12px; font-size: clamp(36px, 4.6vw, 56px); }
.phase-card {
  margin-top: 26px;
  padding: 24px 26px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--grass-100);
}
.phase-card.swap > * { animation: swap .45s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.phase-tag { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--green-ink); }
.phase-card h3 { margin-top: 6px; font-family: var(--display); font-size: 34px; line-height: 1; }
.phase-card p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--slate); min-height: 4.4em; }
.ph-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--grass-100); }
.ph-mname { flex-basis: 100%; font-size: 13px; color: var(--slate); }
.ph-mval { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 36px; line-height: 1; }
.lchip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-family: var(--ui); font-size: 12px; font-weight: 600; }
.lchip-good { background: #e2f4e8; color: #1f7a43; }
.lchip-warn { background: #fcf1d2; color: #7a5800; }
.lchip-info { background: #ececee; color: #5c5c61; }
.phases-hint { margin-top: 16px; font-size: 13px; color: var(--slate); }
.phase-ctl { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ph-play {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: -1px;
}
.ph-scrub { flex: 1; accent-color: var(--green-ink); height: 4px; }
.phase-dots button:focus-visible, .ph-play:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* ---------- Cifras ---------- */
.stats {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--hair); }
.stat-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 72px;
  line-height: .95;
  font-variant-numeric: tabular-nums;
}
.stat-l { font-size: 15px; line-height: 1.35; color: var(--slate); max-width: 220px; }

/* ---------- Cómo funciona: pestañas con avance automático ---------- */
.steps { max-width: 1080px; margin: var(--section-gap) auto 0; padding: 0 var(--gutter); }
.section-head { text-align: center; }
.section-head .h2 { margin-top: 12px; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.stepper { display: grid; grid-template-columns: 1fr 330px; gap: 56px; align-items: center; margin-top: 44px; }
.stepper-list { display: grid; gap: 10px; }
.st {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 6px;
  padding: 18px 22px 20px;
  border-radius: 22px;
  text-align: left;
  background: transparent;
  transition: background .3s var(--ease);
  overflow: hidden;
}
.st:hover { background: var(--grass-50); }
.st.on { background: var(--grass-50); }
.step-n { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; line-height: 1.3; color: var(--green-ink); }
.st-title { display: block; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--ink); }
.st:not(.on) .st-title { color: var(--slate); }
.st-text {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  color: #4a4f54;
  transition: max-height .45s var(--ease), margin .45s var(--ease);
}
.st.on .st-text { max-height: 8em; margin-top: 6px; }
.st-bar { position: absolute; left: 22px; right: 22px; bottom: 8px; height: 3px; border-radius: 2px; background: transparent; }
.st.on .st-bar { background: var(--grass-100); }
.st-bar i { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--green-ink); }
.st.on .st-bar i { animation: st-fill var(--st-dur, 6s) linear forwards; }
.stepper.paused .st.on .st-bar i { animation-play-state: paused; }
@keyframes st-fill { to { width: 100%; } }
.st-note { margin: 8px 0 0 22px; font-size: 14px; color: var(--slate); }
.st-note::before { content: '✓ '; color: var(--green-ink); font-weight: 700; }
.st:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.steps-phone { position: relative; display: flex; justify-content: center; }
.steps-phone .phone-fit { --s: 1.02; }

/* ---------- Rigor (dentro de fases) ---------- */
.rigor-strip { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) 88px; }
.rigor-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rigor-points li { padding: 18px 20px; border-radius: 20px; background: var(--white); font-size: 14.5px; line-height: 1.45; color: #4a4f54; box-shadow: 0 0 0 1px var(--grass-100); }
.rigor-points b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink); }

/* ---------- Para quién ---------- */
.who { margin-top: var(--section-gap); padding: 88px 0 72px; background: var(--grass-50); }
.who .section-head { padding: 0 var(--gutter); }
.who-tabs { display: inline-flex; margin-top: 26px; }
.seg-light { background: var(--grass-100); }
.seg-light button { color: var(--green-ink); font-size: 15px; min-height: 40px; padding: 0 22px; }
.seg-light button:hover { color: var(--green-deep); }
.seg-light button.on { background: var(--green-ink); color: #fff; }
.seg-light button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.who-panel { margin-top: 36px; animation: row-in .45s var(--ease) both; }
.who-panel[hidden] { display: none; }
.who-club { max-width: 1080px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.club-box {
  padding: 36px;
  border-radius: 34px;
  background: repeating-linear-gradient(90deg, var(--green-deep) 0 140px, var(--green-deep-2) 140px 280px);
  color: var(--app-ink);
}
.club-box .road { margin-top: 30px; }
.club-box .road-step { border-top-color: rgba(255, 255, 255, .16); }
.club-box .road-step:first-child { border-top-color: var(--putting); }
.club-box .road-k { color: var(--putting); }
.club-box .road-step h3 { font-size: 26px; }
.club-box .road-step p { color: var(--app-ink2); font-size: 15px; }
.club-box .cta-row { margin-top: 30px; }
.who-socio .carousel { margin-top: 0; }

/* ---------- Banda de funciones ---------- */
.band-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.carousel {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding: 0 max(var(--gutter), calc((100vw - 1080px) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 max(var(--gutter), calc((100vw - 1080px) / 2 + var(--gutter)));
  scrollbar-width: none;
  outline: none;
}
.carousel::-webkit-scrollbar { display: none; }
.hl-card {
  flex: none;
  width: min(380px, 84vw);
  min-height: 520px;
  padding: 30px 28px 0;
  border-radius: var(--radius-card);
  background: var(--white);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hl-k { font-size: 14px; font-weight: 600; color: var(--green-ink); }
.hl-t {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.02;
}
.hl-media { flex: 1; display: flex; align-items: flex-end; margin-top: 26px; }
.mini-screen {
  width: 100%;
  min-height: 330px;
  padding: 20px 18px 30px;
  border-radius: 26px 26px 0 0;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
}
.mini-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mini-center .chip { margin-top: -4px; }
.mini-screen .coach-card { margin-top: 0; }
.legend { display: flex; gap: 12px; margin-top: 14px; font-size: 11.5px; font-weight: 600; }
.lg-good { color: var(--good); } .lg-warn { color: var(--warn); } .lg-bad { color: var(--bad); }
.trend { width: 100%; margin-top: 10px; overflow: visible; }
.trend-axis { stroke: var(--line); stroke-width: 1; }
.trend-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.trend-dots circle { fill: var(--app-bg); stroke: var(--accent); stroke-width: 2.5; opacity: 0; transition: opacity .4s 1s; }
.trend-dots circle.last { fill: var(--accent); }
.in .trend-line { stroke-dashoffset: 0; }
.in .trend-dots circle { opacity: 1; }
.stat-row-dark { display: flex; justify-content: space-between; margin-top: 16px; }
.stat-row-dark div { display: flex; flex-direction: column; }
.sr-l { font-size: 11px; font-weight: 600; color: var(--app-ink3); }
.sr-n { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.bubble.coach { align-self: flex-start; background: var(--s2); border-bottom-left-radius: 5px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-ink3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.carousel-ctl { display: flex; justify-content: center; margin-top: 28px; }
.ctl-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 36px;
  background: rgba(210, 210, 215, .64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ctl-arrow { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: rgba(0, 0, 0, .56); }
.ctl-arrow:hover { background: rgba(0, 0, 0, .06); }
.dots { display: flex; gap: 8px; padding: 0 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .28); transition: width .3s var(--ease), background .3s; padding: 0; }
.dots button.on { width: 26px; background: rgba(0, 0, 0, .62); }


/* ---------- El range ---------- */
.range-sec { max-width: 1080px; margin: var(--section-gap) auto 0; padding: 0 var(--gutter); }
.range-card {
  position: relative;
  margin-top: 44px;
  padding: 28px 28px 18px;
  border-radius: var(--radius-card);
  background: repeating-linear-gradient(90deg, var(--fairway) 0 70px, var(--fairway-2) 70px 140px);
  overflow: hidden;
}
.range-scroll { overflow-x: auto; scrollbar-width: none; }
.range-scroll::-webkit-scrollbar { display: none; }
.range-map { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--ui); }
.range-legend { position: absolute; top: 20px; left: 24px; z-index: 1; display: flex; gap: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; color: var(--ink); }
.range-legend span { display: inline-flex; align-items: center; gap: 6px; }
.range-legend i { display: inline-block; }
.lg-cam { width: 6px; height: 12px; border-radius: 2px; background: var(--ink); }
.lg-on { width: 12px; height: 12px; border-radius: 4px; background: #dcebff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.lg-flag { width: 0; height: 0; border-left: 10px solid var(--launch); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.dist { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; stroke-dasharray: 4 6; }
.dist-l { font-size: 14px; font-weight: 700; fill: #133a22; text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .55); stroke-width: 3px; }
.green { fill: var(--putting); stroke: #5f9f69; stroke-width: 2; }
.bunker { fill: var(--sand); }
.tee-deck { fill: #e9e3d3; }
.pin { stroke: var(--ink); stroke-width: 1.8; }
.pin-flag { fill: var(--launch); }
.bay-box { fill: var(--white); }
.bay-mat { fill: var(--ctrl); }
.bay-ball { fill: var(--white); stroke: var(--steel); stroke-width: 1; }
.bay-cam { fill: var(--ink); }
.bay-n { font-size: 13px; font-weight: 600; fill: #4d5a50; text-anchor: middle; }
.bay.on .bay-box { fill: #eaf3ff; stroke: var(--accent); stroke-width: 1.5; }
.bay.on .bay-cam { fill: var(--accent); }
.bay.on .bay-n { fill: var(--accent-ink); }
.bay-golfer { fill: var(--ink); }
.bay-fov { fill: var(--accent); opacity: .16; }
.map-flight { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map-land { fill: var(--accent); opacity: 0; }
.js .map-tag { opacity: 0; }
.map-tag rect { fill: var(--white); stroke: var(--ctrl); stroke-width: 1; }
.tag-l { font-size: 13px; font-weight: 600; fill: var(--slate); }
.tag-n { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; fill: var(--ink); }
.range-card.in .map-flight { transition: stroke-dashoffset 1.2s cubic-bezier(.3, .1, .3, 1) calc(.5s + var(--i) * .45s); stroke-dashoffset: 0; }
.range-card.in .map-land { transition: opacity .3s calc(1.6s + var(--i) * .45s); opacity: 1; }
.range-card.in .map-tag { transition: opacity .5s var(--ease) calc(1.8s + var(--i) * .45s); opacity: 1; }
.range-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.note { padding-top: 18px; border-top: 1px solid var(--hair); }
.note h3 { font-family: var(--display); font-size: 26px; line-height: 1.05; }
.note p { margin-top: 8px; font-size: 16px; color: var(--slate); }

/* ---------- Tarjeta de la bola ---------- */
.pick { display: flex; gap: 6px; margin-top: 10px; }
.pick span {
  flex: 1;
  padding: 9px 0;
  border-radius: 12px;
  background: var(--s2);
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pick span.on { background: var(--accent); color: var(--on-accent); }
.forecast { margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--s1); }
.fc-k { font-size: 11px; font-weight: 600; color: var(--app-ink3); }
.fc-t { margin-top: 3px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; }

/* ---------- Hoja de ruta ---------- */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.road-step { padding-top: 18px; border-top: 2px solid var(--hair); }
.road-step:first-child { border-top-color: var(--fairway); }
.road-k { font-size: 12px; font-weight: 600; color: var(--green-ink); }
.road-step h3 { margin-top: 6px; font-family: var(--display); font-size: 32px; line-height: 1.05; color: inherit; }
.road-step p { margin-top: 8px; font-size: 16px; color: var(--slate); }

/* ---------- Ejemplo ---------- */
.example { max-width: 1080px; margin: var(--section-gap) auto 0; padding: 0 var(--gutter); }
.ex-panel {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: 34px;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: var(--ui);
  letter-spacing: 0;
}
.ex-side { display: flex; flex-direction: column; align-items: center; }
.ex-side .seg { width: 100%; margin-bottom: 18px; }
.ex-side .chip { margin-top: -6px; }
.ex-side .coach-card { width: 100%; margin-top: 20px; }
.ex-strengths { width: 100%; margin-top: 14px; }
.ex-strengths .app-good { font-size: 14px; }
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--s1);
}
.seg button {
  flex: 1;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--app-ink2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--app-ink); }
.seg button.on { background: var(--s3); color: var(--app-ink); }
.seg button:focus-visible, .ex-row:focus-visible { outline: 2px solid #9ccaff; outline-offset: 2px; }
.ex-main { min-width: 0; }
.ex-list { margin-top: 14px; display: grid; gap: 10px; }
.ex-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px 16px;
  border-radius: 18px;
  background: var(--s1);
  animation: row-in .45s var(--ease) both;
}
.ex-row:hover { background: #17201a; }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
.ex-row .mrow-name { font-size: 14px; }
.ex-row .mrow-val { font-size: 32px; }
.ex-row .mrow-val small { font-size: 18px; }
.ex-row .range { height: 8px; margin-top: 12px; }
.ex-ref { margin-top: 8px; font-size: 12.5px; color: var(--app-ink3); }
.ex-more { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--app-ink2); }
.ex-more p + p { margin-top: 6px; }
.ex-more .src { color: var(--app-ink3); font-size: 12px; }
.ex-row.open .ex-more { display: block; }
.ex-empty { padding: 24px; color: var(--app-ink3); }

/* ---------- Tarjetas del club ---------- */
.clubs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.club-card { padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, .07); }
.club-num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; color: var(--putting); }
.club-card h3 { margin-top: 8px; font-family: var(--display); font-size: 26px; line-height: 1.05; }
.club-card p { margin-top: 8px; font-size: 15.5px; color: var(--app-ink2); }
.text-link-dark { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 1080px; margin: var(--section-gap) auto 0; padding: 0 var(--gutter); }
.faq .h2 { text-align: center; }
.faq-list { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
.faq details:nth-child(-n+2) { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 19px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--slate);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--slate); }

/* ---------- Cierre ---------- */
.closer { margin-top: var(--section-gap); padding: 40px var(--gutter) 0; text-align: center; overflow: hidden; }
.closer-mark { width: 220px; height: 220px; margin: 0 auto; display: block; overflow: visible; cursor: pointer; border-radius: 24px; }
.closer-mark:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 6px; }
/* Secuencia (app.js): el visor se dibuja, el golfista hace el swing, el visor «captura» y queda el logo. */
.js .closer-frame { stroke-dasharray: 1; stroke-dashoffset: 1; transform-box: view-box; transform-origin: 256px 256px; }
.closer.in .closer-frame { transition: stroke-dashoffset 1.1s cubic-bezier(.55, .05, .25, 1) .15s; stroke-dashoffset: 0; }
.js .closer-golfer { opacity: 0; transition: opacity .2s ease-out; }
.closer-mark.done .closer-golfer { opacity: 1; }
.closer-rig { opacity: 0; transition: opacity .25s; }
.closer-rig.on { opacity: 1; }
.closer-flash { fill: var(--accent); opacity: 0; }
.closer-mark.snap .closer-flash { animation: cap-flash .55s ease-out; }
.closer-mark.snap .closer-frame { animation: cap-snap .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes cap-flash { 0% { opacity: .35; } 100% { opacity: 0; } }
@keyframes cap-snap { 0% { transform: scale(1); } 30% { transform: scale(.88); } 100% { transform: scale(1); } }
.closer-t { margin-top: 30px; }
.putt { display: block; width: min(900px, 140%); margin: 56px auto -6px; position: relative; left: 50%; transform: translateX(-50%); }
.putt-line { stroke: rgba(255, 255, 255, .75); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0; }
.js .putt-roll { transform: translateX(-440px); }
.closer.in .putt-roll { transition: transform 2s cubic-bezier(.15, .6, .3, 1) 4.6s; transform: none; }
.closer.in .putt-line { transition: opacity .6s 4.6s; opacity: 1; }
.putt-ball { transform-box: fill-box; transform-origin: center; }
.closer.in .putt-ball { animation: drop .35s ease-in 6.65s forwards; }
@keyframes drop { to { transform: translateY(7px) scale(.55); opacity: 0; } }
.putt-flag { transform-box: fill-box; transform-origin: left center; }
.closer.in .putt-flag { animation: wave 1.2s ease-in-out 6.9s 2; }
@keyframes wave { 50% { transform: scaleX(.75) skewY(4deg); } }

/* ---------- Pie ---------- */
.footer { background: var(--green-deep); color: #d9e6dc; padding: 44px var(--gutter) 52px; }
.footer .wordmark { color: #fff; }
.footer .wordmark b { color: #5ed08a; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-contact a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.footer-contact a:hover { text-decoration-color: #fff; }
.legal-links { display: flex; gap: 20px; font-size: 12px; }
.legal-links a { color: rgba(255, 255, 255, .72); text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover { color: #fff; }
.legal { font-size: 12px; color: rgba(255, 255, 255, .6); padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --section-gap: 96px; }
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 8px; gap: 0 16px; }
  .nav .btn { margin-left: auto; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    margin: 6px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 8px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .05); white-space: nowrap; }
  .nav-links a.on { background: var(--green-ink); color: #fff; }
  .nav-links a.on::after { display: none; }
  html { scroll-padding-top: 104px; }
  .stepper { grid-template-columns: 1fr; gap: 24px; }
  .steps-phone .phone-fit { --s: .86; }
  .rigor-points { grid-template-columns: 1fr 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .faq details:nth-child(2) { border-top: 0; }
  .club-box { padding: 22px; border-radius: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ex-panel { grid-template-columns: 1fr; }
  .clubs-grid { grid-template-columns: 1fr; }
  .range-notes, .road { grid-template-columns: 1fr; gap: 24px; }
  .hero { min-height: 0; text-align: center; }
  .hero-inner { padding-top: 44px; }
  .hero-copy { margin: 0 auto; }
  .hero .cta-row, .trust { justify-content: center; }
  .stage { position: relative; right: auto; display: block; width: min(100%, 600px); margin: 10px auto 0; }
  .hero-fairway { top: auto; height: 230px; }
  .hero-trees { top: auto; bottom: 224px; }
  .phases-inner { grid-template-columns: 1fr; gap: 18px; padding-top: 64px; }
  .phases-copy { order: -1; }
  .phases-copy .h2 { font-size: 32px; margin-top: 6px; }
  .phase-card { margin-top: 12px; padding: 16px 18px; }
  .phase-card h3 { font-size: 26px; }
  .phase-card p { font-size: 14.5px; min-height: 0; margin-top: 6px; }
  .ph-metric { margin-top: 10px; padding-top: 10px; }
  .ph-mval { font-size: 28px; }
  .phase-dots button { font-size: 9px; letter-spacing: .04em; }
}
@media (max-width: 760px) {
  :root { --section-gap: 72px; }
  /* En móvil, las listas de tarjetas se deslizan en horizontal en vez de apilarse. */
  .clubs-grid, .club-box .road, .rigor-points, .range-notes {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .clubs-grid::-webkit-scrollbar, .club-box .road::-webkit-scrollbar, .rigor-points::-webkit-scrollbar, .range-notes::-webkit-scrollbar { display: none; }
  .clubs-grid > *, .club-box .road > *, .rigor-points > *, .range-notes > * { scroll-snap-align: start; }
  .range-notes .note { padding-right: 8px; }
  .who { padding-top: 64px; }
  .range-card { padding: 54px 16px 12px; }
  .range-legend { left: 16px; top: 18px; gap: 12px; }
  .stat-num { font-size: 60px; }
  .ex-panel { padding: 18px; border-radius: 28px; }
  .seg button { font-size: 12px; padding: 0 6px; }
}
@media (max-width: 420px) {
  .stats { gap: 24px 18px; }
  .stat-num { font-size: 52px; }
  .stat-l { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-in { opacity: 1 !important; transform: none !important; }
  .closer-golfer { opacity: 1 !important; }
  .closer-rig { display: none; }
  .closer-frame { stroke-dashoffset: 0 !important; }
  .map-land, .map-tag, .putt-line { opacity: 1 !important; }
  .putt-roll { transform: none !important; }
  .map-flight { stroke-dashoffset: 0 !important; }
  .trend-line { stroke-dashoffset: 0; }
  .trend-dots circle { opacity: 1; }
}

/* ---------- Páginas legales y 404 ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 88px; }
.legal-page .h2 { margin-top: 10px; }
.legal-page h2:not(.h2) { margin-top: 36px; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.legal-page p, .legal-page li { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: #3d4245; }
.legal-page ul { padding-left: 20px; }
.legal-page .updated { color: var(--slate); font-size: 14px; }
.legal-page .lead-legal { margin-top: 18px; font-size: 19px; color: var(--ink); }
.legal-page a { color: var(--accent-ink); }
.todo { background: #fff3c4; color: #5a4300; padding: 0 3px; border-radius: 3px; }
.page-plain .nav-inner { justify-content: space-between; }
.notfound { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 40px 0; }
.notfound p { color: var(--slate); }
