.video-section {
    position: relative;
    padding: 80px 20px 40px;
    /* height: auto !important; */
    color: white;
    text-align: center;
    background: url('/inequivoco/img/inicio.png') center/cover fixed no-repeat;
    font-family: 'Poppins', sans-serif;
}

/* Capa oscura para mejorar la legibilidad sin afectar el contenido */
.video-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

/* Asegurar que el contenido esté por encima de la capa oscura */
.video-section * {
    position: relative;
    z-index: 1;
}

.video-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.video-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ddd;
    margin-bottom: 30px;
}

/* Contenedor de videos con flexbox */
.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Cada contenedor de video */
.video-wrapper {
    flex: 1 1 calc(50% - 40px);
    /* Dos columnas en pantallas grandes */
    max-width: 450px;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(201, 167, 115, 0.5);
    /* Color semitransparente */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.video-wrapper:hover {
    transform: scale(1.05);
}

/* Estilo del iframe para que sea 100% responsivo */
.video-wrapper iframe {
    width: 100%;
    height: 250px;
    /* Altura ajustada para mejor apariencia */
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsividad para tablets */
@media (max-width: 1024px) {
    .video-title {
        font-size: 2rem;
    }

    .video-wrapper {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .video-title {
        font-size: 1.8rem;
    }

    .video-subtitle {
        font-size: 1rem;
    }

    .video-wrapper {
        flex: 1 1 100%;
        /* Un video por fila en móviles */
        max-width: 100%;
    }

    .video-wrapper iframe {
        height: 200px;
        /* Tamaño más compacto en móviles */
    }
}