:root {
    --bg-oscuro: #021024; --bg-panel: #052659; --azul-medio: #5483B3; --azul-claro: #7DA0CA;
    --cyan-neon: #C1E8FF; --alerta-rojo: #ef4444; --exito-verde: #10b981;
    --texto-claro: #ffffff; --texto-gris: #cbd5e1;
    --sombra-panel: 0 4px 6px rgba(0,0,0,0.4); --sombra-enfoque: 0 10px 40px rgba(0,0,0,0.8);
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-oscuro); color: var(--texto-claro); margin: 0; padding: 0; }
.wrefill-oculto { display: none !important; }

.login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, #0b1426 0%, #020617 100%); display: flex; justify-content: center; align-items: center; z-index: 9999999; }
.login-card { background: #0f172a; padding: 40px; border-radius: 4px; border: 1px solid #1e293b; box-shadow: 0 20px 50px rgba(0,0,0,0.5); text-align: center; width: 100%; max-width: 380px; }
.blinders-logo { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: 5px; text-shadow: 0 0 10px rgba(255,255,255,0.3); margin-bottom: 5px; }
.blinders-sub { color: #64748b; font-size: 10px; letter-spacing: 2px; margin-bottom: 30px; font-weight: bold; }
.input-group-login input { width: 100%; padding: 15px; margin-bottom: 15px; background: #1e293b; border: 1px solid #334155; color: #fff; outline: none; box-sizing: border-box; font-weight: bold; text-align: center; }
.btn-login { width: 100%; padding: 15px; background: #fff; color: #020617; border: none; font-weight: 900; cursor: pointer; letter-spacing: 2px; transition: 0.3s; border-radius: 4px; }
.btn-login:hover { background: #cbd5e1; }
.login-error-msg { color: #ef4444; margin-top: 15px; font-size: 13px; font-weight: bold; height: 20px; }
.logout-style { border-color: #ef4444 !important; color: #ef4444 !important; transition: 0.3s; }
.logout-style:hover { background: #ef4444 !important; color: #fff !important; }

.nav-principal { background-color: #0b1426; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--azul-medio); margin-bottom: 20px;}
.logo { font-size: 24px; font-weight: 900; color: var(--cyan-neon); letter-spacing: 2px;}
.tabs { display: flex; gap: 15px; }
.tab-btn { background: transparent; border: 1px solid var(--azul-claro); color: var(--azul-claro); padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold;}
.tab-btn.activo { background: var(--cyan-neon); color: var(--bg-oscuro); border-color: var(--cyan-neon); }
section { padding: 0 20px 20px 20px; }

.pos-layout { display: block; max-width: 1400px; margin: 0 auto; transition: all 0.3s; }
.pos-layout.con-carrito { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; }
.col-catalogo { width: 100%; }
.col-carrito { display: none; background-color: var(--bg-panel); border-radius: 12px; padding: 20px; height: calc(100vh - 100px); position: sticky; top: 20px; flex-direction: column; box-shadow: var(--sombra-panel);}
.pos-layout.con-carrito .col-carrito { display: flex; }
.header { text-align: center; margin-bottom: 30px; }
.input-buscador { width: 100%; max-width: 600px; padding: 15px 20px; font-size: 18px; background-color: var(--bg-panel); border: 2px solid var(--azul-medio); color: white; border-radius: 30px; outline: none; }
.input-buscador:focus { border-color: var(--cyan-neon); }
.resultados-grid { display: flex; flex-direction: column; gap: 15px; }

.btn-pdf-catalogo { background: #ef4444; color: white; border: none; padding: 15px 20px; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 16px; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.btn-pdf-catalogo:hover { background: #dc2626; transform: scale(1.05); }
.btn-nube { background: #8b5cf6; color: white; border: none; padding: 15px 20px; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 16px; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.btn-nube:hover { background: #7c3aed; transform: scale(1.05); }

.tarjeta-fardo { background-color: var(--bg-panel); border-radius: 12px; border-left: 5px solid transparent; cursor: pointer; overflow: hidden; box-shadow: var(--sombra-panel); display: flex; flex-direction: column; transition: transform 0.2s;}
.tarjeta-fardo:hover { transform: translateY(-3px); }
.tarjeta-fardo.sin-stock { opacity: 0.5; filter: grayscale(100%); pointer-events: none; }
.info-superior { display: flex; justify-content: space-between; align-items: center; padding: 25px 20px; }
.info-principal h3 { margin: 0 0 5px 0; font-size: 24px; font-weight: 900; letter-spacing: 0.5px;}
.categoria-badge { font-size: 18px; color: var(--cyan-neon); font-weight: bold; background: rgba(193, 232, 255, 0.1); padding: 4px 8px; border-radius: 4px; margin-left: 5px;}
.precio-texto { font-size: 28px; font-weight: 900; color: var(--exito-verde); }
.stock-numero { font-size: 24px; font-weight: bold; color: var(--cyan-neon); }
.stock-label { font-size: 12px; color: var(--azul-claro); text-transform: uppercase; font-weight: bold;}
.detalle-expandido { max-height: 0; overflow: hidden; background-color: rgba(0,0,0,0.3); padding: 0 20px; transition: max-height 0.3s ease-out; }
.contenido-detalle { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
body.modo-enfoque .tarjeta-fardo:not(.seleccionada) { opacity: 0.1; pointer-events: none; }
.tarjeta-fardo.seleccionada { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 600px; z-index: 1000; background-color: #073175; }
.btn-cerrar-enfoque { position: absolute; top: 15px; right: 15px; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.btn-elegir { width: 100%; background: var(--cyan-neon); color: var(--bg-oscuro); border: none; padding: 15px; font-weight: bold; cursor: pointer; border-radius: 8px; margin-top: 15px; }

.carrito-titulo { color: var(--cyan-neon); border-bottom: 2px solid var(--azul-medio); padding-bottom: 10px; margin-top: 0; }
.lista-carrito { flex-grow: 1; overflow-y: auto; }
.item-carrito { background: #031733; padding: 15px; border-radius: 8px; margin-bottom: 10px; border-left: 3px solid var(--cyan-neon); }
.carrito-totales { display: flex; justify-content: space-between; font-size: 20px; font-weight: bold; margin: 15px 0; color: var(--cyan-neon); }
.btn-proceder { width: 100%; padding: 15px; background: var(--exito-verde); color: #000; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; }
.controles-cantidad { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.3); padding: 5px; border-radius: 6px; width: max-content; }
.btn-cant { background: var(--bg-panel); border: none; color: white; width: 25px; height: 25px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.cant-valor { font-size: 14px; font-weight: bold; min-width: 20px; text-align: center; }

.historial-container { max-width: 1400px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 8px;}
.buscador-historial-wrapper { display: flex; gap: 10px; max-width: 600px; margin-bottom: 20px; }
.input-buscador-claro { flex: 1; padding: 15px; font-size: 16px; border: 2px solid #ccc; border-radius: 8px; outline: none; background: #f8fafc; color: #000; }
.input-buscador-claro:focus { border-color: #3b82f6; }
.btn-lupa { background: #3b82f6; border: none; border-radius: 8px; padding: 0 20px; font-size: 16px; font-weight: bold; cursor: pointer; color: white; transition: 0.2s; }
.btn-lupa:hover { background: #2563eb; }

.grupo-fecha-header { background: #1e293b; color: #fff; cursor: pointer; transition: 0.2s;}
.grupo-fecha-header:hover { background: #334155; }
.icono-flecha { float: right; font-size: 14px; margin-top: 3px; }
.tabla-responsive { width: 100%; overflow-x: auto; border-radius: 8px;}
.wrefill-tabla-clara { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; color: #000; font-size: 15px;}
.wrefill-tabla-clara th, .wrefill-tabla-clara td { padding: 12px; text-align: center; border: 1px solid #ccc; vertical-align: middle;}
.wrefill-tabla-clara th { background-color: #e2e8f0; color: #1e293b; font-weight: bold; text-transform: uppercase;}
.wrefill-tabla-clara tbody tr.fila-historial:nth-child(odd) { background-color: #f8fafc; }
.wrefill-tabla-clara tbody tr.fila-historial:hover { background-color: #e0f2fe; }

.badge-estado { padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.badge-cancelado { background: #dcfce7; color: #166534; border: 1px solid #166534;}
.badge-deuda { background: #fee2e2; color: #991b1b; border: 1px solid #991b1b;}
.badge-almacen { background: #ffe4e6; color: #be123c; border: 1px solid #be123c; }
.badge-listo { background: #fef3c7; color: #b45309; border: 1px solid #b45309; }
.badge-entregado { background: #d1fae5; color: #047857; border: 1px solid #047857; }
.btn-ver-detalle { background: #3b82f6; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-ojito { background: transparent; border: none; font-size: 26px; cursor: pointer; padding: 0 10px; transition: 0.2s;}

.punto { width: 22px; height: 22px; border-radius: 50%; display: inline-block; cursor: pointer; border: 3px solid; }
.punto-vacio { border-color: #cbd5e1; background: #f1f5f9; }
.punto-amarillo { border-color: #f59e0b; background: #fbbf24; }
.punto-verde { border-color: #10b981; background: #34d399; pointer-events: none; }

#wrefillCheckoutOverlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: #e2e8f0; z-index: 99999; display: flex; flex-direction: column; overflow-y: auto; }
.wrefill-checkout-header { background-color: #1e293b; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box;}
.wrefill-btn-volver { background: transparent; border: 1px solid #fff; color: #fff; padding: 10px 15px; border-radius: 4px; cursor: pointer; }
.wrefill-controles-moneda { display: flex; gap: 10px; }
.wrefill-btn-moneda { background: #cbd5e1; border: none; padding: 10px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; color: #0f172a;}
.wrefill-btn-moneda.wrefill-activo { background: #3b82f6; color: #fff; }

.wrefill-hoja-container { padding: 40px 20px; display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
.wrefill-hoja-excel { background-color: #fff; width: 100%; max-width: 1000px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); overflow: hidden; position: relative;}
.wrefill-excel-top { display: flex; border: 1px solid #ccc; border-bottom: none;}
.wrefill-input-cliente { flex: 1; border: none; background: transparent; color: #000; outline: none; font-size: 16px; font-weight: bold; font-family: Arial;}
.wrefill-fecha { padding: 15px; font-size: 16px; font-weight: bold; font-family: Arial; color: #3b82f6; background: #fff; display: flex; align-items: center;}
.wrefill-inp-cant { width: 60px; text-align: center; border: none; border-bottom: 2px solid #ccc; font-weight: bold; font-size: 16px; background: transparent; color: #000; outline: none;}
.wrefill-inp-cant:focus { border-bottom-color: #3b82f6;}
.wrefill-inp-cant:disabled { border: none; background: transparent; color:#000; }
.wrefill-tf-center { font-weight: bold; background: #fff; color: #000;}
.wrefill-tf-blank { background: #fff; }
.wrefill-tf-right { font-weight: bold; text-align: right; background: #fff; font-size: 20px; padding-right: 15px !important; color: #166534;}

.wrefill-zona-pagos { padding: 25px; background: #f8fafc; border-top: 1px solid #ccc; position: relative; z-index: 20;}
.opciones-pago { display: flex; gap: 30px; justify-content: center; margin-bottom: 20px;}
.radio-pago { font-size: 18px; font-weight: bold; color: #1e293b; cursor: pointer; display: flex; align-items: center; gap: 8px;}
.box-pagos-inputs { display: flex; gap: 20px; background: #e2e8f0; padding: 25px; border-radius: 8px; justify-content: space-between; margin-bottom: 25px;}
.input-grupo { display: flex; flex-direction: column; gap: 8px; flex: 1; align-items: center;}
.input-grupo label { color: #334155; font-weight: bold; font-size: 16px;}
.inp-pago { background: #fff; border: 2px solid #3b82f6; color: #000; padding: 15px; font-size: 24px; font-weight: bold; text-align: center; border-radius: 8px; outline: none; width: 100%; box-sizing: border-box; transition: border-color 0.2s;}
.inp-pago:focus { border-color: #10b981; }
.display-saldo { border: 2px solid #3b82f6; padding: 15px; font-weight: bold; text-align: center; border-radius: 8px; width: 100%; transition: 0.3s;}

tr.fila-requiere-caza td {
    background-color: #fff5f5 !important;
    border-color: #fca5a5 !important;
}
tr.fila-requiere-caza td:first-child {
    border-left: 4px solid #ef4444 !important;
}
.bloqueado-por-caza { background-color: #94a3b8 !important; color: #f1f5f9 !important; cursor: not-allowed !important; box-shadow: none !important; }

.wrefill-btn-procesar-gigante { width: 100%; background: #10b981; color: #fff; font-size: 20px; font-weight: 900; padding: 15px; border: none; border-radius: 8px; cursor: pointer; transition: 0.2s;}
.wrefill-btn-procesar-gigante:hover:not(.bloqueado-por-caza) { background: #059669; }
.lista-pagos-historico { list-style: none; padding: 0; margin: 0; }
.lista-pagos-historico li { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #ccc; color: #000; font-size: 16px;}
.wrefill-btn-abonar { background: #3b82f6; color: white; border: none; padding: 10px 20px; font-weight: bold; border-radius: 4px; cursor: pointer;}
.inp-pago-claro { border: 1px solid #ccc; padding: 10px; border-radius: 4px; font-size: 16px; outline: none; color: #000; background: #fff;}

.badge-estetico { padding: 12px 30px; font-size: 20px; font-weight: 900; border-radius: 8px; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: inline-block; border:none; }
.badge-estetico.cancelado { background: #f8fafc; color: #10b981; border: 3px solid #10b981; }
.badge-estetico.deuda { background: #f8fafc; color: #ef4444; border: 3px solid #ef4444; }
.badge-estetico.btn-entrega { background: #f59e0b; color: white; border: 3px solid #d97706; cursor: pointer; transition:0.2s;}
.badge-estetico.btn-entrega:hover { background: #d97706; }
.badge-estetico.entregado { background: #10b981; color: white; border: 3px solid #059669; font-size: 16px;}
.badge-estetico.suprema { background: #10b981; color: white; border: 3px solid #059669; font-size: 24px; box-shadow: 0 0 30px rgba(16, 185, 129, 0.5); }

.txt-precio-display { font-weight: normal; }
.inp-precio-edit { display: none; width: 80px; text-align: center; border: 2px solid #10b981; font-weight: bold; padding: 4px; outline: none; font-size: 15px; color: #10b981; border-radius: 4px; }
tr.editando-precio .txt-precio-display { display: none; }
tr.editando-precio .inp-precio-edit { display: inline-block; }

.anim-success-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px; background: #fff; border-radius:8px;}
.success-checkmark { width: 80px; height: 115px; margin: 0 auto; position: relative; }
.check-icon { width: 80px; height: 80px; position: relative; border-radius: 50%; box-sizing: content-box; border: 4px solid #10b981; }
.check-icon::before, .check-icon::after { content: ''; border-radius: 50%; position: absolute; width: 84px; height: 120px; background: #fff; transform: rotate(-45deg); }
.check-icon::before { border-radius: 120px 0 0 120px; top: -7px; left: -33px; transform: rotate(-45deg); transform-origin: 60px 60px; }
.check-icon::after { border-radius: 0 120px 120px 0; top: -11px; left: 30px; transform: rotate(-45deg); transform-origin: 0px 60px; animation: rotatePlaceholder 4.25s ease-in; }
.icon-line { height: 5px; background-color: #10b981; display: block; border-radius: 2px; position: absolute; z-index: 10; }
.icon-line.line-tip { top: 46px; left: 14px; width: 25px; transform: rotate(45deg); animation: icon-line-tip 0.75s; }
.icon-line.line-long { top: 38px; right: 8px; width: 47px; transform: rotate(-45deg); animation: icon-line-long 0.75s; }
.icon-circle { top: -4px; left: -4px; z-index: 10; width: 80px; height: 80px; border-radius: 50%; position: absolute; box-sizing: content-box; border: 4px solid rgba(16, 185, 129, .5); }
.icon-fix { top: 8px; width: 5px; left: 26px; z-index: 1; height: 85px; position: absolute; transform: rotate(-45deg); background-color: #fff; }
@keyframes icon-line-tip { 0% { width: 0; left: 1px; top: 19px; } 54% { width: 0; left: 1px; top: 19px; } 70% { width: 50px; left: -8px; top: 37px; } 84% { width: 17px; left: 21px; top: 48px; } 100% { width: 25px; left: 14px; top: 46px; } }
@keyframes icon-line-long { 0% { width: 0; right: 46px; top: 54px; } 65% { width: 0; right: 46px; top: 54px; } 84% { width: 55px; right: 0px; top: 35px; } 100% { width: 47px; right: 8px; top: 38px; } }
@keyframes rotatePlaceholder { 0%, 5% { transform: rotate(-45deg); } 100%, 12% { transform: rotate(-405deg); } }
.overlay-animacion-pago { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.9); z-index: 9999999; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.shadow-celebration { background: #ffffff; padding: 60px 100px; border-radius: 20px; box-shadow: 0 0 50px rgba(16, 185, 129, 0.4); text-align: center; transform: scale(0.9); animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* === CONFIGURACIÓN DE IMPRESIÓN (ANCHO: 21.59cm, LARGO: 16.51cm) === */
/* === CONFIGURACIÓN DE IMPRESIÓN CORREGIDA === */
.area-impresion { display: none; }

@media print {
    html, body { 
        background-color: #ffffff !important; 
        color: #000000 !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        height: 100% !important; 
    }
    body * { visibility: hidden; }
    
    #ticket-impresion, #ticket-impresion * { visibility: visible; }
    
    #ticket-impresion { 
        display: block !important; 
        position: absolute; 
        left: 0; 
        top: 0; 
        width: 100%; 
        padding: 0.2cm 0.4cm; /* Padding optimizado para que no se corte nada */
        box-sizing: border-box;
        color: #000; 
        font-family: Arial, sans-serif; 
    }
    
    #wrefillCheckoutOverlay, #contenedor-pos, .wrefill-hoja-container, .wrefill-zona-pagos, .login-overlay, #wrefillModalCazar, #wrefillReporteOverlay { 
        display: none !important; 
    }

    img { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    /* GRAN TOTAL solo al final — no repetir tfoot en cada página */
    #ticket-impresion tfoot { display: table-row-group !important; }

    /* MEDIDAS INVERTIDAS (ANCHO x ALTO) + MODO LANDSCAPE Y CERO MÁRGENES */
    @page {
        size: 16.51cm 21.59cm landscape;
        margin: 0 !important;
    }
}

/* === VERIFICACIÓN +/- Y CHECK === */
.controles-verif { display:inline-flex; align-items:center; gap:6px; user-select:none; }
.controles-verif button {
    background:#1e293b; color:#fff; border:none; width:26px; height:26px; border-radius:50%;
    font-weight:900; font-size:16px; cursor:pointer; line-height:1; transition:transform .12s, background .15s;
}
.controles-verif button:hover { background:#3b82f6; transform:scale(1.08); }
.controles-verif span {
    min-width:42px; text-align:center; font-weight:900; font-size:15px; color:#1e293b;
    background:#fef3c7; padding:3px 8px; border-radius:4px; border:1px solid #fbbf24;
}
.verif-check {
    display:inline-block; width:36px; height:36px; line-height:36px; text-align:center;
    color:#fff; background:#16a34a; border-radius:50%; font-weight:900; font-size:22px;
    box-shadow:0 2px 6px rgba(22,163,74,.4); cursor:pointer; transition:transform .15s;
    animation:verifCheckPop .25s ease-out;
}
.verif-check:hover { transform:scale(1.1); }
@keyframes verifCheckPop { 0% { transform:scale(0); } 70% { transform:scale(1.15); } 100% { transform:scale(1); } }

/* === BOTÓN OJITO AL LADO DE FECHA === */
.btn-ojito-fecha {
    background:#e2e8f0; border:2px solid #94a3b8; width:32px; height:32px; border-radius:50%;
    cursor:pointer; font-size:16px; line-height:1; padding:0; transition:.15s; color:#1e293b;
}
.btn-ojito-fecha:hover { background:#3b82f6; color:#fff; border-color:#3b82f6; transform:scale(1.1); }

/* === CHIP DE CAZA EN HEADER (pequeño, discreto) === */
.chip-caza {
    margin-left:12px; padding:4px 12px; border-radius:14px; font-size:13px; font-weight:900;
    cursor:pointer; user-select:none; letter-spacing:.5px; transition:all .15s ease;
    border:1px solid transparent; min-width:38px; text-align:center;
}
.chip-caza.chip-pos { background:rgba(22,163,74,.15); color:#86efac; border-color:rgba(22,163,74,.4); }
.chip-caza.chip-neg { background:rgba(239,68,68,.18); color:#fca5a5; border-color:rgba(239,68,68,.5); animation:chipBlink 1.4s infinite; }
.chip-caza:hover { transform:scale(1.08); }
@keyframes chipBlink { 0%,100% { box-shadow:0 0 0 rgba(239,68,68,0); } 50% { box-shadow:0 0 12px rgba(239,68,68,.6); } }

/* === BOTONES DE REPORTES === */
.btn-reporte {
    padding:15px 25px; border-radius:8px; font-weight:900; cursor:pointer; font-size:15px;
    transition:all .2s ease; box-shadow:0 4px 6px rgba(0,0,0,.15); letter-spacing:.5px;
}
.btn-reporte:hover { transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.3); }

/* === EDIT PRIORIDAD CATÁLOGO === */
.prio-edit { cursor:pointer; }
.prio-edit:hover { color:#fbbf24; }

/* === BARRA DE ORDENAMIENTO CATÁLOGO === */
.barra-orden {
    display:flex; gap:8px; justify-content:center; align-items:center; margin-top:14px;
    flex-wrap:wrap;
}
.lbl-orden { color:var(--azul-claro); font-size:13px; font-weight:bold; letter-spacing:1px; text-transform:uppercase; }
.btn-orden-cat {
    background:transparent; color:var(--azul-claro); border:1px solid var(--azul-medio);
    padding:7px 14px; border-radius:18px; font-weight:bold; font-size:13px; cursor:pointer;
    transition:all .18s ease; letter-spacing:.5px;
}
.btn-orden-cat:hover { background:var(--azul-medio); color:#fff; transform:translateY(-2px); box-shadow:0 4px 8px rgba(0,0,0,.25); }
.btn-orden-cat.activo { background:var(--cyan-neon); color:var(--bg-oscuro); border-color:var(--cyan-neon); box-shadow:0 0 12px rgba(193,232,255,.4); }

/* === MODAL EDITOR (DETALLES / PRECIO TIPO WORD) === */
.modal-editor-card {
    background:#fff; width:90%; max-width:600px; border-radius:14px; overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,.6); animation:popIn .25s ease;
}
.modal-editor-header {
    background:#052659; color:#fff; padding:18px 22px; display:flex; justify-content:space-between; align-items:center;
    border-bottom:4px solid #3b82f6;
}
.modal-editor-header h3 { margin:0; font-size:18px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; }
.modal-editor-close {
    background:rgba(255,255,255,.15); border:none; color:#fff; width:32px; height:32px;
    border-radius:50%; cursor:pointer; font-size:14px; font-weight:bold;
}
.modal-editor-close:hover { background:#ef4444; }
.modal-editor-body { padding:25px; background:#f8fafc; }
.modal-editor-body label { display:block; font-weight:bold; color:#1e293b; margin-bottom:8px; font-size:14px; letter-spacing:.5px; }
.modal-editor-body textarea {
    width:100%; min-height:180px; padding:14px; border:2px solid #cbd5e1; border-radius:8px;
    font-family:'Segoe UI', sans-serif; font-size:15px; resize:vertical; outline:none; box-sizing:border-box;
    color:#0f172a; background:#fff; transition:border-color .15s;
}
.modal-editor-body textarea:focus { border-color:#3b82f6; }
.modal-editor-footer {
    padding:15px 25px; background:#fff; display:flex; justify-content:flex-end; gap:10px;
    border-top:1px solid #e2e8f0;
}
.btn-modal-cancelar {
    background:#e2e8f0; color:#475569; border:none; padding:10px 18px; border-radius:6px;
    font-weight:bold; cursor:pointer; transition:.15s;
}
.btn-modal-cancelar:hover { background:#cbd5e1; }
.btn-modal-guardar {
    background:#16a34a; color:#fff; border:none; padding:10px 22px; border-radius:6px;
    font-weight:bold; cursor:pointer; transition:.15s;
}
.btn-modal-guardar:hover { background:#15803d; transform:translateY(-1px); }

/* Precio del catálogo: cursor pointer para indicar editable con triple-clic */
.precio-texto { cursor:pointer; user-select:none; }
.precio-texto:active { transform:scale(0.97); }