/* Colores de ShellTheme, Palette y SettingsScreen de la app. */
@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-top: #1b2440;
  --bg-middle: #16305c;
  --bg-bottom: #0c1225;
  --panel: #141b33;
  --edge: rgba(220, 230, 255, 0.22);
  --row: rgba(220, 230, 255, 0.06);
  --text: #c9d6f5;
  --muted: #8fa6e0;
  --title: #ffffff;
  --candy: #5b8cff;
  --candy-shade: #2f5ed1;
  --candy-ink: #24479e;
  --gold: #ffc93c;
  --cyan: #00bbff;
  --orange: #ff9736;
  --green: #30bf60;
  --display: "Lilita One", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg-middle) 420px, var(--bg-bottom) 1100px) no-repeat, var(--bg-bottom);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 64px;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3 {
  color: var(--title);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0.4em 0 0.5em; }
h2 { font-size: 1.6rem; margin: 2em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 0.3em; color: var(--gold); }

/* Cabecera y pie */

.site-header {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e8f0ff;
  font: 1.5rem var(--display);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand:hover { color: #fff; }

.brand-balls { position: relative; width: 30px; height: 28px; }
.brand-balls i {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: inset -2px -3px 4px rgba(0, 0, 0, 0.35), inset 2px 2px 3px rgba(255, 255, 255, 0.45);
}
.brand-balls .c { left: 0; top: 0; background: var(--cyan); }
.brand-balls .o { right: 0; top: 0; background: var(--orange); }
.brand-balls .g { left: 7.5px; bottom: 0; background: var(--green); }

.site-footer {
  border-top: 1px solid var(--row);
  padding: 28px 20px 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 10px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0; }

/* Marketing: home, contacto y reto */

.hero { padding-top: 24px; }
.eyebrow {
  margin: 0;
  color: var(--muted);
  font: 0.95rem var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero > p:not(.eyebrow):not(.cta) { font-size: 1.1rem; }

.cta { display: inline-block; margin: 12px 12px 0 0; }
.button {
  display: inline-block;
  padding: 12px 22px 11px;
  border-radius: 16px;
  background: var(--candy);
  box-shadow: 0 5px 0 var(--candy-shade);
  color: #fff;
  font: 1.1rem var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 2px 0 var(--candy-ink);
  transition: transform 80ms, box-shadow 80ms;
}
.button:hover { color: #fff; filter: brightness(1.08); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--candy-shade); }

.marketing-body section {
  margin-top: 40px;
  padding: 4px 24px 20px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 20px;
}
.marketing-body section h2 { margin-top: 0.8em; }

.marketing-body ol, .marketing-body ul { padding-left: 1.3em; }
.marketing-body li { margin: 0.3em 0; }
.marketing-body li::marker { color: var(--gold); font-family: var(--display); }

/* Portada: el duelo primero. Sólo con body.page-home, para no tocar contacto ni el reto. */

.page-home {
  background:
    radial-gradient(rgba(220, 230, 255, 0.11) 1.4px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(180deg, var(--bg-top) 0, var(--bg-middle) 520px, var(--bg-bottom) 1300px) no-repeat,
    var(--bg-bottom);
}
.page-home .site-header, .page-home main { max-width: 1200px; }
.page-home main { padding-bottom: 96px; }

.page-home .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0 72px;
}
.page-home .hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.04; margin: 0.35em 0 0.45em; }
.page-home .hero > .hero-copy > p:not(.eyebrow):not(.cta) { font-size: 1.25rem; max-width: 34em; margin: 0 0 28px; }
.page-home .cta { margin: 0 14px 14px 0; }
.page-home .button { font-size: 1.25rem; padding: 15px 26px 13px; border-radius: 18px; box-shadow: 0 6px 0 var(--candy-shade); }

.page-home .phone {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  border: 8px solid #060a16;
  background: var(--bg-bottom);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--edge);
}

.hero-art { position: relative; height: 620px; }
.hero-art .phone { position: absolute; width: 268px; top: 24px; }
.hero-art .phone-back { left: 50%; transform: translateX(-8%) rotate(6deg); opacity: 0.9; }
.hero-art .phone-front { right: 50%; transform: translateX(8%) rotate(-5deg); top: 0; }
.vs {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) rotate(-4deg);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  box-shadow: 0 6px 0 #c48a00, 0 18px 36px rgba(0, 0, 0, 0.45);
  color: #3a2600;
  font: 2.5rem var(--display);
  z-index: 1;
}

.page-home #how-it-plays { background: none; border: 0; padding: 0; margin-top: 24px; }
.page-home #how-it-plays h2 { text-align: center; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 40px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feature {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 28px;
  overflow: hidden;
}
.feature-text { padding: 28px 28px 8px; }
.feature-text h3 { margin: 0 0 10px; font-size: 1.45rem; }
.feature-text p { margin: 0; }
/* El móvil asoma por abajo de la tarjeta: se ve la pantalla, no el aparato entero. */
.feature-screen { margin-top: auto; height: 340px; padding: 28px 0 0; overflow: hidden; display: flex; justify-content: center; }
.feature-screen .phone { width: 236px; flex: none; border-bottom-width: 0; border-radius: 30px 30px 0 0; }

.page-home .closing {
  margin-top: 72px;
  padding: 48px 24px 36px;
  text-align: center;
  background: var(--candy);
  border: 0;
  border-radius: 32px;
  box-shadow: 0 10px 0 var(--candy-shade);
}
.page-home .closing .button { background: #1a2342; box-shadow: 0 6px 0 #070b18; text-shadow: none; }

@media (max-width: 960px) {
  .page-home .hero { grid-template-columns: minmax(0, 1fr); padding: 32px 0 48px; gap: 8px; }
  .hero-art { height: 520px; }
  .hero-art .phone { width: 228px; }
  .features { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
}

@media (max-width: 520px) {
  .hero-art { height: 430px; }
  .hero-art .phone { width: 176px; border-width: 6px; border-radius: 26px; }
  .vs { width: 72px; height: 72px; font-size: 2rem; }
  .feature-text { padding: 22px 22px 4px; }
  .feature-screen { height: 300px; }
  .page-home .closing { padding: 32px 18px 20px; }
}

/* Legales */

.legal-body { max-width: 800px; }
.legal-body h2 { font-size: 1.35rem; padding-top: 0.6em; border-top: 1px solid var(--row); }
.legal-body h3 { font-size: 1.08rem; }
.legal-body p, .legal-body li { color: #dbe4fb; }
.legal-body strong { color: #fff; }
.legal-body hr { border: 0; border-top: 1px solid var(--edge); margin: 32px 0; }
.legal-body code { font-size: 0.9em; color: var(--text); }

.legal-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.5;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
}
.legal-body th, .legal-body td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--row); }
.legal-body th { color: #fff; font-weight: 600; }
.legal-body tr:last-child td { border-bottom: 0; }

.legal-body nav[aria-label="Contents"] {
  margin: 24px 0;
  padding: 4px 24px 12px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
}
.legal-body nav h2 { border: 0; margin-top: 0.6em; }
/* Los títulos ya llevan su número. */
.legal-body nav ol { list-style: none; padding-left: 0; }
.legal-body nav li { margin: 0.2em 0; }
.legal-body nav a { color: var(--text); text-decoration: none; }
.legal-body nav a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  main { padding: 4px 16px 48px; }
  .site-header { padding: 16px 16px 0; }
  .marketing-body section { padding: 2px 18px 16px; }
  .cta { display: block; margin-right: 0; }
  .button { display: block; text-align: center; }
  /* Columnas legibles; la tabla se desplaza en horizontal. */
  .legal-body th, .legal-body td { min-width: 9.5rem; }
}
