body{
    margin:0;
    background:#e6e6e6;;
    font-family:'Poppins',sans-serif;
}

/* =========================
   BANNER
========================= */

.banner{
    width:100%;
    height:300px;
    background:url('../img/banner.png') center/cover no-repeat;
}

.timebar{
    background:#718ac1;
    color:#fff;
    padding:10px;
    text-align:center;
    font-size:22px;
    font-weight:bold;
}

/* =========================
   LAYOUT
========================= */
.main{
    display:flex;
    align-items:flex-start;
    flex-wrap:wrap;
}
.content{
    flex:1;
    min-width:0;
}
.menu{
    width:210px;
    background:#1f2d3a;
    min-height:100vh;
    padding-top:15px;
}

.menu h2{
    color:#fff;
    text-align:center;
    font-size:18px;
}

.menu a{
    display:block;
    padding:10px;
    color:#fff;
    text-decoration:none;
    font-size:15px;
    transition:0.2s;
}

.menu a:hover{
    background:#3498db;
}

/* =========================
   BOXES
========================= */

.box{
    background:#fff;
    border-radius:10px;
    padding:6px;
    margin-bottom:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.box h3{
    margin-top:0;
    color:#1f2d3a;
    font-size:17px;
}

/* =========================
   BUSCADOR
========================= */

.search-wrap{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
}

.search-input{
    width:200px;
    padding:8px 10px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:15px;
}

.btn{
    padding:8px 14px;
    border:none;
    border-radius:8px;
    background:#16a34a;
    color:#fff;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

.btn:hover{
    background:#15803d;
}

/* =========================
   DIPLOMAS
========================= */

.diplomas-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:14px;
    margin-top:15px;
}

/* =========================
   CARD BASE
========================= */

.diploma-card{
    background:#f8fafc;
    border-radius:12px;
    overflow:hidden;
    border:2px solid #dbeafe;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    transition:0.2s;
}

.diploma-card:hover{
    transform:translateY(-2px);
}

.diploma-card img{
    width:100%;
    display:block;
}

/* =========================
   HF STYLE (DEFAULT)
========================= */

.diploma-card.hf{
    border-color:#dbeafe;
    background:#f8fafc;
}

/* =========================
   DV STYLE (NUEVO)
========================= */

.diploma-card.dv{
    border-color:#fde68a;
    background:#fffbeb;
}

/* =========================
   INFO
========================= */

.diploma-info{
    padding:10px;
    text-align:center;
}

.nivel{
    font-size:18px;
    font-weight:bold;
    margin-bottom:5px;
}

/* HF STATUS */
.nivel.ok{
    color:#ff0000;
}

.nivel.no{
    color:#dc2626;
}

/* =========================
   DV STATUS (NUEVO CONTROL)
========================= */

.diploma-card.dv .nivel.ok{
    color:#3333ff;   /* azul DV */
}

.diploma-card.dv .nivel.no{
    color:#ff0000;
}

/* BOTONES */

.eqsl-btn{
    display:inline-block;
    padding:5px 10px;
    border-radius:7px;
    text-decoration:none;
    color:#fff;
    font-size:13px;
    font-weight:bold;
    transition:0.2s;
}

.preview{
    background:#2563eb;
}

.preview:hover{
    background:#1d4ed8;
}

.png{
    background:#16a34a;
}

.png:hover{
    background:#15803d;
}

/* SIN IMAGEN */

.no-diploma{
    height:170px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#111827;
    color:#ef4444;
    font-size:18px;
    font-weight:bold;
}

/* =========================
   TABLA QSOS
========================= */

.table-log{
    width:80%;
    border-collapse:separate;
    border-spacing:0;
    margin-top:15px;

    /* 👇 mueve la tabla a la derecha */
    margin-left:150px;
    margin-right:0;

    font-size:16px;
    overflow:hidden;
    border-radius:10px;
}

.table-log th{
    background:#718ac1;
    color:#fff;
    padding:7px 5px;
    font-size:17px;
    text-align:center;
}

.table-log td{
    padding:5px 4px;
    text-align:center;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    white-space:nowrap;
}

.table-log tr:nth-child(even) td{
    background:#f8fafc;
}

.table-log tr:hover td{
    background:#eaf2ff;
}

/* =========================
   SOLO MATRIX HF
========================= */

.matrix-wrap{
    overflow-x:auto;
    margin-top:10px;
}

/* TABLA */
.matrix{
    width:auto;
    min-width:1000px;
    border-collapse:separate;
    border-spacing:2px;
    font-size:16px;
    margin:auto;
}

/* CELDAS */
.matrix th,
.matrix td{
    text-align:center;
    border-radius:4px;
    font-weight:bold;
    padding:3px;
}

/* BANDAS */
.matrix .band-head{
    background:#1d4ed8;
    color:#fff;
    font-size:14px;
    padding:4px;
}

/* MODOS */
.matrix .mode-head{
    background:#cc7a00;
    color:#fff;
    font-size:14px;
    padding:3px;
}

/* ESTACION */
.matrix .station-head{
    background:#ff0000;
    color:#fff;
    width:75px;
}

.matrix .station-cell{
    background:#0000ff;
    color:#fff;
    font-size:16px;
    letter-spacing:0.3px;
}

/* SLOT VACIO */
.matrix .slot-no{
    background:#dfe3e8;
    width:14px;
    height:14px;
    color:transparent;
}

/* SLOT OK */
.matrix .slot-ok{
    background:#16a34a;
    color:#fff;
    width:14px;
    height:14px;
    font-size:9px;
}

/* HOVER SUAVE */
.matrix tr:hover .slot-no{
    background:#cfd4da;
}

.matrix tr:hover .slot-ok{
    background:#15803d;
}
/* ==================================================
   SWL LOG
================================================== */

.swl-box{
    background:linear-gradient(135deg,#eff6ff,#dbeafe);
    border:3px solid #2563eb;
    border-radius:20px;
    padding:25px;
    margin-bottom:25px;

    box-shadow:
        0 0 20px rgba(37,99,235,.20),
        0 4px 15px rgba(0,0,0,.10);
}

.swl-box h3{
    margin-top:0;
    margin-bottom:20px;
    text-align:center;
    color:#1d4ed8;
    font-size:28px;
    font-weight:700;
}

.search-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    align-items:flex-end;
}

.search-wrap > div{
    display:flex;
    flex-direction:column;
    min-width:180px;
}

.search-wrap label{
    margin-bottom:6px;
    color:#1e293b;
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
}

.search-input{
    padding:12px;
    border:2px solid #bfdbfe;
    border-radius:12px;
    background:#fff;
    font-size:15px;
    transition:.2s;
}

.search-input:focus{
    outline:none;
    border-color:#2563eb;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.15);
}

.search-input:hover{
    border-color:#60a5fa;
}

.swl-box .btn{
    padding:13px 22px;
    border:none;
    border-radius:12px;

    background:#16a34a;
    color:#fff;

    font-weight:bold;
    font-size:15px;

    cursor:pointer;

    transition:.2s;
}

.swl-box .btn:hover{

    background:#15803d;

    transform:translateY(-2px);

    box-shadow:
        0 4px 10px rgba(0,0,0,.15);
}

.swl-info{

    margin-top:15px;

    padding:12px;

    background:#ffffff;

    border-left:5px solid #2563eb;

    border-radius:10px;

    color:#334155;

    font-size:14px;

    line-height:1.6;
}

.swl-info strong{
    color:#1d4ed8;
}

@media(max-width:750px){

    .search-wrap{
        flex-direction:column;
        align-items:stretch;
    }

    .search-wrap > div{
        width:100%;
        min-width:100%;
    }

    .swl-box .btn{
        width:100%;
    }

}
