/* ===== Base ===== */
:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1c1c1c;
    --border: #2a2a2a;
    /* Borde de un paso más: lo usan los contornos que tienen que verse sin
       pedir atención, como el botón secundario o las zonas punteadas. */
    --line2: #3a3a3a;
    --text: #f5f5f5;
    --text-dim: #9a9a9a;
    --text-faint: #6a6a6a;
    --white: #ffffff;
    /* Las tres familias del prototipo. Archivo titula, Inter conduce y la
       monoespaciada es para lo que se lee como dato: aforos, horas, códigos. */
    --display: 'Archivo', sans-serif;
    --ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ui);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

/* ===== Split layout (desktop: arte | contenido) ===== */
.split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.split-art {
    flex: 0 0 42%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.split-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

/* En mobile: el arte pasa a ser un header compacto */
@media (max-width: 860px) {
    .split {
        flex-direction: column;
    }
    .split-art {
        flex: none;
        height: 240px;
    }
    .split-art img {
        object-position: center 20%;
    }
    .split-content {
        padding: 2.5rem 1.5rem 3rem;
        max-width: 100%;
    }
}

/* ===== Centered layout (estado, invitación) ===== */
.centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.centered-inner {
    max-width: 420px;
    width: 100%;
    animation: fade-up 0.5s ease-out;
}

/* ===== Typography ===== */
.eyebrow {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Titular. La familia y el apretado van en la clase suelta para que sirva en
   cualquier etiqueta; el tamaño sigue atado al h1, que es donde manda. */
.display {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.98;
}

h1.display {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1rem;
}

/* Lo que se lee como dato —aforos, horas, teléfonos— en cifras de igual ancho,
   para que una columna de números se compare de un vistazo. */
.num {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.meta-line {
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* ===== Form ===== */
.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.input:focus {
    outline: none;
    border-color: var(--white);
    background: var(--surface-2);
}

.input::placeholder {
    color: var(--text-faint);
}

/* Chrome pinta el campo autollenado de amarillo con un box-shadow interno que
   no se puede sobreescribir con background: el truco del inset gigante es la
   única forma de devolverle el look oscuro del resto del formulario. */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
    caret-color: var(--text);
    transition: background-color 100000s ease-in-out 0s;
}

/* El navegador no avisa cuando autollena, pero sí aplica :-webkit-autofill.
   Esta animación vacía existe para que js/form-autofill.js escuche su
   animationstart y sepa que el campo cambió sin intervención del usuario. */
@keyframes autofillStart {
    from { opacity: 1; }
    to { opacity: 1; }
}

.input:-webkit-autofill {
    animation-name: autofillStart;
    animation-duration: 1ms;
}

/* ===== Picker: combo que busca (RelacionadorPicker) ===== */
.picker {
    position: relative;
}

.picker-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    max-height: 15rem;
    overflow-y: auto;
    background: var(--surface-2);
    border: 1px solid var(--line2);
    border-radius: 10px;
}

.picker-list li {
    padding: 0.65rem 0.75rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.95rem;
}

.picker-list li:hover,
.picker-list li.active {
    background: var(--border);
}

.picker-list .picker-none {
    color: var(--text-dim);
}

.picker-list .picker-empty {
    color: var(--text-faint);
    cursor: default;
}

.picker-list .picker-empty:hover {
    background: none;
}

/* ===== Buttons ===== */
.btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--white);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover {
    opacity: 0.88;
}

.btn:active {
    transform: scale(0.99);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* El botón nace a lo ancho porque en los formularios públicos ocupa toda la
   columna. En una cabecera o en un estado vacío tiene que medir lo que mide
   su texto, como en el prototipo. */
.sec-head .btn,
.empty .btn,
.topnav .btn {
    width: auto;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-dim);
    opacity: 1;
}

/* ===== Icon / status ===== */
.status-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.status-mark svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2.5;
}

.status-mark.dim {
    border-color: var(--text-faint);
}

.status-mark.dim svg {
    stroke: var(--text-faint);
}

/* ===== Invitation card ===== */
.invite {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fade-up 0.5s ease-out;
}

.invite .qr-box {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    display: inline-block;
    margin: 1.75rem 0 1rem;
}

.invite .qr-box img {
    width: 210px;
    height: 210px;
    display: block;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--border);
    margin: 1.25rem auto;
    border: none;
}

/* ===== Price block ===== */
.price-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.price-block .amount {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-block .includes {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
    text-align: left;
}

.qr-pay {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
}

.qr-pay img {
    width: 200px;
    height: 200px;
    display: block;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.alert-error {
    background: rgba(220, 60, 60, 0.12);
    border: 1px solid rgba(220, 60, 60, 0.4);
    color: #ff8080;
}

/* ===== Animations ===== */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Helpers ===== */
.mt-2 { margin-top: 1.5rem; }
.text-dim { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }
/* ============================================
   MÓDULO DE MESAS — agregar al final de app.css
   ============================================ */

.tables-page {
    min-height: 100vh;
    padding: 3rem 1.5rem 4rem;
    max-width: 960px;
    margin: 0 auto;
}

.tables-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .tables-header .subtitle {
        margin-bottom: 1.5rem;
    }

/* ----- Leyenda ----- */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-dim);
}

    .map-legend .lg {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

    .map-legend .dot {
        width: 11px;
        height: 11px;
        border-radius: 3px;
        display: inline-block;
    }

.dot-free {
    background: #f5f5f5;
}

.dot-pending {
    background: #8a8a8a;
}

.dot-taken {
    background: transparent;
    border: 1px solid #3a3a3a;
}

/* ----- Mapa ----- */
.map-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    overflow-x: auto;
}

.table-map {
    width: 100%;
    min-width: 620px;
    height: auto;
    display: block;
}

.zone {
    fill: none;
    stroke: #2e2e2e;
    stroke-width: 1.5;
}

.zone-icon {
    fill: none;
    stroke: #2e2e2e;
    stroke-width: 1.5;
}

.zone-tag {
    fill: var(--surface);
    stroke: #2e2e2e;
    stroke-width: 1.5;
}

.zone-label {
    fill: #6a6a6a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: 'Inter', sans-serif;
}

/* ----- Mesas ----- */
.tbl rect {
    stroke-width: 1.5;
    transition: all 0.15s ease;
}

.tbl .t-num {
    font-family: 'Inter', sans-serif;
    font-size: 21px;
    font-weight: 700;
    pointer-events: none;
}

.tbl .t-owner {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    pointer-events: none;
}

/* Disponible: blanco sólido, clickeable */
.tbl-free {
    cursor: pointer;
}

    .tbl-free rect {
        fill: #f5f5f5;
        stroke: #f5f5f5;
    }

    .tbl-free .t-num {
        fill: #0a0a0a;
    }

    .tbl-free:hover rect {
        fill: #ffffff;
        stroke: #ffffff;
        transform: translateY(-2px);
    }

/* Por confirmar: gris medio */
.tbl-pending {
    cursor: not-allowed;
}

    .tbl-pending rect {
        fill: #4a4a4a;
        stroke: #5a5a5a;
    }

    .tbl-pending .t-num {
        fill: #c8c8c8;
    }

    .tbl-pending .t-owner {
        fill: #9a9a9a;
    }

/* Reservada: contorno, con nombre */
.tbl-taken {
    cursor: not-allowed;
}

    .tbl-taken rect {
        fill: #161616;
        stroke: #3a3a3a;
    }

    .tbl-taken .t-num {
        fill: #7a7a7a;
    }

    .tbl-taken .t-owner {
        fill: #9a9a9a;
    }

/* Deshabilitada */
.tbl-off {
    cursor: not-allowed;
    opacity: 0.35;
}

    .tbl-off rect {
        fill: #101010;
        stroke: #262626;
    }

    .tbl-off .t-num {
        fill: #4a4a4a;
    }

/* ----- Paneles de pasos ----- */
.step-panel {
    max-width: 460px;
    margin: 0 auto;
    animation: fade-up 0.4s ease-out;
}

.back-link {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
}

    .back-link:hover {
        color: var(--text);
    }

/* ----- Experiencias ----- */
.pkg-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.pkg {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .pkg:hover {
        border-color: #4a4a4a;
    }

.pkg-on {
    border-color: var(--white);
    background: var(--surface-2);
}

.pkg-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.pkg-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.pkg-price {
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}

.pkg-desc {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.pkg-cap {
    color: var(--text-faint);
    font-size: 0.8rem;
}

/* ----- Aviso ----- */
.notice {
    background: rgba(245,245,245,0.05);
    border: 1px solid var(--border);
    border-left: 2px solid var(--text-dim);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 1.25rem 0;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .tables-page {
        padding: 2rem 1rem 3rem;
    }

    .map-wrap {
        padding: 0.75rem;
    }
}

.qr-note {
    color: var(--text-faint);
    font-size: 0.78rem;
    margin-top: 0.6rem;
    line-height: 1.4;
}

/* ----- Pedido de botellas -----
   Los botones son de 44px: es el mínimo táctil, y esto se usa de noche,
   en un celular, con una mano ocupada. */
.btl-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.7rem 0.6rem 1rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.btl-on {
    border-color: var(--white);
    background: var(--surface-2);
}

.btl-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.btl-step {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btl-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

    .btl-btn:hover:not(:disabled) {
        border-color: var(--white);
    }

    .btl-btn:disabled {
        color: var(--text-faint);
        cursor: default;
        opacity: 0.45;
    }

.btl-qty {
    min-width: 2.2rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.btl-total {
    margin-top: 0.7rem;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.btl-ok {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   PREMIO SORPRESA — cliente y canje
   ============================================ */

/* Sello del premio en la página del cliente (no revela nada) */
.gift-teaser {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.25rem;
}

.gift-seal {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px dashed var(--text-faint);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dim);
}

.gift-teaser strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.gift-teaser span {
    font-size: 0.78rem;
    color: var(--text-faint);
    line-height: 1.45;
}

/* ---- Pantalla de canje (personal) ---- */
.redeem-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.redeem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    animation: fade-up 0.4s ease-out;
}

    .redeem-card.ok {
        border-color: rgba(80,200,120,.55);
    }

    .redeem-card.warn {
        border-color: rgba(230,180,60,.55);
    }

    .redeem-card.bad {
        border-color: rgba(220,70,70,.55);
    }

.redeem-head {
    padding: 2.25rem 1.5rem 1.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.redeem-mark {
    width: 62px;
    height: 62px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 2px solid;
    display: grid;
    place-items: center;
}

    .redeem-mark svg {
        width: 30px;
        height: 30px;
        fill: none;
        stroke-width: 2.5;
    }

.ok .redeem-mark {
    border-color: #50c878;
}

    .ok .redeem-mark svg {
        stroke: #50c878;
    }

.warn .redeem-mark {
    border-color: #e6b43c;
}

    .warn .redeem-mark svg {
        stroke: #e6b43c;
    }

.bad .redeem-mark {
    border-color: #dc4646;
}

    .bad .redeem-mark svg {
        stroke: #dc4646;
    }

.redeem-head h1 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.redeem-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.redeem-body {
    padding: 1.25rem 1.5rem;
}

.rd-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

    .rd-row:last-child {
        border-bottom: none;
    }

    .rd-row span {
        color: var(--text-faint);
    }

    .rd-row b {
        font-weight: 600;
        text-align: right;
    }

/* Revelación del premio: el momento importante de la pantalla */
.gift-reveal {
    margin: 0 1.5rem 1.5rem;
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
    text-align: center;
}

    .gift-reveal.has {
        background: var(--white);
        color: #000;
    }

    .gift-reveal.none {
        background: var(--surface-2);
        border: 1px solid var(--border);
    }

.gr-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 0.6rem;
}

.gr-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

    .gr-name.gr-empty {
        font-size: 1.1rem;
        color: var(--text-faint);
        font-weight: 500;
    }

.gr-desc {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.5;
    opacity: 0.75;
}

.gift-reveal.none .gr-desc {
    color: var(--text-dim);
}

/* ============================================
   POPUP DEL PREMIO (marketing) + CARRITO
   ============================================ */

.gm-back {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 100;
    animation: gm-fade 0.22s ease-out;
}

.gm {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.25rem 1.75rem 1.75rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    animation: gm-in 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

/* El sello: lo único con algo de teatro en toda la pantalla */
.gm-seal {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.35rem;
    border-radius: 50%;
    background: var(--white);
    color: #000;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    font-weight: 700;
    position: relative;
    animation: gm-stamp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

    .gm-seal::after {
        content: "";
        position: absolute;
        inset: -9px;
        border-radius: 50%;
        border: 1px dashed var(--text-faint);
        animation: gm-ring 0.6s ease-out 0.28s backwards;
    }

.gm-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0.65rem 0 0.85rem;
}

.gm-sub {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gm-prizes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
}

.gm-prize {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.gm-skip {
    background: none;
    border: none;
    color: var(--text-faint);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.9rem 0 0;
    width: 100%;
}

    .gm-skip:hover {
        color: var(--text-dim);
    }

@keyframes gm-fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes gm-in {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes gm-stamp {
    from {
        transform: scale(0.4);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

@keyframes gm-ring {
    from {
        transform: scale(1.35);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* ---- Carrito: el premio viaja visible hasta el pago ---- */
.cart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    margin: 1.5rem 0;
}

.cart-h {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.85rem;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

    .cart-row:last-of-type {
        border-bottom: none;
    }

    .cart-row span {
        color: var(--text-dim);
    }

    .cart-row b {
        font-weight: 600;
        text-align: right;
    }

/* La línea del premio es la que tiene que llamar la atención */
.cart-gift span {
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-gift b {
    color: var(--text);
}

.cart-seal {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    color: #000;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: normal;
    flex: 0 0 20px;
}

.cart-note {
    font-size: 0.76rem;
    color: var(--text-faint);
    line-height: 1.5;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
    .gm, .gm-seal, .gm-seal::after, .gm-back {
        animation: none;
    }
}

/* ============================================
   REVELACIÓN DEL PREMIO — página del titular
   ============================================ */

/* El sello cerrado: invita a tocar */
.rv-seal {
    width: 132px;
    height: 132px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: #000;
    border: none;
    font-family: inherit;
    font-size: 3.4rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    animation: rv-breathe 2.6s ease-in-out infinite;
}

    .rv-seal::after {
        content: "";
        position: absolute;
        inset: -14px;
        border-radius: 50%;
        border: 1px dashed var(--text-faint);
    }

    .rv-seal:active {
        transform: scale(0.96);
    }

@keyframes rv-breathe {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.045);
    }
}

/* La tarjeta entra con el premio ya revelado */
.rv-card {
    animation: rv-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rv-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* El premio: bloque invertido, es lo primero que ve */
.rv-prize {
    background: var(--white);
    color: #000;
    border-radius: 14px;
    padding: 1.75rem 1.25rem;
    animation: rv-pop 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards;
}

.rv-prize-sm {
    padding: 1.15rem 1rem;
}

.rv-label {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.rv-name {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.rv-prize-sm .rv-name {
    font-size: 1.15rem;
}

.rv-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.6rem;
    opacity: 0.72;
}

@keyframes rv-pop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rv-qrnote {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-top: 0.25rem;
}

    .rv-qrnote strong {
        color: var(--text);
        font-weight: 600;
    }

@media (prefers-reduced-motion: reduce) {
    .rv-seal, .rv-card, .rv-prize {
        animation: none;
    }
}

/* ---- Estado "lista para entregar" (previo a la confirmación) ---- */
.redeem-card.ready {
    border-color: var(--line2);
}

.ready .redeem-mark {
    border-color: var(--white);
}

    .ready .redeem-mark svg {
        stroke: var(--white);
    }

.rd-confirm {
    padding: 0 1.5rem 1.5rem;
}

.rd-warn {
    font-size: 0.8rem;
    color: var(--text-faint);
    line-height: 1.55;
    margin-bottom: 1rem;
    padding-top: 0.25rem;
}

.rd-deliver {
    width: 100%;
    padding: 1.05rem 1.5rem;
    font-size: 1.02rem;
}

/* ---- Carnet destacado: es el dato que se compara contra el documento ---- */
.rd-ci b {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
}

/* ---- Aviso de verificación ---- */
.rd-flag {
    margin: 0 1.5rem 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: rgba(220, 70, 70, 0.1);
    border: 1px solid rgba(220, 70, 70, 0.4);
    font-size: 0.82rem;
    color: #ff9a9a;
    line-height: 1.55;
}

    .rd-flag strong {
        display: block;
        font-weight: 600;
        margin-bottom: 0.2rem;
        color: #ffbdbd;
    }

.rd-flag-soft {
    background: rgba(230, 180, 60, 0.1);
    border-color: rgba(230, 180, 60, 0.4);
    color: #e6c98c;
}

    .rd-flag-soft strong {
        color: #f0d9a8;
    }

/* ---- Scanner en móvil: el contenedor manda ---- */
#qr-reader {
    width: 100% !important;
    max-width: 420px;
    margin: 0 auto;
}

    #qr-reader video {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px;
        display: block;
    }

#qr-reader__scan_region {
    min-height: unset !important;
}

#qr-reader img[alt="Info icon"] {
    display: none;
}
/* ============================================
   CUENTAS — pegar al final de app.css
   ============================================ */

/* Layout partido de acceso y registro */
.split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-art {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.split-claim .display {
    font-size: 2.6rem;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.split-claim .subtitle {
    margin-top: 1.1rem;
    max-width: 21rem;
}

.split-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2rem;
}

.form-wrap {
    width: 100%;
    max-width: 22rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* Campos */
.field-error {
    display: block;
    color: #ff9a9a;
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

.field label .opt {
    color: var(--text-faint);
    font-weight: 400;
}

.hint {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.form-foot {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-top: 1.75rem;
    text-align: center;
}

    .form-foot a {
        color: var(--text);
    }

@media (max-width: 820px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split-art {
        display: none;
    }

    .split-form {
        padding: 2.5rem 1.25rem;
    }
}
/* ============================================
   PLATAFORMA — eventos. Pegar al final de app.css
   ============================================ */

.plat-shell {
    max-width: 68rem;
    margin: 0 auto;
    padding: 2.5rem 1.75rem 4rem;
}

    .plat-shell.narrow {
        max-width: 38rem;
    }

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .sec-head .display {
        font-size: 2.2rem;
        line-height: 1.04;
        letter-spacing: -0.03em;
        margin-top: .5rem;
    }

.ev-meta {
    color: var(--text-dim);
    font-size: .88rem;
}

/* ---- Tarjetas de evento ---- */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: 1rem;
}

.ev-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.35rem;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
}

    .ev-card:hover {
        border-color: var(--line2, #3a3a3a);
        transform: translateY(-2px);
    }

.ev-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.15rem;
}

.ev-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.ev-when {
    font-size: .78rem;
    color: var(--text-dim);
    margin-top: .3rem;
}

.ev-cap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .45rem;
}

    .ev-cap .k {
        font-size: .7rem;
        color: var(--text-faint);
    }

    .ev-cap .v {
        font-family: ui-monospace, monospace;
        font-size: .8rem;
    }

/* Medidor de aforo: el dato que manda en todo el producto */
.meter {
    display: flex;
    gap: 2px;
    height: 1.5rem;
    align-items: flex-end;
}

    .meter i {
        flex: 1;
        background: var(--border);
        height: .5rem;
        border-radius: 1px;
        transition: height .4s ease, background .4s ease;
    }

        .meter i.f {
            background: var(--text);
            height: 1.5rem;
        }

/* Versión chica, para las tarjetas de medida del panel. */
.meter.sm {
    height: 1rem;
}

    .meter.sm i {
        height: .375rem;
    }

        .meter.sm i.f {
            height: 1rem;
        }

.ev-new {
    border: 1px dashed var(--line2, #3a3a3a);
    background: none;
    border-radius: 14px;
    min-height: 11rem;
    display: grid;
    place-items: center;
    color: var(--text-faint);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .18s ease, color .18s ease;
}

    .ev-new:hover {
        border-color: var(--text-dim);
        color: var(--text);
    }

    .ev-new .plus {
        display: block;
        font-size: 1.6rem;
        font-weight: 300;
    }

    .ev-new span {
        font-size: .8rem;
    }

/* ---- Estados ---- */
.st {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    padding: .25rem .6rem;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.st-live {
    background: var(--text);
    color: var(--bg);
}

.st-draft {
    border: 1px solid var(--line2, #3a3a3a);
    color: var(--text-dim);
}

.st-closed {
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.st-done {
    border: 1px solid var(--border);
    color: var(--text-faint);
}

/* ---- Vacío ---- */
.empty {
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: 16px;
}

    .empty h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: .5rem;
    }

    .empty p {
        color: var(--text-dim);
        font-size: .9rem;
        margin-bottom: 1.5rem;
    }

/* ---- Aviso de borrador ---- */
.draft-note {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--text-dim);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    font-size: .82rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

    .draft-note strong {
        display: block;
        color: var(--text);
        margin-bottom: .2rem;
    }

    .draft-note code {
        font-family: ui-monospace, monospace;
        background: var(--surface-2);
        padding: .1rem .35rem;
        border-radius: 4px;
        color: var(--text);
    }

/* ---- Pestañas ---- */
.tabs {
    display: flex;
    gap: 1.6rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
    overflow-x: auto;
}

    /* Los enlaces son las pestañas de sección (EventTabs); los botones quedan
       para las pestañas internas de una misma pantalla. Mismo aspecto. */
    .tabs button,
    .tabs a {
        background: none;
        border: none;
        color: var(--text-faint);
        font-family: inherit;
        font-size: .85rem;
        padding: 0 0 .8rem;
        cursor: pointer;
        border-bottom: 1.5px solid transparent;
        margin-bottom: -1px;
        white-space: nowrap;
        text-decoration: none;
    }

        .tabs button.on,
        .tabs a.on {
            color: var(--text);
            border-bottom-color: var(--text);
        }

        .tabs button:hover,
        .tabs a:hover {
            color: var(--text-dim);
        }

.panel-placeholder {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-faint);
    font-size: .85rem;
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}

.alert-ok {
    background: rgba(80,200,120,.1);
    border: 1px solid rgba(80,200,120,.35);
    color: #9fe0b8;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .85rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .plat-shell {
        padding: 1.75rem 1rem 3rem;
    }

    .sec-head {
        flex-direction: column;
        align-items: stretch;
    }

        .sec-head .display {
            font-size: 1.75rem;
        }

    .row2 {
        grid-template-columns: 1fr;
    }
}

/* ===== Portada pública ===== */
.home-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.home-enter {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.45rem 1rem;
    white-space: nowrap;
    transition: border-color 0.18s ease, color 0.18s ease;
}

    .home-enter:hover {
        border-color: var(--text-dim);
        color: var(--text);
    }

/* La tarjeta de la portada es un enlace: el evento se abre con un toque,
   sin circuito de Blazor detrás. */
a.ev-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

    a.ev-card .ev-top:last-child {
        margin-bottom: 0;
    }

.ev-art {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.1rem;
    background: var(--surface-2);
}

/* ===== Barra de cuenta (pantallas de plataforma) ===== */
.acct-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.acct-brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    text-decoration: none;
}

.acct-org {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empuja lo de la derecha y, de paso, separa la organización del nombre. */
.acct-sep {
    flex: 1;
}

.acct-user {
    font-size: 0.8rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.acct-form {
    margin: 0;
    display: inline;
}

.acct-exit {
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 0.95rem;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

    .acct-exit:hover {
        border-color: var(--text-dim);
        color: var(--text);
    }

@media (max-width: 40rem) {
    .acct-bar {
        padding: 0.75rem 1rem;
        gap: 0.6rem;
    }

    /* En el celular el nombre se cae: lo que importa es de qué organización
       es el panel y poder salir. */
    .acct-user {
        display: none;
    }
}

/* ===== Casillas de opción (duplicar evento) ===== */
.check {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .9rem 1rem;
    margin-bottom: .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .9rem;
    cursor: pointer;
}

    .check input {
        margin-top: .2rem;
        accent-color: var(--white);
    }

    .check .hint {
        display: block;
    }

/* ===== Selector de evento ===== */
.ev-switch {
    position: relative;
}

    .ev-switch > summary {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        list-style: none;
        cursor: pointer;
        font-size: 0.82rem;
        color: var(--text);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 0.35rem 0.85rem;
        max-width: 16rem;
        transition: border-color 0.18s ease;
    }

        /* Safari y Chrome dibujan su propio triangulito. */
        .ev-switch > summary::-webkit-details-marker {
            display: none;
        }

        .ev-switch > summary:hover {
            border-color: var(--text-dim);
        }

.ev-switch-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-switch-caret {
    color: var(--text-faint);
    font-size: 0.7rem;
}

.ev-switch-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    /* Por encima del AppBar de MudBlazor, que usa 1100. */
    z-index: 1200;
    min-width: 17rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

    .ev-switch-menu > a {
        display: block;
        padding: 0.5rem 0.65rem;
        border-radius: 8px;
        text-decoration: none;
        color: var(--text);
    }

        .ev-switch-menu > a:hover {
            background: var(--surface-2);
        }

        .ev-switch-menu > a.on {
            background: var(--surface-2);
            box-shadow: inset 2px 0 0 var(--text);
        }

.ev-switch-item {
    display: block;
    font-size: 0.85rem;
    line-height: 1.2;
}

.ev-switch-when {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

.ev-switch-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
    padding: 0.55rem 0.65rem 0.2rem;
}

    .ev-switch-foot a {
        font-size: 0.75rem;
        color: var(--text-dim);
        text-decoration: none;
    }

        .ev-switch-foot a:hover {
            color: var(--text);
        }

@media (max-width: 40rem) {
    .ev-switch > summary {
        max-width: 9rem;
    }

    .ev-switch-menu {
        min-width: 14rem;
    }
}

/* ===== Primitivas del prototipo de plataforma =====
   Lo que hasta ahora resolvÃ­a MudBlazor en las pantallas de gestiÃ³n: tarjeta,
   campo, tabla de datos y barra superior. El resto del sitio ya venÃ­a con este
   lenguaje, asÃ­ que acÃ¡ sÃ³lo se agrega lo que faltaba. */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

    .card.pad {
        padding: 1.5rem;
    }

    .card > h3 {
        font-family: var(--display);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin: 0 0 0.35rem;
    }

/* ---- Campos ---- */
.inp {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0.75rem 0.9rem;
    color: var(--text);
    font-family: var(--ui);
    font-size: 0.88rem;
}

    .inp:focus {
        outline: none;
        border-color: var(--text);
        background: var(--surface-2);
    }

    .inp::placeholder {
        color: var(--text-faint);
    }

    .inp:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

textarea.inp {
    resize: vertical;
    min-height: 4.5rem;
    line-height: 1.5;
}

select.inp {
    appearance: none;
    cursor: pointer;
}

.fld {
    margin-bottom: 1rem;
}

    .fld label {
        display: block;
        font-size: 0.75rem;
        color: var(--text-dim);
        margin-bottom: 0.45rem;
        font-weight: 500;
    }

/* Nota al margen: el porquÃ© de una pantalla, no una instrucciÃ³n. */
.note {
    font-size: 0.75rem;
    color: var(--text-faint);
    line-height: 1.6;
    border-left: 1.5px solid var(--line2);
    padding-left: 0.9rem;
}

/* ---- Tabla de datos ----
   Con clase propia y no sobre table a secas: mientras queden pÃ¡ginas con
   MudBlazor, una regla global les pisarÃ­a sus tablas. */
.datatable {
    width: 100%;
    border-collapse: collapse;
}

    .datatable th {
        text-align: left;
        font-family: var(--mono);
        font-size: 0.66rem;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        color: var(--text-faint);
        font-weight: 400;
        padding: 0 0.9rem 0.7rem;
    }

    .datatable td {
        padding: 0.8rem 0.9rem;
        border-top: 1px solid var(--border);
        font-size: 0.85rem;
        vertical-align: middle;
    }

    .datatable tbody tr:hover {
        background: var(--surface-2);
    }

    .datatable .right {
        text-align: right;
    }

    .datatable .sub {
        font-size: 0.72rem;
        color: var(--text-faint);
        margin-top: 0.15rem;
    }

.table-wrap {
    overflow-x: auto;
}

/* ---- Tarjetas de medida ---- */
.use {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.9rem;
    margin-bottom: 2rem;
}

    .use .c {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.1rem;
    }

    .use .k {
        font-size: 0.72rem;
        color: var(--text-faint);
        margin-bottom: 0.6rem;
    }

    .use .v {
        font-family: var(--mono);
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
    }

        .use .v s {
            color: var(--text-faint);
            text-decoration: none;
            font-size: 0.82rem;
        }

/* ---- Barra superior ---- */
.topnav {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(8px);
}

    .topnav .in {
        max-width: 70rem;
        margin: 0 auto;
        padding: 0.9rem 1.75rem;
        display: flex;
        align-items: center;
        gap: 1.1rem;
    }

.topnav-logo {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.04em;
    color: var(--text);
    text-decoration: none;
}

.tag {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    border: 1px solid var(--border);
    padding: 0.3rem 0.55rem;
    border-radius: 5px;
    white-space: nowrap;
}

.av {
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line2);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ---- BotÃ³n chico y punto de estado ---- */
.btn-sm {
    width: auto;
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    border-radius: 8px;
}

.st-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ---- Rejillas de formulario y de tarjetas ---- */
.row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
}

.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 62rem) {
    .row3,
    .cols-2 {
        grid-template-columns: 1fr;
    }
}

/* ---- Dos columnas: formulario al costado, contenido al lado ---- */
.cols-1-2 {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) 2fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 62rem) {
    .cols-1-2 {
        grid-template-columns: 1fr;
    }
}

/* ---- Lista de puesta a punto ---- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

    .steps li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.4rem 0;
        color: var(--text-dim);
    }

        /* El punto de cada paso: relleno cuando está hecho, hueco cuando falta. */
        .steps li::before {
            content: "";
            width: 0.7rem;
            height: 0.7rem;
            flex-shrink: 0;
            border-radius: 50%;
            border: 1.5px solid var(--line2);
        }

        .steps li.done {
            color: var(--text);
        }

            .steps li.done::before {
                background: var(--text);
                border-color: var(--text);
            }

    .steps b {
        font-size: 0.78rem;
        color: var(--text-faint);
        font-weight: 500;
    }

/* ---- Marca del escáner (dibujada, no un ícono de fuente) ---- */
.scan-mark {
    width: 8rem;
    height: 8rem;
    margin: 0 auto;
    border: 1.5px solid var(--line2);
    border-radius: 14px;
    display: grid;
    place-items: center;
}

.scan-square {
    width: 4rem;
    height: 4rem;
    border: 1.5px solid var(--text);
    border-radius: 8px;
    position: relative;
}

    /* La línea de lectura que cruza el cuadro. */
    .scan-square::after {
        content: "";
        position: absolute;
        left: -1.5px;
        right: -1.5px;
        top: 50%;
        height: 1.5px;
        background: var(--text);
    }

/* ---- Zona de carga de archivo ---- */
.drop {
    border: 1px dashed var(--line2);
    border-radius: 10px;
    padding: 1.6rem;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.82rem;
}

    .drop:hover {
        border-color: var(--text-dim);
    }

@media (max-width: 40rem) {
    .topnav .in {
        padding: 0.75rem 1rem;
        gap: 0.65rem;
    }

    .use {
        grid-template-columns: 1fr;
    }
}
