﻿/* =========================================
   TIPOGRAFÍA Y BASE
   ========================================= */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f4f6fa;
    margin: 0;
    padding: 0;
}

/* =========================================
   ENCABEZADO
   ========================================= */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #004aad !important;
    font-size: 1.25rem;
}

.nav-link {
    color: #333333 !important;
    font-weight: 500;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: #004aad !important;
    }

/* =========================================
   BOTONES
   ========================================= */
.btn-primary {
    background-color: #004aad;
    border: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

    .btn-primary:hover {
        background-color: #003580;
    }

/* =========================================
   PIE DE PÁGINA
   ========================================= */
footer {
    background-color: #ffffff;
    color: #555;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

/* =========================================
   TARJETAS Y CONTENEDORES
   ========================================= */
.card {
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.card-header {
    background-color: #004aad;
    color: #fff;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

.card-body {
    background-color: #fff;
}

/* =========================================
   TÍTULOS
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #222;
}

/* =========================================
   TABLAS
   ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #004aad;
    color: white;
    padding: 8px;
}

td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f2f2f2;
}

/* =========================================
   FORMULARIOS
   ========================================= */
input, select, textarea {
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    padding: 8px;
}

label {
    font-weight: 600;
}

/* =========================================
   MENSAJES TEMPORALES
   ========================================= */
.alert-success {
    background-color: #d4edda;
    border: none;
    color: #155724;
    font-weight: 500;
}

.alert-danger {
    background-color: #f8d7da;
    border: none;
    color: #721c24;
    font-weight: 500;
}
/* =========================================
   TABLAS BOOTSTRAP CON ESTILO AFUMITRA
   ========================================= */
table.table {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    table.table thead th {
        background-color: #004aad !important;
        color: #ffffff !important;
        border: none !important;
        font-weight: 600;
        padding: 12px 10px;
    }

    table.table tbody td {
        color: #333333;
        vertical-align: middle;
        border-bottom: 1px solid #ddd;
    }

    table.table tbody tr:hover {
        background-color: #f2f2f2;
    }

/* Botones */
.btn-info {
    background-color: #007bff;
    border: none;
}

    .btn-info:hover {
        background-color: #0056b3;
    }

.btn-warning {
    background-color: #ffc107;
    border: none;
    color: #000;
}

    .btn-warning:hover {
        background-color: #e0a800;
    }

.btn-danger {
    background-color: #dc3545;
    border: none;
}

    .btn-danger:hover {
        background-color: #b02a37;
    }

.btn-success {
    background-color: #198754;
    border: none;
}

    .btn-success:hover {
        background-color: #157347;
    }

/* =========================================
   CORRECCIÓN DEL PIE DE PÁGINA (AFUMITRA)
   ========================================= */
footer.footer {
    position: relative !important;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    color: #555;
    text-align: center;
    line-height: 60px;
    font-size: 0.9rem;
    margin-top: 40px;
}
.navbar-brand img {
    height: 45px;
    transition: transform 0.2s ease;
}

    .navbar-brand img:hover {
        transform: scale(1.05);
    }
/* ===============================
   🔹 Desplegar menú al pasar el cursor
   =============================== */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Mantiene el color y estilo del menú */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
/* ===============================
   🔹 Menú desplegable con hover + animación
   =============================== */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease-in-out;
}

/* 🔹 Animación de aparición suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🔹 Estilo del menú */
.fade-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}



