/* Sobremesa Criminal · pagina de venta. Pensada primero para celular. */
:root {
  --fondo: #0e0b08;
  --fondo-2: #17120c;
  --tarjeta: #1d1710;
  --linea: #3a2e1f;
  --crema: #f4e9d8;
  --texto: #e6dccb;
  --suave: #a89a85;
  --ambar: #f2b84b;
  --ambar-osc: #d99a26;
  --tinta: #1b1611;
  --marca: "American Typewriter", Rockwell, "Roboto Slab", Georgia, serif;
  --cuerpo: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font-family: var(--cuerpo); font-size: 18px; line-height: 1.55;
  padding-bottom: 84px; /* lugar para la barra fija de compra */
}
img { max-width: 100%; display: block; }
a { color: var(--ambar); }
h1, h2, h3 { font-family: var(--marca); color: var(--crema); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 8.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 6.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.ancho { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 22px; }
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--linea); }
.sobre { font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--ambar); margin: 0 0 1rem; }
.nota { color: var(--suave); font-size: .92rem; }

/* ---------- Boton ---------- */
.boton {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer; border: 0;
  background: var(--ambar); color: var(--tinta); font: 700 1.12rem/1.2 var(--cuerpo);
  padding: 18px 20px; border-radius: 12px; box-shadow: 0 6px 0 var(--ambar-osc);
  transition: transform .08s ease, box-shadow .08s ease;
}
.boton:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ambar-osc); }
.boton:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--crema); outline-offset: 3px; }
.bajo-boton { text-align: center; color: var(--suave); font-size: .9rem; margin: 16px 0 0; }

/* ---------- Portada ---------- */
.portada { position: relative; padding: 0; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.portada > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,8,.55) 0%, rgba(14,11,8,.25) 28%, rgba(14,11,8,.86) 62%, var(--fondo) 96%); }
.portada .ancho { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 40px; }
.portada .marca { font-family: var(--marca); font-weight: 700; letter-spacing: .14em; color: var(--crema); font-size: .95rem; position: absolute; top: 22px; left: 22px; z-index: 1; }
.portada p.sub { font-size: 1.1rem; color: var(--texto); }

/* ---------- Aviso de pago ---------- */
.aviso { display: none; background: #3a1d14; border: 1px solid #a5492f; color: #ffd9cc; border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; font-size: .98rem; }
.aviso.visible { display: block; }

/* ---------- Pasos ---------- */
ol.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 1.2em 0; }
ol.pasos li { counter-increment: paso; position: relative; padding: 0 0 14px 52px; }
ol.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ambar); color: var(--ambar); font: 700 1rem/32px var(--marca); text-align: center;
}

/* ---------- Capturas del expediente ---------- */
.capturas { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 22px 18px; margin: 24px 0 0; -webkit-overflow-scrolling: touch; }
.capturas figure { flex: 0 0 62%; max-width: 280px; margin: 0; scroll-snap-align: center; }
.capturas img { border-radius: 10px; border: 1px solid var(--linea); aspect-ratio: 1 / 2; width: 100%; background: #f4ecdb; }
.capturas figcaption { font-size: .85rem; color: var(--suave); margin-top: 8px; text-align: center; }

/* ---------- Casos ---------- */
.caso { background: var(--tarjeta); border: 1px solid var(--linea); border-left: 4px solid var(--ambar); border-radius: 10px; padding: 18px 18px 6px; margin: 0 0 14px; }
.caso .dato { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ambar); margin: 0 0 .6em; }
ul.lista { padding: 0; margin: 0 0 1.4em; list-style: none; }
ul.lista li { position: relative; padding: 0 0 10px 30px; }
ul.lista li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border: 2px solid var(--ambar); border-radius: 2px; transform: rotate(45deg); }
ul.no li::before { border-color: var(--suave); border-radius: 50%; transform: none; }

/* ---------- Precio y garantia ---------- */
.precio { text-align: center; }
.precio .monto { font-family: var(--marca); font-size: clamp(3.2rem, 17vw, 5rem); color: var(--crema); line-height: 1; margin: 0 0 .15em; }
.precio .unico { color: var(--ambar); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; margin-bottom: 1.4em; }
.sello { border: 2px solid var(--ambar); border-radius: 12px; padding: 22px 20px 8px; background: var(--fondo-2); }

/* ---------- Preguntas ---------- */
details { border-bottom: 1px solid var(--linea); }
summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; font-weight: 700; color: var(--crema); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.6rem/1 var(--cuerpo); color: var(--ambar); }
details[open] summary::after { content: "–"; }
details p { color: var(--texto); padding-right: 10px; }

/* ---------- Pie ---------- */
footer { border-top: 1px solid var(--linea); padding: 34px 0 30px; color: var(--suave); font-size: .9rem; }
footer p { margin: 0 0 .7em; }
.arrepentimiento { display: inline-block; border: 1px solid var(--suave); color: var(--crema); text-decoration: none; padding: 9px 14px; border-radius: 8px; font-weight: 700; margin: 4px 0 14px; }

/* ---------- Barra fija de compra ---------- */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(14,11,8,.96); border-top: 1px solid var(--linea); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s ease; }
.barra.visible { transform: none; }
.barra .boton { max-width: 640px; margin: 0 auto; padding: 14px 16px; font-size: 1.02rem; box-shadow: 0 4px 0 var(--ambar-osc); }

/* ---------- Pagina de gracias ---------- */
.gracias { min-height: 100svh; padding: 48px 0; }
.gracias .marca { font-family: var(--marca); letter-spacing: .14em; color: var(--ambar); font-size: .9rem; margin-bottom: 28px; }
.estado { display: none; }
.estado.visible { display: block; }
.girando { width: 38px; height: 38px; border: 4px solid var(--linea); border-top-color: var(--ambar); border-radius: 50%; animation: giro 1s linear infinite; margin: 0 0 20px; }
@keyframes giro { to { transform: rotate(360deg); } }
form.recuperar label { display: block; font-weight: 700; color: var(--crema); margin: 14px 0 6px; font-size: .95rem; }
form.recuperar input { width: 100%; padding: 14px; font: inherit; border-radius: 10px; border: 1px solid var(--linea); background: var(--fondo-2); color: var(--crema); }
form.recuperar .boton { margin-top: 20px; }
.caja { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 12px; padding: 20px; margin: 26px 0 0; }

@media (min-width: 760px) {
  body { font-size: 19px; }
  .capturas { justify-content: center; }
  .capturas figure { flex-basis: 220px; }
  .portada > img { object-position: center 45%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .girando { animation-duration: 3s; }
  .barra, .boton { transition: none; }
}
