.elementor-43 .elementor-element.elementor-element-d9885f1{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;border-style:solid;--border-style:solid;border-width:4px 0px 0px 0px;--border-top-width:4px;--border-right-width:0px;--border-bottom-width:0px;--border-left-width:0px;border-color:#C00000;--border-color:#C00000;}.elementor-43 .elementor-element.elementor-element-d9885f1:not(.elementor-motion-effects-element-type-background), .elementor-43 .elementor-element.elementor-element-d9885f1 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#F2E7DF;}.elementor-43 .elementor-element.elementor-element-2dd2a51{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}@media(min-width:768px){.elementor-43 .elementor-element.elementor-element-2dd2a51{--content-width:1350px;}}/* Start custom CSS for html, class: .elementor-element-c5709bd *//* --- Reset básico y Estilos Generales --- */
.organizational-structure-section {
    color: #333;
    padding: 60px 20px;
    line-height: 1.6;
}

/* --- Tipografía y Color de encabezados (Tus Cambios) --- */
.organizational-structure-section h1,
.organizational-structure-section h2,
.organizational-structure-section h3 {
    font-family: "Berlin Sans FB Demi", Sans-serif;
    color: black !important;
}

.organizational-structure-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.organizational-structure-section .section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 700;
}

/* El h3 de los niveles 1 y 2 mantiene este estilo */
.organizational-structure-section .level-group h3 {
    font-size: 1.8em;
    color: #34495e;
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* --- Estilos para todas las filas de tarjetas y el layout --- */
.organizational-structure-section .card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 100%; /* TU AJUSTE DE ANCHO MÁXIMO */
    margin: auto;
    margin-bottom: 40px; /* Para separación entre niveles */
}

.organizational-structure-section .card {
    background-color: #ffffff; /* Fondo blanco (Tu preferencia) */
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    flex: 1 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 5px solid transparent;
}

/* Ajuste para niveles 1 y 2 para tener 2 tarjetas por fila */
.organizational-structure-section .level-group.max-influence .card,
.organizational-structure-section .level-group.high-influence .card {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
}


/* --- Bordes de color para las tarjetas --- */
.organizational-structure-section .card.max-level.red-border { border-top-color: #E74C3C; }
.organizational-structure-section .card.high-level.orange-border { border: 5px solid #F1C40F; }
.organizational-structure-section .card.medium-level.yellow-border { border: 3px solid #F1C40F; }
.organizational-structure-section .card.low-level.green-border { border: 3px solid #F1C40F; }


/* --- ESTILOS DE BOTONES "VER MÁS" (PERSONALIZADOS) --- */

.organizational-structure-section .card .view-more {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
    border: 2px solid #F1C40F;
    color: #000;
}

[type="button"]:focus, [type="button"]:hover, [type="submit"]:focus, [type="submit"]:hover, button:focus, button:hover {
  background-color: #c00000 !important;
  color: #fff !important;
  border: 2px solid #c00000 !important;
}

/* 1. Soberanía y Ética (Máximo) - #c00000 */
.organizational-structure-section .level-group.max-influence .view-more {
    background-color: #c00000;
    color: white;
}
.card.max-level.red-border.tryu {
  background: #8e2b32;
}
div.card.max-level.red-border.tryu button.view-more {
    background: #ac474d;
    color: white;
    border: 0px;
}

.organizational-structure-section .level-group.max-influence .view-more:hover {
    background-color: #9a0000;
}

/* 2. Dirección Ejecutiva y Control (Alto) - #ff0000 */
.organizational-structure-section .level-group.high-influence .view-more {
    background-color: transparent;
    color: black;
}
.organizational-structure-section .level-group.high-influence .view-more:hover {
    background-color: #cc0000;
}

/* 3. Coordinaciones Temáticas (Nivel medio - Eje 1) - #f95c2b */
.organizational-structure-section .level-group:nth-of-type(3) .view-more {
    background-color: #f95c2b;
    color: white;
}
.organizational-structure-section .level-group:nth-of-type(3) .view-more:hover {
    background-color: #d8481e;
}

/* 4. Gestión Administrativa (Nivel medio - Eje 2) - #fd7b7b */
.organizational-structure-section .level-group:nth-of-type(4) .view-more {
    background-color: #fd7b7b;
    color: white; /* Mantenemos TU CAMBIO */
}
.organizational-structure-section .level-group:nth-of-type(4) .view-more:hover {
    background-color: #fa5a5a;
}

/* 5. Nivel Técnico (Bajo) - #ffcc99 */
.organizational-structure-section .level-group.low-influence .view-more {
    background-color: transparent;
    color: black; /* Mantenemos TU CAMBIO */
}
.organizational-structure-section .level-group.low-influence .view-more:hover {
    background-color: #ffb766;
}


/* --- Estilos de Contenido de Tarjeta: Iconos y H4 --- */

.organizational-structure-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.organizational-structure-section .card .card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}
/* Colores de Icono por Nivel */
.organizational-structure-section .card.max-level .card-icon { color: #E74C3C; }
.organizational-structure-section .card.high-level .card-icon { color: #F39C12; }
.organizational-structure-section .card.medium-level .card-icon { color: #F1C40F; }
.organizational-structure-section .card.low-level .card-icon { color: #2ECC71; }

/* Título de Tarjeta (h4) con fuente Berlin Sans y color por nivel */
.organizational-structure-section .card h4 {
    font-family: "Berlin Sans FB Demi", Sans-serif; /* TU FUENTE */
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2c3e50;
    transition: color 0.3s ease;
}
.organizational-structure-section .card.max-level h4 { color: #fff; }
.organizational-structure-section .card.high-level h4 { color: #000; }
.organizational-structure-section .card.medium-level h4 { color: #000; }
.organizational-structure-section .card.low-level h4 { color: #000; }

div.card.max-level.red-border.tryu p {
    color: white;
}
div.card.max-level.red-border.tryu div.card-details p strong {
    color: white;
}


/* --- Contenido de Párrafo y Detalles --- */

.organizational-structure-section .card p {
    font-size: 1em;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

.organizational-structure-section .card .card-details {
    display: none;
    text-align: left;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.9em;
    color: #444;
}
.organizational-structure-section .card .card-details p {
    margin-bottom: 8px;
}
.organizational-structure-section .card .card-details strong {
    color: #333;
}

/* ------------------------------------------------------------------ */
/* --- ESTILOS ADICIONALES PARA PESTAÑAS (TABS) PARA NIVELES 3, 4, 5 --- */
/* ------------------------------------------------------------------ */

.organizational-structure-section .tabs-title {
    text-align: center;
    font-size: 2.1em;
    margin-bottom: 20px;
    margin-top: 50px;
    font-family: "Berlin Sans FB Demi", Sans-serif;
    color: black !important;
    border-bottom: none; /* Quitamos la línea para este título de grupo */
    padding-bottom: 0;
}

.organizational-structure-section .level-tabs {
    max-width: 1200px; /* Para centrar la estructura de tabs */
    margin: 0 auto 50px auto;
    background-color: transparent; /* Un ligero fondo para la sección de tabs */
    padding: 30px 20px;
    border-radius: 15px;
}

.organizational-structure-section .tabs-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap; 
}

.organizational-structure-section .tab-button {
    font-family: "Berlin Sans FB Demi", Sans-serif;
    padding: 12px 25px;
    border: 2px solid #e0e0e0;
    background-color: #f7f7f7;
    color: #333;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-grow: 1; 
    max-width: 33.333%; 
    text-align: center;
}

/* Estilo para Nivel Medio (Pestañas 3 y 4) activo */
.organizational-structure-section .tab-button[data-tab="tab-3"].active,
.organizational-structure-section .tab-button[data-tab="tab-4"].active {
    background-color: #c00000; /* Amarillo/Naranja (Nivel Medio) */
    color: white;
    border-color: #c00000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilo para Nivel Bajo (Pestaña 5) activo */
.organizational-structure-section .tab-button[data-tab="tab-5"].active {
    background-color: #c00000; /* Verde (Nivel Bajo) */
    color: white;
    border-color: #c00000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.organizational-structure-section .tab-button:hover:not(.active) {
    background-color: #e0e0e0;
}

/* Ocultar contenido de pestañas por defecto */
.organizational-structure-section .tab-content {
    display: none;
    padding-top: 0; /* Ya tenemos padding en .level-tabs */
}

.organizational-structure-section .tab-content.active {
    display: block;
}

.organizational-structure-section .tab-content .level-group {
    margin-bottom: 0; /* Evita margen extra dentro de la pestaña */
}

.organizational-structure-section .tab-content .card-row {
    margin-bottom: 0; /* Evita margen extra dentro de la pestaña */
}


/* --- Responsive Design --- */

@media (max-width: 992px) { 
    .organizational-structure-section .card {
        flex: 1 1 calc(50% - 30px); /* Dos tarjetas por fila */
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .organizational-structure-section {
        padding: 40px 5px;
    }
    .organizational-structure-section .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .organizational-structure-section h3 {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .organizational-structure-section .card-row {
        flex-direction: column;
        gap: 20px;
    }
    .organizational-structure-section .level-group.max-influence .card, .organizational-structure-section .level-group.high-influence .card {
        max-width: 100%;
    }
    .organizational-structure-section .card {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 25px;
    }
    /* Responsive para el menú de pestañas en móviles */
    .organizational-structure-section .tabs-menu {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    .organizational-structure-section .tab-button {
        max-width: 100%;
    }
    .organizational-structure-section .level-tabs {
        padding: 20px 0px;
    }
    .organizational-structure-section .tab-button {
        font-size: 16px;
    }
}
@media (max-width: 992px) { 
    .organizational-structure-section .tab-button {
        font-size: 14px;
    }
}/* End custom CSS */