/* =====================================================================
   PAGO AL DÍA · piezas propias sobre la piel clay azul
   ===================================================================== */

.marca { display: flex; align-items: center; gap: 11px; padding: 4px 6px 18px; }

.marca__logo {
    width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 12px 22px -12px rgba(43, 98, 240, .95);
}

.marca__txt strong { display: block; font-size: .98rem; font-weight: 800; color: var(--texto); }
.marca__txt small { display: block; font-size: .68rem; color: var(--texto-suave); font-weight: 600; }

/* ------------------------------- Acceso -------------------------------- */
.acceso-body { background: var(--fondo); }

.acceso__logo {
    display: block;
    width: 74px; height: 74px; margin: 0 auto 16px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 20px 34px -18px rgba(43, 98, 240, .95);
}

.acceso__caja h1 { text-align: center; font-size: 1.5rem; margin: 0 0 4px; font-weight: 800; }
.acceso__sub { text-align: center; color: var(--texto-suave); font-size: .84rem; margin: 0 0 22px; font-weight: 600; }
.acceso__pie { text-align: center; color: var(--texto-suave); font-size: .74rem; margin: 18px 0 0; }

/* ------------------------------ Semáforo -------------------------------- */
.semaforo { display: grid; gap: 14px; }

.grupo__cab {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 8px; font-size: .74rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--texto-suave);
}

.grupo__cab .punto { width: 9px; height: 9px; border-radius: 50%; }
.punto--rojo { background: var(--peligro); box-shadow: 0 0 0 4px rgba(230,57,80,.14); }
.punto--ambar { background: #f0a72c; box-shadow: 0 0 0 4px rgba(240,167,44,.16); }
.punto--azul { background: var(--primario); box-shadow: 0 0 0 4px rgba(47,116,208,.14); }
.punto--verde { background: var(--ok); box-shadow: 0 0 0 4px rgba(46,184,114,.14); }

.ficha {
    display: flex; align-items: center; gap: 12px;
    background: var(--superficie-2);
    border-radius: var(--radio-sm);
    padding: 13px 15px;
    box-shadow: 0 10px 24px -18px rgba(37,48,70,.55);
    margin-bottom: 9px;
}

.ficha__dato { min-width: 0; flex: 1; }
.ficha__dato strong { display: block; font-size: .92rem; font-weight: 800; }
.ficha__dato span { display: block; font-size: .76rem; color: var(--texto-suave); }
.ficha__monto { text-align: right; }
.ficha__monto strong { display: block; font-size: .95rem; font-weight: 800; }
.ficha__monto span { font-size: .7rem; color: var(--texto-suave); }

.ficha--rojo { border-left: 4px solid var(--peligro); }
.ficha--ambar { border-left: 4px solid #f0a72c; }
.ficha--azul { border-left: 4px solid var(--primario); }

.vacio-caja {
    text-align: center; padding: 34px 18px; color: var(--texto-suave);
    background: var(--superficie); border-radius: var(--radio-sm);
}

@media (max-width: 760px) {
    .acceso__caja { margin: 0 16px; }
}

/* Botón de ancho completo (la piel base no lo trae) */
.btn--bloque { width: 100%; }

/* Caja de acceso centrada */
.acceso__caja { text-align: center; }
.acceso__caja form { text-align: left; margin-top: 6px; }
.acceso__caja .alerta { text-align: left; }


/* =====================================================================
   CARTERA DE CLIENTES
   ===================================================================== */

.barra-acciones {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.buscador {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
}

.buscador i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texto-suave);
    font-size: .95rem;
}

.buscador input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1px solid var(--linea);
    border-radius: var(--radio-sm);
    font-family: var(--fuente);
    font-size: .9rem;
    background: var(--superficie-2);
    color: var(--texto);
}

.buscador input:focus {
    outline: none;
    border-color: var(--primario);
    box-shadow: 0 0 0 3px rgba(43, 98, 240, .16);
}

.lista-clientes { display: grid; gap: 12px; }

.ficha-cliente {
    background: var(--superficie-2);
    border-radius: var(--radio-sm);
    padding: 16px 18px;
    box-shadow: 0 12px 26px -20px rgba(37, 48, 70, .55);
    border-left: 4px solid var(--primario);
}

.ficha-cliente.ficha--ambar { border-left-color: #f0a72c; }
.ficha-cliente.ficha--rojo  { border-left-color: var(--peligro); }

.ficha-cliente__cab {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ficha-cliente__cab strong { display: block; font-size: 1rem; font-weight: 800; }
.ficha-cliente__cab span { display: block; font-size: .78rem; color: var(--texto-suave); }

.ficha-cliente__datos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--linea);
    border-bottom: 1px solid var(--linea);
}

.ficha-cliente__datos span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-suave); }
.ficha-cliente__datos strong { font-size: .92rem; font-weight: 800; }

.ficha-cliente__pie {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.pastilla {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pastilla--ok   { background: #d9f4e6; color: #1a7a4c; }
.pastilla--rojo { background: #ffe1e6; color: #a81232; }
.pastilla--gris { background: #e7ebf2; color: #5a6478; }

/* -------------------------------- Modal -------------------------------- */
.modal-fondo {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(20, 30, 50, .55);
    backdrop-filter: blur(3px);
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
}

.modal-fondo[hidden] { display: none; }

.modal-caja {
    width: min(520px, 100%);
    background: var(--superficie-2);
    border-radius: var(--radio);
    padding: 22px 22px 20px;
    box-shadow: 0 40px 70px -30px rgba(20, 30, 50, .8);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-cab h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }

.fila-doble {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fila-gps { display: flex; gap: 8px; }
.fila-gps .input { flex: 1; min-width: 0; }

.sin-scroll { overflow: hidden; }

@media (max-width: 520px) {
    .fila-doble { grid-template-columns: minmax(0, 1fr); }
    .ficha-cliente__datos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .modal-caja { padding: 18px 16px; }
}

/* Botón de menú: solo en móvil */
.solo-movil { display: none; }
@media (max-width: 760px) { .solo-movil { display: inline-flex; } }

/* Gana sobre .btn-icono en escritorio */
@media (min-width: 761px) {
    .btn-icono.solo-movil { display: none !important; }
}


/* =====================================================================
   CATÁLOGO
   ===================================================================== */

.tarjeta--cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

.punto-color {
    width: 14px; height: 14px; border-radius: 50%;
    flex: 0 0 14px;
    box-shadow: 0 0 0 4px rgba(43, 98, 240, .12);
}

.tarjeta--cat__txt { flex: 1; min-width: 0; }
.tarjeta--cat__txt strong { display: block; font-size: .95rem; font-weight: 800; }
.tarjeta--cat__txt span { display: block; font-size: .76rem; color: var(--texto-suave); }

.lista-productos { display: grid; gap: 10px; }

.fila-producto {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 96px auto;
    align-items: center;
    gap: 14px;
    background: var(--superficie-2);
    border-radius: var(--radio-sm);
    padding: 14px 16px;
    box-shadow: 0 10px 22px -18px rgba(37, 48, 70, .5);
}

.fila-producto__principal strong { display: block; font-size: .95rem; font-weight: 800; }
.fila-producto__principal span { display: block; font-size: .76rem; color: var(--texto-suave); }

.fila-producto__precio { text-align: right; }
.fila-producto__precio strong { display: block; font-size: .95rem; font-weight: 800; color: var(--primario-osc); }
.fila-producto__precio span { display: block; font-size: .72rem; color: var(--texto-suave); }

.fila-producto__stock { text-align: right; min-width: 96px; }
.fila-producto__stock span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-suave); }
.fila-producto__stock strong { font-size: .88rem; font-weight: 800; }

@media (max-width: 700px) {
    .fila-producto {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "principal precio"
            "stock accion";
        row-gap: 10px;
    }
    .fila-producto__principal { grid-area: principal; }
    .fila-producto__precio { grid-area: precio; }
    .fila-producto__stock { grid-area: stock; text-align: left; }
    .fila-producto button { grid-area: accion; justify-self: end; }
}


/* =====================================================================
   COMPONENTES BASE (los que la piel no trae)
   ===================================================================== */

.rejilla {
    display: grid;
    gap: 14px;
}
.rejilla--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) { .rejilla--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .rejilla--2, .rejilla--3 { grid-template-columns: minmax(0, 1fr); }
}

.tarjeta {
    background: var(--superficie-2);
    border-radius: var(--radio-sm);
    padding: 18px;
    box-shadow: 0 14px 30px -24px rgba(37, 48, 70, .55);
    border: 1px solid rgba(37, 48, 70, .06);
}

.btn-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--linea, #dfe5f0);
    border-radius: 10px;
    background: #fff;
    color: var(--texto-suave);
    cursor: pointer;
    font-size: .95rem;
    transition: .15s;
    flex: 0 0 36px;
}

.btn-icono:hover {
    color: var(--primario);
    border-color: var(--primario);
    background: #f2f7ff;
}

.vacio-caja {
    grid-column: 1 / -1;
    background: var(--superficie-2);
    border-radius: var(--radio-sm);
    padding: 34px 20px;
    text-align: center;
    color: var(--texto-suave);
    font-size: .9rem;
    box-shadow: 0 14px 30px -26px rgba(37, 48, 70, .5);
}

.campo { margin-bottom: 14px; }
.campo .input { width: 100%; }

.etiqueta {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--texto-suave);
    margin-bottom: 6px;
}

.ayuda {
    font-size: .76rem;
    color: var(--texto-suave);
    margin: 6px 0 0;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2366718a' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}


/* Móvil: la barra de acciones se apila para no desbordar */
@media (max-width: 700px) {
    .barra-acciones {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .barra-acciones .buscador,
    .barra-acciones .input,
    .barra-acciones .btn {
        width: 100%;
        max-width: none !important;
        flex: none;
    }
    .barra-acciones .btn { justify-content: center; }

    .fila-producto {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "principal accion"
            "precio stock";
    }
    .fila-producto__principal { grid-area: principal; }
    .fila-producto__precio { grid-area: precio; text-align: left; margin-top: 8px; }
    .fila-producto__stock { grid-area: stock; text-align: right; min-width: 0; margin-top: 8px; }
    .fila-producto button { grid-area: accion; justify-self: end; }

    .barra { gap: 10px; }
    .barra h1 { font-size: 1.15rem; line-height: 1.2; }
    .barra__sub { font-size: .74rem; line-height: 1.25; }
    .barra > div:not(.barra__der) { min-width: 0; }
    .barra__der { display: flex; }
}

@media (min-width: 701px) {
    .barra-acciones .btn { margin-left: auto; }
}


/* =====================================================================
   VENTAS Y COBROS
   ===================================================================== */

.fila-agregar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.fila-agregar .input { flex: 1 1 auto; min-width: 0; }

.lineas-venta {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.linea-venta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fondo-2);
    border-radius: 14px;
    padding: 10px 12px;
}
.linea-venta > div { flex: 1; min-width: 0; }
.linea-venta strong { font-size: .88rem; font-weight: 800; }
.linea-venta span { display: block; font-size: .74rem; color: var(--texto-suave); }
.linea-venta > strong { font-variant-numeric: tabular-nums; }

.total-venta {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    background: var(--fondo-2);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 6px 0 14px;
}
.total-venta span {
    display: block;
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--texto-suave);
    font-weight: 800;
}
.total-venta strong { font-size: 1.12rem; font-weight: 800; }
.total-venta > div:last-child { text-align: right; }

.lista-facturas { display: grid; gap: 8px; margin-top: 6px; }

.fila-cobro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 104px;
    align-items: center;
    gap: 10px;
    background: var(--fondo-2);
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
}
.fila-cobro input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--primario);
    cursor: pointer;
}
.fila-cobro__txt strong { display: block; font-size: .86rem; font-weight: 800; }
.fila-cobro__txt span { display: block; font-size: .72rem; color: var(--texto-suave); }
.fila-cobro__saldo { text-align: right; }
.fila-cobro__saldo span {
    display: block; font-size: .62rem; text-transform: uppercase;
    letter-spacing: .8px; color: var(--texto-suave); font-weight: 800;
}
.fila-cobro__saldo strong { font-size: .86rem; font-weight: 800; }

.input--abono {
    padding: 8px 10px !important;
    text-align: right;
    font-weight: 800;
    background: #fff !important;
}
.input--abono:disabled { opacity: .45; }

@media (max-width: 620px) {
    .fila-cobro {
        grid-template-columns: auto minmax(0, 1fr) 92px;
        grid-template-areas:
            "chk txt txt"
            "chk saldo monto";
        row-gap: 4px;
    }
    .fila-cobro input[type="checkbox"] { grid-area: chk; }
    .fila-cobro__txt { grid-area: txt; }
    .fila-cobro__saldo { grid-area: saldo; text-align: left; }
    .input--abono { grid-area: monto; }
    .total-venta { flex-direction: column; gap: 8px; }
    .total-venta > div:last-child { text-align: left; }
}


/* Bloques vacíos más compactos en el panel */
.contenido .vacio-caja,
.contenido .vacio {
    padding: 22px 18px;
}


/* =====================================================================
   REPORTES
   ===================================================================== */

.grafico {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    margin-top: 14px;
    padding-bottom: 4px;
    overflow-x: auto;
}

.barra-dia {
    flex: 1 0 26px;
    min-width: 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.barra-dia__pinta {
    width: 100%;
    max-width: 34px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #4f81f7, #2b62f0);
    transition: height .3s ease;
}

.barra-dia span {
    font-size: .62rem;
    font-weight: 700;
    color: var(--texto-suave);
    white-space: nowrap;
}

.lista-barras { display: grid; gap: 12px; }

.barra-cat__cab {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}
.barra-cat__cab strong { font-size: .86rem; font-weight: 800; }
.barra-cat__cab span { font-size: .8rem; color: var(--texto-suave); font-variant-numeric: tabular-nums; }

.barra-cat__pista {
    height: 8px;
    border-radius: 999px;
    background: var(--fondo-2);
    overflow: hidden;
}
.barra-cat__pista span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--primario);
}

/* =====================================================================
   ESTADO DE CUENTA (hoja imprimible)
   ===================================================================== */

.hoja {
    background: #fff;
    border-radius: var(--radio);
    padding: 28px 30px;
    box-shadow: var(--sombra-clay);
    max-width: 860px;
}

.hoja__cab {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--linea);
    margin-bottom: 18px;
}
.hoja__negocio { display: block; font-size: 1.15rem; font-weight: 800; }
.hoja__cab span { font-size: .8rem; color: var(--texto-suave); font-weight: 600; }
.hoja__fecha { text-align: right; }
.hoja__fecha span {
    display: block; font-size: .64rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--texto-suave); font-weight: 800;
}
.hoja__fecha strong { font-size: .95rem; }

.hoja__cliente {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin-bottom: 18px;
}
.hoja__cliente span {
    display: block; font-size: .62rem; text-transform: uppercase;
    letter-spacing: .9px; color: var(--texto-suave); font-weight: 800;
}
.hoja__cliente strong { font-size: .9rem; }

.tabla--hoja th { border-bottom-color: var(--linea); }

.hoja__totales {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 2px solid var(--linea);
    flex-wrap: wrap;
}
.hoja__totales span {
    display: block; font-size: .62rem; text-transform: uppercase;
    letter-spacing: .9px; color: var(--texto-suave); font-weight: 800;
}
.hoja__totales strong { font-size: 1rem; }
.hoja__deuda strong { font-size: 1.35rem; color: var(--primario-osc); }
.rojo { color: #ef4444 !important; }

.hoja__pie {
    margin: 22px 0 0;
    font-size: .7rem;
    color: var(--texto-suave);
    text-align: center;
}

@media print {
    .lateral, .barra, .nav-inferior, .fab, .no-imprimir, .velo-menu, .toasts { display: none !important; }
    .app, .cuerpo { display: block !important; }
    .contenido { padding: 0 !important; }
    body { background: #fff !important; }
    .hoja { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
    .pastilla { border: 1px solid #ccc; }
}


/* =====================================================================
   AVISOS DE COBRO Y GRACIAS
   ===================================================================== */

.aviso-cobro {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff4f4;
    border-left: 4px solid #ef4444;
    border-radius: 16px;
    padding: 13px 16px;
    margin-bottom: 16px;
    font-size: .86rem;
    font-weight: 700;
    color: #8c1c2b;
}
.aviso-cobro i { font-size: 1.15rem; color: #ef4444; }
.aviso-cobro > div { flex: 1; min-width: 0; }
.aviso-cobro .suave { color: #b4697a; font-weight: 600; }
.aviso-cobro .btn { flex: 0 0 auto; }

.gracia-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff3d6;
    color: #97610a;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .74rem;
    font-weight: 800;
    margin: 10px 0 0;
}
.gracia-chip--rojo { background: #ffe4ea; color: #a91b41; }

@media (max-width: 620px) {
    .aviso-cobro { flex-wrap: wrap; }
    .aviso-cobro .btn { width: 100%; }
}


/* =====================================================================
   TICKET 80 mm
   ===================================================================== */

.ticket {
    width: 302px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: var(--sombra-clay);
    color: #0f172a;
    font-size: 12px;
    line-height: 1.45;
}

.ticket__cab {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed #c9d1de;
}
.ticket__cab strong { display: block; font-size: 14px; font-weight: 800; }
.ticket__cab span { display: block; font-size: 10.5px; color: #64748b; }

.ticket__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #c9d1de;
}
.ticket__meta span {
    display: block; font-size: 9px; text-transform: uppercase;
    letter-spacing: .7px; color: #94a3b8; font-weight: 800;
}
.ticket__meta strong { font-size: 11.5px; }

.ticket__cliente { padding: 10px 0; border-bottom: 1px dashed #c9d1de; }
.ticket__cliente span:first-child {
    font-size: 9px; text-transform: uppercase; letter-spacing: .7px;
    color: #94a3b8; font-weight: 800;
}
.ticket__cliente strong { display: block; font-size: 12.5px; }
.ticket__cliente span { font-size: 10.5px; color: #64748b; }

.ticket__tabla { width: 100%; border-collapse: collapse; margin: 8px 0; }
.ticket__tabla th {
    font-size: 9px; text-transform: uppercase; letter-spacing: .6px;
    color: #94a3b8; text-align: left; padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
}
.ticket__tabla th.num, .ticket__tabla td.num { text-align: right; }
.ticket__tabla td { padding: 6px 0; vertical-align: top; border-bottom: 1px dotted #e8edf6; }
.ticket__tabla small { color: #94a3b8; font-size: 9.5px; }

.ticket__totales { padding-top: 8px; border-top: 1px dashed #c9d1de; }
.ticket__totales div { display: flex; justify-content: space-between; padding: 2px 0; }
.ticket__totales span { color: #64748b; }
.ticket__saldo { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e2e8f0; }
.ticket__saldo strong { font-size: 15px; }

.ticket__pie {
    margin: 12px 0 0;
    text-align: center;
    font-size: 9.5px;
    color: #64748b;
    border-top: 1px dashed #c9d1de;
    padding-top: 8px;
}

.cierre__titulo {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 22px 0 8px;
}

@media print {
    .ticket {
        width: auto;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
}


/* =====================================================================
   TASA DEL DÍA Y CAMPANA (encabezado)
   ===================================================================== */

.tasa-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    background: #fff;
    border-radius: 14px;
    padding: 7px 14px;
    box-shadow: var(--sombra-suave);
    text-decoration: none;
    line-height: 1.15;
    transition: box-shadow .15s ease, transform .15s ease;
}
.tasa-chip:hover { text-decoration: none; transform: translateY(-1px); }
.tasa-chip span {
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--texto-suave);
}
.tasa-chip strong {
    font-size: .86rem;
    font-weight: 800;
    color: var(--primario-osc);
    font-variant-numeric: tabular-nums;
}

.campana {
    position: relative;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--sombra-suave);
    color: #64748b;
    font-size: 1.05rem;
    transition: color .15s ease, transform .15s ease;
}
.campana:hover { color: var(--primario); text-decoration: none; transform: translateY(-1px); }
.campana em {
    position: absolute;
    top: -3px; right: -3px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .64rem;
    font-weight: 800;
    font-style: normal;
    display: grid; place-items: center;
    border: 2px solid #e8eef7;
}

@media (max-width: 991.98px) {
    .tasa-chip { padding: 6px 11px; border-radius: 12px; }
    .tasa-chip span { font-size: .5rem; letter-spacing: .8px; }
    .tasa-chip strong { font-size: .78rem; }
    .campana { width: 40px; height: 40px; font-size: .98rem; }
}

@media (max-width: 400px) {
    .barra { gap: 8px; }
    .tasa-chip span { display: none; }
    .tasa-chip strong { font-size: .76rem; }
}


/* Encabezado en móvil: el título cede, la tasa y la campana siempre se ven */
@media (max-width: 991.98px) {
    .barra {
        flex-wrap: nowrap;
        align-items: center;
    }
    .barra > div:not(.barra__der) {
        min-width: 0;
        flex: 1 1 auto;
    }
    .barra h1 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .barra__sub {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .barra__der {
        flex: 0 0 auto;
        margin-left: 0;
        gap: 6px;
    }
}
