/* Sellito Card · página de venta
   Colores y fuentes de la Guía de marca (19 nov 2026). */

:root {
  --azul: #2B3FD6;
  --azul-oscuro: #1E2EA6;
  --rosa: #FF8FB1;          /* solo formas o texto grande sobre azul; nunca texto sobre papel */
  --papel: #F3F0E8;
  --blanco: #FBFAF6;
  --tinta: #14161C;
  --grafito: #5E6170;
  --linea: #DCD7CB;

  --f-titulo: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --f-texto: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-acento: 'Instrument Serif', Georgia, serif;
  --f-mono: 'DM Mono', ui-monospace, Consolas, monospace;

  --radio: 20px;
  --ancho: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--azul); }
a:hover { color: var(--azul-oscuro); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }

/* Lo que pinta el navegador también lleva la marca */
::selection { background: var(--rosa); color: var(--tinta); }
input, textarea, select { caret-color: var(--azul); accent-color: var(--azul); }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.contenedor--angosto { max-width: 820px; }

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--tinta); color: var(--papel); padding: 10px 16px; border-radius: 999px;
}
.saltar:focus { top: 12px; color: var(--papel); }

/* ---------- Tipografía ---------- */

.etiqueta {
  display: inline-block;
  font-family: var(--f-texto);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: var(--tinta);
  background: var(--rosa);          /* rosa como forma, texto en tinta (8.5:1) */
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.etiqueta--sola { margin: 0 10px 0 0; font-size: 13px; padding: 5px 12px; }
.etiqueta--papel { display: block; background: none; padding: 0; border-radius: 0; color: var(--papel); opacity: .9; margin-bottom: 6px; font-size: 15px; }
.etiqueta--gris { display: block; background: none; padding: 0; border-radius: 0; color: #A7AAB6; font-size: 14px; }

.titulo-xl, .titulo-l, .titulo-m {
  font-family: var(--f-titulo);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.titulo-xl { font-size: clamp(46px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.03em; }
.titulo-l  { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; max-width: 22ch; }
.titulo-m  { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
.titulo-xl--papel { color: var(--papel); }
.titulo-xl em {
  font-family: var(--f-acento);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rosa);
}

.azul { color: var(--azul); }

.entrada { font-size: 19px; line-height: 1.5; color: #3A3D48; max-width: 540px; }
.entrada--papel { color: var(--papel); opacity: 0.92; margin: 0 auto; }

.nota { margin-top: 28px; font-size: 16px; color: var(--grafito); }

/* ---------- Botones ---------- */

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-texto); font-size: 17px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton--azul { background: var(--azul); color: var(--papel); }
.boton--azul:hover { background: var(--azul-oscuro); color: var(--papel); }
.boton--tinta { background: var(--tinta); color: var(--papel); }
.boton--tinta:hover { background: #2A2D36; color: var(--papel); }
.boton--papel { background: var(--papel); color: var(--tinta); }
.boton--papel:hover { background: #fff; color: var(--tinta); }
.boton--contorno { border-color: var(--papel); color: var(--papel); }
.boton--contorno:hover { background: rgba(243,240,232,.12); color: var(--papel); }
.boton--chico { min-height: 44px; padding: 0 20px; font-size: 15px; }
.boton--ancho { width: 100%; }

.enlace-flecha { font-size: 16px; font-weight: 600; color: var(--tinta); text-underline-offset: 4px; }
.enlace-flecha:hover { color: var(--azul); }

.botones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.botones--centro { justify-content: center; }

.solo-chico { display: none; }

/* ---------- 1. Menú ---------- */

.menu {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243,240,232,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.menu.con-sombra { border-bottom-color: var(--linea); }
.menu__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.menu__logo img { width: 200px; height: auto; }  /* 200 px = mínimo de la guía para que se lea CARD */
.menu__enlaces { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.menu__enlaces a { color: var(--tinta); text-decoration: none; }
.menu__enlaces a:hover { color: var(--azul); }

/* ---------- 2. Inicio ---------- */

.inicio { padding: 40px 0 88px; overflow: hidden; }
.inicio__rejilla { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.inicio__texto { display: flex; flex-direction: column; gap: 24px; }
.inicio__texto .etiqueta { margin: 0; align-self: flex-start; }

.confianza { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--grafito); }
.confianza li { display: flex; align-items: center; gap: 8px; }
.confianza li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }

.inicio__visual { position: relative; display: flex; justify-content: center; padding: 8px 0 24px; }

/* Teléfono dibujado (iPhone o Android), sin fotos ni logos.
   Marco negro delgado, sin botones ni barra de hora.
   --tel-alto controla el tamaño; todo lo de adentro se escala con el ancho de la pantalla. */
.tel {
  --tel-alto: 580px;
  position: relative; flex: none;
  height: var(--tel-alto); aspect-ratio: 9 / 19.5;
  padding: calc(var(--tel-alto) * .012);
  border-radius: calc(var(--tel-alto) * .085);
  background: #16181C;
  box-shadow: inset 0 0 0 1px #3B3E46, 0 1px 2px rgba(20,22,28,.06), 0 14px 30px -18px rgba(20,22,28,.3);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  color: #14161C;
}
.tel--android { aspect-ratio: 9 / 20; border-radius: calc(var(--tel-alto) * .06); }

.tel__pantalla {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--tel-alto) * .074);
  background: #F2F2F6;
  container-type: inline-size;
}
.tel--android .tel__pantalla { border-radius: calc(var(--tel-alto) * .049); background: #F1F3F4; }
.tel__pantalla > * { font-size: clamp(9px, 5cqw, 14px); }

.tel__isla, .tel__camara { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); background: #0B0C0E; }
.tel__isla { top: 3.3cqw; width: 31cqw; height: 9.2cqw; border-radius: 999px; }
.tel__camara { top: 3.4cqw; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; box-shadow: 0 0 0 1.2cqw #1A1C21; }
.tel--iphone .tel__camara, .tel--android .tel__isla { display: none; }

/* La tarjeta flota en medio de la pantalla (si es muy alta, empieza arriba) */
.tel__pase {
  position: absolute; left: 0; right: 0; top: 2.8em; bottom: .8em;
  padding: 0 .8em;
  display: flex; flex-direction: column; justify-content: safe center;
  transition: top .3s ease;
}
.tel--con-aviso .tel__pase { top: 8.6em; }
.tel__pase--reverso { justify-content: flex-start; top: 2.8em; }
.tel--con-aviso .tel__pase--reverso { top: 2.8em; }

/* Aviso del sistema (notificaciones) */
.tel__aviso { position: absolute; z-index: 2; left: .6em; right: .6em; top: 3.2em; }
.tel--android .tel__aviso { top: 2.4em; }
.tel__aviso-caja {
  display: flex; align-items: flex-start; gap: .7em;
  padding: .75em .85em; border-radius: 1.5em;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 .25em 1em rgba(20,22,28,.12);
  animation: aviso-entra .35s ease;
}
.tel--android .tel__aviso-caja { border-radius: 1.2em; background: #fff; }
.tel__aviso-icono {
  flex: none; width: 2.9em; height: 2.9em; border-radius: .7em;
  display: grid; place-items: center; object-fit: cover;
  font-size: .8em; font-weight: 600;
}
.tel--android .tel__aviso-icono { border-radius: 50%; }
.tel__aviso-texto { min-width: 0; flex: 1; }
.tel__aviso-texto p { font-size: .86em; line-height: 1.3; overflow-wrap: anywhere; }
.tel__aviso-texto p:first-child { display: flex; justify-content: space-between; gap: .5em; }
.tel__aviso-texto p:first-child span { color: #6B6E78; font-size: .92em; }
.tel__aviso-texto p:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(-.6em); } }
@media (prefers-reduced-motion: reduce) {
  .tel__aviso-caja { animation: none; }
  .tel__pase { transition: none; }
}

/* Tarjeta: partes comunes */
.pase {
  flex: none; display: flex; flex-direction: column; overflow: hidden; line-height: 1.2;
  transition: background-color .25s ease;
  box-shadow: 0 1.4em 2.6em -.9em rgba(20,22,28,.3), 0 .2em .7em rgba(20,22,28,.08);   /* sombra suave y difusa */
}
.pase__marca { display: flex; align-items: center; gap: .5em; min-width: 0; font-weight: 600; }
.pase__nombre { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.pase__logo {
  flex: none; width: 3em; height: 3em; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: .75em; font-weight: 600;
}
.pase__logo--img { object-fit: cover; background: #fff; }
/* Logo horizontal: completo, nunca cortado. Caja de ~160 × 50 en la escala de Apple
   (la tarjeta mide 320 de ancho): mitad del ancho de la tarjeta y 50/320 de alto. */
.pase__logo-horizontal {
  display: block; max-width: 100%;
  width: calc((100cqw - 1.6em) * .5); height: calc((100cqw - 1.6em) * .156);
  object-fit: contain; object-position: left center;
}

/* Barrita tipo "skeleton" mientras no escriben nombre o premio */
.barrita {
  display: inline-block; vertical-align: middle; max-width: 100%;
  height: .8em; border-radius: 999px;
  background: currentColor; opacity: .28;
}
.pase__logo--vacio, .reverso__logo--vacio { background: currentColor; opacity: .28; }
.reverso__logo--vacio { background: #C9C9D1; opacity: 1; }
.tel__aviso-icono--vacio { background: #DADBE1; }
.pase__campo { display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.pase__campo span { font-size: .66em; font-weight: 600; letter-spacing: .03em; }
.pase__campo strong { font-weight: 400; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.pase__campo--der { flex: none; text-align: right; align-items: flex-end; }
.pase__tira { line-height: 0; }
.pase__tira svg { width: 100%; height: auto; }
.pase__codigo { align-self: center; background: #fff; line-height: 0; }
.pase__codigo--qr svg { width: 6.4em; height: 6.4em; }
.pase__codigo--barras { padding: .6em .8em !important; }
.pase__codigo--barras svg { width: 12.5em; height: auto; }

/* Apple Wallet */
.pase--iphone { border-radius: .8em; padding-top: .75em; }
.pase--iphone .pase__cabeza { display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: 0 .85em .65em; min-height: 2.9em; }
.pase--iphone .pase__marca { flex: 1; }
.pase__nombre--solo { font-size: 1.1em; }
.pase--iphone .pase__cabeza .pase__campo strong { font-size: 1.4em; line-height: 1; }
.pase--iphone .pase__campos { display: flex; gap: .8em; padding: .7em .85em .9em; }
.pase--iphone .pase__campos--vacio { padding: 0 0 .9em; }
.pase--iphone .pase__codigo { padding: .5em; border-radius: .45em; margin-bottom: 1.1em; }

/* Google Wallet */
.pase--android { border-radius: 1.4em; padding-top: 1em; }
.pase--android .pase__marca { padding: 0 1em; font-weight: 500; }
.pase__titulo { margin: .65em 1em .15em; font-size: 1.45em; line-height: 1.15; }
.pase--android .pase__campos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6em 1.4em; padding: .55em 1em .9em; }
.pase--android .pase__campo span { font-weight: 400; letter-spacing: 0; font-size: .72em; opacity: .85; }
.pase--android .pase__campo strong { font-size: .95em; }
.pase--android .pase__codigo { padding: .65em; border-radius: .9em; margin-bottom: 1em; }

/* Parte de atrás (Ver reverso) */
.reverso { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .7em; }
.reverso__cabeza { display: flex; align-items: center; gap: .6em; padding: 0 .2em; }
.reverso__logo {
  flex: none; width: 3em; height: 3em; border-radius: .7em; overflow: hidden;
  display: grid; place-items: center; font-size: .75em; font-weight: 600; object-fit: cover; background: #fff;
}
.reverso--android .reverso__logo { border-radius: 50%; }
.reverso__cabeza p { font-weight: 600; line-height: 1.2; }
.reverso__cabeza p span { display: block; font-weight: 400; font-size: .85em; color: #6B6E78; }
.reverso__lista {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: .8em;
  scrollbar-width: thin;
}
.reverso--android .reverso__lista { border-radius: 1.2em; }
.reverso__fila { display: flex; justify-content: space-between; gap: 1em; padding: .7em .9em; border-top: 1px solid #E6E6EB; font-size: .9em; }
.reverso__fila:first-child { border-top: 0; }
.reverso__fila span { flex: none; color: #14161C; }
.reverso__fila p { color: #6B6E78; text-align: right; overflow-wrap: anywhere; }
.reverso__fila--largo { flex-direction: column; gap: .25em; }
.reverso__fila--largo p { text-align: left; white-space: pre-line; }

/* Control segmentado iPhone / Android */
.segmentado {
  display: inline-flex; gap: 2px; padding: 4px;
  background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 999px;
}
.segmentado button {
  min-height: 36px; min-width: 96px; padding: 0 18px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 15px var(--f-texto); color: var(--grafito);
  transition: background-color .15s ease, color .15s ease;
}
.segmentado button:hover { color: var(--tinta); }
.segmentado button[aria-checked="true"] { background: var(--tinta); color: var(--papel); }

.celular-marco { position: relative; display: flex; justify-content: center; width: 100%; }
.sticker { position: absolute; width: 132px; height: auto; right: 2%; bottom: -10px; transform: rotate(12deg); }

/* Selector de giros bajo el teléfono */
.inicio__visual { flex-direction: column; align-items: center; gap: 14px; }
.inicio .tel { --tel-alto: clamp(420px, calc(100vh - 360px), 560px); }
.giros-selector { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 560px; }
.giros-selector button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--linea); background: var(--blanco); color: var(--tinta);
  font: 600 15px var(--f-texto); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.giros-selector button:hover { border-color: var(--azul); }
.giros-selector button[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--papel); }

/* El teléfono sube con el scroll (sitio.js pone --sube de 0 a 1).
   Solo se activa si hay JavaScript y la persona no pidió reducir movimiento. */
/* El teléfono ya se ve completo al cargar; con el scroll solo se acomoda
   (sube un poquito y se endereza). Nunca aparece desde invisible. */
.anima-celular .inicio .tel {
  transform: translateY(calc((1 - var(--sube, 0)) * 2%)) rotate(calc((1 - var(--sube, 0)) * 4deg));
  will-change: transform;
}
/* Compu: la portada se queda fija mientras el teléfono sube; luego la página sigue.
   --recorrido lo pone sitio.js (cuántos px de scroll usa el teléfono). */
.fija-inicio .inicio { padding: 0; overflow: clip; height: calc(100vh - 76px + var(--recorrido, 380px)); }
.fija-inicio .inicio__fijo {
  position: sticky; top: 76px;
  height: calc(100vh - 76px);
  display: flex; align-items: center;
  overflow: clip;
}
.fija-inicio .inicio__rejilla { padding-bottom: 24px; }

.anima-celular .sticker {
  transform: rotate(calc(12deg - (1 - var(--sello, 0)) * 10deg)) scale(calc(.85 + var(--sello, 0) * .15));
  will-change: transform;
}

/* ---------- 3. Fundadores ---------- */

.fundadores { background: var(--azul); color: var(--papel); padding: 44px 0; }
.fundadores__fila { display: flex; align-items: center; gap: 32px; }
.fundadores__sello { width: 88px; height: auto; flex: none; transform: rotate(-8deg); }
.fundadores__texto { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.fundadores__texto p { font-size: 17px; max-width: 620px; opacity: .92; }

/* ---------- Secciones ---------- */

.seccion { padding: 104px 0; }
.seccion--blanca { background: var(--blanco); }
.seccion .titulo-l { margin-bottom: 48px; }

/* ---------- 4. Para quién ---------- */

.giros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.giro {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 200px;
}
.giro__nombre { font-weight: 600; font-size: 15px; color: var(--azul); }
.giro__premio { font-family: var(--f-titulo); font-weight: 800; font-size: 23px; line-height: 1.12; letter-spacing: -0.01em; }
.giro--abierto { grid-column: 1 / -1; min-height: 0; background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.giro--abierto .giro__nombre { color: var(--rosa); }
.giro--abierto .giro__premio { font-family: var(--f-texto); font-weight: 400; font-size: 18px; line-height: 1.45; letter-spacing: 0; }

/* fila de sellos: el último es el premio */
.puntos {
  margin-top: auto; height: 18px; flex: none;
  background: radial-gradient(circle at 9px 9px, var(--azul) 8px, transparent 8.5px) 0 0 / 24px 18px repeat-x;
  width: calc(var(--total) * 24px - 6px);
  max-width: 100%;
}

/* ---------- 5. Lo que trae ---------- */

.trae { display: flex; flex-direction: column; gap: 96px; }
.trae__bloque { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.trae__bloque--invertido .trae__visual { order: 2; }
.trae__visual {
  display: flex; justify-content: center; align-items: center;
  min-height: 440px; padding: 48px 32px;
  background: var(--papel); border-radius: 28px;
}
.trae__texto { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.trae__texto p { font-size: 19px; color: #3A3D48; }

/* Tarjetas de ejemplo fuera del teléfono: todo se escala con el ancho */
.muestra, .pila {
  container-type: inline-size;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  color: #14161C; line-height: 1.2;
}
.muestra > .pase { font-size: 5cqw; }
.muestra .pase__codigo, .pila .pase__codigo { display: none; }

/* 1. Con tu marca: tarjetas apiladas como en Wallet (de las de atrás solo se ve la cabeza) */
.pila { width: min(100%, 340px); display: flex; flex-direction: column; }
.pila__carta { font-size: 5cqw; position: relative; }
.pila__carta > .pase { font-size: 1em; }
.pila__carta:not(:last-child) { height: 4.9em; margin-bottom: -.6em; overflow: hidden; border-radius: .8em .8em 0 0; }

/* 2. Sellar es un toque: pantalla del escáner del cajero (ilustración) */
.trae .tel { --tel-alto: 520px; }
.escaner { display: flex; flex-direction: column; gap: .9em; font-family: var(--f-texto); }
.escaner__arriba { display: flex; justify-content: space-between; gap: .5em; padding: 0 .2em; font-size: .85em; color: var(--grafito); }
.escaner__arriba strong { color: var(--tinta); font-weight: 600; }
.escaner__cliente { display: flex; flex-direction: column; gap: .6em; padding: 1em; background: #fff; border-radius: 1.1em; }
.escaner__estado { display: flex; align-items: center; gap: .45em; font-size: .85em; font-weight: 600; color: var(--azul); }
.escaner__estado svg { width: 1.3em; height: 1.3em; flex: none; }
.escaner__cliente strong { font-family: var(--f-titulo); font-weight: 800; font-size: 1.7em; line-height: 1; letter-spacing: -.02em; }
.escaner__tira { border-radius: .6em; overflow: hidden; line-height: 0; }
.escaner__tira svg { width: 100%; height: auto; }
.escaner__boton {
  display: grid; place-items: center; min-height: 3.4em; border-radius: 999px;
  background: var(--azul); color: var(--papel); font-size: 1.15em; font-weight: 600;
}
.escaner__deshacer { display: flex; align-items: center; justify-content: center; gap: .4em; font-size: .9em; font-weight: 600; color: var(--azul); }
.escaner__deshacer svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 3. Se actualiza sola: antes y después */
.antes-despues { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; }
.antes-despues figure { margin: 0; flex: 1; max-width: 250px; display: flex; flex-direction: column; gap: 14px; }
.antes-despues figcaption { font-size: 15px; color: var(--grafito); text-align: center; }
.antes-despues__flecha { flex: none; width: 32px; height: 32px; margin-bottom: 28px; fill: none; stroke: var(--azul); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Lo demás, en lista sencilla */
.trae__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 96px; }
.trae__lista li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--linea); }
.trae__lista h3 { font-size: 19px; font-weight: 600; }
.trae__lista p { color: #3A3D48; font-size: 17px; }
.proximamente { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--linea); color: var(--grafito); font-size: 16px; }

/* ---------- 6. Así funciona ---------- */

.pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: paso; }
.pasos li { display: flex; flex-direction: column; gap: 10px; }
.pasos h3 { font-family: var(--f-titulo); font-weight: 800; font-size: 28px; letter-spacing: -0.01em; }
.pasos p { color: #3A3D48; font-size: 17px; max-width: 32ch; }
.pasos__num {
  width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 8px;
  font-family: var(--f-titulo); font-weight: 800; font-size: 32px; color: var(--papel);
  background: var(--azul);
  clip-path: polygon(50% 0%, 61% 8%, 75% 6.7%, 80% 20%, 93.3% 25%, 92% 39%, 100% 50%, 92% 61%, 93.3% 75%, 80% 80%, 75% 93.3%, 61% 92%, 50% 100%, 39% 92%, 25% 93.3%, 20% 80%, 6.7% 75%, 8% 61%, 0% 50%, 8% 39%, 6.7% 25%, 20% 20%, 25% 6.7%, 39% 8%);
}
.pasos li:nth-child(2) .pasos__num { transform: rotate(-8deg); }
.pasos li:nth-child(3) .pasos__num { transform: rotate(6deg); }

/* ---------- 7. Haz la cuenta ---------- */

.calculadora { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.calculadora__datos {
  background: var(--papel); border-radius: var(--radio); padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 15px; font-weight: 600; }
.campo input {
  width: 100%; min-height: 52px; padding: 0 16px;
  font: inherit; font-size: 20px; color: var(--tinta);
  background: #fff; border: 1.5px solid var(--linea); border-radius: 12px;
  -moz-appearance: textfield;
}
.campo input::-webkit-outer-spin-button, .campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.campo input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(43,63,214,.2); }
.campo__con-prefijo { position: relative; }
.campo__con-prefijo span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--grafito); pointer-events: none; }
.campo__con-prefijo input { padding-left: 34px; }
.campo__con-prefijo--fin span { left: auto; right: 16px; }
.campo__con-prefijo--fin input { padding-left: 16px; padding-right: 40px; }

.campo__fila { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.campo__valor { flex: none; font-family: var(--f-titulo); font-weight: 800; font-size: 28px; color: var(--azul); }

/* Barra deslizadora: la parte llena va en azul (--lleno lo pone sitio.js) */
.deslizador {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
  --lleno: 65%;
}
.deslizador::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(to right, var(--azul) var(--lleno), #fff var(--lleno));
  border: 1.5px solid var(--linea);
}
.deslizador::-moz-range-track { height: 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--linea); }
.deslizador::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--azul); }
.deslizador::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -11px; border-radius: 50%;
  background: var(--azul); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(20,22,28,.25);
}
.deslizador::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--azul); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(20,22,28,.25);
}
.campo .deslizador { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.campo .deslizador:focus, .campo .deslizador:focus-visible { box-shadow: none; outline: none; }
.deslizador:focus { outline: none; }
.deslizador:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(43,63,214,.3); }
.deslizador:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(43,63,214,.3); }
.deslizador__marcas { display: flex; justify-content: space-between; margin-top: -4px; font-size: 13px; color: var(--grafito); }

.opcional { border-top: 1px solid var(--linea); padding-top: 16px; }
.opcional summary { cursor: pointer; font-weight: 600; color: var(--azul); min-height: 44px; display: flex; align-items: center; }
.opcional[open] summary { margin-bottom: 12px; }
.opcional .campo + .campo { margin-top: 16px; }

.calculadora__resultado {
  background: var(--azul); color: var(--papel); border-radius: var(--radio);
  padding: 32px; display: flex; flex-direction: column; justify-content: center;
}
.cifra { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(52px, 7vw, 80px); line-height: 1; letter-spacing: -0.03em; }
.cifra--chica { font-size: 32px; letter-spacing: -0.01em; }
.calculadora__premios { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(243,240,232,.3); }
.aviso { margin-top: 28px; font-size: 15px; opacity: .85; }

/* ---------- 8. Precios ---------- */

.planes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 24px;
  padding: 36px; display: flex; flex-direction: column; gap: 10px;
}
.plan--destacado { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.plan__nombre { font-family: var(--f-titulo); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; }
.plan__para { color: var(--grafito); }
.plan--destacado .plan__para { color: #C6C8D1; }
.plan__precio { margin-top: 18px; align-self: flex-start; font-size: 14px; color: var(--tinta); background: var(--rosa); padding: 7px 14px; border-radius: 999px; }

.plan__detalle { font-size: 16px; }
.plan__lista { margin: 18px 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__lista li { display: flex; gap: 12px; font-size: 17px; }
.plan__lista li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23F3F0E8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.plan--destacado .plan__lista li::before { background-color: var(--rosa); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2314161C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- 9. Preguntas ---------- */

.preguntas { border-top: 1px solid var(--linea); }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 72px; padding: 16px 0;
  font-size: 19px; font-weight: 600;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--papel); color: var(--azul); font-size: 22px; font-weight: 400;
  transition: transform .2s ease;
}
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { padding: 0 56px 24px 0; color: #3A3D48; }

/* ---------- 10. Cierre ---------- */

.cierre { background: var(--azul); padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.cierre__caja { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.cierre .titulo-xl { max-width: 15ch; margin: 0 auto; }

/* ---------- 11. Pie ---------- */

.pie { background: var(--tinta); color: var(--papel); padding: 64px 0 32px; font-size: 16px; }
.pie a { color: var(--papel); text-underline-offset: 3px; }
.pie a:hover { color: var(--rosa); }
.pie__rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pie__rejilla img { width: 200px; height: auto; }
.pie__lema { margin-top: 14px; color: #C6C8D1; }
.pie__lista { display: flex; flex-direction: column; gap: 10px; }
.pie__pronto { color: #A7AAB6; font-size: 15px; }
.pie__pronto span { white-space: nowrap; }
.pie__final { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2A2D36; color: #A7AAB6; font-size: 14px; }

/* ---------- Celular y tablet ---------- */

@media (max-width: 960px) {
  .menu__enlaces { display: none; }
  .inicio__rejilla { grid-template-columns: 1fr; }
  .inicio__visual { margin-top: 16px; }
  .giros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trae { gap: 72px; }
  .trae__bloque { grid-template-columns: 1fr; gap: 28px; }
  .trae__bloque--invertido .trae__visual { order: 0; }
  .trae__texto { max-width: 620px; }
  .calculadora { grid-template-columns: 1fr; }
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  .pie__rejilla > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .contenedor { padding: 0 20px; }
  .menu__fila { min-height: 64px; }
  .menu__fila { gap: 12px; }
  .boton--chico { padding: 0 16px; }
  .solo-grande { display: none; }
  .solo-chico { display: inline; }
  .inicio { padding: 24px 0 64px; }
  .botones { flex-direction: column; align-items: stretch; }
  .botones .boton { width: 100%; }
  .enlace-flecha { text-align: center; padding: 8px 0; }
  .inicio .tel { --tel-alto: 540px; }
  .sticker { width: 96px; right: 0; }
  .fundadores__fila { flex-direction: column; align-items: flex-start; gap: 20px; }
  .fundadores__sello { width: 64px; }
  .fundadores .boton { width: 100%; }
  .seccion { padding: 72px 0; }
  .seccion .titulo-l { margin-bottom: 32px; }
  .giros, .pasos, .planes, .trae__lista { grid-template-columns: 1fr; }
  .trae { gap: 56px; }
  .trae__visual { min-height: 0; padding: 32px 16px; border-radius: 22px; }
  .trae .tel { --tel-alto: 420px; }
  .antes-despues { flex-direction: column; gap: 10px; }
  .antes-despues figure { width: 100%; max-width: 280px; }
  .antes-despues__flecha { transform: rotate(90deg); margin: 0; }
  .trae__lista { margin-top: 64px; gap: 24px; }
  .giro { min-height: 0; gap: 14px; }
  .calculadora__datos, .calculadora__resultado, .plan { padding: 24px; }
  .preguntas details p { padding-right: 0; }
  .cierre { padding: 88px 0; }
  .pie__rejilla { grid-template-columns: 1fr; }
}

/* ===================== Diseñador (/crear/) ===================== */

.visualmente-oculto { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.visualmente-oculto:focus + .boton, .logo-subir:focus-within .boton { outline: 3px solid var(--azul); outline-offset: 3px; }

.crear { padding: 48px 0 104px; }
.crear .titulo-l { margin-bottom: 16px; }
.crear__entrada { margin-bottom: 40px; }
.crear__rejilla { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; }
.crear__vista { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.vista__prueba { width: 100%; max-width: 320px; }
.vista__nota { max-width: 320px; text-align: center; }

.paso {
  margin: 0 0 16px; padding: 28px; min-width: 0;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  display: flex; flex-direction: column; gap: 18px;
}
.paso legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.paso legend + * { clear: both; }
.paso__num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--azul); color: var(--papel); font-size: 15px;
}
.paso__opcional { font-weight: 400; color: var(--grafito); font-size: 15px; }
.paso--final { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.paso--final .ayuda { color: #C6C8D1; white-space: pre-line; }
.paso__titulo { font-family: var(--f-titulo); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }

.giros-selector--izq { justify-content: flex-start; max-width: none; }

.campo__etiqueta { font-size: 15px; font-weight: 600; }
.ayuda { font-size: 14px; color: var(--grafito); }
.logo-subir { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.enlace-boton { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 15px; color: var(--azul); text-decoration: underline; cursor: pointer; }

.boton--contorno-tinta { border-color: var(--tinta); color: var(--tinta); background: transparent; cursor: pointer; }
.boton--contorno-tinta:hover { background: var(--tinta); color: var(--papel); }
.paso--final .boton--contorno-tinta { border-color: var(--papel); color: var(--papel); }
.paso--final .boton--contorno-tinta:hover { background: var(--papel); color: var(--tinta); }

.iconos { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.iconos button {
  aspect-ratio: 1; min-height: 52px; display: grid; place-items: center;
  border-radius: 14px; border: 1.5px solid var(--linea); background: var(--papel); color: var(--tinta);
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.iconos button:hover { border-color: var(--azul); }
.iconos button[aria-checked="true"] { background: var(--azul); border-color: var(--azul); color: var(--papel); }

.campo input[type="text"] { font-size: 18px; }

.pie--corto { padding: 32px 0; }
.pie--corto .pie__final { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 960px) {
  .crear__rejilla { grid-template-columns: 1fr; gap: 32px; }
  .crear__vista { position: static; order: -1; }
}
@media (max-width: 640px) {
  .crear { padding: 32px 0 72px; }
  .paso { padding: 22px 18px; }
}
