
/* =========================
   INICIO SECCION VIDEOS
========================= */

.container-principal-videos{
    padding: 100px 8%;
    background-color: #f8f8f8;
}

/* =========================
   HEADER
========================= */

.videos-header{
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px auto;
}

.videos-header h2{
    font-size: 55px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: black;
}

.videos-header p{
    font-size: 20px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 35px;
}

.videos-header a{
    display: inline-block;
    padding: 15px 35px;
    background-color: black;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s ease;
}

.videos-header a:hover{
    transform: translateY(-4px);
    background-color: #222;
}

/* =========================
   GRID DE VIDEOS
========================= */

.videos-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

/* =========================
   CARD
========================= */

.container-video{
    background-color: white;
    border-radius: 25px;
    overflow: hidden;
    transition: 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Hover card */

.container-video:hover{
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* =========================
   IMAGEN
========================= */

.video-img{
    overflow: hidden;
    height: 320px;
    position: relative;
}

.video-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
    display: block;
}

/* Zoom imagen */

.container-video:hover .video-img img{
    transform: scale(1.08);
    opacity: 0.9;
}

/* Overlay oscuro */

.video-img::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0)
    );
    opacity: 0;
    transition: 0.4s ease;
}

.container-video:hover .video-img::after{
    opacity: 1;
}

/* =========================
   CONTENIDO
========================= */

.video-content{
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-content h3{
    font-size: 28px;
    margin-bottom: 15px;
    color: black;
}

.video-content p{
    font-size: 17px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
}

/* =========================
   BOTON
========================= */

.video-content a{
    display: inline-block;
    width: fit-content;
    padding: 12px 25px;
    background-color: black;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s ease;
    margin-top: auto;
}

.video-content a:hover{
    background-color: #222;
    transform: translateY(-3px);
}

/* =========================
   RESPONSIVE
========================= */
/* TABLET */
@media(max-width:1100px){
    .videos-grid{
        grid-template-columns: repeat(2,1fr);
    }
}

/* MOBILE */
@media(max-width:768px){
    .container-principal-videos{
        padding: 80px 5%;
    }
    .videos-header h2{
        font-size: 38px;
    }
    .videos-header p{
        font-size: 18px;
    }
    .videos-grid{
        grid-template-columns: 1fr;
    }
    .video-img{
        height: 280px;
    }
}
