/* Tokens, botones, campos y la tarjeta. Lo demás se carga por página. */
@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Young Serif"; src: url(/fonts/youngserif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --noche: #12100e; --noche-2: #1d1a16; --papel: #f4efe6; --papel-2: #b9b1a3; --tinta: #ff4b1f; --tinta-h: #ff6a43;
  --claro: #f6f8f7; --linea: #dfe3e0; --texto: #17181a; --texto-2: #5c6166;
  --ok: #17733f; --mal: #b3261e;
  --titular: "Archivo", "Arial Narrow", sans-serif; --cuerpo: "Manrope", system-ui, sans-serif;
  --lento: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.55 var(--cuerpo); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.franja-prueba { background: #ffd24a; color: #201a00; text-align: center; font-size: .78rem; font-weight: 600; padding: .25rem 1rem; position: relative; z-index: 40; }

.marca { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--titular); font-stretch: 110%; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; text-decoration: none; }
.logo-m { width: 1.5rem; height: 1.5rem; color: var(--tinta); }

/* El botón: el relleno entra desde la izquierda, la flecha avanza y al pulsar cede. Sin depender del cursor. */
.boton { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .7rem 1.35rem; border: 0; border-radius: 6px; background: var(--tinta); color: #1a0a04; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .16s var(--lento), color .18s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.boton::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--papel); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--lento); }
.boton-f { width: 1.1rem; height: 1.1rem; transition: transform .22s var(--lento); }
@media (hover: hover) {
  .boton:hover::before { transform: scaleX(1); }
  .boton:hover .boton-f { transform: translateX(4px); }
}
.boton:active { transform: scale(.97); }
.boton:focus-visible { outline-offset: 3px; }
.boton[aria-busy="true"] { pointer-events: none; color: transparent; }
.boton[aria-busy="true"]::after { content: ""; position: absolute; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid #1a0a04; border-right-color: transparent; animation: gira .7s linear infinite; }
.boton[disabled] { opacity: .45; cursor: not-allowed; }
@keyframes gira { to { transform: rotate(360deg); } }
.boton-s { min-height: 2.5rem; padding: .4rem 1rem; font-size: .92rem; white-space: nowrap; }
.boton-b { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.boton-b::before { background: currentColor; opacity: .12; }

.enlace-sec { background: none; border: 0; padding: .3rem 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; cursor: pointer; transition: text-underline-offset .18s; }
@media (hover: hover) { .enlace-sec:hover { text-underline-offset: .36em; } }
.peligro { color: var(--mal); }

.campo { display: grid; gap: .3rem; margin: 0; border: 0; padding: 0; }
.campo > span, .campo > legend { font-size: .86rem; font-weight: 600; }
.campo input:not([type=range]):not([type=color]):not([type=file]), .campo textarea, .campo select { width: 100%; min-height: 2.9rem; padding: .55rem .75rem; border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 6px; background: transparent; font-size: 1rem; transition: border-color .15s; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tinta) 35%, transparent); }
.campo input[type=range] { width: 100%; accent-color: var(--tinta); min-height: 2rem; }
.casilla { display: grid; grid-template-columns: 1.2rem 1fr; gap: .6rem; font-size: .88rem; align-items: start; }
.casilla-factura { margin-bottom: 1rem; }
.casilla input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--tinta); }
.ayuda, .nota { font-size: .82rem; opacity: .75; }
.aviso { padding: .75rem 1rem; border-radius: 6px; font-size: .94rem; margin-bottom: 1rem; }
.aviso-ok { background: #e4f4ea; color: #0f4a28; }
.aviso-error { background: #fbe7e5; color: #7c1c15; }

.colores { display: flex; flex-wrap: wrap; gap: .9rem; }
.colores label { display: flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 600; cursor: pointer; }
.colores input { width: 2.4rem; height: 2.4rem; padding: 0; border: 1.5px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 50%; background: none; overflow: hidden; cursor: pointer; }
.colores input::-webkit-color-swatch-wrapper { padding: 0; }
.colores input::-webkit-color-swatch { border: 0; border-radius: 50%; }

/* La tarjeta. 1em es una 34.ª parte de su ancho, así que todo escala con ella. */
.pase { --w: 340px; position: relative; width: var(--w); height: calc(var(--w) * .68); font-size: calc(var(--w) / 34); color: var(--pt); transform-style: preserve-3d; font-family: var(--cuerpo); line-height: 1.2; }
.capa { position: absolute; inset: 0; border-radius: 1.6em; backface-visibility: hidden; transform-style: preserve-3d; }
.capa-base { background: var(--pf); box-shadow: 0 2.4em 5em -1.6em rgba(0, 0, 0, .55), inset 0 0 0 .08em color-mix(in srgb, var(--pt) 12%, transparent); }
.capa-carton { display: none; }
.capa-cab { display: flex; align-items: center; gap: .9em; height: 5.6em; bottom: auto; padding: 1.5em 1.8em 0; }
.pase-marca, .pase-logo { width: 3em; height: 3em; flex: none; border-radius: .8em; }
.pase-logo { object-fit: contain; }
.pase-logo-ancho { flex: 1; min-width: 0; height: 3.4em; object-fit: contain; object-position: left center; }
.pase-marca { display: grid; place-items: center; color: var(--pi); background: color-mix(in srgb, var(--pt) 10%, transparent); }
.pase-marca svg { width: 1.9em; height: 1.9em; }
.pase-nombre { flex: 1; min-width: 0; font-size: 1.5em; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pase-cuenta { text-align: right; flex: none; }
.pase-cuenta small { display: block; font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.pase-cuenta b { font-size: 1.6em; font-variant-numeric: tabular-nums; }
.capa-sellos { top: 5.6em; bottom: 7.6em; display: flex; align-items: center; justify-content: center; padding: 0 1.8em; }
.rejilla { display: grid; grid-template-columns: repeat(var(--col, 6), 1fr); gap: .55em; width: 100%; justify-items: center; }
.r3, .r4, .r5, .r6 { --col: 6; }
.r3 { --col: 3; } .r4 { --col: 4; } .r5 { --col: 5; }
.r7, .r8 { --col: 4; } .r9, .r10 { --col: 5; } .r11, .r12 { --col: 6; }
.r7, .r8, .r9, .r10, .r11, .r12 { gap: .35em .55em; }
.celda { display: grid; place-items: center; width: 3.7em; height: 3.7em; border-radius: 50%; box-shadow: inset 0 0 0 .13em color-mix(in srgb, var(--pt) 38%, transparent); color: transparent; transition: background-color .18s, transform .32s var(--lento); }
.r7 .celda, .r8 .celda, .r9 .celda, .r10 .celda, .r11 .celda, .r12 .celda { width: 2.9em; height: 2.9em; }
.celda svg { width: 62%; height: 62%; }
.celda-medio { outline: 2px solid var(--pi); outline-offset: 2px; }
.celda-txt { color: var(--pt); font-style: normal; }
.celda.llena.celda-txt { color: var(--pf); }
.celda-txt span { font-size: .62em; font-weight: 700; line-height: 1.05; text-align: center; overflow-wrap: anywhere; padding: 0 .15em; }
.celda.llena { background: var(--pi); color: var(--pf); box-shadow: none; transform: rotate(-8deg); }
.capa-pie { top: auto; height: 7.6em; display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; padding: 0 1.8em 1.5em; }
.pase-premio { min-width: 0; }
.pase-premio small { display: block; font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.pase-premio b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.14em; font-weight: 700; line-height: 1.2; }
.pase-premio em { display: block; font-style: normal; font-size: .95em; opacity: .75; }
.pase-qr { flex: none; width: 5.8em; height: 5.8em; padding: .5em; background: #fff; border-radius: .7em; }
.pase-qr svg { width: 100%; height: 100%; }
.capa-brillo { pointer-events: none; opacity: .5; overflow: hidden; background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .13) 46%, rgba(255, 255, 255, .03) 56%, transparent 70%); mix-blend-mode: screen; }
.premiado .capa-base { box-shadow: 0 0 0 .3em var(--pi), 0 2.4em 5em -1.6em rgba(0, 0, 0, .55); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) { .capa-brillo { display: none; } }

.capa-dorso { display: none; }
.pase-barra { width: 100%; height: 1.5em; border-radius: 99px; background: color-mix(in srgb, var(--pt) 16%, transparent); overflow: hidden; }
.pase-barra i { display: block; height: 100%; border-radius: 99px; background: var(--pi); min-width: 1.5em; transition: width .4s var(--lento); }

/* Ver la contraseña: el botón vive dentro del campo y no le quita sitio al texto. */
.clave-caja { position: relative; display: block; }
.clave-caja input { width: 100%; padding-right: 3.2rem !important; }
.clave-ver { position: absolute; inset: 0 0 0 auto; display: grid; place-items: center; width: 3rem; padding: 0; border: 0; border-radius: 0 6px 6px 0; background: none; color: inherit; opacity: .7; cursor: pointer; transition: opacity .15s, transform .12s; }
.clave-ver svg { width: 1.25rem; height: 1.25rem; }
.clave-ver[aria-pressed="true"] { opacity: 1; }
@media (hover: hover) { .clave-ver:hover { opacity: 1; } }
.clave-ver:active { transform: scale(.92); }
.clave-ver:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .clave-ver { transition: none; } }
