/* Zoco Mil — dirección "contact sheet", General Sans, grafito y naranja */
:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2c2f33;
  --ink: #eff0f1;
  --muted: #a9abb0;
  --accent: #ff4a1f;
  --accent-ink: #18191b;
  --field-1: #eff0f1;
  --field-1-ink: #18191b;
  --field-1-muted: #55585e;
  --field-1-step: #e2e4e6;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 5.4vw, 5rem);

  --margen: clamp(16px, 2.2vw, 32px);
  --seccion: clamp(96px, 12vw, 200px);
  --radio: 0px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: "General Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: var(--step-body); line-height: 1.45; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: var(--margen); top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; z-index: 50; text-decoration: none; font-weight: 500; }
.saltar:focus { top: 12px; }

h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }

/* ---------- barra y cabecera */
.barra-acento { height: 6px; background: var(--accent); }
.cabecera { position: absolute; top: 6px; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--margen); }
.marca { font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; }
.cabecera nav { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; font-size: var(--step-body); }
.cabecera nav a { text-decoration: none; padding: 6px 0; transition: color .2s; }
.cabecera nav a:hover { color: var(--accent); }
.nav-accion { background: var(--ink); color: var(--bg) !important; padding: 8px 14px !important; transition: background .2s, color .2s !important; }
.nav-accion:hover { background: var(--accent); color: var(--accent-ink) !important; }

/* ---------- botón */
.boton { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; padding: 15px 26px; border-radius: var(--radio); transition: background .2s, color .2s, transform .2s var(--ease); }
.boton:hover { background: var(--accent); color: var(--accent-ink); }
.boton:active { transform: scale(.97); }

/* ---------- hero: anillo de marcos */
.hero { position: relative; height: max(100svh, 760px); overflow: hidden; background: var(--bg); }
.anillo { position: absolute; inset: 0; }
.marco { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: var(--ar); transform: translate(-50%, -50%) rotate(var(--r)); transition: opacity .35s, transform .5s var(--ease); }
.marco img { width: 100%; height: 100%; object-fit: cover; }
.marco:hover, .marco:focus-visible { transform: translate(-50%, -50%) rotate(var(--r)) scale(1.12); z-index: 2; }
.anillo.atento .marco:not(.activo) { opacity: .45; }
.nucleo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, 84vw); text-align: center; display: flex; flex-direction: column; align-items: center; }
.titular { font-size: var(--step-display); font-weight: 700; line-height: .95; letter-spacing: -0.03em; }
.linea { display: block; overflow: hidden; padding-bottom: .06em; }
.linea > span { display: inline-block; }
.apoyo { margin-top: 24px; max-width: 40ch; font-size: var(--step-body); min-height: 3em; }
.nucleo .boton { margin-top: 28px; }

/* ---------- secciones */
.seccion { padding: var(--seccion) var(--margen); }
.claro { background: var(--field-1); color: var(--field-1-ink); }
.claro ::selection { color: var(--field-1); }

/* lista de puestos con el bolsillo */
.puestos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.puestos-cabeza { grid-column: 1 / span 4; align-self: start; position: sticky; top: 32px; }
.nota { margin-top: 16px; color: var(--field-1-muted); max-width: 34ch; }
.bolsillo { margin-top: 48px; background: var(--field-1-step); padding: 24px; }
.bolsillo label { font-weight: 500; display: block; }
.bolsillo-control { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.bolsillo input[type=range] { flex: 1; accent-color: var(--accent); height: 32px; }
.bolsillo output { font-weight: 700; font-size: var(--step-lead); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: right; }
.cuenta { margin-top: 12px; font-size: var(--step-small); color: var(--field-1-ink); }
.catalogo { grid-column: 7 / span 6; }
.grupo + .grupo { margin-top: 40px; }
.grupo-nombre { color: var(--field-1-muted); font-size: var(--step-body); margin-bottom: 6px; }
.fila { display: flex; align-items: center; min-height: 38px; gap: 8px; font-size: var(--step-body); transition: color .25s; }
.punto { width: 16px; height: 16px; border-radius: 50%; background: var(--field-1-step); flex: none; transition: background .25s, transform .3s var(--ease); }
.nombre { flex: 1; }
.valor { font-size: var(--step-small); color: var(--field-1-muted); font-variant-numeric: tabular-nums; }
.con-bolsillo .fila { color: var(--field-1-muted); }
.con-bolsillo .fila.entra { color: var(--field-1-ink); }
.fila.entra .punto { background: var(--accent); transform: scale(1.1); }
.fila.entra .valor { color: var(--field-1-ink); font-weight: 500; }

/* vitrina: fila de marcos con uno levantado */
.vitrina { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.vitrina-lado { grid-column: 1 / span 3; display: flex; flex-direction: column; }
.enlace { margin-top: 12px; font-weight: 500; text-underline-offset: 4px; transition: color .2s; }
.enlace:hover { color: var(--accent); }
.vitrina-nota { font-size: var(--step-small); margin-top: auto; padding-top: 32px; max-width: 30ch; }
.vitrina-nota.baja { margin-top: 24px; }
/* la anchura de cada marco es proporcional a su formato: todos a la misma altura salvo el levantado (2,2×) */
.vitrina-fila { grid-column: 4 / span 9; display: flex; align-items: flex-end; gap: 6px; }
.cuadro { margin: 0; flex: var(--f, 1.5) 1 0; min-width: 0; }
.cuadro img, .cuadro video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 3 / 2); object-fit: cover; }
.cuadro figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-small); padding-top: 8px; }
.cuadro figcaption span + span { color: var(--muted); }
.levantado img { transform-origin: bottom; animation: respira 18s ease-in-out infinite alternate; }
.levantado { overflow: hidden; }
@keyframes respira { to { transform: scale(1.06); } }

/* carrusel: cómo comprar */
.carrusel-cabeza { display: flex; justify-content: space-between; align-items: flex-end; }
.carrusel-cabeza h2 { font-size: var(--step-lead); }
.carrusel-botones { display: flex; gap: 8px; }
.cuadrado { width: 48px; height: 48px; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.cuadrado svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.cuadrado:hover { background: var(--accent); color: var(--accent-ink); }
.cuadrado:active { transform: scale(.94); }
.progreso { height: 6px; background: var(--surface-2); margin-top: 24px; }
.progreso span { display: block; height: 100%; width: 20%; background: var(--ink); transition: width .2s; }
.pasos { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margen); margin: 40px calc(var(--margen) * -1) 0; padding: 0 var(--margen) 8px; scrollbar-width: none; }
.pasos::after { content: ""; flex: 0 0 1px; }
.pasos::-webkit-scrollbar { display: none; }
.paso { flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; }
.paso h3 { font-size: var(--step-body); font-weight: 700; }
.paso p { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }
.paso-foto { margin-top: var(--hueco); aspect-ratio: 4 / 5; overflow: hidden; }
.paso-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.paso:hover .paso-foto img { transform: scale(1.05); }

/* quiénes somos */
.sobre { display: grid; grid-template-columns: 160px 1fr; column-gap: calc(34vw - 160px - var(--margen)); row-gap: 48px; }
.sobre-titulo { grid-column: 1 / -1; }
.datos { margin: 0; display: grid; gap: 20px; align-content: start; font-size: var(--step-small); }
.datos dt { color: var(--field-1-muted); }
.datos dd { margin: 2px 0 0; font-weight: 500; }
.parrafo { font-size: var(--step-lead); line-height: 1.35; max-width: 34em; }
.registro { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); column-gap: 64px; row-gap: 12px; font-size: var(--step-small); }
.registro-nombre { grid-row: 1; color: var(--field-1-muted); }
.registro ul { grid-row: 2; display: grid; gap: 10px; }
.registro li { display: flex; justify-content: space-between; gap: 16px; }
.registro li span + span { color: var(--field-1-muted); }

/* preguntas como texto corrido */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq h2 { grid-column: 1 / span 3; font-size: var(--step-lead); }
.faq-texto { grid-column: 5 / span 8; columns: 2; column-gap: 56px; font-size: var(--step-body); line-height: 1.55; }
.faq-texto p { break-inside: avoid; margin-bottom: 20px; }
.faq-texto strong { font-weight: 500; }

/* contacto: tira de fotos y barra de tres celdas */
.contacto { background: var(--accent); color: var(--accent-ink); min-height: 80svh; padding: 48px 0 var(--seccion); overflow: hidden; }
.tira { overflow: hidden; }
.tira ul { display: flex; gap: 8px; width: max-content; animation: deriva 60s linear infinite; }
.tira li img { height: 150px; width: auto; }
.tira li:nth-child(3n+1) img { aspect-ratio: 3 / 4; object-fit: cover; }
.tira li:nth-child(3n+2) img { aspect-ratio: 1; object-fit: cover; }
.tira li:nth-child(3n) img { aspect-ratio: 3 / 2; object-fit: cover; }
@keyframes deriva { to { transform: translateX(-50%); } }
.contacto-cuerpo { padding: 72px var(--margen) 0; }
.contacto h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.formulario { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.celda { display: block; height: 96px; background: #ff6a45; border: 0; }
.celda input { width: 100%; height: 100%; border: 0; background: transparent; text-align: center; font: inherit; font-size: var(--step-body); color: var(--accent-ink); }
.celda input::placeholder { color: #3a1d14; }
.celda:focus-within { background: #ffd9cf; }
.celda input:focus { outline: none; }
.enviar { background: var(--accent-ink); color: var(--ink); font: inherit; font-size: var(--step-body); font-weight: 500; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.enviar:hover { background: #000; }
.enviar:active { transform: scale(.98); }
.letra-pequena { margin-top: 16px; font-size: var(--step-small); max-width: 70ch; }
.letra-pequena p + p { margin-top: 6px; }

/* pie de teselas */
.pie { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 10px; background: var(--bg); }
.tesela { background: var(--surface); padding: 20px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.frase { grid-column: 1 / span 4; font-size: var(--step-lead); line-height: 1.2; }
.legal { font-size: var(--step-small); }
.legal a { text-underline-offset: 3px; }
.navegacion { grid-column: 5 / span 3; justify-content: flex-start; gap: 6px; font-size: var(--step-body); }
.navegacion a { text-decoration: none; transition: color .2s; }
.navegacion a:hover { color: var(--accent); }
.hora { grid-column: 8 / span 2; }
.hora .grande, .correo a { font-size: var(--step-lead); }
.correo { grid-column: 10 / span 3; }
.correo a { text-underline-offset: 4px; word-break: break-all; }
.palabra { grid-column: 1 / span 8; min-height: 320px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 9vw; letter-spacing: -0.04em; line-height: 1; align-items: center; justify-content: center; }
.invitacion { grid-column: 9 / span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-lead); font-weight: 500; transition: background .25s; }
.invitacion svg { width: 56px; height: 56px; align-self: flex-end; fill: none; stroke: currentColor; stroke-width: 4; transition: transform .4s var(--ease); }
.invitacion:hover svg { transform: translate(6px, -6px); }
.creditos { grid-column: 1 / -1; font-size: var(--step-small); line-height: 1.5; padding: 24px 22px 16px; color: var(--ink); }
.creditos ul { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 40px; }
.creditos a { text-underline-offset: 2px; }
.creditos a { text-underline-offset: 2px; }

/* ---------- movimiento */
.js .titular .linea > span { transform: translateY(105%); }
.js.listo .titular .linea > span { transform: none; transition: transform .9s var(--ease); }
.js.listo .titular .linea + .linea > span { transition-delay: .11s; }
.js .apoyo, .js .nucleo .boton { opacity: 0; transform: translateY(16px); }
.js.listo .apoyo, .js.listo .nucleo .boton { opacity: 1; transform: none; transition: opacity .7s .5s, transform .7s .5s var(--ease); }
.js .marco { opacity: 0; }
.js.listo .marco { opacity: 1; transition: opacity .8s calc(var(--i, 0) * 40ms), transform .5s var(--ease); }
.js.listo .anillo.atento .marco:not(.activo) { opacity: .45; }
.js [data-entra] > * { opacity: 0; transform: translateY(24px); }
.js [data-entra].dentro > * { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-entra].dentro > *:nth-child(2) { transition-delay: 70ms; }
.js [data-entra].dentro > *:nth-child(3) { transition-delay: 140ms; }
.js [data-entra].dentro > *:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .tira ul, .levantado img { animation: none; }
  .js .titular .linea > span, .js .apoyo, .js .nucleo .boton, .js .marco, .js [data-entra] > * { opacity: 1 !important; transform: none !important; }
}

/* "Cómo comprar": en pantallas anchas caben los seis pasos sin desplazar */
@media (min-width: 701px) {
  .carrusel-botones, .progreso { display: none; }
  .pasos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; overflow: visible; margin: 40px 0 0; padding: 0; }
  .pasos::after { display: none; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .pasos { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
}

/* ---------- tableta */
@media (max-width: 1100px) {
  .puestos-cabeza { grid-column: 1 / span 5; }
  .catalogo { grid-column: 7 / span 6; }
  .faq-texto { grid-column: 1 / -1; }
  .faq h2 { grid-column: 1 / -1; }
}

/* ---------- móvil */
@media (max-width: 700px) {
  .cabecera nav a:not(.nav-accion) { display: none; }
  .hero { height: max(100svh, 640px); }
  .marco { left: var(--mx); top: calc(50% + var(--my)); width: var(--mw); }
  .marco.solo-escritorio { display: none; }
  .titular { font-size: 10.5vw; }
  .apoyo { font-size: var(--step-body); }
  .nucleo { width: calc(100vw - 56px); }
  .nucleo .boton { width: 100%; }

  .puestos, .vitrina, .faq { display: block; }
  .puestos-cabeza { position: static; }
  .catalogo { margin-top: 40px; }
  .fila { min-height: 44px; }
  .grupo + .grupo { margin-top: 32px; }

  .vitrina-nota { margin-top: 0; padding-top: 16px; max-width: none; }
  .vitrina-fila { margin-top: 32px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--margen) * -1); gap: 4px; }
  .vitrina-fila .cuadro { scroll-snap-align: start; flex: none; }
  .vitrina-fila .cuadro img, .vitrina-fila .cuadro video { height: 34vw; width: auto; }
  .vitrina-fila .levantado { flex-basis: calc(100vw - 2 * var(--margen)); }
  .vitrina-fila .levantado img { width: 100%; height: auto; }

  .carrusel-botones { display: none; }
  .paso { flex-basis: 72vw; }
  .pasos { gap: 16px; }
  .paso-foto { margin-top: calc(var(--hueco) / 2.5); }

  .sobre { display: block; }
  .parrafo { margin-top: 24px; font-size: var(--step-lead); }
  .datos { margin-top: 32px; grid-template-columns: 1fr 1fr; font-size: var(--step-small); }
  .registro { display: block; margin-top: 40px; }
  .registro ul + .registro-nombre { margin-top: 40px; }
  .registro ul { margin-top: 12px; }

  .faq-texto { columns: 1; margin-top: 24px; font-size: var(--step-body); }
  .faq-texto p { margin-bottom: 18px; }

  .tira li img { height: 110px; }
  .creditos { padding: 16px 14px; }
  .creditos ul { grid-template-columns: 1fr; }
  .contacto h2 { font-size: var(--step-head); }
  .formulario { grid-template-columns: 1fr; }
  .celda { height: 60px; }
  .letra-pequena { display: block; }
  .letra-pequena p + p { margin-top: 8px; }

  .pie { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .palabra { grid-column: 1 / -1; order: -2; min-height: 160px; font-size: 17vw; }
  .invitacion { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .navegacion, .correo, .hora, .frase { grid-column: span 1; }
  .frase { font-size: var(--step-body); }
  .correo a { font-size: 1rem; }
}

/* dos secciones seguidas del mismo color no suman sus márgenes */
#nombre + #como-comprar { padding-top: 0; }

/* páginas legales */
.legal-pagina { max-width: 72ch; margin: 0 auto; padding: 140px var(--margen) var(--seccion); }
.legal-pagina h1 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.legal-pagina h2 { margin-top: 48px; }
.legal-pagina p, .legal-pagina li { margin-top: 14px; line-height: 1.6; }
.legal-pagina ul { list-style: disc; padding-left: 1.2em; }
.legal-pagina .actualizado { color: var(--muted); margin-top: 16px; }
.legal-pagina a { text-underline-offset: 3px; }
.legal-pagina .volver { display: inline-block; margin-top: 56px; }

/* selector de moneda */
.bolsillo-arriba { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.moneda { display: inline-flex; background: var(--field-1); padding: 3px; gap: 3px; }
.moneda button { border: 0; background: transparent; color: var(--field-1-ink); font: inherit; font-weight: 500; padding: 6px 12px; cursor: pointer; transition: background .2s, color .2s; }
.moneda button:hover { background: var(--field-1-step); }
.moneda button[aria-pressed="true"] { background: var(--field-1-ink); color: var(--field-1); }
