
:root {
    --primary: #291874;
    --secondary: #0AAADA;
    --accent: #F1E902;
    --white: #ffffff;
    --text-dark: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.organigrama-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Diagrama de Organigrama con Imagen */
.diagrama-organigrama {
    background-color: var(--white);
    padding: 4rem 0;
    min-height: 80vh;
}

.organigrama-contenedor {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.organigrama-imagen {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
}

.organigrama-imagen:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* Contenedor de imagen con zoom */
.imagen-zoom-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
}

.imagen-zoom-container:hover .organigrama-imagen {
    transform: scale(1.02);
}

/* Botón de zoom completo */
.zoom-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.zoom-button:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

/* Modal para zoom completo */
.modal-zoom {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-zoom.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-contenido {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
}

.modal-imagen {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--secondary);
    transform: scale(1.1);
}



/* Controles de accesibilidad */
.controles-accesibilidad {
    margin-bottom: 2rem;
    text-align: center;
}



/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.organigrama-contenedor {
    animation: slideUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .diagrama-organigrama {
        padding: 2rem 0;
    }

    .organigrama-hero {
        height: 300px;
    }

    .zoom-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .controles-accesibilidad {
        margin-bottom: 1rem;
    }

}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .organigrama-hero {
        height: 250px;
    }

    .diagrama-organigrama {
        padding: 1.5rem 0;
    }

    

    
}

/* Estilos para impresión */
@media print {
    .zoom-button,
    .controles-accesibilidad,
    .modal-zoom {
        display: none !important;
    }
    
    .organigrama-imagen {
        box-shadow: none;
        border: 1px solid #000;
    }
}
