.carousel-container {
    width: 80%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    height: 500px; /* Aumentada para evitar cortes */
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 tarjetas por fila */
    grid-template-rows: auto auto; /* 2 filas automáticas */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(100%);
    gap: 20px; /* Espacio entre tarjetas */
}
.cards-container.active {
    opacity: 1;
    transform: translateX(0);
}
.cards-container.enter-right {
    animation: enterRight 0.5s ease-in-out forwards;
}
.cards-container.exit-left {
    animation: exitLeft 0.5s ease-in-out forwards;
}
@keyframes enterRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes exitLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}
.card {
    background-color: #2a2f4f;
    width: 100%; /* Ocupa el espacio completo de la columna */
    height: 180px; /* Altura fija para cada tarjeta */
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0; /* Quitar márgenes individuales */
}
.card:hover {
    box-shadow: 0 12px 20px rgba(240, 193, 75, 0.3); /* Solo efecto de brillo */
}
.card-image {
    width: 100%;
    height: 60%; /* Ajuste para que la imagen ocupe la mitad superior */
    background-size: cover;
    background-position: center;
    background-color: #4a4f6f;
}
.card-content {
    padding: 10px;
    text-align: center;
    height: 40%; /* Ajuste para que el contenido ocupe la mitad inferior */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #f0c14b;
    cursor: pointer;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-content h3.active {
    color: white;
}
.card-content p {
    margin: 0;
    font-size: 12px;
    color: white;
    display: none; /* Ocultar texto adicional por ahora */
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Fondo más transparente para ver el wallpaper */
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: rgba(42, 47, 79, 0.8); /* Fondo translúcido para el contenido del modal */
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    text-align: left;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #f0c14b;
    cursor: pointer;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
    pointer-events: auto; /* Asegurar que sea interactivo */
}
.close:hover {
    color: white;
}
#modal-body p {
    margin: 10px 0;
    font-size: 16px;
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
}
#modal-body h4 {
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
}