/* =========================================================
   1. RESET Y CONFIGURACIÓN GENERAL
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background-color: #f8fafc;
}

/* =========================================================
   2. LAYOUT: DIVISIÓN DE PANTALLA (SIDEBAR + MAIN)
   ========================================================= */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =========================================================
   3. MENÚ LATERAL IZQUIERDO (SIDEBAR - Fijo)
   ========================================================= */
.sidebar {
    width: 280px;
    background-color: #0a192f;
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 40px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}

.sidebar-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 5px;
}

.sidebar-header .cargo {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-menu a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
    background-color: #172a45;
    color: white;
    border-left: 4px solid #0076ff;
}

.sidebar-menu .btn-highlight {
    margin: 10px 20px;
    padding: 12px;
    text-align: center;
    border-left: none;
    border: 1px solid #0076ff;
    border-radius: 4px;
    color: #0076ff;
}

.sidebar-menu .btn-highlight:hover {
    background-color: rgba(0, 118, 255, 0.1);
}

.sidebar-menu .btn-action {
    margin: 10px 20px;
    padding: 12px;
    text-align: center;
    border-left: none;
    background-color: #0076ff;
    color: white;
    border-radius: 4px;
}

.sidebar-menu .btn-action:hover {
    background-color: #0056b3;
}

.sidebar-footer {
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid #1e293b;
}

/* =========================================================
   ESTILOS DEL ISOTIPO GM EN EL SIDEBAR
   ========================================================= */
.logo-isotipo {
    width: 80px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

/* =========================================================
   4. CONTENIDO PRINCIPAL (Lado Derecho General)
   ========================================================= */
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    background-color: white;
    min-height: 100vh;
    overflow-y: auto;
}

/* =========================================================
   5. PÁGINA INICIO: Estilo central con foto (index.html)
   ========================================================= */
.central-hero {
    height: 100vh;
    background: linear-gradient(135px, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.central-photo {
    width: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    margin-bottom: 40px;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    color: #0076ff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-text p {
    color: #0076ff;
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================================
   6. PÁGINAS DE TEXTO: Estilo Historia y gestion
   ========================================================= */
.content-page {
    padding: 80px 100px;
    background-color: white;
}

.bio-container {
    max-width: 800px;
    margin: 0 auto;
}

.bio-container .subtitle {
    display: block;
    color: #0076ff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.bio-container h1 {
    font-family: 'Montserrat', sans-serif;
    color: #0a192f;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
}

.lead-text {
    font-size: 1.35rem;
    color: #334155;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
    border-left: 4px solid #0076ff;
    padding-left: 20px;
}

.bio-section {
    margin-bottom: 35px;
}

.bio-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0f172a;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.bio-section p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.bio-quote {
    margin: 50px 0;
    padding: 40px;
    background-color: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.bio-quote blockquote {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a192f;
    line-height: 1.4;
    font-style: italic;
}

/* =========================================================
   VENTANA MODAL (MENSAJE DE ÉXITO FORMULARIOS)
   ========================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalEfecto 0.4s ease-out;
}

@keyframes modalEfecto {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #0055A5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #0055A5;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-cerrar-modal {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cerrar-modal:hover {
    background-color: #0055A5;
}

/* =========================================================
   7. ADAPTACIÓN PARA PANTALLAS CHICAS Y TABLETS
   ========================================================= */
@media (max-width: 900px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
    .central-hero {
        padding: 30px;
    }
    .central-photo {
        width: 250px;
        margin-bottom: 30px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .content-page {
        padding: 50px 40px;
    }
    .bio-container h1 {
        font-size: 2.2rem;
    }
}
