/* assets/css/style.css */
/* Estilos para la estructura de layers */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content {
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.74);
}

/* ===== HEADER LAYERS ===== */

/* Permanent head */
.permanent-head {
}
   

/* Menu top */
.menu-top {
    background-color: #083568;
    color: white;
    padding: 5px 0;
}

.menu-top .nav-link {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.menu-top .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* Dynamic head content */
.dynamic-head-content {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Menu primary */
.menu-primary {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #f8f9fa;
    z-index: 10;
}

.menu-primary .navbar {
    padding: 0;
}

.menu-primary .nav-link {
    padding: 1rem 1.25rem;
    font-weight: 500;
    position: relative;
}

.menu-primary .nav-item.active .nav-link {
    color: #007bff;
}

.menu-primary .nav-item.active .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #007bff;
}

.menu-primary .dropdown-menu {
    margin-top: 0;
    border-radius: 0;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ===== LEFT LAYERS ===== */

/* Permanent left */
.permanent-left .card-header {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Lateral menu */
.lateral-menu .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lateral-menu .card-header {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.lateral-menu .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
    position: relative;
}

.lateral-menu .list-group-item.active {
    background-color: #f8f9fa;
    color: #007bff;
    border-color: #e9ecef;
    font-weight: 600;
}

.lateral-menu .list-group-item.active:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #007bff;
}

/* Dynamic left content */
.dynamic-left-content .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.dynamic-left-content .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #083568;
}

/* ===== CENTER LAYERS ===== */

/* Permanent center */
.permanent-center h1 {
    font-size: 1.75rem;
    color: #083568;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Dynamic center content */
.dynamic-center-content .content-block {
    margin-bottom: 2rem;
}

.dynamic-center-content h2 {
    font-size: 1.4rem;
    color: #083568;
    margin-bottom: 1rem;
}

/* ===== FOOTER LAYERS ===== */

footer {
    background-color: #083568;
    color: white;
    margin-top: auto;
    z-index: 10;
    padding: 2.5rem 0 1rem;
}

/* Permanent footer */
.permanent-footer h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.permanent-footer hr {
    margin: 1.5rem 0;
}

.permanent-footer a {
    color: rgba(255, 255, 255, 0.925);
    transition: color 0.3s;
}

.permanent-footer a:hover {
    color: white;
    text-decoration: none;
}

/* Dynamic footer content */
.dynamic-footer-content {
    margin-bottom: 1.5rem;
}

.dynamic-footer-content h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-content-block {
    padding: 0.5rem 0;
}

/* Footer con ancho personalizado */
.footer-custom-width {
    float: left;
    padding: 0 15px;
}

/* Limpiar floats */
.dynamic-footer-content .row::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== COMPONENTES COMUNES ===== */

.card {
    border-radius: 0.25rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991.98px) {
    .menu-primary .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .menu-top .text-right {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .permanent-footer .text-md-right {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .footer-custom-width {
        width: 100% !important;
        float: none;
        margin-bottom: 1.5rem;
    }
}