﻿/* ==========================================
   IDENTIDAD GRÁFICA OFICIAL - GOBIERNO DE HONDURAS 2026-2030
   Basado en el Manual de Marca del Gobierno de la República
   ========================================== */

:root {
    /* COLORES OFICIALES SEGÚN MANUAL DE MARCA */
    --gob-azul: #004A9D;
    --gob-rojo: #CE1126;
    --gob-amarillo: #FCD116;
    --gob-oro: #D4AF37;
    --gob-plata: #C0C0C0;
    --gob-negro: #000000;
    --gob-gris-oscuro: #333333;
    --gob-gris-medio: #666666;
    --gob-gris-claro: #999999;
    --gob-gris-plata: #E5E5E5;
    --gob-blanco: #FFFFFF;
    --gob-success: #28A745;
    --gob-warning: #FFC107;
    --gob-danger: #DC3545;
    --gob-info: #17A2B8;
    /* ESPACIADO OFICIAL */
    --gob-space-xs: 0.25rem;
    --gob-space-sm: 0.5rem;
    --gob-space-md: 1rem;
    --gob-space-lg: 1.5rem;
    --gob-space-xl: 2rem;
    /* BORDES Y SOMBRAS */
    --gob-border-radius: 4px;
    --gob-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --gob-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gob-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* TIPOGRAFÍA OFICIAL */
body {
    /*font-family: Georgia, "Times New Roman", Times, serif;*/
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gob-negro);
    background-color: var(--gob-blanco);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    /*font-family: Georgia, "Times New Roman", Times, serif;*/
    font-weight: bold;
    /*color: var(--gob-azul);*/
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p, ul, ol, table {
   /* font-family: Georgia, "Times New Roman", Times, serif;*/
    margin-bottom: 1rem;
}

/* BARRA CROMÁTICA OFICIAL */
.gob-barra-cromatica {
    height: 8px;
    display: flex;
    width: 100%;
}

    .gob-barra-cromatica div {
        flex: 1;
        height: 100%;
    }

.gob-barra-azul {
    background-color: var(--gob-azul);
}

.gob-barra-blanco {
    background-color: var(--gob-blanco);
}

.gob-barra-rojo {
    background-color: var(--gob-rojo);
}

/* HEADER OFICIAL */
.gob-header {
    background-color: var(--gob-blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.gob-logo-gobierno {
    max-height: 60px;
    max-width: 250px;
    object-fit: contain;
}

.gob-logo-institucion {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
}

.gob-separador-oro {
    width: 3px;
    height: 50px;
    background: linear-gradient( to bottom, transparent, var(--gob-oro) 25%, var(--gob-oro) 75%, transparent );
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.gob-lechuga {
    background-color: var(--gob-azul);
    color: var(--gob-blanco);
    padding: 0.25rem 1rem;
    border-radius: 4px;
    /*font-family: Georgia, serif;*/
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.gob-lechuga-texto::before {
    content: "«";
    margin-right: 8px;
}

.gob-lechuga-texto::after {
    content: "»";
    margin-left: 8px;
}

/* BOTONES OFICIALES */
.btn {
    /*font-family: Georgia, serif;*/
    font-weight: bold;
    border-radius: var(--gob-border-radius);
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background-color: var(--gob-azul);
    border-color: var(--gob-azul);
    color: var(--gob-blanco);
}

    .btn-primary:hover {
        background-color: #003a7d;
        border-color: #003a7d;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 74, 157, 0.3);
    }

.btn-danger {
    background-color: var(--gob-rojo);
    border-color: var(--gob-rojo);
    color: var(--gob-blanco);
}

    .btn-danger:hover {
        background-color: #b00f20;
        border-color: #b00f20;
    }

.btn-outline-primary {
    color: var(--gob-azul);
    border-color: var(--gob-azul);
}

    .btn-outline-primary:hover {
        background-color: var(--gob-azul);
        color: var(--gob-blanco);
    }

.btn-success {
    background-color: var(--gob-success);
    border-color: var(--gob-success);
    color: var(--gob-blanco);
}

.btn-warning {
    background-color: var(--gob-warning);
    border-color: var(--gob-warning);
    color: var(--gob-negro);
}

/* TARJETAS OFICIALES */
.card {
    border: 1px solid rgba(0, 74, 157, 0.15);
    border-radius: var(--gob-border-radius);
    box-shadow: var(--gob-shadow-sm);
    transition: all 0.3s ease;
    background-color: var(--gob-blanco);
    margin-bottom: var(--gob-space-lg);
}

    .card:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
        border-color: var(--gob-azul);
    }

.card-header {
    background-color: var(--gob-azul);
    color: var(--gob-blanco);
    /*font-family: Georgia, serif;*/
    font-weight: bold;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid var(--gob-amarillo);
}

.card-title {
    color: var(--gob-azul);
  /*  font-family: Georgia, serif;*/
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.card-cromatica {
    position: relative;
    border-left: 4px solid var(--gob-azul);
}

    .card-cromatica::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, var(--gob-azul), var(--gob-blanco), var(--gob-rojo), var(--gob-blanco), var(--gob-azul));
    }

/* BADGES DE ESTADO */
.badge {
   /* font-family: Georgia, serif;*/
    font-weight: bold;
    padding: 0.4em 0.8em;
    border-radius: 4px;
}

    .badge.bg-primary {
        background-color: var(--gob-azul) !important;
    }

    .badge.bg-danger {
        background-color: var(--gob-rojo) !important;
    }

    .badge.bg-warning {
        background-color: var(--gob-warning) !important;
        color: var(--gob-negro) !important;
    }

    .badge.bg-success {
        background-color: var(--gob-success) !important;
    }

/* FORMULARIOS */
.form-control, .form-select {
  /*  font-family: Georgia, serif;*/
    border: 2px solid var(--gob-gris-claro);
    border-radius: var(--gob-border-radius);
    padding: 0.5rem 1rem;
    transition: border-color 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--gob-azul);
        box-shadow: 0 0 0 3px rgba(0, 74, 157, 0.1);
        outline: none;
    }

label {
   /* font-family: Georgia, serif;*/
    font-weight: bold;
    color: var(--gob-azul);
    margin-bottom: 0.5rem;
}

/* TABLAS */
.table thead th {
    background-color: var(--gob-azul) !important;
    color: var(--gob-blanco) !important;
    /*font-family: Georgia, serif !important;*/
    font-weight: bold !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.table tbody tr:hover {
    background-color: rgba(0, 74, 157, 0.03) !important;
}

.table.dataTable.table tbody td,
.table.dataTable.table tbody th {
    vertical-align: middle !important;
}

/* FOOTER OFICIAL */
.gob-footer {
    background-color: var(--gob-azul);
    color: var(--gob-blanco);
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    margin-top: auto;
}

.gob-escudo-footer {
    max-height: 80px;
    max-width: 80px;
    filter: brightness(0) invert(1);
}

.gob-footer-titulo {
   /* font-family: Georgia, serif;*/
    font-weight: bold;
    color: var(--gob-amarillo);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .gob-footer-titulo::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background-color: var(--gob-amarillo);
    }

.gob-footer-texto {
    /*font-family: Georgia, serif;*/
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.gob-footer-link {
    color: var(--gob-blanco);
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
    font-weight: bold;
}

    .gob-footer-link:hover {
        color: var(--gob-amarillo);
        transform: translateX(5px);
    }

.gob-footer-divider {
    border-color: rgba(255, 255, 255, 0.3);
}

.gob-footer-copyright {
    /*font-family: Georgia, serif;*/
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .gob-barra-cromatica {
        height: 6px;
    }

    .gob-logo-gobierno, .gob-logo-institucion {
        max-height: 50px;
    }

    .gob-footer .row > div {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }

        .gob-footer .row > div:last-child {
            margin-bottom: 0;
        }

    .gob-footer-copyright br {
        display: none;
    }
}

/* DOCUMENTOS ESTADO */
.documento-rechazado {
    background-color: #fee2e2;
    border-left: 4px solid var(--gob-rojo);
    padding: 8px;
    border-radius: 4px;
    margin: 4px 0;
}

    .documento-rechazado .razon-rechazo {
        font-weight: bold;
        color: #991b1b;
        /*font-family: Georgia, serif;*/
    }

.documento-aprobado {
    background-color: #dcfce7;
    border-left: 4px solid var(--gob-success);
    padding: 8px;
    border-radius: 4px;
    margin: 4px 0;
}

.documento-pendiente {
    background-color: #fef3c7;
    border-left: 4px solid var(--gob-warning);
    padding: 8px;
    border-radius: 4px;
    margin: 4px 0;
}
