/* PadelOS · Landing
   Identidad de marca (assets/Colores.txt):
   verde principal #B9ED01 · blanco #FFFFFF · verde oscuro del degradado del isologo #679201.
   Titulares en Saira itálica expandida (eco del logotipo) y texto en Inter.
   ------------------------------------------------------------------------------ */

:root {
  --bg: #070905;
  --bg2: #0B0E08;
  --panel: #10130D;
  --card: #151912;
  --card2: #1A1F16;
  --border: rgba(255, 255, 255, 0.09);
  --border2: rgba(255, 255, 255, 0.15);
  --hairline: rgba(255, 255, 255, 0.08);

  --lime: #B9ED01;
  --lime2: #CBF53A;
  --lime-dark: #679201;
  --lime-ink: #0B1200;
  --lime-glow: rgba(185, 237, 1, 0.22);
  --lime-soft: rgba(185, 237, 1, 0.12);
  --lime-edge: rgba(185, 237, 1, 0.38);
  --brand-gradient: linear-gradient(160deg, #B9ED01 0%, #679201 100%);

  --white: #FFFFFF;
  --ink: #F4F7EF;
  --muted: #9DA894;
  --muted2: #6D7766;
  --amber: #FFBE33;
  --amber-soft: rgba(255, 190, 51, 0.12);
  --red: #FF6B6B;

  --turf: #0C1707;
  --turf2: #14240B;
  --court-line: rgba(255, 255, 255, 0.4);

  --font-display: "Saira", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  --step-4: clamp(2.3rem, 1.15rem + 3.9vw, 4.25rem);

  --r: 20px;
  --rs: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--lime-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 14px; border-radius: var(--rs);
  background: var(--lime); color: var(--lime-ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), 1320px); }

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--white);
}
h1, h2 { font-style: italic; font-weight: 800; font-stretch: 112%; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em; font-stretch: 106%; }

/* Cifras y titulares chicos en itálica, como el logotipo */
.d-kpi b, .insight-amount, .dash-title, .bracket-kicker, .connect-title {
  font-style: italic; font-stretch: 108%;
}

/* Texto con el degradado del isologo */
.brand-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

.ball-dot, .live-dot {
  flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px var(--lime-glow);
}
.live-dot { animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(185, 237, 1, 0.05); } }

.section-lede { max-width: 60ch; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.section-lede a { color: var(--lime); font-weight: 600; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  color: var(--lime); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid var(--lime-edge); padding-bottom: 2px;
  transition: border-color .2s ease;
}
.text-link:hover { border-color: var(--lime); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-lime {
  background: var(--lime); color: var(--lime-ink);
  box-shadow: inset 0 -3px 0 rgba(103, 146, 1, 0.55), 0 10px 26px var(--lime-glow);
}
.btn-lime:hover { background: var(--lime2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--border2); color: #DFE5DD; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--step--1); box-shadow: none; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
  font-size: 12px; font-weight: 600; white-space: nowrap; color: #C8CFC7;
}
.chip .live-dot { width: 6px; height: 6px; box-shadow: none; }
.chip--live { color: var(--lime); border-color: rgba(185, 237, 1, 0.3); background: var(--lime-soft); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 5, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand-logo { width: auto; height: 30px; }
.brand-logo--footer { height: auto; width: 210px; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  color: #C8CFC7; font-size: var(--step--1); font-weight: 500; text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
.main-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a.nav-live { color: var(--lime); font-weight: 600; }
.main-nav .live-dot { width: 6px; height: 6px; box-shadow: none; }
.nav-cta-mobile, .nav-toggle { display: none; }

@media (max-width: 1080px) {
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--border2); border-radius: 999px;
    background: rgba(255, 255, 255, 0.05); color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 22px;
    background: rgba(7, 9, 5, 0.98);
    border-bottom: 1px solid var(--border2);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) {
    padding: 14px 2px; border-radius: 0;
    border-bottom: 1px solid var(--hairline); font-size: var(--step-0);
  }
  .main-nav a:not(.btn):hover { background: transparent; }
  .nav-cta-mobile { display: inline-flex; margin-top: 16px; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(72px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 80%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(185, 237, 1, 0.08), transparent),
    radial-gradient(900px 500px at 95% 0%, rgba(185, 237, 1, 0.06), transparent);
}

.hero-title { font-size: var(--step-4); font-stretch: 104%; line-height: 1.06; letter-spacing: -0.02em; }
.ht-line { display: block; }
.ht-accent {
  width: fit-content; padding-right: 0.12em;
  background: linear-gradient(180deg, var(--lime) 30%, var(--lime-dark) 135%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(185, 237, 1, 0.22));
}

.hero-sub {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px); align-items: end;
  margin-top: clamp(24px, 3.5vw, 40px);
}
.lede { max-width: 60ch; color: var(--muted); font-size: var(--step-1); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-note { flex-basis: 100%; color: var(--muted2); font-size: var(--step--1); }

@media (max-width: 860px) {
  .hero-sub { grid-template-columns: 1fr; }
}

/* ---------- Cancha (vista superior, medidas reales 20 × 10 m) ---------- */

.court-fig { margin: clamp(40px, 6vw, 72px) 0 0; }

.court {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  min-height: 640px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 46px, transparent 46px 92px),
    radial-gradient(60% 80% at 50% 50%, rgba(185, 237, 1, 0.06), transparent 70%),
    linear-gradient(180deg, var(--turf2), var(--turf));
  box-shadow:
    inset 0 0 0 3px var(--court-line),
    0 0 0 1px var(--border),
    0 0 0 12px rgba(255, 255, 255, 0.025),
    0 50px 120px -50px rgba(185, 237, 1, 0.25);
}

.half {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 76px clamp(16px, 3vw, 44px) 36px;
}
.half::before, .half::after { content: ""; position: absolute; background: var(--court-line); pointer-events: none; }

/* Línea de saque a 6,95 m de la red: 30,5 % desde el fondo de cada lado */
.half--player::before { top: 0; bottom: 0; left: 30.5%; width: 2px; }
.half--player::after { top: calc(50% - 1px); left: 30.5%; right: 0; height: 2px; }
.half--owner::before { top: 0; bottom: 0; right: 30.5%; width: 2px; }
.half--owner::after { top: calc(50% - 1px); left: 0; right: 30.5%; height: 2px; }

.net {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 7px);
  border-inline: 2px solid rgba(255, 255, 255, 0.7);
}
.net::before, .net::after {
  content: ""; position: absolute; left: 50%;
  width: 12px; height: 12px; transform: translateX(-50%);
  border-radius: 3px; background: var(--ink);
}
.net::before { top: -7px; }
.net::after { bottom: -7px; }

/* Isologo PadelOS sobre la red: la marca que une los dos lados */
.net-iso {
  position: absolute; z-index: 0; left: 50%; top: 50%;
  width: clamp(84px, 9vw, 124px); max-width: none; height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(185, 237, 1, 0.35));
  pointer-events: none;
}

.half-tag {
  position: absolute; top: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(7, 9, 5, 0.78); border: 1px solid var(--border2);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink);
}
.half-tag em { font-style: normal; color: var(--muted); }
.half-tag .ball-dot { width: 6px; height: 6px; box-shadow: none; }
.half--player .half-tag { left: 18px; }
.half--owner .half-tag { right: 18px; }

.half-link {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(7, 9, 5, 0.78); border: 1px solid var(--lime-edge);
  color: var(--lime); font-size: var(--step--1); font-weight: 700; text-decoration: none;
  transition: background-color .18s ease;
}
.half-link:hover { background: rgba(185, 237, 1, 0.14); }

.court-caption { margin-top: 18px; color: var(--muted2); font-size: var(--step--1); }

@media (max-width: 900px) {
  .court { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 16px auto; min-height: 0; }
  .half { padding: 68px 14px 30px; }
  .half--player::before { top: 30.5%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .half--player::after { top: 30.5%; bottom: 0; left: calc(50% - 1px); right: auto; width: 2px; height: auto; }
  .half--owner::before { top: auto; bottom: 30.5%; left: 0; right: 0; width: auto; height: 2px; }
  .half--owner::after { top: 0; bottom: 30.5%; left: calc(50% - 1px); right: auto; width: 2px; height: auto; }
  .half--owner .half-tag { right: auto; left: 18px; }
  .net { border-inline: 0; border-block: 2px solid rgba(255, 255, 255, 0.7); }
  .net::before, .net::after { top: 50%; bottom: auto; transform: translateY(-50%); }
  .net::before { left: -7px; }
  .net::after { left: auto; right: -7px; }
  .net-iso { left: auto; right: 14px; width: 68px; transform: translateY(-50%); }
}

/* ---------- Mockups de interfaz ---------- */

.mock {
  position: relative; z-index: 1;
  width: min(100%, 380px);
  overflow: hidden;
  border-radius: 16px;
  background: rgba(12, 15, 13, 0.9);
  border: 1px solid var(--border2);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px; line-height: 1.35;
}
.mock-top {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--hairline);
}
.mock-lights { display: inline-flex; gap: 5px; }
.mock-app { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.mock-lights i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock-url {
  flex: 1; min-width: 0; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--muted);
  font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.club-logo {
  flex: none; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--club, var(--lime)); color: var(--lime-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: -0.02em;
  transition: background-color .3s ease;
}

/* Web del club */
.w-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 4px; }
.w-name { display: grid; }
.w-name b { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.w-name small { color: var(--muted); font-size: 11px; }
.w-ask { padding: 10px 14px 8px; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

.w-days { display: flex; gap: 6px; padding: 0 14px 12px; }
.w-day {
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700; color: #C8CFC7;
}
.w-day.is-active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }

.w-slots { display: grid; gap: 6px; margin: 0; padding: 0 14px; list-style: none; }
.w-slot {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 8px 8px 8px 11px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  transition: background-color .3s ease, border-color .3s ease, opacity .3s ease;
}
.w-time { font-family: var(--font-display); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.w-court { display: grid; min-width: 0; }
.w-court b { font-size: 12px; font-weight: 700; }
.w-court small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-price { color: #D9F28A; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-btn {
  display: inline-grid; place-items: center; min-width: 74px; min-height: 30px; padding: 0 10px;
  border: 0; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 11.5px; font-weight: 800; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
button.w-btn:hover { background: var(--lime2); }
.w-slot.is-off { opacity: 0.55; }
.w-slot.is-off .w-btn { background: rgba(255, 255, 255, 0.06); color: var(--muted); cursor: default; }
.w-slot.is-booked { border-color: var(--lime-edge); background: linear-gradient(180deg, rgba(185, 237, 1, 0.09), rgba(185, 237, 1, 0.02)); }
.w-slot.is-booked .w-btn { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-edge); cursor: default; }

.w-pay {
  margin: 12px 14px 14px; padding-top: 12px;
  border-top: 1px dashed var(--border2);
  color: var(--muted); font-size: 11.5px;
  transition: color .3s ease;
}
.w-pay.is-done { color: var(--lime); font-weight: 600; }

/* Panel del dueño */
.p-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 14px 14px 10px; }
.p-kpi {
  display: grid; gap: 3px; min-width: 0; padding: 10px; border-radius: 12px;
  background: linear-gradient(180deg, #161A16, #111413); border: 1px solid var(--border);
}
.p-kpi small { color: var(--muted2); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.p-kpi b {
  font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: color .3s ease;
}
.p-kpi--hero { border-color: rgba(185, 237, 1, 0.45); background: linear-gradient(180deg, rgba(185, 237, 1, 0.12), rgba(185, 237, 1, 0.03) 60%, #11140F); }
.p-kpi--hero small, .p-kpi--hero b { color: var(--lime); }
.p-kpi b.is-bump { color: var(--lime2); }

.p-live { margin: 0 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(185, 237, 1, 0.3); background: rgba(185, 237, 1, 0.04); }
.p-live-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.p-live-head .live-dot { width: 6px; height: 6px; box-shadow: none; }
.p-feed { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.p-feed li { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; color: #C8CFC7; }
.p-feed-text { flex: 1; min-width: 0; }
.p-feed b { color: var(--ink); }
.p-feed small { flex: none; color: var(--muted2); font-size: 10.5px; }
.p-feed li.is-new { animation: feed-in .5s ease; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.p-label { padding: 14px 14px 6px; color: var(--muted2); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.p-rows { margin: 0; padding: 0 14px 12px; list-style: none; }
.p-rows li {
  display: grid; grid-template-columns: 40px 62px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 12px;
}
.p-rows li:first-child { border-top: 0; }
.p-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.p-court { color: var(--muted); }
.p-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.p-rows li.is-new { animation: row-flash 1.2s ease; }
@keyframes row-flash { 0% { background: rgba(185, 237, 1, 0.18); } 100% { background: transparent; } }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--free { color: var(--muted); border-color: var(--border2); background: rgba(255, 255, 255, 0.04); }
.tag--conf { color: var(--lime); border-color: rgba(185, 237, 1, 0.3); background: rgba(185, 237, 1, 0.12); }
.tag--pend { color: var(--amber); border-color: rgba(255, 190, 51, 0.3); background: var(--amber-soft); }

/* ---------- Secciones ---------- */

.section { padding-block: clamp(72px, 9vw, 124px); }
.section--band { background: var(--bg2); border-block: 1px solid var(--hairline); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 5vw, 72px); align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 { max-width: 18ch; }

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Demo en vivo */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.door {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(24px, 3.5vw, 36px); border-radius: var(--r);
  background: linear-gradient(180deg, #161A16, #111413);
  border: 1px solid var(--border);
}
.door::before {
  content: ""; position: absolute; top: -90px; right: -90px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(185, 237, 1, 0.14), transparent 70%); pointer-events: none;
}
.door--owner { border-color: rgba(185, 237, 1, 0.35); background: linear-gradient(180deg, #1A2013 0%, #11140E 70%); }
.door-kicker { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.door h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.door > p:not(.door-kicker) { max-width: 44ch; margin-bottom: 8px; color: var(--muted); }
.door-links { display: grid; width: 100%; margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.door-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline);
  color: var(--ink); font-size: var(--step--1); font-weight: 600; text-decoration: none;
  transition: color .18s ease;
}
.door-links a:hover { color: var(--lime); }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
}

.connect {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 12px 40px; align-items: start;
  margin-top: 16px; padding: clamp(22px, 3vw, 30px) clamp(24px, 3.5vw, 36px);
  border-radius: var(--r); border: 1px dashed rgba(185, 237, 1, 0.35);
}
.connect-title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.connect-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.connect-steps li { position: relative; padding-left: 38px; color: var(--muted); font-size: var(--step--1); }
.connect-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink); font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.connect-steps b { color: var(--ink); }
.connect-note { grid-column: 2; color: var(--muted2); font-size: 12.5px; }
@media (max-width: 900px) {
  .connect { grid-template-columns: 1fr; }
  .connect-note { grid-column: auto; }
}
@media (max-width: 620px) {
  .connect-steps { grid-template-columns: 1fr; }
}

/* Comparación: sin sistema / con PadelOS */
.versus-wrap { overflow-x: auto; }
.versus { width: 100%; border-collapse: collapse; }
.versus th, .versus td {
  padding: 20px 28px 20px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
.versus thead th {
  padding-top: 0; padding-bottom: 14px;
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2);
  border-bottom-color: var(--border2);
}
.versus thead th:not(:first-child) { padding-left: 30px; }
.versus thead th.vs-us { color: var(--lime); }
.versus tbody th {
  width: 17%;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: var(--step-1); line-height: 1.35; color: var(--ink);
}
.versus td { position: relative; width: 41.5%; padding-left: 30px; color: var(--muted); }
/* "Sin sistema": círculo con X */
.versus td::before {
  content: ""; position: absolute; left: 0; top: calc(20px + 0.8em - 8px);
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 107, 107, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.3 3.3l5.4 5.4M8.7 3.3l-5.4 5.4' fill='none' stroke='%23FF7B72' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.6);
}
.versus td.vs-us { color: var(--ink); }
/* "Con PadelOS": círculo lima con tilde */
.versus td.vs-us::before,
.demo-points li::before {
  top: calc(20px + 0.8em - 8px); width: 16px; height: 16px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2l2.2 2.2 4.6-4.7' fill='none' stroke='%23101304' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: 0 0 12px rgba(185, 237, 1, 0.35);
}

@media (max-width: 720px) {
  .versus, .versus thead, .versus tbody { display: block; }
  .versus tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px;
    padding: 18px 0; border-bottom: 1px solid var(--hairline);
  }
  .versus thead tr { padding: 0 0 12px; border-bottom-color: var(--border2); }
  .versus thead th:first-child { display: none; }
  .versus th, .versus td { width: auto; padding: 0 0 0 26px; border: 0; }
  .versus thead th:not(:first-child) { padding: 0 0 0 26px; }
  .versus tbody th { grid-column: 1 / -1; padding: 0 0 10px; font-size: var(--step-0); }
  .versus td { font-size: var(--step--1); }
  .versus td::before,
  .versus td.vs-us::before { top: calc(0.8em - 8px); }
}

/* Bloques de dos columnas */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.split-copy h2 { max-width: 16ch; margin-bottom: 20px; }
.split-visual { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.visual-note { color: var(--muted2); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-copy { order: -1; }
}

.feature-list { display: grid; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.feature-list li {
  position: relative; display: grid; gap: 4px;
  padding: 16px 0 16px 30px; border-bottom: 1px solid var(--hairline);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: calc(16px + 0.8em - 6px);
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--lime);
}
.feature-list b { font-weight: 700; }
.feature-list span { color: var(--muted); }

/* iPhone con la reserva confirmada (estilo iPhone Pro: titanio, Dynamic Island) */
.split-visual--phone { position: relative; isolation: isolate; }
.split-visual--phone::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%;
  width: min(460px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 237, 1, 0.16), transparent 65%);
  pointer-events: none;
}

.iphone {
  --screen-bg: #070905;
  position: relative; width: min(100%, 318px); aspect-ratio: 318 / 656;
  padding: 4px; border-radius: 58px;
  background: linear-gradient(145deg, #6A6D64 0%, #2B2D28 16%, #171815 50%, #2E302B 84%, #6A6D64 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 60px 110px -40px rgba(0, 0, 0, 0.9),
    0 30px 90px -50px rgba(185, 237, 1, 0.45);
}
.iphone-btn {
  position: absolute; width: 4px; border-radius: 3px;
  background: linear-gradient(90deg, #1A1B18, #5E6158 55%, #26281F);
}
.iphone-btn--action { left: -3px; top: 17.5%; height: 4.6%; }
.iphone-btn--vol-up { left: -3px; top: 25.5%; height: 8%; }
.iphone-btn--vol-down { left: -3px; top: 35%; height: 8%; }
.iphone-btn--power { right: -3px; top: 28%; height: 12.5%; }

.iphone-bezel { height: 100%; padding: 7px; border-radius: 54px; background: #020301; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.iphone-screen {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: 47px;
  background: radial-gradient(130% 55% at 50% -8%, rgba(185, 237, 1, 0.17), transparent 60%), var(--screen-bg);
  color: var(--white); font-family: var(--font-body); line-height: 1.3;
}

/* Barra de estado iOS */
.ios-status {
  position: relative; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 2px 24px 0 30px;
}
.ios-time { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ios-island {
  position: absolute; left: 50%; top: 11px;
  width: 94px; height: 28px; transform: translateX(-50%);
  border-radius: 20px; background: #000;
}
.ios-island::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 9px; height: 9px; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #34405E, #0A0D18 62%);
}
.ios-icons { display: flex; align-items: center; gap: 5px; }
.ios-signal { width: 17px; height: 11px; fill: var(--white); }
.ios-wifi { width: 15px; height: 11px; fill: var(--white); }
.ios-battery {
  position: relative; width: 25px; height: 12px; padding: 1.5px;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 4px;
}
.ios-battery::after {
  content: ""; position: absolute; right: -4px; top: 50%;
  width: 2px; height: 4px; transform: translateY(-50%);
  border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.45);
}
.ios-battery i { display: block; width: 76%; height: 100%; border-radius: 2px; background: var(--white); }
.ios-home {
  position: absolute; left: 50%; bottom: 8px;
  width: 108px; height: 4px; transform: translateX(-50%);
  border-radius: 999px; background: rgba(255, 255, 255, 0.85);
}

/* App de reservas */
.app-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 2px 16px 4px; }
.app-icon-btn {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.06);
}
.app-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-bar-title { flex: 1; display: grid; text-align: center; line-height: 1.2; }
.app-bar-title b { font-size: 13.5px; font-weight: 700; }
.app-bar-title small { color: var(--muted); font-size: 10.5px; }

.app-success { flex: none; display: grid; justify-items: center; gap: 3px; padding: 10px 16px 12px; text-align: center; }
.app-check {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px;
  border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 6px rgba(185, 237, 1, 0.14), 0 0 34px rgba(185, 237, 1, 0.5);
}
.app-check svg { width: 24px; height: 24px; fill: none; stroke: var(--lime-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.app-success-title {
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-stretch: 108%;
  font-size: 22px; line-height: 1.05; letter-spacing: -0.01em;
}
.app-success-sub { color: var(--muted); font-size: 11.5px; }

.app-ticket {
  flex: none; margin: 0 14px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, #171C12, #10140C);
}
.app-ticket-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.app-date {
  flex: none; display: grid; justify-items: center; width: 52px; padding: 6px 0 5px;
  border-radius: 12px; line-height: 1; color: var(--lime-ink);
  background: linear-gradient(180deg, var(--lime) 35%, var(--lime-dark) 150%);
  box-shadow: inset 0 -2px 0 rgba(103, 146, 1, 0.6);
}
.app-date small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.app-date b { margin: 2px 0 1px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1; }
.app-slot { display: grid; gap: 2px; min-width: 0; }
.app-slot b {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.app-slot span { color: #C9D1C2; font-size: 11.5px; }
.app-slot .app-pill {
  justify-self: start; margin-top: 3px; padding: 2px 8px; border-radius: 999px;
  background: rgba(185, 237, 1, 0.12); border: 1px solid rgba(185, 237, 1, 0.28);
  color: var(--lime); font-size: 10px; font-weight: 700;
}
.app-ticket-cut { position: relative; margin: 0 14px; border-top: 1px dashed rgba(255, 255, 255, 0.18); }
.app-ticket-cut::before, .app-ticket-cut::after {
  content: ""; position: absolute; top: -9px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--screen-bg);
}
.app-ticket-cut::before { left: -23px; }
.app-ticket-cut::after { right: -23px; }
.app-ticket-bottom { display: flex; align-items: center; gap: 12px; padding: 10px 14px 12px; }
.app-pay { flex: 1; display: grid; gap: 7px; margin: 0; }
.app-pay div { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.app-pay dt { color: var(--muted); }
.app-pay dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-pay dd.is-paid { color: var(--lime); }
.app-pay small { display: block; color: var(--muted2); font-size: 9.5px; }
.app-qr { flex: none; display: grid; justify-items: center; gap: 3px; }
.app-qr canvas { width: 50px; height: 50px; padding: 4px; border-radius: 8px; background: var(--white); image-rendering: pixelated; }
.app-qr small { color: var(--muted); font-size: 9px; font-weight: 600; }

.app-players {
  flex: none; display: flex; align-items: center; gap: 10px;
  margin: 10px 14px 0; padding: 10px 12px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
}
.app-avatars { flex: none; display: flex; }
.app-av {
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: -4px;
  border-radius: 50%; background: #2A3024; border: 2px solid #12160E;
  font-size: 9px; font-weight: 800; letter-spacing: -0.02em;
}
.app-av:first-child { margin-left: 0; }
.app-av.is-you { background: var(--lime); color: var(--lime-ink); }
.app-av.is-empty { background: #0D1009; border: 1.5px dashed rgba(185, 237, 1, 0.6); color: var(--lime); font-size: 13px; font-weight: 600; }
.app-players-text { display: grid; min-width: 0; line-height: 1.25; }
.app-players-text b { font-size: 12px; }
.app-players-text small { color: var(--muted); font-size: 10.5px; }

.app-cta {
  flex: none; display: grid; place-items: center; min-height: 42px; margin: 10px 14px 0;
  border-radius: 999px; background: var(--lime); color: var(--lime-ink);
  font-size: 13px; font-weight: 800;
  box-shadow: inset 0 -3px 0 rgba(103, 146, 1, 0.55), 0 10px 24px rgba(185, 237, 1, 0.25);
}
.app-powered { flex: none; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 9px; color: var(--muted2); font-size: 9.5px; }
.app-powered img { width: 12px; height: 12px; border-radius: 3px; }
.app-powered b { color: var(--muted); font-weight: 700; }

.app-tabs {
  flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: auto; padding: 8px 8px 24px;
  background: rgba(13, 16, 10, 0.94); border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.app-tabs span { display: grid; justify-items: center; gap: 3px; color: var(--muted2); font-size: 9.5px; font-weight: 600; }
.app-tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs .is-active { color: var(--lime); }

/* Panel del dueño: dashboard */
.dash {
  padding: clamp(18px, 3vw, 28px); border-radius: 24px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.dash-title { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.dash-sub { margin-top: 6px; color: var(--muted); font-size: var(--step--1); }

.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.d-kpi {
  display: grid; gap: 4px; align-content: start; min-width: 0;
  padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(180deg, #161A16, #111413); border: 1px solid var(--border);
}
.d-kpi small { color: var(--muted2); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.d-kpi b { margin: 6px 0 2px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.d-kpi span { color: var(--muted); font-size: 12.5px; }
.d-kpi .warn { color: var(--amber); font-weight: 600; }
.d-kpi--hero { border-color: rgba(185, 237, 1, 0.45); background: linear-gradient(180deg, rgba(185, 237, 1, 0.12), rgba(185, 237, 1, 0.03) 55%, #11140F); box-shadow: 0 18px 44px rgba(185, 237, 1, 0.07); }
.d-kpi--hero small, .d-kpi--hero b { color: var(--lime); }
.d-meter { display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.d-meter i { display: block; height: 100%; border-radius: 99px; background: rgba(255, 255, 255, 0.4); }

.dash-courts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 12px; }
.dash-courts-head p { font-weight: 700; }
.dash-courts-head > span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.dash-courts-head .live-dot { width: 6px; height: 6px; box-shadow: none; }
.dash-courts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.d-court {
  display: grid; gap: 4px; align-content: start; min-width: 0;
  padding: 14px; border-radius: 14px; background: #131613; border: 1px solid var(--border);
}
.d-court small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.d-court b { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.d-court span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.d-court.is-free { border-color: rgba(185, 237, 1, 0.4); background: linear-gradient(180deg, rgba(185, 237, 1, 0.09), rgba(185, 237, 1, 0.02) 60%, #12150F); }
.d-court.is-free b { color: var(--lime); }
.d-court.is-pend { border-color: rgba(255, 190, 51, 0.35); }
.d-court.is-pend b { color: var(--amber); }

@media (max-width: 1060px) {
  .dash-courts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dash-kpis, .dash-courts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .d-kpi { padding: 14px; }
  .dash-head .chip { display: none; }
}

.owner-features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px;
  margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none;
}
.owner-features li { display: grid; gap: 6px; align-content: start; padding: 20px 0; border-top: 1px solid var(--border2); }
.owner-features b { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
.owner-features span { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 860px) {
  .owner-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .owner-features { grid-template-columns: 1fr; }
}

/* Insights: llenar horarios */
.insight {
  position: relative; overflow: hidden; width: min(100%, 440px);
  padding: 26px; border-radius: 22px;
  background: linear-gradient(180deg, #1A2013 0%, #11140E 65%);
  border: 1px solid rgba(185, 237, 1, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.insight::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(185, 237, 1, 0.16), transparent 70%);
}
.insight-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.insight-eyebrow i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--lime); color: #111; font-style: normal; font-size: 13px; }
.insight-amount { margin: 14px 0 8px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; }
.insight-amount em { font-style: normal; color: var(--lime); }
.insight-text { color: #B9C1B6; font-size: 14px; }
.opp { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.opp li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--hairline);
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.opp span {
  margin-left: auto; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--lime-soft); border: 1px solid rgba(185, 237, 1, 0.22);
  color: var(--lime); font-size: 12px; font-weight: 800;
}
.insight-btn {
  display: grid; place-items: center; min-height: 46px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink); font-weight: 700;
}

.link-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.link-row .text-link { margin-top: 0; }

/* Calculadora de turnos vacíos */
.calc-section {
  background: radial-gradient(900px 480px at 85% 10%, rgba(185, 237, 1, 0.07), transparent), var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.calc {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3.5vw, 40px); align-items: stretch;
}
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
}

.calc-inputs {
  display: grid; gap: 30px; align-content: center;
  padding: clamp(22px, 3.5vw, 38px); border-radius: 24px;
  background: var(--panel); border: 1px solid var(--border);
}
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.calc-label label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.calc-label output {
  flex: none; font-family: var(--font-display); font-style: italic; font-weight: 800; font-stretch: 108%;
  font-size: 1.6rem; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums;
}
.calc-scale { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted2); font-size: 11.5px; }
.calc-scale span:nth-child(2):not(:last-child) { text-align: center; }

/* Sliders con los colores de la marca */
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 28px; margin: 0;
  background: transparent; cursor: pointer;
}
.calc input[type="range"]:focus { outline: none; }
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--lime-dark), var(--lime)) 0 0 / var(--pct, 50%) 100% no-repeat, rgba(255, 255, 255, 0.1);
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--lime);
  box-shadow: 0 0 0 6px rgba(185, 237, 1, 0.15), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform .15s ease;
}
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px var(--white); }
.calc input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.calc input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--lime-dark), var(--lime)); }
.calc input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--lime);
  box-shadow: 0 0 0 6px rgba(185, 237, 1, 0.15);
}
.calc input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px var(--white); }

.calc-result {
  position: relative; overflow: hidden; isolation: isolate; container-type: inline-size;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3.5vw, 38px); border-radius: 24px;
  background: linear-gradient(180deg, #1A2013 0%, #10140C 70%);
  border: 1px solid rgba(185, 237, 1, 0.35);
  box-shadow: 0 30px 80px -40px rgba(185, 237, 1, 0.3);
}
.calc-result::before {
  content: ""; position: absolute; z-index: -1; top: -90px; right: -90px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(185, 237, 1, 0.18), transparent 70%);
}
.calc-kicker { color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.calc-amount {
  width: fit-content; max-width: 100%; margin: 10px 0 8px; padding-right: 0.1em;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-stretch: 108%;
  font-size: clamp(1.9rem, 11.5cqi, 3.8rem); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(180deg, var(--lime) 30%, var(--lime-dark) 135%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-sub { color: var(--muted); font-size: 14px; }
.calc-sub b { color: var(--white); font-variant-numeric: tabular-nums; }

.calc-bar {
  display: flex; height: 14px; margin: 26px 0 10px; overflow: hidden; border-radius: 999px;
  background: repeating-linear-gradient(45deg, rgba(255, 107, 107, 0.22) 0 6px, rgba(255, 107, 107, 0.07) 6px 12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.calc-bar-busy { background: rgba(255, 255, 255, 0.38); transition: width .5s var(--ease-out); }
.calc-bar-gain { background: var(--lime); box-shadow: 0 0 16px rgba(185, 237, 1, 0.6); transition: width .5s var(--ease-out); }
.calc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.calc-legend li { display: flex; align-items: center; gap: 7px; }
.calc-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-busy { background: rgba(255, 255, 255, 0.38); }
.lg-gain { background: var(--lime); }
.lg-empty { background: repeating-linear-gradient(45deg, rgba(255, 107, 107, 0.5) 0 3px, rgba(255, 107, 107, 0.15) 3px 6px); }

.calc-recover { margin-top: auto; padding: 20px 0 22px; border-top: 1px solid var(--hairline); }
.calc-recover .calc-label output { font-size: 1.3rem; }
.calc-gain { margin-top: 10px; color: var(--ink); font-size: 15px; }
.calc-gain b { font-family: var(--font-display); font-style: italic; font-weight: 800; font-stretch: 108%; font-size: 1.4rem; color: var(--lime); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 12px; color: var(--muted2); font-size: 11.5px; line-height: 1.5; }

/* CRM + WhatsApp */
.crm { display: grid; gap: 14px; width: min(100%, 440px); }
.crm-card { border-radius: 20px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); }
.crm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 8px; }
.crm-list { margin: 0; padding: 0 10px 10px; list-style: none; }
.crm-list li { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-top: 1px solid var(--hairline); }
.crm-list li:first-child { border-top: 0; }
.avatar {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #2A312A; border: 1px solid var(--border2); font-size: 12px; font-weight: 800;
}
.crm-who { display: grid; flex: 1; min-width: 0; }
.crm-who b { font-size: 13.5px; }
.crm-who small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.level { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border2); font-size: 11px; font-weight: 800; }

.wa-bubble {
  position: relative; justify-self: end; width: min(100%, 340px);
  display: grid; gap: 8px; padding: 14px 16px 10px;
  border-radius: 16px 4px 16px 16px;
  background: #0F1510; border: 1px solid rgba(185, 237, 1, 0.22);
  color: #D8DFD3; font-size: 13.5px; line-height: 1.55;
}
.wa-bubble b { color: var(--lime); }
.wa-link { color: #7FC8FF; text-decoration: underline; text-underline-offset: 3px; }
.wa-bubble small { justify-self: end; color: var(--muted2); font-size: 11px; }

/* Cuadro de torneo */
.bracket {
  width: min(100%, 520px); border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.bracket-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--hairline);
}
.bracket-kicker { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.3; }
.bracket-title { color: var(--muted); font-size: var(--step--1); }
.bracket-body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px; align-items: center; padding: 20px;
}
.round { display: grid; gap: 12px; }
.round-name { color: var(--muted2); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.match { position: relative; border-radius: var(--rs); background: var(--card); border: 1px solid var(--border); }
.team { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; color: var(--muted); font-size: 13px; }
.team + .team { border-top: 1px solid var(--hairline); }
.team span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team b { font-family: var(--font-display); font-weight: 700; word-spacing: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.team.is-winner { color: var(--ink); }
.team.is-winner b { color: var(--lime); }
.match--final { border-color: var(--lime-edge); box-shadow: 0 0 0 4px rgba(185, 237, 1, 0.06); }
.match--final .team { color: var(--ink); }
.match--final::before {
  content: ""; position: absolute; right: calc(100% + 1px); top: 50%;
  width: 32px; height: 1px; background: var(--border2);
}
.match-when { color: var(--muted); font-size: 12px; }

@media (max-width: 520px) {
  .bracket-body { grid-template-columns: 1fr; gap: 20px; }
  .match--final::before { display: none; }
}

/* Laboratorio de marca */
.lab {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(22px, 4vw, 48px); border-radius: 24px;
  background: radial-gradient(80% 120% at 100% 0%, rgba(185, 237, 1, 0.07), transparent 60%), var(--panel);
  border: 1px solid var(--border);
}
@media (max-width: 860px) {
  .lab { grid-template-columns: 1fr; }
}
.lab-controls { display: grid; gap: 26px; }

.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend {
  padding: 0; color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.field > legend { margin-bottom: 8px; }
.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--border2); border-radius: var(--rs);
  background: #0E110E; color: #fff;
  font: inherit; font-size: var(--step-0);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%239BA69C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.field select option { background: var(--panel); color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field ::placeholder { color: var(--muted2); }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sw); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.swatch:hover { transform: scale(1.06); }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--sw); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 7px; }
.swatch input, .segmented input, .check input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.segmented {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  width: fit-content; padding: 4px;
  border: 1px solid var(--border2); border-radius: 999px; background: #0E110E;
}
.segmented label { position: relative; cursor: pointer; }
.segmented span {
  display: block; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background-color .18s ease, color .18s ease;
}
.segmented input:checked + span { background: var(--lime); color: var(--lime-ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.lab-preview { display: grid; justify-items: center; }
.mock--lab { width: min(100%, 400px); }
.lab-hero {
  display: flex; align-items: center; gap: 14px; padding: 20px 18px 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--club) 22%, transparent), transparent 70%);
  border-bottom: 1px solid var(--hairline);
}
.club-logo--lg { width: 48px; height: 48px; border-radius: 13px; font-size: 17px; }
.lab-club { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.lab-sub { color: var(--muted); font-size: 12px; }
.mock--lab .p-label { padding: 14px 18px 8px; }
.lab-slots {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 0 18px; list-style: none;
}
.lab-slots li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--rs); background: var(--card); border: 1px solid var(--border);
}
.lab-slots span { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.lab-slots em { font-size: 11.5px; font-style: normal; font-weight: 700; color: var(--club); transition: color .3s ease; }
.lab-slots li.is-taken { opacity: 0.5; }
.lab-slots li.is-taken em { color: var(--muted); }
.lab-cta {
  display: grid; place-items: center; min-height: 44px; margin: 16px 18px 18px;
  border-radius: 999px; background: var(--club); color: var(--lime-ink); font-weight: 700;
  transition: background-color .3s ease;
}

.custom-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none;
}
.custom-list li { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 1px solid var(--border2); }
.custom-list b { font-weight: 700; }
.custom-list span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) {
  .custom-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .custom-list { grid-template-columns: 1fr; }
}

/* Cómo empezar */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none;
}
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 26px; border-top: 2px solid var(--border2); }
.step-n {
  width: fit-content; padding-right: 0.1em;
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-stretch: 112%;
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 0.95; letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { max-width: 34ch; color: var(--muted); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

/* Clubes fundadores */
.founders { position: relative; isolation: isolate; overflow: hidden; }
/* Isologo gigante de fondo: la P-paleta de la marca */
.founders::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: 50%;
  width: min(760px, 90vw); aspect-ratio: 663 / 512; transform: translateY(-50%);
  background: url("../assets/brand/isologo.webp") center / contain no-repeat;
  opacity: 0.1;
}
.founders::after {
  content: ""; position: absolute; z-index: -1; right: 5%; top: 50%;
  width: 520px; height: 520px; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 237, 1, 0.1), transparent 68%);
}
.founders-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.founders-title { max-width: 15ch; margin-bottom: 22px; font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem); line-height: 1; letter-spacing: -0.015em; }
.founders-title span { padding-right: 0.08em; }
.founders-copy .section-lede { margin-bottom: 30px; }
.perks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.perks li {
  display: grid; gap: 6px; padding: 22px 24px; border-radius: 18px;
  background: rgba(17, 20, 19, 0.82); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.perks b { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; }
.perks span { color: var(--muted); }
@media (max-width: 900px) {
  .founders-grid { grid-template-columns: 1fr; }
}

/* Preguntas frecuentes */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head h2 { margin-bottom: 18px; }
.faq-list { border-top: 1px solid var(--border2); }
.faq-list details { border-bottom: 1px solid var(--border2); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: var(--step-1); line-height: 1.3;
  transition: color .18s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v9M1.5 6h9' stroke='%23F2F5EE' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}
.faq-list summary:hover { color: var(--lime); }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--lime-soft); border-color: var(--lime-edge); }
.faq-list details p { max-width: 62ch; padding: 0 50px 24px 0; color: var(--muted); }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}

/* Pedido de demo */
.demo { background: radial-gradient(900px 500px at 10% 0%, rgba(185, 237, 1, 0.06), transparent), var(--bg); }
.demo-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.demo-copy h2 { max-width: 15ch; margin-bottom: 20px; }
.demo-points { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.demo-points li { position: relative; padding-left: 30px; }
.demo-points li::before { content: ""; position: absolute; left: 0; top: calc(0.8em - 8px); }
.demo-alt { color: var(--muted); line-height: 1.9; }
.demo-alt a { color: var(--lime); font-weight: 600; }

.demo-form {
  display: grid; gap: 18px; padding: clamp(22px, 3.5vw, 32px); border-radius: 22px;
  background: #141816; border: 1px solid var(--border2);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}
.field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.optional { color: var(--muted2); font-weight: 500; text-transform: none; letter-spacing: 0; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--border2); border-radius: 999px; background: rgba(255, 255, 255, 0.04);
  color: #C8CFC7; font-size: var(--step--1); font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.check span::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor;
  background: center / 10px no-repeat;
}
.check:hover span { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.check input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.check input:checked + span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2l2.2 2.2 4.6-4.7' fill='none' stroke='%23101304' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.field.has-error input:not([type="radio"]):not([type="checkbox"]),
.field.has-error select { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18); }
.form-status { min-height: 1.4em; color: var(--lime); font-size: var(--step--1); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red); }
.form-status a { color: inherit; font-weight: 700; }
.form-legal { color: var(--muted2); font-size: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-form button[disabled] { opacity: 0.7; cursor: progress; transform: none; }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer { padding: clamp(48px, 6vw, 72px) 0 28px; background: #040503; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { max-width: 34ch; margin-top: 16px; color: var(--muted); font-size: var(--step--1); }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 {
  margin-bottom: 6px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2);
}
.footer-col a { width: fit-content; color: #DFE5DD; font-size: var(--step--1); text-decoration: none; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hairline);
  color: var(--muted2); font-size: 12px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--lime); }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #25D366; color: #052210;
  font-size: var(--step--1); font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.55);
  transition: transform .25s ease, opacity .25s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float svg path:first-child { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wa-float .wa-handset { fill: currentColor; }
.wa-float.is-hidden { opacity: 0; transform: translateY(14px); pointer-events: none; }
@media (max-width: 520px) {
  .wa-float { width: 54px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
}

/* ---------- Página legal ---------- */

.legal-actions { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 520px) {
  .legal-actions .btn-ghost { display: none; }
}

.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.legal-hero { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.legal-hero h1 { font-size: var(--step-4); font-style: italic; font-weight: 800; font-stretch: 108%; }
.legal-updated { margin-top: 14px; color: var(--muted2); font-size: var(--step--1); }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
}

.legal-toc { position: sticky; top: calc(var(--header-h) + 28px); }
.legal-toc p { margin-bottom: 12px; color: var(--muted2); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--border2); }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: 10px; padding: 6px 0 6px 16px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted); font-size: var(--step--1); text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.legal-toc a::before { content: counter(toc); min-width: 1.4em; color: var(--muted2); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--white); border-left-color: var(--lime); }
@media (max-width: 900px) {
  .legal-toc { position: static; padding: 20px 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--border); }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
  .legal-toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}

.legal-body { max-width: 72ch; }
.legal-body > p, .legal-body section p { color: #C9D1C2; line-height: 1.75; }
.legal-body > p + p, .legal-body section p + p { margin-top: 14px; }
.legal-body section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--hairline); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.legal-body h2 span { color: var(--lime); }
.legal-body h3 { margin: 26px 0 8px; font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; letter-spacing: 0; color: var(--white); }
.legal-body ul { display: grid; gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.legal-body li { position: relative; padding-left: 22px; color: #C9D1C2; line-height: 1.65; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.legal-body a { color: var(--lime); font-weight: 600; }
.legal-body strong { color: var(--white); }

.legal-summary {
  margin-bottom: 36px; padding: 24px 26px; border-radius: 20px;
  background: linear-gradient(180deg, #1A2013 0%, #10140C 80%); border: 1px solid rgba(185, 237, 1, 0.35);
}
.legal-summary-title { margin-bottom: 4px; color: var(--lime) !important; font-size: 12px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.legal-summary ul { margin-bottom: 0; }

.legal-table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 16px; border: 1px solid var(--border); }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--step--1); }
.legal-table th { padding: 12px 16px; text-align: left; background: var(--panel); color: var(--muted2); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-table td { padding: 12px 16px; border-top: 1px solid var(--hairline); color: #C9D1C2; vertical-align: top; }
.legal-table td:first-child { color: var(--white); font-weight: 600; white-space: nowrap; }

.legal-authority {
  margin-top: 20px !important; padding: 16px 18px; border-radius: 14px;
  background: var(--panel); border-left: 3px solid var(--lime);
  font-size: var(--step--1); color: var(--muted) !important;
}

.footer-bottom--legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* Consentimiento en el formulario de demo */
.consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent input {
  flex: none; width: 18px; height: 18px; margin: 2px 0 0;
  accent-color: var(--lime); cursor: pointer;
}
.consent span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.consent a { color: var(--lime); font-weight: 600; }
.field.has-error .consent span { color: var(--red); }

/* ---------- Movimiento ---------- */

:root { --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Barra de progreso de lectura y encabezado al hacer scroll */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--lime-dark), var(--lime));
  box-shadow: 0 0 12px rgba(185, 237, 1, 0.5);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}
.site-header { transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { background: rgba(7, 9, 5, 0.95); box-shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.8); }

/* Portada: entrada en secuencia */
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes court-in { from { opacity: 0; transform: translate3d(0, 70px, 0); } }
.hero .eyebrow, .hero .ht-line, .hero .lede, .hero .hero-actions { animation: rise-in 0.9s var(--ease-out) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero .ht-line:nth-child(1) { animation-delay: 0.14s; }
.hero .ht-line:nth-child(2) { animation-delay: 0.28s; }
.hero .lede { animation-delay: 0.42s; }
.hero .hero-actions { animation-delay: 0.52s; }
.court-fig { animation: court-in 1.1s var(--ease-out) 0.55s both; }

/* Isologo sobre la red: brillo que respira */
@keyframes iso-glow {
  from { filter: drop-shadow(0 0 14px rgba(185, 237, 1, 0.22)); }
  to { filter: drop-shadow(0 0 30px rgba(185, 237, 1, 0.55)); }
}
.net-iso { animation: iso-glow 3.2s ease-in-out infinite alternate; }

/* iPhone flotando */
@keyframes float { 50% { transform: translate3d(0, -10px, 0); } }
.iphone { animation: float 6s ease-in-out infinite; }

/* La cancha arranca acostada en perspectiva y se endereza con el scroll */
@supports (animation-timeline: view()) {
  .court-fig { perspective: 1800px; }
  /* backdrop-filter dentro de un padre en 3D genera artefactos en Chrome */
  .court .mock { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 15, 13, 0.97); }
  .court {
    transform-origin: 50% 100%;
    animation: court-flatten linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }
  @keyframes court-flatten {
    from { transform: rotateX(26deg) scale(0.93); }
    to { transform: none; }
  }

  .founders { view-timeline: --founders block; }
  .founders::before {
    animation: iso-drift linear both;
    animation-timeline: --founders;
  }
  @keyframes iso-drift {
    from { transform: translateY(-38%) rotate(-7deg); }
    to { transform: translateY(-62%) rotate(5deg); }
  }
}

/* Aparición de secciones al hacer scroll (la activa main.js) */
/* El estado oculto se aplica sin transición; solo la entrada se anima */
.reveal-ready [data-reveal] { opacity: 0; transform: translate3d(0, 30px, 0); }
.reveal-ready [data-reveal="zoom"] { transform: translate3d(0, 44px, 0) scale(0.95); filter: blur(8px); }
.reveal-ready [data-reveal="fade"] { transform: none; }
.reveal-ready [data-reveal].is-in {
  opacity: 1; transform: none; filter: none;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Comparación: primero aparece la X y después el tilde */
.reveal-ready .versus tr[data-reveal] td::before { transform: scale(0); }
.reveal-ready .versus tr[data-reveal].is-in td::before {
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.3, 1.6, 0.5, 1);
  transition-delay: calc(var(--reveal-delay, 0ms) + 150ms);
}
.reveal-ready .versus tr[data-reveal].is-in td.vs-us::before { transition-delay: calc(var(--reveal-delay, 0ms) + 450ms); }

/* Hover con brillo de marca */
.door, .perks li, .d-court, .steps li { transition: border-color .3s ease, box-shadow .3s ease; }
.door:hover { border-color: var(--lime-edge); box-shadow: 0 30px 80px -40px rgba(185, 237, 1, 0.35); }
.perks li:hover, .d-court:hover { border-color: rgba(185, 237, 1, 0.4); }
.steps li:hover { border-top-color: var(--lime); }

@media print {
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Sin desplazamientos: las secciones solo se funden */
  @keyframes fade-in { from { opacity: 0; } }
  .hero .eyebrow, .hero .ht-line, .hero .lede, .hero .hero-actions, .court-fig {
    animation-name: fade-in !important;
    animation-duration: 0.7s !important;
  }
  .court, .founders::before, .iphone, .net-iso { animation: none !important; }
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal="zoom"] { transform: none !important; filter: none !important; }
  .reveal-ready [data-reveal].is-in {
    transition: opacity 0.6s ease !important;
    transition-delay: var(--reveal-delay, 0ms) !important;
  }
  .reveal-ready .versus tr[data-reveal] td::before { transform: none !important; }
}
