body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    background-color: #F4F6F9;
}

.organigrama {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Puedes ajustar este valor según tus necesidades */
    margin-top: 10px;
}

.titulo-contenedor {
    text-align: center; /* Centra el texto de h1 y h3 horizontalmente */
    margin: 40px 0; /* Agrega un espacio arriba y abajo del contenedor */
    max-width: 600px; /* Puede ajustar según sus preferencias */
    margin-top: 100px;
    margin-left: auto; /* Centra el div en la página */
    margin-right: auto;
}

h1 {
    font-family: 'Oswald', sans-serif;
text-align: center;
text-transform: uppercase;
font-weight: bold;
font-size: 30px;
color: #2490eb;
}
h2 {
    font-family: 'Oswald', sans-serif;
text-align: center;
text-transform: uppercase;
font-weight: bold;
font-size: 18px; /* donde 16px es el tamaño base y 2vw es el ajuste según el ancho del viewport */
color: #2490eb;
}


h3 {
    font-family: 'Oswald', sans-serif;
    text-align: center;
    font-weight: 400;
    font-size: 18px !important;
    color: #212529;
    
}
h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    color: #262626;
    letter-spacing: 1px;
}
h5 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: #888888;
    letter-spacing: 1px;
}


/* Estilos para el logo */
.logo-container {
    position: absolute;
    top: 10px;
    left: 10%;
    z-index: 1000;  /* Esto asegura que el logo esté por encima de otros elementos en caso de superposición. */
}

.logo-container img {
    width: 220px;   /* Ajusta según el tamaño deseado. */
    height: auto;   /* Esto mantiene la proporción del logo. */
}


.nivel {
    display: flex;
    align-items: center;
    justify-content: center;
    
   
}

#nivel1 {
    padding-bottom: 20px;
}

#nivel2 {
    padding-top: 20px;
    padding-bottom: 20px;
}

#nivel3 {
    padding-top: 20px;
    padding-bottom: 20px;
}

#nivel4 {
    padding-top: 0px;
}



.caja {
    flex: 1; /* Permitirá que las cajas se expandan para llenar el espacio disponible */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    
    min-width: 120px; /* Garantiza que las cajas de niveles 2 y 3 tengan al menos este ancho */       
        background-color: white;
        box-shadow: 0 0 15px rgba(128, 128, 128, 0.1);
        /* overflow: hidden; */
    
    
}

.caja h2 {
    transition: all 0.3s;
    margin-bottom: 0; /* Elimina el margen inferior por defecto */
}

.caja:hover {
    background-color: #7ECD31;

}

.caja:hover h2 {
    color: #FFFFFF;
    
    transform: translateY(-15px);
}

.btn-leer {
    color: #0971CE;
    font-weight: 700;
    position: absolute;
    /* width: 100%; */
    text-align: center;
    bottom: 0px; /* Posición inicial fuera de la caja */
    opacity: 0; /* Inicialmente oculto */
    transition: all 0.5s ease;
}

.caja:hover .btn-leer {
    bottom: 20px; /* Desplazamiento hacia arriba */
    opacity: 1; /* Aparece cuando el mouse está sobre la caja */
}

#caja1 {
    flex: none; /* Esto anula la expansión automática de la caja */
    width: 300px;
    min-width: 300px; /* Esto es para asegurar que no se haga más pequeña */
}
#caja6 {
    
    height: 150px;
   min-height: 150px;
    
}
#caja7 {
    
    height: 150px;
   min-height: 150px;
    
}

#caja8 {
    
    height: 150px;
   min-height: 150px;
    
}

#caja9 {
    
    height: 150px;
   min-height: 150px;
    
}

#caja10 {
    
    height: 150px;
   min-height: 150px;
    
}

#caja11 {
    
    height: 150px;
   min-height: 150px;
    
}



.linea {
    flex: 0 0 300px; /* Ancho de la línea */
   
    height:1px ;
    background: #d4d4d8;
    
}
.lineai {
    flex: 0 0 20px; /* Ancho de la línea */
    width: 0.1px;
    background: #d4d4d8;
    
}

#lineainvisible {
    background: #F4F6F9; /* Color del fondo, para hacer la línea invisible */
}
#nivelLineaCentro {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

#lineahorizontalcentro {
    flex: 0 0 calc(80% + 61px); /* Restamos 20px (10px por cada lado) en vez de 40px */
    height: 1px;
    width: 1px;
    background: #d4d4d8;
}

#caja1 {
    position: relative;
}

#lineavertical {
    position: absolute;
    width: 1px;
    background: #d4d4d8;
    left: 50%;
    transform: translateX(-50%);
    top: 120px;
    height: calc(100% - 289px );
    bottom: 20px;
}

.linea-vertical-caja {
    position: absolute;
    width: 1px;
    background: #d4d4d8;
    height: 21px;
    transform: translateX(-50%); /* Ajustar para considerar el ancho de la línea */
    top: -23px; /* Se posiciona 20px hacia arriba, el espacio entre los niveles */
    bottom: 54; /* Hasta el borde superior de la caja */
}

.titulo-contenedor, .caja {
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateY(30px); 
}

.linea {
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateY(30px); 
}

.linea-vertical-caja{
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateY(30px); 
}

.btn-container{
 margin-top: 50px;
 margin-bottom: 30px;
}
.btn-container{
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateY(30px); 
}

.aparecer {
    opacity: 1;
    transform: translateY(0);
}



/* Estilos para el modal */
.modal-content {
    max-width: calc(100% - 30px);
    overflow-x: hidden; /* Esto evita que el contenido sobrepase el ancho del modal */
    box-sizing: border-box;
    box-shadow: 0 0 15px rgba(128, 128, 128, 0.5); /* Iluminado exterior en gris con 50% de opacidad */
    border: none; /* Esto quitará el borde del modal */
}
.modal {
    transition: transform 0.5s;
    transform: translateX(100%);
    
}

.green-bar {
    background-color: #7ECD31;
    height: 4px;
    width: 50px;
    margin-top: -2px;
    margin-bottom: -1px;
   
    margin-left: 18px;
    z-index: 10;
}
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--bs-modal-padding);
    background: #f0f0f0;
}
.modal .modal-body ol {
    padding: 10px; 
    background-color: #F5F5F5;
    /* border: 0.5px solid #34ABFC; */
    list-style-position: inside; /* Asegura que los números de la lista estén dentro del padding */
}
.modal .modal-body ol li {
    font-size: 14px;
    font-weight:500;
}

.modal .modal-body ol li::marker {
    font-weight: bold;
    color:#7ECD31;
}

.modal.show {
    transform: translateX(0);
}

.modal.chao {
    transform: translateX(-100%);
}
/* Estilos para el logo */
.logo-container {
    position: absolute;
    top: 10px;
    left: 10%;
    z-index: 1000;  /* Esto asegura que el logo esté por encima de otros elementos en caso de superposición. */
}

.logo-container img {
    width: 220px;   /* Ajusta según el tamaño deseado. */
    height: auto;   /* Esto mantiene la proporción del logo. */
}

.modal-header {
    display: flex;           /* Utiliza flexbox para alinear elementos */
    justify-content: space-between; /* Distribuye espacio entre elementos */
    align-items: center;     /* Alinea verticalmente en el centro */
    padding: 10px;          /* Espacio alrededor de la cabecera */
    position: relative;     /* Establece un contexto de posicionamiento */
    background: #f5f5f5;
}

.modal-logo-container {
    padding: 0;
}

.modal-logo-container img {
    width: 100px;
    height: auto;
    margin-bottom: 30px;
}

.close {
    position: absolute;   /* Posiciona absolutamente el botón */
    top: 10px;            /* Espacio desde arriba */
    right: 10px;          /* Espacio desde la derecha */
       /*background: none;   Remueve fondo si lo tuviera */
    border: none;         /* Remueve bordes si los tuviera */
}


.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #DFEFFF;  /* Fondo negro con 50% de opacidad */
    z-index: 1040;  /* Asegurándonos de que está detrás del modal pero por encima de otros contenidos */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;  /* Transición de opacidad */
    display: none;  /* Por defecto estará oculto */
}







@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


@media screen and (max-width: 896px) {
    #caja1 {
        width: 90%;
        margin: 0 auto; /* Centra la caja */
    }
    .linea {
        flex: 0 0 30px;
        height: 0.1px;
        background: #d4d4d8;
    }
    .nivel {
        flex-wrap: wrap;
    }

    #caja3 {
        width: calc(35% - 10px); /* Ajusta el ancho y resta 10px para considerar el margen */
        margin-left: 10px; /* Añade un pequeño margen a los lados */
    }
    
    #caja2 {
        width: calc(35% - 10px); /* Ajusta el ancho y resta 10px para considerar el margen */
        margin-right: 10px; /* Añade un pequeño margen a los lados */
    }
    #caja4 {
        width: calc(35% - 10px); /* Ajusta el ancho y resta 10px para considerar el margen */
        margin-left: 10px; /* Añade un pequeño margen a los lados */
    }
    
    #caja5 {
        width: calc(35% - 10px); /* Ajusta el ancho y resta 10px para considerar el margen */
        margin-right: 10px; /* Añade un pequeño margen a los lados */
    }

    #lineahorizontal1 {
        width: 10px; /* O el ancho que prefieras */
        margin: 0 auto; /* Centra la línea */
    }

    #caja6,
    #caja7,
    #caja8,
    #caja9,
    #caja10,
    #caja11 {
        width: 60%;
        margin: 10px auto; /* Añade un margen superior e inferior y centra las cajas */
    }

    #nivel4 {
        flex-direction: column;
        align-items: center;
    }
    #lineahorizontalcentro {
     display: none;
    }
    .logo-container {
        left: 50%; /* Posiciona el borde izquierdo del contenedor en el centro de la pantalla */
        transform: translateX(-50%); /* Desplaza el contenedor hacia la izquierda en un 50% de su ancho */
    }

    .titulo-contenedor {
        margin-top: 150px;
    }
    h2 {
  margin-right: 10px;
        margin-left: 10px;
    }
    .modal-content {
        margin-left: 15px;
    }
}



