.imagen-relativa { 
    position: relative; 
    width: 30%; 
    height: 20%;
    padding-bottom: 30%;  
    overflow: hidden; 
} 

.text-overlay {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    
    padding: 10px;
    /* Agrega más estilos de texto aquí */
}

.imagen-fondo {
    width: 100%;
    height: 100%;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.galeria img {
    width: 100%;
    height: 250px; /* Altura fija para todas las imágenes */
    object-fit: cover; /* Mantiene proporción y recorta si es necesario */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e9ecef; /* Borde opcional para mejor presentación */
}

.galeria img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: #007bff; /* Cambia color del borde al hacer hover */
}

.modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.image-description {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-top: 15px;
}

.disabled-li {
    opacity: 0.6; /* Visual indication of being disabled */
    pointer-events: none; /* Prevents clicks and other pointer events */
    cursor: not-allowed; /* Changes cursor to indicate no interaction */
}

.image-description {
    background-color: #9c9af1; /* Color de fondo */
    padding: 10px; /* Espacio alrededor del texto */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra alrededor del div */
    width: auto;

}

.image-description p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #333;
}

.div-simu {
    position: relative;
    text-align: center; 
    height: 50%; 
    width: 50%;
    margin-top: 10%;
}

/*  Estilos de los cursos de la escuela */

.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 1200px;
}

.course-item {
    cursor: pointer;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 5px solid #667eea;
}

.course-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.course-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.course-item i {
    color: #667eea;
    margin-right: 15px;
}

.course-item:hover i,
.course-item.active i {
    color: white;
}

.content-panel {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 30px;
    min-height: 500px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.content-panel.show {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.placeholder-content {
    text-align: center;
    color: #6c757d;
    padding: 50px 20px;
}

.course-content {
    display: none;
}

.course-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.course-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-title {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.requirements-list {
    background: #e8f2ff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.requirements-list h6 {
    color: #667eea;
    margin-bottom: 10px;
}

.duration-badge {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
    margin: 10px 0;
}