/* Cumbre FAVA 2027 · estilos de las páginas del sistema de inscripción
   (QR personal, reenvío, panel admin y check-in). Usa los tokens de estilos.css. */

.pagina { min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
.pagina__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); background: var(--red); color: var(--white); }
.pagina__marca { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font: 400 1.05rem/1 var(--title); letter-spacing: .08em; text-transform: uppercase; }
.pagina__marca svg { width: 1.8rem; height: 2rem; --k-fish: var(--white); }
.pagina__main { flex: 1; width: 100%; max-width: 34rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) 1rem 3rem; }
.pagina__main--ancho { max-width: 90rem; }
.pagina h1 { font: 400 var(--fs-xl)/1 var(--grunge); color: var(--red); }
.pagina h2 { font: 400 var(--fs-l)/1.1 var(--title); letter-spacing: .04em; text-transform: uppercase; }
.pagina .campo label { color: var(--ink); }
.pagina [hidden] { display: none !important; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pagina .campo input:not([type="checkbox"]), .pagina .campo select, .pagina .campo textarea { width: 100%; min-height: 2.9rem; padding: .6rem .8rem; border: 2px solid rgb(2 3 6 / .2); border-radius: .6rem; background: var(--white); color: var(--ink); font: 500 1rem/1.3 var(--body); letter-spacing: 0; }
.pagina .campo textarea { min-height: 5rem; }
.pagina .campo__error { color: var(--red); }
.pagina .form__error { background: var(--red); }
.nota { font-size: .9rem; color: #5b4c3e; }
.oculto { display: none !important; }

/* ---------- QR personal ---------- */
.qrpage { text-align: center; }
.qrpage__card { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: 1rem; padding: clamp(1rem, 4vw, 1.75rem); border-radius: 1.25rem; background: var(--white); box-shadow: 0 .75rem 2rem rgb(2 3 6 / .12); }
.qrpage__img { width: min(420px, 82vw); height: auto; image-rendering: pixelated; }
.qrpage__nombre { font: 400 var(--fs-l)/1.1 var(--title); letter-spacing: .03em; text-transform: uppercase; }
.qrpage__dato { font-size: .95rem; }
.qrpage__numero { font: 700 1.3rem/1 var(--body); letter-spacing: .08em; color: var(--red); }
.qrpage__ayuda { margin-top: 1rem; font-size: .9rem; color: #5b4c3e; }
.qrpage .btn { margin-top: 1rem; }
.invalido { padding: 2rem 1rem; border-radius: 1rem; background: var(--white); }
.invalido h2 { color: var(--red); }

/* ---------- Formularios sueltos (reenvío, login) ---------- */
.caja { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: 1rem; background: var(--white); }
.caja .btn { align-self: flex-start; }
.mensaje-ok { padding: .9rem 1rem; border-radius: .6rem; background: #e8f3e6; color: #1d4a1a; font-weight: 600; }

/* ---------- Panel admin ---------- */
.panel-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.5rem; }
.panel-tabs .tab { padding: .55em 1.1em .45em; }
.panel-sec[hidden] { display: none; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.tarjeta { padding: 1rem 1.1rem; border-radius: .9rem; background: var(--white); }
.tarjeta b { display: block; font: 400 2.2rem/1 var(--title); }
.tarjeta span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b5a48; }
.alerta { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: .7rem; background: #fff0d6; color: #5a3b00; font-size: .92rem; }
.alerta--roja { background: #fde3e1; color: #7a0f17; }
.tabla-wrap { overflow-x: auto; border-radius: .9rem; background: var(--white); }
.tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabla th, .tabla td { padding: .6rem .7rem; border-bottom: 1px solid #efe2d3; text-align: left; vertical-align: top; }
.tabla th { position: sticky; top: 0; background: var(--ink); color: var(--white); font: 700 .72rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tabla tr:hover td { background: #fbf4ec; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla input[type="text"], .tabla input[type="number"], .tabla textarea { width: 100%; min-width: 4rem; padding: .35rem .5rem; border: 1px solid #d8c6b2; border-radius: .4rem; font: inherit; }
.tabla textarea { min-width: 14rem; min-height: 2.4rem; resize: vertical; }
.barra { position: relative; width: 8rem; height: .6rem; border-radius: 99px; background: #efe2d3; overflow: hidden; }
.barra i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--red); }
.barra--llena i { background: var(--ink); }
.etq { display: inline-block; margin: 0 .25rem .2rem 0; padding: .1rem .5rem; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap; background: #efe2d3; }
.etq--roja { background: var(--red); color: var(--white); }
.etq--amarilla { background: #ffe7a8; }
.etq--verde { background: #cfe8c9; }
.etq--gris { background: #ddd; }
.filtros { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: .8rem; }
.filtros label { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; font-weight: 700; }
.filtros input, .filtros select { min-height: 2.4rem; padding: .35rem .6rem; border: 1px solid #d8c6b2; border-radius: .5rem; background: var(--white); font: 500 .9rem var(--body); }
.filtros .check-linea { flex-direction: row; align-items: center; min-height: 2.4rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .4rem; }
.mini { padding: .35rem .75rem; border: 1px solid var(--ink); border-radius: 99px; background: var(--white); color: var(--ink); font: 700 .75rem/1.2 var(--body); cursor: pointer; white-space: nowrap; }
.mini:hover { background: var(--ink); color: var(--white); }
.mini--rojo { border-color: var(--red); color: var(--red); }
.mini--rojo:hover { background: var(--red); color: var(--white); }
.mini:disabled { opacity: .5; cursor: wait; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.grid-form .campo textarea { width: 100%; min-height: 5rem; padding: .6rem .8rem; border: 2px solid rgb(2 3 6 / .2); border-radius: .6rem; font: 500 .95rem var(--body); }
.interruptor { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.interruptor input { width: 1.3rem; height: 1.3rem; accent-color: var(--red); }
.zona-peligro { margin-top: 2rem; padding: 1rem; border: 2px dashed var(--red); border-radius: .9rem; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 90; max-width: min(36rem, 92vw); padding: .8rem 1.1rem; border-radius: .7rem; background: var(--ink); color: var(--white); font-weight: 600; translate: -50% 0; box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / .3); }
.toast--error { background: var(--red); }
dialog.modal { width: min(40rem, 94vw); padding: 0; border: 0; border-radius: 1rem; }
dialog.modal::backdrop { background: rgb(2 3 6 / .55); }
.modal__body { display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem; }
.modal__body .acciones { margin-top: .5rem; }
.detalle { display: grid; grid-template-columns: 9rem 1fr; gap: .35rem .8rem; font-size: .9rem; }
.detalle dt { font-weight: 700; color: #6b5a48; }
.detalle dd { margin: 0; overflow-wrap: anywhere; }
.mas { margin: 1rem auto 0; display: block; }

/* ---------- Check-in ---------- */
.checkin { max-width: 32rem; }
.lector { overflow: hidden; border-radius: 1rem; background: var(--ink); }
.lector video { width: 100% !important; }
.contador { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0; padding: .9rem 1.1rem; border-radius: .9rem; background: var(--white); }
.contador b { font: 400 2rem/1 var(--title); }
.resultado { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; color: var(--white); }
.resultado[hidden] { display: none; }
.resultado--verde { background: #1e7b34; }
.resultado--amarillo { background: #d9a400; color: var(--ink); }
.resultado--rojo { background: var(--red); }
.resultado__icono { font-size: 5rem; line-height: 1; }
.resultado__titulo { font: 400 clamp(2rem, 9vw, 3.5rem)/1.05 var(--title); text-transform: uppercase; }
.resultado__sub { font-size: 1.15rem; font-weight: 600; }
.busqueda-res { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.busqueda-res .item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: .7rem; background: var(--white); }

/* Suéter */
.grid-form--tallas { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.comprobante { margin: 1rem 0; border-radius: .8rem; background: #f6efe6; overflow: hidden; }
.comprobante img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; }
.comprobante object { display: block; width: 100%; height: 70vh; }

/* Entregas del suéter: tarjeta con la talla en grande */
.entrega { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgb(2 3 6 / .72); }
.entrega[hidden] { display: none; }
.entrega__caja { width: min(26rem, 100%); padding: 1.5rem 1.25rem; border-radius: 1.2rem; background: var(--white); text-align: center; border-top: .6rem solid #1e7b34; }
.entrega--amarillo .entrega__caja { border-top-color: #d9a400; }
.entrega--rojo .entrega__caja { border-top-color: var(--red); }
.entrega__estado { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: #1e7b34; }
.entrega--amarillo .entrega__estado { color: #8a6800; }
.entrega--rojo .entrega__estado { color: var(--red); }
.entrega__talla-etq { margin-top: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5b4c3e; }
.entrega__talla { font: 400 clamp(6rem, 32vw, 9rem)/.9 var(--title); color: var(--ink); }
.entrega__nombre { margin-top: .5rem; font: 400 1.6rem/1.1 var(--title); text-transform: uppercase; }
.entrega__numero { font-weight: 700; letter-spacing: .08em; color: var(--red); }
.entrega__nota { margin-top: .5rem; font-size: .9rem; color: #5b4c3e; }
.entrega__nota:empty { display: none; }
.entrega__acciones { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }
.entrega__acciones .btn { width: 100%; justify-content: center; min-height: 3.4rem; font-size: 1.2rem; }
.entrega__ok { background: #1e7b34; }
.qrpage__talla { font-size: 1.1rem; }
.qrpage__talla b { font: 400 2.2rem/1 var(--title); vertical-align: middle; }
