﻿/* ==========================================
   ESTILO INTEGRADO - SIGI + SB ADMIN 2
   Paleta: #db473c (rojo), #88cfe0 (azul), #949699 (gris)
   ========================================== */

/* === SOBREESCRITURA DE VARIABLES DE SB ADMIN 2 === */
:root {
    --blue: #88cfe0; /* Tu azul principal */
    --red: #db473c; /* Tu rojo secundario */
    --gray: #949699; /* Gris metálico SIGI */
    --gray-dark: #5a5c69;
    --primary: #88cfe0; /* Azul principal SIGI */
    --secondary: #949699; /* Gris metálico SIGI */
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f2f4f6; /* Fondo claro SIGI */
    --dark: #101010; /* Negro SIGI */
    /* Fuentes personalizadas */
    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === TIPOGRAFÍA BASE === */
body {
    font-family: 'Inter', sans-serif;
    color: #444;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #222;
}

/* === NAVBAR === */
/*.navbar {
    background-color: var(--dark) !important;
    padding: 18px 0 !important;
    border-color: var(--primary) !important;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.625rem !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
    letter-spacing: 1px !important;
    padding: 0 15px !important;
    font-weight: bold;
}

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--primary) !important;*/ /* Azul SIGI */
    /*}*/

/* === BOTONES === */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    /*font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    /*letter-spacing: 1px !important;
    font-size: 12px !important;
    padding: 11px 25px !important;*/
}

    .btn-primary:hover {
        background-color: #c03a30 !important; /* Rojo oscuro */
        border-color: #c03a30 !important;
    }

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: var(--dark) !important;
}

    .btn-secondary:hover {
        background-color: #79c0d6 !important;
        border-color: #79c0d6 !important;
    }

/* Botones estilo "Inspiro" */
.btn-inspiro {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    border: 2px solid rgba(68, 68, 68, 0.19);
    background: none;
    color: #444;
    transition: all 0.2s ease;
    display: inline-block;
    border-radius: 0;
}

    .btn-inspiro:hover {
        color: var(--primary);
        border-color: var(--primary);
    }

/* === TABLAS === */
.table thead th {
    background-color: var(--primary) !important;
    color: white !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-bottom: 2px solid rgba(255,255,255,0.2) !important;
}

.table tbody tr:hover {
    background-color: rgba(219, 71, 60, 0.05) !important; /* Rojo claro */
}

/* === BADGES DE ESTADO === */
.badge-status {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.badge-finalizado {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}

.badge-vencido {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.badge-por-vencer {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeaa7 !important;
}

.badge-en-curso {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
    border-color: #bee5eb !important;
}

/* === FORMULARIOS === */
/*.form-control, .form-select, .btn {
    padding: 11px 10px !important;
    font-size: 1rem !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 4px !important;
    font-family: 'Inter', sans-serif !important;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 0.2rem rgba(136, 207, 224, 0.25) !important;
    }*/

label {
    font-weight: 600 !important;
    color: var(--dark) !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* === ENLACES === */
/*a {
    color: var(--primary) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: var(--red) !important;
        text-decoration: underline;
    }
*/
/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
    color: white;
    padding: 3.5rem 0 1.5rem;
    margin-top: 40px;
    padding: 30px 0;
    flex-shrink: 0;
}

    .footer img {
        max-height: 70px;
        margin-bottom: 1rem;
        /*filter: brightness(0) invert(1);*/
    }

    .footer p {
        color: rgba(255,255,255,0.9);
    }

    .footer small {
        color: rgba(255,255,255,0.7);
    }

/* === HERO SECTION (opcional) === */
.hero-section {
    background: linear-gradient(135deg, var(--primary), #c03a30);
    color: white;
    padding: 100px 0;
    text-align: center;
}
/* ==========================================
   ESTILO UNIFICADO - SIGI
   Basado en Inspiro | Paleta: #db473c (rojo), #88cfe0 (azul), #949699 (gris)
   ========================================== */

/* Variables personalizadas (alineadas con Inspiro) */
:root {
    --inspiro-primary-color: #88cfe0; /* Azul principal */
    --inspiro-secondary-color: #db473c; /* Rojo secundario */
    --inspiro-dark-color: #101010; /* Negro */
    --inspiro-light-grey-color: #f2f4f6; /* Fondo claro */
    --inspiro-text-color: #222; /* Texto oscuro */
    --inspiro-neutral-color: #949699; /* Gris metálico */
    --inspiro-border-light: #e6e6e6; /* Bordes suaves */
    --inspiro-color-background-body: #fff;
    --inspiro-color-link-hover: #000;
    --color-danger: #dc3545;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
}

/* Tipografía base */
html {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--inspiro-color-background-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Contenedor principal */
/*.body-content {
    padding-top: 100px;
    padding-bottom: 80px;
}*/
.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--inspiro-text-color);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--inspiro-primary-color);
    padding-bottom: 0.5em;
    display: inline-block;
    color: var(--inspiro-primary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--inspiro-primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--inspiro-primary-color), #c03a30);
    color: white;
    padding: 100px 0;
    text-align: center;
}

    .hero-section h1 {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero-section p.lead {
        font-size: 1.25rem;
        max-width: 800px;
        margin: 0 auto 2rem;
        opacity: 0.9;
    }

/* Enlaces 
a {
    color: var(--inspiro-primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: var(--inspiro-secondary-color);
        text-decoration: underline;
    }*/

/* Botones */
.btn-inspiro {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    border: 2px solid rgba(68, 68, 68, 0.19);
    background: none;
    color: #444;
    transition: all 0.2s ease;
    display: inline-block;
    border-radius: 0;
}

    .btn-inspiro:hover {
        color: var(--inspiro-primary-color);
        border-color: var(--inspiro-primary-color);
    }

.btn-primary {
    background-color: var(--inspiro-primary-color);
    border-color: var(--inspiro-primary-color);
    color: white;
    /*font-family: Montserrat, sans-serif;
    text-transform: uppercase;
    /*letter-spacing: 1px;
    font-size: 12px;
    padding: 11px 25px;*/
}

    .btn-primary:hover {
        background-color: #c03a30;
        border-color: #c03a30;
    }

.btn-secondary {
    background-color: var(--inspiro-secondary-color);
    border-color: var(--inspiro-secondary-color);
    color: var(--inspiro-dark-color);
}

    .btn-secondary:hover {
        background-color: #79c0d6;
        border-color: #79c0d6;
    }

/* Tablas */
table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
}

th {
    background-color: var(--inspiro-primary-color) !important;
    color: white !important;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.8em;
    text-align: left;
}

td {
    padding: 0.8em;
    border-bottom: 1px solid var(--inspiro-border-light);
}

tr:hover {
    background-color: rgba(219, 71, 60, 0.05) !important;
}

.dataTables_filter label, .dt-search label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* separa texto del input */
}

/* DataTables override (crucial para visibilidad) 
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #444 !important;
    border: 1px solid #ddd !important;
    background-color: white !important;
    padding: 0.5em 0.8em;
    margin: 0 2px;
    border-radius: 4px !important;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: var(--inspiro-primary-color) !important;
        color: white !important;
        border-color: var(--inspiro-primary-color) !important;
    }

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    padding: 0.375rem 0.75rem !important;
    color: #444 !important;
}

    .dataTables_wrapper .dataTables_filter input:focus {
        border-color: var(--inspiro-primary-color) !important;
        box-shadow: 0 0 0 0.2rem rgba(219, 71, 60, 0.25) !important;
    }
    */
/* Botones de acción (circulares) */
.btn-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    margin: 0 2px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .btn-action:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

/* Badges de estado (estilo Inspiro: más plano, menos redondeado) */
.badge-status {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.badge-finalizado {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.badge-vencido {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.badge-por-vencer {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.badge-en-curso {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.badge-secondary {
    background-color: #e9ecef;
    color: #495057;
    border-color: #ddd;
}

/* Formularios */
input, textarea {
    padding: 11px 10px;
    font-size: 1rem;
    border: 1px solid var(--inspiro-border-light);
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

    input:focus,
    textarea:focus {
        border-color: var(--inspiro-primary-color);
        outline: none;
        box-shadow: 0 0 0 2px rgba(219, 71, 60, 0.2);
    }

label {
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
    color: var(--inspiro-dark-color);
}

/* Modal */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

    .modal-body table {
        font-size: 0.95rem;
    }

    .modal-body th,
    .modal-body td {
        vertical-align: middle;
    }

/* Formulario de detalles */
.form-check-inline {
    margin-right: 1rem;
}

.error-observacion {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.invalid-row {
    background-color: #f8d7da !important;
}

#modal-error {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    display: none;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 30px 0;
    background-color: var(--inspiro-dark-color);
    color: white;
    flex-shrink: 0;
}

    footer a {
        color: var(--inspiro-secondary-color);
    }

        footer a:hover {
            color: white;
        }

/* Navbar con diseño colorido */
        .navbar {
            background: var(--gradient-primary);
            padding: 1rem 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            position: relative;
            overflow: visible;
        }

            .navbar::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 4px;
                background: linear-gradient(90deg, var(--color-red) 0%, var(--color-orange) 16.66%, var(--color-yellow) 33.33%, var(--color-green) 50%, var(--color-teal) 66.66%, var(--color-blue) 83.33%, var(--color-navy) 100% );
            }

        .navbar-brand img {
            height: 65px;
            filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
        }

        .navbar-nav .nav-link {
            color: white !important;
            font-weight: 600;
            padding: 0.6rem 1.2rem;
            margin: 0 0.2rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
        }

            .navbar-nav .nav-link::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 0;
                height: 3px;
                background: var(--color-yellow);
                transition: width 0.3s ease;
            }

            .navbar-nav .nav-link:hover::after {
                width: 80%;
            }

            .navbar-nav .nav-link:hover {
                background-color: rgba(255, 255, 255, 0.15);
            }

    .hero-section h1 {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 1rem;
        font-family: 'Montserrat', sans-serif;
    }

    .hero-section p.lead {
        font-size: 1.25rem;
        max-width: 800px;
        margin: 0 auto 2rem;
        opacity: 0.9;
        font-family: 'Inter', sans-serif;
    }
