/* ShootLab — web pública
   Marca: negro #121212 + naranja #FE5D00. Títulos en Barlow Condensed (tablero, camisetas),
   texto en Barlow. Naranja puro en superficies grandes; #B84300 cuando el naranja es texto
   sobre fondo claro (contraste AA). Una sola animación: los tiros cayendo en la cancha del hero. */

/* Barlow y Barlow Condensed (SIL Open Font License, ver fonts/OFL.txt), alojadas en el propio servidor. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #121212;
  --ink-2: #1c1c1c;
  --ink-3: #262626;
  --paper: #f4f4f1;
  --white: #ffffff;
  --line: #e2e2dd;
  --line-dark: #333331;
  --muted: #5e5e5a;
  --muted-dark: #a9a9a3;
  --orange: #fe5d00;
  --orange-text: #b84300;
  --orange-soft: #fff0e6;
  --made: #2fb36a;
  --miss: #e5533c;
  --wood: #e9d4ae;

  --display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 12px;
  --section: clamp(72px, 10vw, 128px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: -0.005em; margin: 0; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color 120ms, border-color 120ms, color 120ms;
}
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.075rem; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #ff7424; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-whatsapp { background: #25d366; color: #0b2b16; }
.btn-whatsapp:hover { background: #3ee07a; }
.btn-whatsapp svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(18, 18, 18, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #222; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-logo img { width: 170px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: #d9d9d4; text-decoration: none; font-size: 0.98rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.nav-login { padding-left: 26px; border-left: 1px solid #3a3a38; }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-in { gap: 12px; height: 62px; }
  .nav-logo img { width: 140px; }
  .nav-cta { margin-left: auto; min-height: 40px; padding: 0 14px; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    background: none; border: 1px solid #3a3a38; border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--white); transition: transform 160ms; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid #222; padding: 8px var(--gutter) 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid #262626; font-size: 1.05rem; }
  .nav-login { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------ Hero */
.hero { background: var(--ink); color: var(--white); overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 48px;
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 112px);
}
.hero h1 { font-size: clamp(2.75rem, 6.1vw, 5.6rem); line-height: 0.95; letter-spacing: -0.01em; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero .lead { color: #cfcfca; font-size: clamp(1.1rem, 1.6vw, 1.28rem); max-width: 34em; margin: 26px 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--muted-dark); font-size: 0.95rem; margin: 18px 0 0; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 600px; width: 100%; justify-self: end; }
.hero-court { position: absolute; left: 0; top: 0; width: 86%; height: auto; }
.hero-court .lines * { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 3; }
.hero-court .rim { fill: none; stroke: var(--orange); stroke-width: 3.5; }
.hero-court .shot { transform-box: fill-box; transform-origin: center; }
.hero-court .shot.in { animation: pop 320ms cubic-bezier(.2, 1.6, .5, 1) both; }
.hero-court .made { fill: var(--made); }
.hero-court .miss { fill: none; stroke: var(--miss); stroke-width: 4; }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.scoreboard {
  position: absolute; left: 4%; bottom: 3%; z-index: 2;
  display: grid; grid-template-columns: auto auto; column-gap: 18px; align-items: end;
  background: #0a0a0a; border: 1px solid #2c2c2a; border-radius: 12px; padding: 14px 18px 12px;
  font-family: var(--display); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.sb-label { grid-column: 1 / -1; color: var(--muted-dark); font-family: var(--body); font-size: 0.85rem; font-weight: 500; margin-bottom: 2px; }
.sb-num { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.sb-num b { color: var(--orange); }
.sb-pct { font-size: 1.6rem; font-weight: 700; color: var(--made); line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Teléfono: marco simple, la captura es real */
.phone { margin: 0; background: #050505; border-radius: 42px; padding: 9px; box-shadow: 0 0 0 1px #2a2a2a, 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.phone img { border-radius: 33px; width: 100%; }
.phone-hero { position: absolute; right: 0; top: 30%; width: 43%; z-index: 1; transform: rotate(3deg); transform-origin: top left; }

@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { justify-self: center; }
}
@media (max-width: 480px) {
  .phone-hero { border-radius: 26px; padding: 5px; }
  .phone-hero img { border-radius: 21px; }
  .scoreboard { padding: 9px 12px 8px; column-gap: 10px; border-radius: 10px; }
  .sb-label { font-size: 0.78rem; }
  .sb-num { font-size: 1.8rem; }
  .sb-pct { font-size: 1.15rem; }
  .hero-ctas .btn { width: 100%; }
}

/* ------------------------------------------------------------ Problema */
.problem { background: var(--orange); color: var(--ink); }
.problem-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); align-items: start; }
.problem h2 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.problem-text { font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 34em; }
.problem-text p:last-child { margin-bottom: 0; font-weight: 600; }
@media (max-width: 760px) { .problem-in { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Secciones */
.section-title { margin-bottom: 18px; }
.section-sub { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin-bottom: 44px; }

.how { background: var(--white); padding: var(--section) 0; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.step { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 4.5rem; line-height: 0.8; color: var(--orange); }
.step-text { min-height: 7.5em; }
.step-text h3 { margin: 10px 0 8px; }
.step-text p { color: var(--muted); margin: 0; max-width: 24em; }
.step .phone { width: min(260px, 100%); margin-top: 18px; box-shadow: 0 0 0 1px #d9d9d4, 0 24px 48px -24px rgba(0, 0, 0, 0.35); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step-text { min-height: 0; }
  .step .phone { width: min(250px, 72%); }
}

.features { padding: var(--section) 0; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 7vw, 96px); align-items: center;
  padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.features .section-title + .feature { border-top: 0; margin-top: 12px; }
.feature-flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 18px; }
.feature-text { max-width: 30em; }
.feature-text strong { font-weight: 700; }
.feature-small { color: var(--muted); font-size: 1rem; border-left: 3px solid var(--orange); padding-left: 14px; margin-top: 22px; }
.feature .phone { width: min(300px, 100%); justify-self: center; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature-flip .feature-text { order: 0; }
  .feature .phone { width: min(270px, 78%); }
}

.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.offline { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: var(--ink); color: var(--white); border-radius: var(--r); padding: 28px; }
.offline svg { width: 56px; height: 56px; color: var(--orange); }
.offline h3 { margin-bottom: 10px; }
.offline p { color: #cfcfca; margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; columns: 1; }
.checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px;
  border-left: 3px solid var(--orange-text); border-bottom: 3px solid var(--orange-text); transform: rotate(-45deg);
}
@media (max-width: 800px) { .extras { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Planes */
.plans { background: var(--white); padding: var(--section) 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; background: var(--paper); }
.plan h3 { font-size: 2.1rem; font-weight: 800; }
.plan-for { color: var(--muted); margin: 8px 0 22px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price b { font-family: var(--display); font-size: 3.2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan-list { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.plan-list li { position: relative; padding: 7px 0 7px 26px; font-size: 1.02rem; }
.plan-list li::before {
  content: ""; position: absolute; left: 1px; top: 15px; width: 11px; height: 6px;
  border-left: 2.5px solid var(--orange-text); border-bottom: 2.5px solid var(--orange-text); transform: rotate(-45deg);
}
.plan-list em { font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.plan-main { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); }
.plan-main .plan-for, .plan-main .price span { color: var(--muted-dark); }
.plan-main .price { border-color: var(--line-dark); }
.plan-main .plan-list li::before { border-color: var(--orange); }
.plans-note { color: var(--muted); font-size: 1rem; margin: 28px 0 0; }
.plans-note a { color: var(--orange-text); font-weight: 600; }
@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 480px; }
  .plan-for { min-height: 0; }
  .plan-main { order: -1; }
}

/* ------------------------------------------------------------ Preguntas */
.faq { padding: var(--section) 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 20px 0; font-weight: 600; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform 160ms; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { color: var(--muted); margin: -4px 0 22px; max-width: 40em; }
@media (max-width: 800px) { .faq-in { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Contacto */
.contact { background: var(--ink); color: var(--white); padding: var(--section) 0; }
.contact-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; }
.contact-copy p { color: #cfcfca; max-width: 28em; margin-bottom: 28px; }
.contact-mail { margin-top: 20px; font-size: 1rem; }
.contact-mail a { color: var(--white); }

.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 0.95rem; font-weight: 600; color: #e6e6e1; }
.field small { font-weight: 400; color: var(--muted-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #3a3a38; background: #121212; color: var(--white);
  font: 400 1rem/1.4 var(--body);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #bbb 50%), linear-gradient(135deg, #bbb 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(254, 93, 0, 0.25); }
.field [aria-invalid="true"] { border-color: var(--miss); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ff8f7c; min-height: 1.2em; margin: 0; font-size: 0.98rem; }
.form-error:empty { display: none; }
.form-legal { color: var(--muted-dark); font-size: 0.88rem; margin: 0; text-align: center; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form-done { background: var(--ink-2); border: 1px solid var(--line-dark); border-left: 4px solid var(--made); border-radius: 16px; padding: 36px; }
.form-done h3 { font-size: 2rem; margin-bottom: 12px; }
.form-done p { color: #cfcfca; margin: 0; }
@media (max-width: 860px) {
  .contact-in { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn-whatsapp { width: 100%; }
}

/* ------------------------------------------------------------ Footer */
.footer { background: #0a0a0a; color: var(--muted-dark); padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #1f1f1f; }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer-in img { width: 200px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; }
.footer-links a { color: #d0d0cb; text-decoration: none; font-size: 0.98rem; }
.footer-links a:hover { color: var(--white); }
.footer-legal { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid #1f1f1f; font-size: 0.92rem; }
@media (max-width: 700px) {
  .footer-in { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
