/* Simple Training — landing and «Eliminar cuenta». Tokens mirror lib/theme/
   (AppColors.dark, AppColors.boton #EE7A52 + textoBoton, AppGradients.brand
   / onboarding, Space Grotesk + Figtree). */
:root {
  --bg: #140d0b;
  --bg-deep: #0d0806;
  --surface: #1e1310;
  --surface-muted: #2a211c;
  --border: #33221c;
  --border-strong: #452c22;
  --accent: #ee7a52;
  --accent-text: #ff8c4a;
  --accent-soft: rgba(238, 122, 82, 0.13);
  --ink: #1a0904;
  --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, #e2674a 0%, #ee7a52 50%, #f2a066 100%);
  --onboarding: linear-gradient(180deg, #34170c 0%, #1a0d08 40%, #0d0806 75%);
  --radius-card: 20px;
  --radius-pill: 999px;
  --max: 1120px;
  --gutter: 16px;
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

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;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-text);
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(238, 122, 82, 0.4);
}

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: 20;
  background: rgba(13, 8, 6, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.encabezado.desplazado {
  background: rgba(13, 8, 6, 0.9);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.encabezado > .contenedor {
  display: flex;
  align-items: center;
  gap: 10px;
  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;
  margin-right: auto;
}

.logo-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  place-items: center;
  flex: none;
}

.logo-tile img {
  width: 78%;
}

.logo-tile.grande {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 20px;
  box-shadow: 0 16px 40px rgba(238, 122, 82, 0.3);
}

.nav {
  display: none;
  gap: 4px;
  margin-right: 8px;
}

.nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a.actual {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.35s var(--suave);
}

.nav a.actual::after {
  transform: scaleX(1);
}

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

/* Language switch: the other language's flag and code. */
.idioma {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  flex: none;
}

.idioma:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.idioma svg {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  display: block;
}

/* Phone menu. */
.menu-boton {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-boton span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--suave), opacity 0.2s ease;
}

.menu-boton[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-boton[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-boton[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-movil {
  display: grid;
  gap: 2px;
  padding: 0 var(--gutter);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--suave), padding 0.4s var(--suave);
}

.menu-movil.abierto {
  max-height: 360px;
  padding-top: 8px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border);
}

.menu-movil a {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}

.menu-movil a:last-child {
  border-bottom: 0;
  color: var(--accent-text);
  font-size: 17px;
}

@media (min-width: 900px) {
  .menu-boton,
  .menu-movil {
    display: none;
  }
}

/* ---------- 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.2s var(--suave), filter 0.2s ease, box-shadow 0.2s ease;
}

.boton:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

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

.boton-degradado {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(238, 122, 82, 0.25);
}

.boton-degradado:hover {
  box-shadow: 0 12px 32px rgba(238, 122, 82, 0.4);
}

.boton-contorno {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
  white-space: normal;
  text-align: center;
}

.boton-entrar .corto {
  display: none;
}

@media (max-width: 560px) {
  .boton-entrar {
    padding: 8px 16px;
  }
  .boton-entrar .largo {
    display: none;
  }
  .boton-entrar .corto {
    display: inline;
  }
  .idioma span {
    display: none;
  }
}

@media (max-width: 380px) {
  .marca > span:last-child {
    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;
  transition: transform 0.2s var(--suave), border-color 0.2s ease;
}

.tienda:hover {
  transform: translateY(-2px);
  border-color: #777;
}

.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;
}

@media (max-width: 420px) {
  .tiendas .tienda {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
  }
  .tienda strong {
    font-size: 16px;
  }
}

/* ---------- Phone frame ---------- */
.telefono {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1080 / 2220;
  border-radius: 36px;
  border: 8px solid #2a211c;
  box-shadow: 0 30px 80px rgba(238, 122, 82, 0.18), 0 0 0 1px var(--border);
  overflow: hidden;
  background: #120b08;
}

/* Screenshots and the demo video fill the phone frame; they're cut below
   the status bar (1080 × 2220). */
.telefono > img,
.telefono > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #120b08;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--onboarding);
  padding: 40px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -200px;
  top: -160px;
  background: radial-gradient(circle, rgba(238, 122, 82, 0.22), transparent 65%);
  pointer-events: none;
}

.hero > .contenedor {
  display: grid;
  gap: 40px;
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 96px;
  }
  .hero > .contenedor {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(238, 122, 82, 0.3);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.etiqueta .punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--facil);
  box-shadow: 0 0 0 0 rgba(61, 190, 110, 0.6);
  animation: latido 2s ease-out infinite;
}

@keyframes latido {
  70% { box-shadow: 0 0 0 8px rgba(61, 190, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 190, 110, 0); }
}

.hero h1 {
  font-size: clamp(46px, 11vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.degradado-texto {
  background: var(--brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .degradado-texto {
  animation: brillo 6s ease-in-out infinite alternate;
}

@keyframes brillo {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero .bajada {
  margin: 20px 0 32px;
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
}

.hero .nota {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
}

/* Phone over the turning plate, with floating cards around it. */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.hero-visual .telefono {
  position: relative;
  z-index: 1;
  max-width: 260px;
}

.disco {
  position: absolute;
  width: 112%;
  max-width: 470px;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  animation: girar 60s linear infinite;
  pointer-events: none;
}

@keyframes girar {
  to { rotate: 360deg; }
}

.disco-borde {
  fill: #1c110d;
  stroke: rgba(238, 122, 82, 0.28);
  stroke-width: 2;
}

.disco-interior {
  fill: none;
  stroke: rgba(238, 122, 82, 0.16);
  stroke-width: 1.5;
  stroke-dasharray: 3 7;
}

.disco-centro {
  fill: #0d0806;
  stroke: rgba(238, 122, 82, 0.25);
  stroke-width: 2;
}

.disco-texto {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 3px;
  fill: rgba(242, 160, 102, 0.55);
}

.flotante {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(30, 19, 16, 0.86);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  animation: flotar 6s ease-in-out infinite;
}

.flotante small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.flotante strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

.flotante-icono {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}

.flotante-icono svg {
  width: 18px;
  height: 18px;
}

.flotante-icono.verde { background: rgba(61, 190, 110, 0.18); color: var(--facil); }
.flotante-icono.naranja { background: var(--accent-soft); color: var(--accent-text); }
.flotante-icono.oro { background: rgba(232, 185, 49, 0.18); color: #e8b931; }

.flotante-1 { left: -4%; top: 18%; }
.flotante-2 { right: -6%; top: 46%; animation-delay: -2s; }
.flotante-3 { left: 0; bottom: 10%; animation-delay: -4s; }

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 480px) {
  .flotante {
    padding: 8px 10px 8px 8px;
    gap: 8px;
  }
  .flotante strong { font-size: 13px; }
  .flotante-icono { width: 28px; height: 28px; }
  .flotante-1 { left: 0; top: 12%; }
  .flotante-2 { right: 0; }
  .flotante-3 { left: 2%; bottom: 6%; }
}

.hero-bajar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  animation: rebote 2.4s ease-in-out infinite;
}

.hero-bajar svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 900px) {
  .hero-bajar {
    display: grid;
  }
}

@keyframes rebote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Sections ---------- */
.seccion {
  padding: 72px 0;
}

@media (min-width: 900px) {
  .seccion {
    padding: 104px 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.centrado {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.titulo-seccion .antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.titulo-seccion .antetitulo::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.titulo-seccion h2 {
  font-size: clamp(30px, 5vw, 46px);
}

.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 {
  position: relative;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--suave), box-shadow 0.35s var(--suave);
}

.rol::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--suave);
}

.rol:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(238, 122, 82, 0.22);
}

.rol:hover::before {
  transform: scaleX(1);
}

.rol-imagen {
  width: 132px;
  height: 132px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff1e9 0%, #fff 70%);
}

.rol-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--suave);
}

.rol:hover .rol-imagen img {
  transform: scale(1.08) rotate(-3deg);
}

.rol h3 {
  font-size: 22px;
}

.rol p {
  color: var(--navy-soft);
  font-size: 15px;
}

.rol-mas {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c8521f;
  font-weight: 700;
  font-size: 14px;
}

.rol-mas svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--suave);
}

.rol:hover .rol-mas svg {
  transform: translateX(4px);
}

@media (max-width: 759px) {
  /* On phones the cards go side by side with the picture: shorter scroll. */
  .rol {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 16px;
    row-gap: 4px;
    padding: 18px;
    align-items: center;
  }
  .rol-imagen {
    grid-row: span 3;
    width: 96px;
    height: 96px;
    margin: 0;
  }
  .rol h3 { font-size: 20px; }
  .rol p { font-size: 14px; }
  .rol-mas { padding-top: 2px; }
}

/* Feature blocks: text + phones. */
.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;
  /* Each phone keeps its own height (stretching cut the screenshots). */
  align-items: flex-start;
}

.capturas .telefono {
  max-width: 230px;
  transition: transform 0.5s var(--suave);
}

.capturas .telefono:nth-child(2) {
  margin-top: 48px;
}

@media (hover: hover) {
  .capturas .telefono:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 520px) {
  .capturas {
    gap: 10px;
  }
  .capturas .telefono {
    border-width: 6px;
    border-radius: 26px;
  }
  .capturas .telefono:nth-child(2) {
    margin-top: 32px;
  }
}

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

.funcion {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s var(--suave), background 0.3s ease;
}

.funcion:hover {
  border-color: var(--border-strong);
  background: #22150f;
}

.icono {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  transition: transform 0.4s var(--suave);
}

.funcion:hover .icono,
.funcion-gym:hover .icono {
  transform: rotate(-8deg) scale(1.08);
}

.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: 10px;
  flex-wrap: wrap;
}

.dificultades span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 6px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.dificultades svg {
  width: 15px;
  height: 15px;
}

.dificultades .facil { background: var(--facil); }
.dificultades .medio { background: var(--media); }
.dificultades .dificil { background: var(--alta); }

/* ---------- Catalog: endless strips of the app's picture cards ---------- */
.seccion-catalogo {
  overflow: hidden;
}

.seccion-catalogo .titulo-seccion h2 .degradado-texto {
  font-variant-numeric: tabular-nums;
}

.carrusel {
  --duracion: 50s;
  overflow: hidden;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.carrusel + .carrusel {
  margin-top: 12px;
}

.carrusel-pista {
  display: flex;
  width: max-content;
}

.carrusel-grupo {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.animar .carrusel-pista {
  animation: deslizar var(--duracion) linear infinite;
}

.animar .carrusel-inverso .carrusel-pista {
  animation-direction: reverse;
  animation-duration: 40s;
}

.carrusel:hover .carrusel-pista {
  animation-play-state: paused;
}

@keyframes deslizar {
  to { transform: translateX(-50%); }
}

/* Without motion the strip scrolls by hand. */
html:not(.animar) .carrusel {
  overflow-x: auto;
  mask-image: none;
  -webkit-mask-image: none;
}

html:not(.animar) .carrusel-grupo[aria-hidden] {
  display: none;
}

/* Like TarjetaImagen in the app: picture, bold name. */
.tarjeta-imagen {
  margin: 0;
  width: 132px;
  flex: none;
  padding: 10px 10px 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.25s ease, transform 0.3s var(--suave);
}

.tarjeta-imagen:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.tarjeta-imagen img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 70%);
}

.tarjeta-imagen figcaption {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
}

@media (min-width: 720px) {
  .tarjeta-imagen {
    width: 156px;
  }
}

/* Coach specialties. */
.especialidades {
  margin-top: 56px;
  text-align: center;
}

.especialidades > p {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.especialidades-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.especialidades-lista span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}

.especialidades-lista img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  object-fit: contain;
}

/* 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: clamp(26px, 6vw, 34px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.cifra span {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Logros ---------- */
/* The ring (box-shadow) takes 5px on each side outside the box: the gap
   leaves room for it. */
.medallas {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  padding: 5px;
}

/* MedallaLogro: the level's color on the disc and its ring. */
.medalla {
  --nivel: var(--accent);
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.45), transparent 55%), var(--nivel);
  box-shadow: 0 0 0 3px var(--bg-deep), 0 0 0 5px var(--nivel), 0 10px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 18px;
  transition: transform 0.4s var(--suave);
}

.medalla:hover {
  transform: translateY(-4px) rotate(-6deg);
}

.medalla svg {
  width: 28px;
  height: 28px;
}

.medalla small {
  position: absolute;
  bottom: -24px;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* «???» until earned; then the drawing. Turns over on its own once seen. */
.medalla-secreta {
  --nivel: #9b5cf6;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  perspective: 400px;
  background: #241733;
}

.medalla-secreta .cara {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.7s var(--suave);
}

.medalla-secreta .frente {
  color: #c9a8ff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}

.medalla-secreta .reverso {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 55%), var(--nivel);
}

.medalla-secreta .dibujo {
  width: 70%;
  height: 70%;
  background: #1a0d2e;
  -webkit-mask: var(--dibujo) center / contain no-repeat;
  mask: var(--dibujo) center / contain no-repeat;
}

.medalla-secreta.revelada .frente {
  transform: rotateY(-180deg);
}

.medalla-secreta.revelada .reverso {
  transform: rotateY(0deg);
}

/* The share picture: volume and «es como cargar…». */
.tarjeta-logro {
  justify-self: center;
  width: min(100%, 380px);
  padding: 28px 24px 22px;
  border-radius: 28px;
  background: radial-gradient(circle at 80% 0%, rgba(238, 122, 82, 0.28), transparent 55%),
    linear-gradient(180deg, #24150f, #160d0a);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
  rotate: 2deg;
  transition: rotate 0.5s var(--suave);
}

.tarjeta-logro:hover {
  rotate: 0deg;
}

.tarjeta-logro-kicker {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tarjeta-logro-cifra {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 12vw, 56px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.equivalencias {
  position: relative;
  height: 230px;
  margin: 8px 0 12px;
}

.equivalencia-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.6s var(--suave);
}

.equivalencia-item.activa {
  opacity: 1;
  transform: none;
}

.equivalencia-item img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.equivalencia-item span {
  font-size: 17px;
  color: var(--text-secondary);
}

.equivalencia-item strong {
  color: var(--accent-text);
}

.tarjeta-logro-pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.tarjeta-logro-pie strong {
  color: var(--text);
}

.tarjeta-logro-pie .sube {
  color: var(--facil);
  font-weight: 700;
}

/* ---------- Steps ---------- */
.pasos {
  display: grid;
  gap: 16px;
  counter-reset: paso;
  position: relative;
}

@media (min-width: 760px) {
  .pasos {
    grid-template-columns: repeat(3, 1fr);
  }
  /* A line joining the three numbers. */
  .pasos::before {
    content: "";
    position: absolute;
    top: 42px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-strong) 50%, transparent 50%) 0 0 / 12px 2px;
  }
}

.paso {
  position: relative;
  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: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--surface), 0 8px 20px rgba(238, 122, 82, 0.35);
}

.paso h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.paso p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Gyms ---------- */
.funciones-gym {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .funciones-gym {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .funciones-gym {
    grid-template-columns: repeat(4, 1fr);
  }
}

.funcion-gym {
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s ease;
}

.funcion-gym:hover {
  border-color: var(--border-strong);
}

.funcion-gym .icono {
  margin-bottom: 6px;
}

.funcion-gym h3 {
  font-size: 18px;
}

.funcion-gym p {
  color: var(--text-muted);
  font-size: 15px;
}

/* The gym class icons (the app's SVGs, in the accent). */
.clases {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.clases span {
  width: 30px;
  height: 30px;
  background: var(--accent-text);
  opacity: 0.85;
  -webkit-mask: var(--dibujo) center / contain no-repeat;
  mask: var(--dibujo) center / contain no-repeat;
  transition: transform 0.3s var(--suave), opacity 0.2s ease;
}

.clases span:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Gym prices (sold by the sales team; never shown in the app). */
.precios {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

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

.precio {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.precio-base {
  border-color: rgba(238, 122, 82, 0.45);
  background: radial-gradient(circle at 100% 0%, rgba(238, 122, 82, 0.16), transparent 55%), var(--surface);
}

.precio-insignia {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.precio .monto {
  font-family: "Space Grotesk", sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
}

.precio .monto small {
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
}

.precio p {
  color: var(--text-muted);
}

.incluye {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 8px;
}

.incluye li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 15px;
}

.incluye li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--facil)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0904' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.precio table {
  width: 100%;
  border-collapse: collapse;
}

.precio td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.precio tr:last-child td {
  border-bottom: 0;
}

.precio td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.precio .descuento {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(61, 190, 110, 0.15);
  color: var(--facil);
  font-size: 12px;
}

.precio .nota-precio {
  font-size: 14px;
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(238, 122, 82, 0.28), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
}

/* Faint plate rings behind it. */
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(238, 122, 82, 0.12);
  pointer-events: none;
}

.cta::before {
  width: 520px;
  height: 520px;
  left: -260px;
  bottom: -320px;
}

.cta::after {
  width: 380px;
  height: 380px;
  right: -190px;
  top: -220px;
  border-style: dashed;
}

.cta > * {
  position: relative;
}

.cta h2 {
  font-size: clamp(32px, 6vw, 52px);
}

.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-marca {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pie-marca .logo-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.pie nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
}

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

/* ---------- Entrance animations ----------
   Only with JS (html.animar, set by landing.js) and never with reduced
   motion, so without them everything is simply there. */
.animar .entrada {
  opacity: 0;
  transform: translateY(18px);
  animation: entrar 0.9s var(--suave) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

@keyframes entrar {
  to { opacity: 1; transform: none; }
}

/* Hidden until seen; then an animation that only fills backwards, so once
   it's over the hover lifts work as usual. */
.animar .revelar:not(.visible) {
  opacity: 0;
}

.animar .revelar.visible {
  animation: revelar 0.9s var(--suave) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.animar .revelar.desde-izquierda.visible {
  animation-name: revelar-izquierda;
}

.animar .revelar.desde-derecha.visible {
  animation-name: revelar-derecha;
}

@keyframes revelar {
  from { opacity: 0; transform: translateY(28px); }
}

@keyframes revelar-izquierda {
  from { opacity: 0; transform: translateX(-36px) rotate(-3deg); }
}

@keyframes revelar-derecha {
  from { opacity: 0; transform: translateX(36px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 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;
}
