body{
    margin:0;
    font-family:Segoe UI, Arial;
    background:linear-gradient(180deg,#f4f4f4,#e9e9e9);
}

/* HEADER */

.header{
    background:#7a0c18;
    height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 40px;
}

.logo-left{
    height:100px;
}

.logo-right{
    height:100px;
}

/* CARD CENTRAL */

.main-card{
    width:900px;
    margin:60px auto;
    background:white;
    border-radius:18px;
    padding:40px;
    text-align:center;
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

/* TITULO */

.main-title{
    font-size:64px;
    color:#5b0c14;
    font-weight:800;
    margin-bottom:10px;
}

/* SUBTITULO */

.subtitle{
    font-size:24px;
    font-weight:600;
    margin-bottom:30px;
}

/* BANNER */

.banner-img{
    width:100%;
    border-radius:12px;
}

/* INPUT */

.input-matricula{
    padding:15px;
    width:250px;
    border-radius:8px;
    border:1px solid #ccc;
    margin-top:25px;
}

/* BOTON */

.btn-main{
    margin-top:20px;
    padding:14px 30px;
    border:none;
    background:#df2027;
    color:white;
    border-radius:8px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
}

.btn-main:hover{
    background:#5b0c14;
}

.opcion-barra{
    display:block;
    border:2px solid #ddd;
    padding:14px;
    border-radius:10px;
    margin-bottom:10px;
    cursor:pointer;
    transition:.25s;
    font-size:16px;
}

.opcion-barra:hover{
    border-color:#DF2027;
    background:#fff5f5;
}

/* ocultamos radio */
.opcion-barra input{
    display:none;
}

/* cuando esta seleccionado */
.opcion-barra input:checked + span{
    color:white;
}

.opcion-barra input:checked{
}

.opcion-barra:has(input:checked){
    background:#DF2027;
    border-color:#DF2027;
    color:white;
    font-weight:600;
}

.result-wrapper{
    min-height:80vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

.result-card{
    width:650px;
    background:white;
    border-radius:22px;
    padding:55px;
    text-align:center;
    box-shadow:0 25px 60px rgba(0,0,0,.18);
    animation:fadeIn .5s ease;
}

@keyframes fadeIn{
    from{opacity:0; transform:translateY(25px);}
    to{opacity:1; transform:translateY(0);}
}

.result-jaguar{
    width:300px;
    opacity:.9;
    margin-bottom:25px;
}

.result-title{
    font-size:36px;
    font-weight:800;
    color:#5b0c14;
    margin-bottom:10px;
}

.result-msg{
    font-size:18px;
    margin-bottom:30px;
    color:#555;
}

.result-info{
    margin-top:25px;
    font-size:17px;
}

.result-info div{
    display:flex;
    justify-content:space-between;
    padding:10px 14px;
    border-bottom:1px solid #eee;
}

.footer{
    background:#7a0c18;
    padding:5px 5px;
    text-align:center;
    color:white;
    margin-top:auto;
    
}

.footer-logo{
    height:80px;
    margin-bottom:5px;
    opacity:.95;
}

.footer-text{
    font-size:15px;
    letter-spacing:.3px;
    opacity:.9;
}

/* ============================
   ALERTAS DE EXAMEN
============================ */

.alert-wrapper{
    min-height:80vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

.alert-card{
    width:600px;
    background:white;
    border-radius:22px;
    padding:50px;
    text-align:center;
    box-shadow:0 25px 60px rgba(0,0,0,.18);
    animation:fadeIn .5s ease;
}

.alert-icon{
    width:350px;
    margin-bottom:20px;
}

.alert-title{
    font-size:34px;
    font-weight:800;
    color:#5b0c14;
    margin-bottom:10px;
}

.alert-msg{
    font-size:18px;
    color:#555;
    margin-bottom:20px;
}

.alert-horario{
    font-size:22px;
    font-weight:bold;
    color:#df2027;
    margin-bottom:30px;
}

.dashboard-container{
    width:95%;
    max-width:1400px;
    margin:40px auto;
}

.dashboard-title{
    font-size:42px;
    font-weight:800;
    color:#5b0c14;
    margin-bottom:10px;
}

.dashboard-periodo{
    font-size:18px;
    margin-bottom:30px;
}

.kpi-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:30px;
}

.kpi-card{
    background:white;
    border-radius:18px;
    padding:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    text-align:center;
}

.kpi-card span{
    display:block;
    color:#666;
    margin-bottom:8px;
}

.kpi-card strong{
    font-size:34px;
    color:#5b0c14;
}

.dashboard-actions{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.tabla-dashboard{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.tabla-dashboard th{
    background:#7a0c18;
    color:white;
    padding:12px;
    text-align:left;
}

.tabla-dashboard td{
    padding:12px;
    border-bottom:1px solid #eee;
}

.tabla-dashboard tr:hover{
    background:#fafafa;
}

.login-wrapper{
    min-height:75vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-card{
    width:420px;
    background:white;
    border-radius:22px;
    padding:45px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,.15);
    animation:fadeIn .5s ease;
}

.login-icon{
    width:200px;
    margin-bottom:20px;
    opacity:.9;
}

.login-title{
    font-size:34px;
    font-weight:800;
    color:#5b0c14;
    margin-bottom:8px;
}

.login-subtitle{
    font-size:16px;
    color:#666;
    margin-bottom:30px;
}

.login-input{
    width:100%;
    padding:14px;
    margin-bottom:18px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
    box-sizing:border-box;
}

.login-input:focus{
    outline:none;
    border-color:#7a0c18;
    box-shadow:0 0 0 3px rgba(122,12,24,.1);
}

.login-btn{
    width:100%;
}

.login-error{
    margin-top:20px;
    background:#fff1f1;
    color:#d10000;
    padding:12px;
    border-radius:10px;
    font-weight:600;
}

/* TOGGLE SWITCH */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    display:none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #df2027;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-container{
    display:flex;
    align-items:center;
    gap:15px;
    font-weight:600;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #5b0c14;
    color: white;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(20px);
    transition: .3s;
    z-index:999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.timer-box{
    width: fit-content;
    margin: 20px auto;
    background: #7A0C14;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

#contador{
    color: #ffd54a;
}

/* =========================
   TIMER EXAMEN
========================= */

.timer-container{
    width: 100%;
    max-width: 700px;
    margin: 25px auto;
}

.timer-text{
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #7A0C14;
    margin-bottom: 12px;
}

.progress-bar{
    width: 100%;
    height: 22px;
    background: #e5e5e5;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.15);
}

.progress-fill{
    height: 100%;
    width: 100%;
    background: #28c76f;
    transition: width 1s linear;
    border-radius: 30px;
}

/* =========================
   TIMER STICKY
========================= */

.timer-sticky{
    position: sticky;
    top: 0;
    z-index: 999;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(8px);

    padding: 15px 0;

    border-bottom: 1px solid #ddd;

    margin-bottom: 25px;
}

/* =========================
   ALERTAS INSTITUCIONALES
========================= */

.alert-wrapper{
    min-height:80vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:30px;
}

.alert-card{

    width:500px;

    background:white;

    border-radius:24px;

    padding:50px;

    text-align:center;

    box-shadow:0 20px 50px rgba(0,0,0,.18);
}

.alert-icon{
    width:100px;
    margin-bottom:25px;
}

.alert-title{
    font-size:34px;
    font-weight:800;
    color:#7A0C14;
    margin-bottom:15px;
}

.alert-msg{
    font-size:18px;
    color:#555;
    line-height:1.6;
}