/* Web de CLUBOS (clubos.futbol): el estilo de la app (ADR-048, ADR-050). Tipografía del sistema,
   la misma de la app: SF Pro en Apple y Roboto en Android. */
:root {
  --night: #02050d;
  --navy: #0f1626;
  --navy-2: #1c253a;
  --line: #283149;
  --text: #ffffff;
  --soft: rgba(255, 255, 255, 0.84);
  --muted: #a7b0c4;
  --coral: #ff4d5e;
  --red: #d50f2b;
  --glass: rgba(14, 20, 38, 0.72);
  --glass-line: rgba(255, 255, 255, 0.22);
  --radius: 22px;
  --gutter: clamp(20px, 5vw, 64px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Roboto, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Red de seguridad: nada puede ensanchar la página en horizontal (clip no rompe position: sticky). */
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--coral); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }

/* Titular de marca: la cursiva muy gruesa de «Tu club. Tu equipo. Tu liga.». */
.hero-type { font-style: italic; font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; margin: 0; }

/* Cabecera */
.top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); }
.top.solid { position: sticky; top: 0; background: rgba(2, 5, 13, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: 0.32em; font-size: 15px; }
.brand img { width: 36px; height: 36px; }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.top nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 16px; }
.top nav a:hover { color: #fff; }

/* Portada */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: center; overflow: hidden; isolation: isolate;
  padding: 120px var(--gutter) 72px; background: url("img/fondo-horizontal.jpg") 64% 42% / cover no-repeat var(--night); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(2, 5, 13, 0.94) 0%, rgba(2, 5, 13, 0.78) 38%, rgba(2, 5, 13, 0.2) 72%, rgba(2, 5, 13, 0.55) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(2, 5, 13, 0) 28%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1240px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(54px, 8.4vw, 124px); text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.hero h1 span { display: block; }
.hero h1 .liga { color: var(--coral); }
.hero .lede { margin: 28px 0 0; max-width: 34ch; font-size: clamp(19px, 1.7vw, 23px); color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #e3152f; }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn svg { width: 20px; height: 20px; flex: none; }
.small-print { margin-top: 16px; font-size: 15px; color: var(--muted); }

.phone { justify-self: center; width: min(340px, 78vw); padding: 12px; border-radius: 56px; background: #05070d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16), 0 50px 140px rgba(213, 15, 43, 0.45), 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: rotate(4deg); }
.phone .screen { position: relative; border-radius: 46px; overflow: hidden; aspect-ratio: 9 / 13; background: var(--night); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .screen::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(0deg, #05070d, rgba(5, 7, 13, 0)); }

/* Secciones */
.section { padding: clamp(72px, 10vw, 128px) var(--gutter); }
.wrap { max-width: 1240px; margin: 0 auto; }
.section h2 { font-size: clamp(38px, 5.4vw, 72px); max-width: 16ch; }
.intro { margin: 18px 0 0; max-width: 52ch; color: var(--soft); font-size: 20px; }

/* Tira con las pantallas de la app */
.strip { margin-top: 48px; display: grid; grid-auto-flow: column; grid-auto-columns: min(270px, 70vw); gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px var(--gutter) 28px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
  scrollbar-color: var(--line) transparent; }
/* Cada figura contiene a su texto oculto (figcaption en position: absolute): si no, se posiciona
   respecto a la página, se sale del recorte de la tira y la ensancha hacia la derecha. */
.strip figure { margin: 0; scroll-snap-align: start; position: relative; }
.strip img { width: 100%; border-radius: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.strip figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Para cada perfil del club */
.roles { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.role { border-top: 3px solid var(--coral); padding-top: 22px; }
.role h3 { font-size: clamp(30px, 3.2vw, 42px); }
.role p { margin: 14px 0 0; color: var(--soft); }

/* Privacidad */
.trust { background: linear-gradient(180deg, var(--night), var(--navy) 60%, var(--night)); }
.trust .statement { font-size: clamp(28px, 3.6vw, 48px); max-width: 24ch; }
.trust .statement em { font-style: italic; color: var(--coral); }
.trust p.more { margin: 22px 0 0; color: var(--soft); max-width: 60ch; }

/* Android */
.steps { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 22px; max-width: 760px; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.steps li::before { content: counter(paso); font-style: italic; font-weight: 900; font-size: 40px; line-height: 1; color: var(--coral); }
.steps strong { color: #fff; }
.steps p { margin: 0; color: var(--soft); }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 40px var(--gutter) 56px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

/* Páginas de texto (legal, borrar cuenta) */
.doc { padding: clamp(48px, 8vw, 96px) var(--gutter) 96px; }
.doc article { max-width: 72ch; margin: 0 auto; }
.doc h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 10px; }
.doc .version { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 26px; font-weight: 800; margin: 44px 0 10px; line-height: 1.2; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: #fff; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.table { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 16px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 640px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--soft); }
.doc th { background: var(--navy); color: #fff; font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }

/* Contacto */
.contact { padding: clamp(48px, 8vw, 96px) var(--gutter) 96px; background: url("img/fondo-vertical.jpg") center 30% / cover no-repeat var(--night); position: relative; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(2, 5, 13, 0.82); }
.contact .wrap { max-width: 720px; }
.contact h1 { font-size: clamp(44px, 7vw, 84px); }
.contact .intro { margin-bottom: 32px; }
.panel { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 32px; padding: clamp(22px, 4vw, 36px);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: 16px; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; font: 400 17px/1.4 var(--font); color: #fff; background: var(--navy);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); outline: none; }
.field .hint { font-size: 14px; color: var(--muted); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 4px 0 22px; color: var(--soft); font-size: 16px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; font-size: 16px; display: none; }
.status.ok { display: block; background: #0f3d33; color: #9ff0cf; }
.status.error { display: block; background: #3b1418; color: #ffc9cf; }
.alt { margin-top: 26px; color: var(--muted); font-size: 16px; }

@media (max-width: 900px) {
  .hero { background-image: url("img/fondo-vertical.jpg"); background-position: 55% 30%; padding-top: 104px; }
  .hero::before { background: linear-gradient(180deg, rgba(2, 5, 13, 0.55) 0%, rgba(2, 5, 13, 0.82) 55%, var(--night) 100%); }
  .hero-grid { grid-template-columns: 1fr; }
  .phone { display: none; }
  .roles { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
}

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