/* Landing pública. Tokens de la paleta «Playa» (brand/tokens.css), sin fuentes externas. */
:root {
  color-scheme: light;
  --bg: #fbf8f2;
  --panel: #ffffff;
  --ink: #10263c;
  --muted: #55636f;
  --line: #e3dccd;
  --accent: #1b9aaa;
  --accent-ink: #0f6572;
  --sun: #f2a33a;
  --on-accent: #06222a;
  --radius: 16px;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    18px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 12px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Cabecera */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 24px;
  font-size: 16px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.top .btn {
  margin-left: auto;
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .top .btn {
    margin-left: 0;
  }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.link {
  font-weight: 700;
  text-underline-offset: 4px;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Titulares */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-block: clamp(40px, 8vw, 96px);
}

.hero-text .lead {
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 32px 0 16px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 64px;
  }
}

/* Móvil con captura real */
.phone-fig {
  display: grid;
  gap: 12px;
  margin: 0;
  width: min(100%, 300px);
  margin-inline: auto;
}

.phone-fig figcaption {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.phone {
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 36px;
  background: var(--panel);
}

.phone img {
  width: 100%;
}

/* Problema */
.problem {
  border-block: 1px solid var(--line);
  padding-block: clamp(48px, 9vw, 112px);
}

.big {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.big em {
  font-style: normal;
  color: var(--accent-ink);
}

/* Pasos */
.steps {
  padding-block: clamp(56px, 9vw, 112px) clamp(24px, 5vw, 48px);
}

.step-list {
  display: grid;
  gap: 40px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.num {
  min-width: 1.1em;
  color: var(--accent-ink);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.step-list p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 28em;
}

@media (min-width: 900px) {
  .step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }
}

/* Entrenador y jugador */
.split {
  display: grid;
  gap: 40px;
  padding-block: clamp(48px, 8vw, 96px);
}

.split .plain {
  margin-top: 24px;
}

.h-gap {
  margin-top: 56px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 80px;
  }
}

.plain {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain li {
  position: relative;
  padding-left: 28px;
}

.plain li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 6px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg) translateY(-50%);
}

/* Comparativa */
.why {
  padding-block: clamp(48px, 8vw, 96px);
}

.why-lead {
  max-width: 38em;
}

.table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.table-wrap::-webkit-scrollbar {
  display: none;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 17px;
}

th,
td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody th {
  width: 22%;
  font-weight: 800;
}

td {
  color: var(--muted);
}

.us {
  color: var(--ink);
  font-weight: 700;
}

thead .us {
  color: var(--accent-ink);
}

/* En móvil la tabla se apila para que la columna de BeachVolley Stats no quede fuera de pantalla */
@media (max-width: 759px) {
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tr {
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
  }

  th,
  td {
    padding: 0;
    border: 0;
  }

  tbody th {
    width: auto;
    margin-bottom: 6px;
  }

  td::before {
    content: 'Papel y hoja de cálculo: ';
    font-weight: 400;
  }

  td.us {
    margin-top: 4px;
  }

  td.us::before {
    content: 'BeachVolley Stats: ';
    color: var(--accent-ink);
  }
}

.pills {
  margin-top: 32px;
}

/* Planes */
.plans {
  padding-block: clamp(48px, 8vw, 96px);
}

.plan-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.plan {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 32px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
}

.plan p {
  margin: 0;
}

.plan-soon {
  border-style: dashed;
  border-color: var(--muted);
  background: transparent;
}

.price {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

@media (min-width: 760px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Preguntas */
.faq {
  max-width: 820px;
  padding-block: clamp(32px, 6vw, 72px);
}

.faq h2 {
  margin-bottom: 24px;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--accent-ink);
  font-size: 1.75rem;
  font-weight: 400;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 36em;
}

/* Cierre */
.closing {
  padding-block: clamp(56px, 10vw, 128px);
  border-top: 1px solid var(--line);
}

.closing .actions {
  margin-top: 36px;
}

/* Pie */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  color: var(--muted);
  font-size: 15px;
}

.foot-in {
  display: grid;
  gap: 16px;
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a {
  min-height: 24px;
  text-underline-offset: 3px;
}

@media (min-width: 760px) {
  .foot-in {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Rediseño calmado: hero a pantalla completa, botón dorado y movimiento solo con CSS */
.hero {
  min-height: calc(100svh - 64px);
  align-content: center;
}

.btn {
  transition:
    filter 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
}

.hero .btn,
.closing .btn,
.plan:not(.plan-soon) .btn {
  background: var(--sun);
  border-color: var(--sun);
  color: #1a1205;
}

.link,
.nav a {
  transition: color 0.25s ease;
}

.plan {
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .plan:hover {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes aparecer {
      from {
        opacity: 0;
        transform: translateY(32px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    @keyframes flotar {
      from {
        transform: translateY(0);
      }

      to {
        transform: translateY(-48px);
      }
    }

    .problem .big,
    .steps h2,
    .step-list li,
    .split > *,
    .why > *,
    .plans h2,
    .plan,
    .faq h2,
    .closing .narrow {
      animation: aparecer linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }

    .hero .phone-fig {
      animation: flotar linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }
  }
}

/* Segunda pasada: tema claro fijo, más impacto */
h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.02;
}

.hl {
  color: var(--accent-ink);
}

.hero .phone {
  box-shadow: 0 24px 60px -24px rgba(16, 38, 60, 0.35);
}

.hero .phone-fig {
  width: min(100%, 330px);
}

/* Cifras */
.facts {
  border-block: 2px solid var(--ink);
  background: var(--panel);
}

.facts-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.facts-in li {
  display: grid;
  gap: 4px;
  padding: 28px 16px 28px 0;
}

.facts-in strong {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.facts-in span {
  color: var(--muted);
  font-size: 16px;
}

@media (min-width: 900px) {
  .facts-in {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Gestión del club */
.band {
  padding-block: clamp(56px, 9vw, 120px);
  background: var(--accent-ink);
  color: #ffffff;
}

.band .lead {
  max-width: 34em;
  color: #d9f0f3;
}

.band-cols {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}

.band-cols > div {
  padding-top: 20px;
  border-top: 2px solid #ffffff;
}

.band-cols ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: #eaf7f9;
}

@media (min-width: 900px) {
  .band-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.band a:focus-visible {
  outline-color: #ffffff;
}

/* Lista del plan Completo */
.plan-sub {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-sub-key {
  color: var(--accent-ink);
}

.nowrap {
  white-space: nowrap;
}

.plan-soon {
  border-color: var(--ink);
}

.band-kicker {
  color: #ffffff;
}
