/* Sección de Título */
.video-section-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: left;
    grid-column: 1 / -1;
    font-family: 'Open Sans', sans-serif;
}

/* Rejilla de Contenedores */
.video-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1280px;
    margin: 40px auto;
    align-items: stretch; 
}

/* Tarjeta de Cristal - PUNTO INTERMEDIO REAL */
.video-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    /* 1. Altura ajustada: Ni 380px (muy corta) ni 550px (muy larga) */
    min-height: 400px; 
    height: 100%; 

    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(25px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(160%) !important;

    border: 2px solid transparent !important;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(255,255,255,0.1), rgba(255,255,255,0.4)) !important;
    border-radius: 18px;

    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.5), 
        0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contenedores de Texto */
.text-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* 2. Esto hace que el área de texto crezca hacia abajo */
    flex-grow: 1; 
    box-sizing: border-box;
}

.video-container h3, 
.video-container p {
    background: transparent !important;
    width: 100%;
    box-sizing: border-box;
    text-align: left; 
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

.video-container h3 { 
    font-size: 17px; 
    font-weight: 600; 
    padding: 20px 20px 10px 20px; /* Más aire */
    color: #111; 
    overflow-wrap: break-word;
}

.video-container p { 
    font-size: 15px; 
    padding: 0 20px 20px 20px; 
    color: #222; 
    line-height: 1.5;
    /* 3. El párrafo empuja el fondo de la tarjeta */
    flex-grow: 1; 
}

video { 
    width: 100%; 
    height: 250px; /* Video un poco más grande */
    object-fit: cover; 
    flex-shrink: 0; 
}

/* Hover */
.video-container:hover { 
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: hsl(19, 100%, 50%) !important; /* Ahora el borde de 2px se vuelve naranja */
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.2); /* Resplandor naranja suave */
}