/* Simple Training — landing and legal pages. Tokens mirror lib/theme/
   (AppColors.dark, AppGradients.brand / onboarding, Space Grotesk + Figtree). */
:root {
  --bg: #140d0b;
  --bg-deep: #0d0806;
  --surface: #1e1310;
  --surface-muted: #2a211c;
  --border: #33221c;
  --border-strong: #452c22;
  --accent: #ff5a2e;
  --accent-text: #ff8c4a;
  --text: #fbf3ea;
  --text-secondary: #e8d9cc;
  --text-muted: #b7a093;
  --text-faint: #7c6659;
  --cream: #fbf3ea;
  --navy: #0b2350;
  --navy-soft: #5b6b85;
  --facil: #3dbe6e;
  --media: #ff9f1c;
  --alta: #e5483b;
  --brand: linear-gradient(135deg, #c8102e 0%, #ff3b1f 50%, #ff8a00 100%);
  --onboarding: linear-gradient(180deg, #34170c 0%, #1a0d08 40%, #0d0806 75%);
  --radius-card: 20px;
  --radius-pill: 999px;
  --max: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-text);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.contenedor {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------- Header ---------- */
.encabezado {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 8, 6, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.encabezado .contenedor {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.logo-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  place-items: center;
  flex: none;
}

.logo-tile img {
  width: 78%;
}

.nav {
  display: none;
  gap: 24px;
  margin-left: 16px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.encabezado .boton {
  margin-left: auto;
}

/* ---------- Buttons ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.boton:hover {
  filter: brightness(1.08);
}

.boton:active {
  transform: scale(0.98);
}

.boton-degradado {
  background: var(--brand);
  color: #fff;
}

.boton-contorno {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

@media (max-width: 420px) {
  .encabezado .boton {
    padding: 8px 14px;
    font-size: 13px;
  }
  .marca span {
    display: none;
  }
}

/* Store buttons: placeholders until the official badges are added. */
.tiendas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tienda {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #000;
  border: 1px solid #4a4a4a;
  color: #fff;
  text-decoration: none;
}

.tienda svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.tienda small {
  display: block;
  font-size: 11px;
  line-height: 1.1;
  opacity: 0.8;
}

.tienda strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  font-family: "Space Grotesk", sans-serif;
}

/* ---------- Image placeholders ---------- */
.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border: 2px dashed var(--border-strong);
  background: repeating-linear-gradient(
      45deg,
      rgba(255, 90, 46, 0.04) 0 12px,
      transparent 12px 24px
    ),
    var(--surface);
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.4;
}

.placeholder strong {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.telefono {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 8px solid #2a211c;
  box-shadow: 0 30px 80px rgba(200, 16, 46, 0.25), 0 0 0 1px var(--border);
  overflow: hidden;
}

.telefono.placeholder {
  border-style: solid;
  border-width: 8px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--onboarding);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.22), transparent 65%);
  pointer-events: none;
}

.hero .contenedor {
  display: grid;
  gap: 48px;
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .hero {
    padding: 88px 0 104px;
  }
  .hero .contenedor {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 90, 46, 0.12);
  border: 1px solid rgba(255, 90, 46, 0.3);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(44px, 9vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.degradado-texto {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .bajada {
  margin: 20px 0 32px;
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero .nota {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
}

.hero .telefono {
  justify-self: center;
}

/* ---------- Sections ---------- */
.seccion {
  padding: 72px 0;
}

.seccion-alterna {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.titulo-seccion {
  max-width: 640px;
  margin-bottom: 40px;
}

.titulo-seccion .antetitulo {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.titulo-seccion h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.titulo-seccion p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 18px;
}

/* Role cards (white like the app's role picker). */
.roles {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .roles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rol {
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.rol img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  margin-bottom: 6px;
}

.rol h3 {
  font-size: 22px;
}

.rol p {
  color: var(--navy-soft);
  font-size: 15px;
}

.rol .pronto {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #fff1e9;
  color: #c8401a;
  font-size: 12px;
  font-weight: 700;
}

/* Feature blocks: text + phone. */
.bloque {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .bloque {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .bloque.invertido > :first-child {
    order: 2;
  }
}

.capturas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.capturas .telefono {
  max-width: 230px;
}

.capturas .telefono:nth-child(2) {
  margin-top: 48px;
}

@media (max-width: 520px) {
  .capturas .telefono:nth-child(2) {
    display: none;
  }
}

.lista-funciones {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.funcion {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.icono {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 90, 46, 0.12);
  color: var(--accent-text);
}

.icono svg {
  width: 22px;
  height: 22px;
}

.funcion h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.funcion p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Difficulty strip, like the feedback sheet / Calendario. */
.dificultades {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dificultades span {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #1a0904;
}

/* Numbers strip. */
.cifras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .cifras {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cifra {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.cifra strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  line-height: 1.1;
}

.cifra span {
  color: var(--text-muted);
  font-size: 14px;
}

/* Steps. */
.pasos {
  display: grid;
  gap: 16px;
  counter-reset: paso;
}

@media (min-width: 760px) {
  .pasos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.paso {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

.paso::before {
  counter-increment: paso;
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

.paso h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.paso p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Final CTA. */
.cta {
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.25), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
}

.cta h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.cta p {
  color: var(--text-muted);
  margin: 14px auto 28px;
  max-width: 520px;
  font-size: 18px;
}

.cta .tiendas {
  justify-content: center;
}

.cta .boton-contorno {
  margin-top: 20px;
}

/* ---------- Footer ---------- */
.pie {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--text-faint);
  font-size: 14px;
}

.pie .contenedor {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .pie .contenedor {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.pie nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.pie nav a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 48px 0 72px;
}

.legal .contenedor {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(32px, 6vw, 44px);
  margin-bottom: 8px;
}

.legal .fecha {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 21px;
  margin: 32px 0 8px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal p + p {
  margin-top: 10px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 8px 0 0;
}

.legal li + li {
  margin-top: 6px;
}

.aviso-borrador {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 15px;
}

.aviso-borrador::before {
  content: "⚠";
  color: var(--accent-text);
  font-size: 18px;
  line-height: 1.3;
}

.pendiente {
  display: block;
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  color: var(--text-faint);
  font-size: 14px;
}
