/* /recursos — la entrada desde la bio de @carlosai_ (15-11-2026).
   Mismo lenguaje que /recursos/sesion (sesion.css): la noche, el naranja, la lavanda, Literata,
   un paso por pantalla y sin scroll. Sin JavaScript los pasos van seguidos.
   Hoja propia: recursos.css sigue siendo la de las guías y no se toca.
   CSP: nada en línea. */

@font-face {
  font-family: "Literata";
  src: url("/fuente/literata-5.3.0.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --noche: #17110a;
  --tarjeta: #221a11;
  --borde: #3a2e20;
  --crema: #f6f1ea;
  --gris: #a59d93;
  --naranja: #e87811;
  --lavanda: #b9a4ff;
  --malva: #2a2233;
  --titular: "Literata", Georgia, "Times New Roman", serif;
  --texto: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arriba: 3.5rem;
  --abajo: 4.2rem;
  --pie: 1.9rem;
  --lado: 1.2rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--crema); font: 400 1rem/1.5 var(--texto); overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lavanda); outline-offset: 3px; }
h1, h2 { font-family: var(--titular); font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1:focus, h2:focus { outline: none; }
p { margin: 0; }
.saltar { position: absolute; left: -999rem; top: 0; z-index: 20; background: var(--crema); color: var(--noche); padding: .6rem 1rem; font-weight: 700; }
.saltar:focus { left: 0; }

/* ------------------------------------------------------------------ arriba */

.arriba { height: var(--arriba); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--lado); max-width: 78rem; margin: 0 auto; }
.marca { font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.marca span { color: var(--naranja); }
.puntos { display: none; list-style: none; margin: 0; padding: 0; gap: .35rem; }
.puntos li { width: 1.3rem; height: 4px; border-radius: 4px; background: var(--borde); transition: background .3s; }
.puntos li.hecho { background: var(--naranja); }

/* ------------------------------------------------------------------ textos y botones */

.antetitulo { margin-bottom: .4rem; color: var(--naranja); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
h1 { font-size: clamp(1.75rem, 7.2vw, 2.4rem); line-height: 1.03; }
.paso-videos h2 { font-size: clamp(1.5rem, 6.2vw, 2.1rem); line-height: 1.06; }
h1 em, .paso-videos h2 em { font-style: normal; color: var(--naranja); }
.paso-videos h2 em { display: block; }
.sub { color: var(--gris); font-size: .97rem; margin-top: .55rem; max-width: 38ch; }
.paso-videos .sub { font-size: .9rem; margin-top: .4rem; }
/* Las dos cifras: el número en lavanda y debajo qué es. */
.cifras { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; font-size: .76rem; line-height: 1.25; color: var(--gris); }
.cifras li { padding-left: .7rem; border-left: 3px solid var(--naranja); }
.cifras b { display: block; font: 900 1.5rem/1 var(--titular); letter-spacing: -.02em; color: var(--lavanda); margin-bottom: .15rem; }

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: .9rem; }
.boton { display: inline-block; background: var(--naranja); color: var(--noche); font: 800 1.08rem/1 var(--texto); text-decoration: none; text-align: center; border: 0; border-radius: 999px; padding: 1rem 1.7rem; cursor: pointer; transition: background .2s, transform .2s, border-color .2s; }
.boton:hover { background: #ff8a1f; }
.boton:active { transform: scale(.97); }
/* El botón que no vende: lleva al paso del sistema sin competir con las guías. */
.boton-suave { background: none; color: var(--crema); box-shadow: inset 0 0 0 1.5px var(--borde); }
.boton-suave:hover { background: none; box-shadow: inset 0 0 0 1.5px var(--crema); }
.boton-suave::after { content: " →"; color: var(--naranja); }

/* ------------------------------------------------------------------ pasos */

.paso { max-width: 78rem; margin: 0 auto; padding: 1rem var(--lado) 2.5rem; display: flex; flex-direction: column; gap: .9rem; }
.paso-visual { position: relative; flex: 1 1 0; min-height: 11rem; }
.paso-texto { flex: none; }

/* 1. Las guías: una fila de portadas. Con tres o más, se pasa con el dedo. */
.guias { list-style: none; margin: 0; padding: 0; display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.guias::-webkit-scrollbar { display: none; }
.guia { flex: 0 0 calc(50% - .35rem); min-width: 0; display: flex; scroll-snap-align: start; }
.guias:has(.guia:nth-child(3)) .guia { flex-basis: 44%; }
.guia > a { display: flex; flex-direction: column; width: 100%; text-decoration: none; background: var(--tarjeta); border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--borde); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.guia > a:hover { box-shadow: inset 0 0 0 1.5px var(--naranja); }
.guia > a:active { transform: scale(.98); }
.guia-portada { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.guia-portada video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.guia-sello { position: absolute; left: .55rem; top: .55rem; background: var(--naranja); color: var(--noche); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: .2rem .55rem; }
/* Portada sin vídeo: un número grande y una palabra. */
.portada-cifra { display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(90% 70% at 50% 40%, #3c2f66, var(--malva) 60%, #17121f); }
.portada-cifra b { font: 900 5.2rem/.85 var(--titular); letter-spacing: -.04em; color: var(--lavanda); }
.portada-cifra > span:not(.guia-sello) { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .35rem; }
/* El medidor: la barra del límite, casi llena. Es un dibujo, no un dato. */
.medidor { position: relative; width: 68%; height: .55rem; margin-top: 1rem; border-radius: 999px; background: rgba(246, 241, 234, .14); overflow: hidden; }
.medidor::before { content: ""; position: absolute; inset: 0 7% 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--lavanda), var(--naranja)); transform-origin: left; }
.guia-cuerpo { flex: none; display: flex; flex-direction: column; gap: .3rem; padding: .7rem .75rem .8rem; }
.guia h2 { font-size: 1.05rem; line-height: 1.12; min-height: 3.36em; }
.guia p { color: var(--gris); font-size: .74rem; line-height: 1.3; min-height: 2.6em; }
.guia-ir { margin-top: .35rem; background: var(--naranja); color: var(--noche); font-weight: 800; font-size: .92rem; line-height: 1; text-align: center; border-radius: 999px; padding: .65rem .4rem; }

/* 2. El sistema: tres móviles con vídeos reales, como en la portada de /recursos/sesion. */
.visual-abanico { display: flex; justify-content: center; align-items: center; padding: .5rem 0 1.6rem; height: 17rem; background: radial-gradient(60% 70% at 50% 55%, rgba(232, 120, 17, .38), transparent 70%); }
.movil { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 31%; border-radius: 16px; overflow: hidden; background: #000; border: 3px solid #0b0805; box-shadow: 0 0 0 1.5px var(--borde), 0 18px 34px rgba(0, 0, 0, .55); }
.movil video { width: 100%; height: 100%; object-fit: cover; display: block; }
.movil-1 { transform: rotate(-7deg) translate(14%, 4%) scale(.88); }
.movil-2 { z-index: 1; box-shadow: 0 0 0 2px var(--naranja), 0 18px 40px rgba(0, 0, 0, .6); }
.movil-3 { transform: rotate(7deg) translate(-14%, 4%) scale(.88); }
.sello { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.sello::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--naranja); margin-right: .45rem; }

/* Las tres opciones, con el aspecto del selector de /recursos/sesion. Cada una lleva allí con la suya puesta. */
.opciones { margin-top: .8rem; }
.opciones p { font-size: .8rem; font-weight: 700; color: var(--gris); margin-bottom: .35rem; }
.opciones p b { color: var(--crema); }
.opciones ul { list-style: none; margin: 0; padding: .3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; border-radius: 16px; background: var(--tarjeta); }
.opciones a { display: block; border-radius: 12px; padding: .5rem .2rem; text-align: center; text-decoration: none; color: var(--lavanda); font: 800 .9rem/1.25 var(--texto); transition: background .2s, box-shadow .2s; }
.opciones a b { display: block; color: var(--gris); font-size: .8rem; font-weight: 700; }
.opciones a:hover { background: var(--malva); box-shadow: inset 0 0 0 1.5px var(--lavanda); }
.opciones a:hover b { color: var(--crema); }
.bloqueada { display: inline-flex; gap: .45rem; align-items: center; margin-top: .8rem; color: var(--gris); font-size: .76rem; text-decoration: none; }
.bloqueada b { color: var(--crema); }
.bloqueada:hover { color: var(--crema); }

/* ------------------------------------------------------------------ abajo y pie */

.mandos { display: none; }
.pie { text-align: center; padding: 1rem; font-size: .8rem; color: var(--gris); }
.pie a { margin: 0 .5rem; text-decoration: none; }
.pie a:hover { color: var(--crema); }

/* ================================================================== modo pasos (con JS) */

.js-pasos, .js-pasos body { height: 100%; overflow: hidden; }
.js-pasos body { height: 100dvh; }
.js-pasos .puntos { display: flex; }
.js-pasos .escena { position: relative; height: calc(100dvh - var(--arriba) - var(--abajo) - var(--pie)); }
.js-pasos .paso { position: absolute; inset: 0; padding: .3rem var(--lado) .5rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; opacity: 0; visibility: hidden; transform: translateX(2.5rem); transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; }
.js-pasos .paso::-webkit-scrollbar { display: none; }
.js-pasos .paso.antes { transform: translateX(-2.5rem); }
.js-pasos .paso.activo { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.js-pasos .visual-abanico { height: auto; }
/* Las portadas de las guías ocupan lo que queda de pantalla. */
.js-pasos .guias { flex: 1 1 0; min-height: 15rem; max-height: 29rem; margin-block: auto; }
.js-pasos .paso-guias { justify-content: center; }
.js-pasos .guia-portada { aspect-ratio: auto; flex: 1 1 0; min-height: 7rem; }
.js-pasos .paso.activo .medidor::before { animation: llenar 1.6s cubic-bezier(.2, .7, .2, 1) both .5s; }
@keyframes llenar { from { transform: scaleX(.08); } }

.js-pasos .paso.activo .paso-texto > * { animation: subir .4s ease both; }
.js-pasos .paso.activo .paso-texto > :nth-child(2) { animation-delay: .05s; }
.js-pasos .paso.activo .paso-texto > :nth-child(3) { animation-delay: .1s; }
.js-pasos .paso.activo .paso-texto > :nth-child(4) { animation-delay: .15s; }
.js-pasos .paso.activo .paso-texto > :nth-child(n+5) { animation-delay: .2s; }
.js-pasos .paso.activo .guia { animation: subir .45s ease both .1s; }
.js-pasos .paso.activo .guia:nth-child(2) { animation-delay: .18s; }
.js-pasos .paso.activo .guia:nth-child(n+3) { animation-delay: .26s; }
@keyframes subir { from { opacity: 0; transform: translateY(.5rem); } }

/* Abajo: atrás y el botón del paso, siempre en el mismo sitio. */
.js-pasos .mandos { display: flex; align-items: center; gap: .7rem; height: var(--abajo); max-width: 78rem; margin: 0 auto; padding: 0 var(--lado); }
.atras { flex: none; background: none; border: 1.5px solid var(--borde); color: var(--crema); width: 2.7rem; height: 2.7rem; border-radius: 50%; font-size: 1.05rem; cursor: pointer; }
.atras[hidden] { display: none; }
.barra { flex: 1; }
.barra .boton { display: block; }
.barra .boton[hidden] { display: none; }
.contador { display: none; color: var(--gris); font-size: .8rem; }
.js-pasos .pie { height: var(--pie); padding: 0 var(--lado) env(safe-area-inset-bottom); font-size: .7rem; line-height: 1.4; overflow: hidden; }
.js-pasos .pie-nombre { display: none; }

/* ================================================================== móvil */

@media (max-width: 55.99rem) {
  /* El botón del paso está abajo: el de dentro sobra. */
  .js-pasos .paso .acciones { display: none; }
}
@media (max-height: 700px) and (max-width: 55.99rem) {
  .js-pasos .paso { gap: .7rem; }
  .sub { font-size: .93rem; }
  .js-pasos .paso-visual { min-height: 9.5rem; }
  .js-pasos .visual-abanico { padding-bottom: 1.4rem; }
}

/* ================================================================== escritorio */

@media (min-width: 56rem) {
  html { font-size: clamp(16px, 1.25vw, 20px); }
  :root { --arriba: 4rem; --abajo: 3.6rem; --pie: 2rem; --lado: 2.5rem; }
  .puntos li { width: 2rem; }
  h1 { font-size: 3.5rem; }
  h1 em { display: block; }
  .paso-videos h2 { font-size: 2.7rem; }
  .sub { font-size: 1.15rem; margin-top: 1rem; }
  .paso-videos .sub { font-size: 1.1rem; margin-top: .9rem; }
  .cifras { font-size: .9rem; margin-top: 1.2rem; max-width: 27rem; gap: 1.5rem; }
  .cifras b { font-size: 2.2rem; }
  .medidor { height: .7rem; margin-top: 1.4rem; }
  .acciones { margin-top: 1.5rem; }

  .paso, .js-pasos .paso { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; align-content: center; gap: 4rem; padding: 0 var(--lado); }
  .paso { padding-block: 3rem; }
  .js-pasos .paso { left: 0; right: 0; margin: 0 auto; }
  .paso-videos, .js-pasos .paso-videos { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .paso-visual { flex: none; }

  .guias { gap: 1.2rem; }
  .guia { flex-basis: calc(50% - .6rem); }
  .js-pasos .guias { height: min(34rem, calc(100dvh - var(--arriba) - var(--abajo) - var(--pie) - 2rem)); min-height: 0; max-height: none; flex: none; }
  .guia > a { border-radius: 24px; }
  .guia-sello { font-size: .72rem; left: .9rem; top: .9rem; }
  .guia-cuerpo { padding: 1.1rem 1.2rem 1.2rem; gap: .45rem; }
  .guia h2 { font-size: 1.35rem; min-height: 2.24em; }
  .guia p { font-size: .85rem; }
  .guia-ir { font-size: 1rem; padding: .85rem; margin-top: .6rem; }
  .portada-cifra b { font-size: 8rem; }
  .portada-cifra > span:not(.guia-sello) { font-size: .95rem; }

  .visual-abanico, .js-pasos .visual-abanico { height: min(34rem, 100%); padding-bottom: 2.4rem; }
  .movil { border-radius: 26px; border-width: 5px; }
  .sello { font-size: .75rem; }
  .opciones { margin-top: 1.4rem; max-width: 27rem; }
  .opciones p { font-size: .9rem; }
  .opciones a { font-size: 1.05rem; padding: .7rem .3rem; }
  .opciones a b { font-size: .88rem; }
  .bloqueada { font-size: .85rem; margin-top: 1.3rem; }

  /* Abajo solo quedan atrás y el contador: los botones van dentro de cada paso. */
  .js-pasos .mandos { justify-content: space-between; }
  .js-pasos .mandos .barra { display: none; }
  .atras[hidden] { display: block; visibility: hidden; }
  .contador { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .js-pasos .paso, .js-pasos .paso.activo { transition: none; transform: none; }
  .js-pasos .paso.activo .paso-texto > *, .js-pasos .paso.activo .guia, .js-pasos .paso.activo .medidor::before { animation: none; }
}

/* ===== Identidad «prueba de imprenta», versión clara (17-11-2026) =====
   Carlos, tras verlo en el móvil: el azul de fondo no se lee. Fondo blanco y letra negra;
   el azul (#1d3fa8) y el naranja (#f28a1e) solo de acento, donde haga falta. */
:root {
  --noche: #ffffff; --tarjeta: #f5f4f0; --borde: #dddbd4; --crema: #16181d; --gris: #5b6070;
  --naranja: #1d3fa8; --lavanda: #16181d; --malva: #eef1fa;
  --bg: #ffffff; --ink: #16181d; --tinta: #16181d; --apagado: #5b6070; --superficie: #f5f4f0; --verde: #1d3fa8;
  --texto: "Literata", Georgia, "Times New Roman", serif;
}
body { font-family: var(--texto); background: #ffffff; color: #16181d; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: #1d3fa8; }
.marca span { color: #f28a1e !important; }
.puntos li.hecho { background: #f28a1e; }
.boton, button, .precio-arriba, .ficha, .visual-chat, .desglose li, .pestanas, .pestanas button,
.tarjeta, .msg, .dudas-hoja, input, textarea, select, a.boton, .btn { border-radius: 2px !important; }
.boton, a.boton { font-family: var(--texto); font-weight: 600; letter-spacing: 0; background: #16181d !important; color: #ffffff !important; box-shadow: none !important; }
.boton:hover, a.boton:hover { background: #33363f !important; }
.boton.boton-suave, a.boton-suave { background: transparent !important; color: #16181d !important; box-shadow: inset 0 0 0 1.5px #16181d !important; }
.visual-abanico { background: none !important; }
.movil, .movil-2 { box-shadow: none !important; }
.ficha { box-shadow: none !important; border: 1.5px solid #16181d; }
.capturas i { background: #f5f4f0 !important; box-shadow: inset 0 0 0 1.5px #dddbd4 !important; }
.msg.el { background: #efeee9; }
.antetitulo, .sello { letter-spacing: .02em; text-transform: none; font-style: italic; font-weight: 500; font-size: .95rem; }
.guia > a { border-radius: 2px !important; box-shadow: none !important; border: 1.5px solid #dddbd4; }
.guia > a:hover { border-color: #16181d; }
.guia-sello, .guia-ir, .opciones ul, .opciones a { border-radius: 2px !important; }
.guia-sello { background: #ffffff; color: #16181d; text-transform: none; font-style: italic; letter-spacing: 0; }
.guia-ir { background: #16181d; color: #ffffff; }
.portada-cifra { background: #eef1fa !important; }
.medidor { background: #dddbd4; }
.medidor::before { background: #1d3fa8 !important; }
.cifras li { border-left-color: #f28a1e; }
