/* ================================
   ESTILO INSTITUCIONAL OFICIAL
================================= */

body{
    background:#f4f6f9;
    font-family: 'Segoe UI', Arial, sans-serif;
    color:#212529;
}

/* ================================
   BARRA SUPERIOR
================================= */

.barra-superior{
    background:#0b3d91; /* Azul institucional */
    color:white;
    padding:10px 20px;
    font-size:14px;
    font-weight:500;
    letter-spacing:1px;
}

/* ================================
   ENCABEZADO
================================= */

.encabezado{
    background:white;
    padding:35px 0;
    border-bottom:4px solid #0b3d91;
}

.logo{
    max-height:85px;
}

.encabezado h4{
    font-weight:700;
    color:#0b2e63;
}

.encabezado p{
    color:#6c757d;
    margin-bottom:0;
}

/* ================================
   BLOQUES ADMINISTRATIVOS
================================= */

.bloque{
    background:white;
    padding:35px;
    border-left:6px solid #0b3d91;
    border-radius:4px;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
}

/* ================================
   TÍTULOS DE SECCIÓN
================================= */

.titulo-bloque{
    font-size:30px;
    font-weight:700;
    color:#0b2e63; /* Azul marino elegante */
    letter-spacing:.5px;
    border-bottom:2px solid #dee2e6;
    padding-bottom:12px;
    margin-bottom:30px;
}

.titulo-bloque i{
    color:#0b3d91;
    font-size:28px;
}

/* ================================
   TARJETAS ADMINISTRATIVAS
================================= */

.card-admin{
    border:1px solid #dee2e6;
    border-radius:6px;
    transition:.2s ease-in-out;
    background:#ffffff;
}

.card-admin:hover{
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

.card-admin h5,
.card-admin h6{
    font-weight:600;
    color:#0b2e63;
}

.card-admin p{
    color:#6c757d;
    font-size:14px;
}

/* ================================
   BOTÓN INSTITUCIONAL
================================= */

.btn-admin{
    background:#0b3d91;
    color:white;
    border:none;
    font-weight:600;
    padding:10px;
    border-radius:4px;
}

.btn-admin:hover{
    background:#082c6c;
    color:white;
}

/* ================================
   FOOTER
================================= */

.footer-institucional{
    background:#0b3d91;
    color:white;
    font-size:14px;
    letter-spacing:.5px;
}

/* ================================
   RESPONSIVE MEJORAS
================================= */

@media (max-width:768px){

    .titulo-bloque{
        font-size:24px;
    }

    .bloque{
        padding:25px;
    }

}

/* =================================
   RESPONSIVE PROFESIONAL
================================= */

/* Tablets */
@media (max-width:992px){

    .bloque{
        padding:25px;
    }

    .titulo-bloque{
        font-size:24px;
    }

    .card-admin{
        padding:20px !important;
    }

}

/* Celulares */
@media (max-width:768px){

    .barra-superior{
        font-size:12px;
        padding:8px;
    }

    .encabezado{
        padding:25px 15px;
    }

    .logo{
        max-height:70px;
    }

    .encabezado h4{
        font-size:18px;
    }

    .encabezado h5{
        font-size:16px;
    }

    .titulo-bloque{
        font-size:22px;
        text-align:center;
    }

    .titulo-bloque i{
        font-size:22px;
    }

    .bloque{
        padding:20px;
        border-left:4px solid #0b3d91;
    }

    .card-admin{
        margin-bottom:15px;
    }

    .btn-admin{
        font-size:14px;
        padding:8px;
    }

}

/* Pantallas muy pequeñas */
@media (max-width:480px){

    .titulo-bloque{
        font-size:20px;
    }

    .logo{
        max-height:60px;
    }

    .bloque{
        padding:15px;
    }

}

/* ===========================
   BARRA SUPERIOR AJUSTADA
=========================== */

.barra-superior{
    background:#0b3d91;
    color:white;
    padding:10px 20px;
    font-size:14px;
    font-weight:500;
    letter-spacing:1px;
}

.titulo-barra{
    font-weight:600;
}

/* Reloj */
.reloj{
    font-size:14px;
    white-space:nowrap;
}

.reloj i{
    margin-right:5px;
}

/* En móvil el reloj baja */
/* ===========================
   RELOJ INSTITUCIONAL
=========================== */

.reloj{
    font-size:14px;
    white-space:nowrap;
}

.reloj i{
    margin-right:5px;
}

/* ===========================
   AJUSTE MÓVIL MEJORADO
=========================== */

@media (max-width:768px){

    .barra-superior{
        padding:12px 10px;
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .titulo-barra{
        margin-bottom:4px;
    }

    .reloj{
        position:static !important;
        transform:none !important;
        margin:0;
        font-size:12px;
        display:block;
    }

}

.bloque{
    opacity:0;
    transform:translateY(15px);
    animation:fadeUp .6s ease forwards;
}

.bloque:nth-child(1){ animation-delay:.1s; }
.bloque:nth-child(2){ animation-delay:.2s; }
.bloque:nth-child(3){ animation-delay:.3s; }
.bloque:nth-child(4){ animation-delay:.4s; }

@keyframes fadeUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}
.card-admin{
    position:relative;
    overflow:hidden;
}

.card-admin::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:3px;
    background:#0b3d91;
    transition:width .3s ease;
}

.card-admin:hover::after{
    width:100%;
}
.btn-admin{
    transition:all .2s ease;
}

.btn-admin:hover{
    transform:translateY(-1px);
}
.reloj{
    transition:opacity .2s ease;
}


