:root{
    --fondo:#f4f6f8;
    --panel:#ffffff;
    --texto:#151719;
    --muted:#667085;
    --borde:#d8dde3;
    --negro:#151719;
    --rojo:#c1121f;
    --rojo-oscuro:#8f0d16;
    --verde:#087443;
    --amarillo:#f5c542;
    --mp:#009ee3;
    --mp-oscuro:#007eb5;
    --mp-suave:#e8f7fd;
    --mp-amarillo:#ffe600;
}

*{
    box-sizing:border-box;
}

body{
    background:var(--fondo) !important;
    color:var(--texto);
    font-family:Arial, Helvetica, sans-serif;
}

.contenedor{
    width:94%;
    max-width:1240px;
    margin:24px auto 48px;
}

.titulo,
.topo,
.hero{
    background:var(--negro) !important;
    color:white;
    border-radius:8px;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 8px 20px rgba(0,0,0,0.12);
}

.titulo h1,
.topo h1,
.hero h1{
    letter-spacing:0;
    font-size:30px;
}

.bloque,
.box,
.filtros,
.categoria,
.login{
    background:var(--panel) !important;
    border:1px solid var(--borde);
    border-radius:8px !important;
    box-shadow:0 6px 18px rgba(15,23,42,0.06);
}

.bloque h2,
.box h2{
    border-bottom:1px solid var(--borde) !important;
    color:var(--texto);
    font-size:20px;
    padding-bottom:12px;
}

label{
    color:#252a31;
    font-size:14px;
}

.opcion-check{
    display:flex;
    align-items:center;
    gap:10px;
    width:max-content;
    max-width:100%;
    padding:10px 12px;
    border:1px solid var(--borde);
    border-radius:8px;
    background:#f8fafc;
    font-size:16px;
}

.opcion-check input{
    width:auto;
    min-height:auto;
    margin:0;
}

input,
select,
textarea{
    border:1px solid var(--borde) !important;
    border-radius:6px !important;
    background:#fff;
    color:var(--texto);
    min-height:42px;
}

input:focus,
select:focus,
textarea:focus{
    outline:2px solid rgba(193,18,31,0.18);
    border-color:var(--rojo) !important;
}

button,
.boton{
    background:var(--rojo) !important;
    color:white !important;
    border:0 !important;
    border-radius:6px !important;
    font-weight:bold;
    transition:background .15s ease, transform .15s ease;
}

button:hover,
.boton:hover{
    background:var(--rojo-oscuro) !important;
    transform:translateY(-1px);
}

.boton.sec{
    background:#4b5563 !important;
}

.boton.sec:hover{
    background:#374151 !important;
}

table{
    border:1px solid var(--borde);
    border-radius:8px;
    overflow:hidden;
}

th{
    background:var(--negro) !important;
    color:white !important;
    font-size:12px;
    text-transform:uppercase;
}

th small{
    display:block;
    margin-top:3px;
    color:#e5e7eb;
    font-size:10px;
    font-weight:normal;
    line-height:1.15;
    text-transform:none;
}

td{
    color:#252a31;
    background:#fff;
}

tr:hover td{
    background:#fafafa;
}

.estado.ok,
.ok{
    color:var(--verde) !important;
}

.estado.alerta,
.alerta{
    color:var(--rojo) !important;
}

.nota,
.vacio{
    color:var(--muted) !important;
}

.grid-info{
    align-items:stretch;
}

#bloque_invitado{
    border-left:5px solid var(--rojo);
}

.categoria h2{
    background:var(--negro) !important;
    color:white !important;
}

.numero{
    color:var(--rojo) !important;
}

.rango-form{
    border:1px solid var(--borde);
    border-left:5px solid var(--rojo);
    border-radius:8px;
    padding:16px;
    margin:16px 0;
    background:#fbfcfd;
}

.rango-form h3{
    margin-top:0;
}

.mp-links{
    margin-top:16px;
    padding:14px;
    border:1px solid rgba(0,158,227,0.28);
    border-left:5px solid var(--mp);
    border-radius:8px;
    background:var(--mp-suave);
}

.mp-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

.mp-title span{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:4px 10px;
    border-radius:6px;
    background:var(--mp);
    color:white;
    font-weight:bold;
}

.mp-title small{
    color:#31566a;
    font-weight:bold;
    text-align:right;
}

.mp-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.mp-field label{
    color:#12384c;
}

.mp-field input{
    border-color:rgba(0,158,227,0.45) !important;
}

.mp-field input:focus{
    outline:2px solid rgba(0,158,227,0.22);
    border-color:var(--mp) !important;
}

.mp-paybox{
    margin:0 0 18px;
    padding:14px;
    border:1px solid rgba(0,158,227,0.32);
    border-left:5px solid var(--mp);
    border-radius:8px;
    background:var(--mp-suave);
}

.mp-brand{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
    color:#12384c;
}

.mp-brand span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    min-width:42px;
    height:30px;
    border-radius:6px;
    background:var(--mp-amarillo);
    color:#12384c;
    font-weight:bold;
}

.mp-brand strong{
    font-size:18px;
}

.boton.mp-boton{
    width:100%;
    text-align:center;
    background:var(--mp) !important;
    color:white !important;
    box-shadow:0 8px 16px rgba(0,126,181,0.22);
}

.boton.mp-boton:hover{
    background:var(--mp-oscuro) !important;
}

@media(max-width:800px){
    .titulo h1,
    .topo h1,
    .hero h1{
        font-size:24px;
    }

    .contenedor{
        width:94%;
        margin-top:16px;
    }

    .mp-title{
        display:block;
    }

    .mp-title small{
        display:block;
        margin-top:6px;
        text-align:left;
    }

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