*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter', sans-serif;
    background:#fff9f2;
    color:#111;
}

/* =========================
NAVBAR
========================= */

header{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:100;
    padding:20px 50px;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color:white;
    font-size:42px;
    font-weight:800;
}

.nav-buttons{
    display:flex;
    gap:15px;
    align-items:center;
}

.nav-buttons a{
    text-decoration:none;
    color:white;
    font-weight:500;
}

.login-btn{
    background:white;
    color:black !important;
    padding:14px 32px;
    border-radius:12px;
    font-weight:600;
}

/* =========================
HERO
========================= */

.hero{
    height:100vh;
    background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url('img/fondo_clúster_aguacate.png');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    padding:0 7%;
}

.hero-content{
    max-width:850px;
}

.hero h1{
    color:white;
    font-size:58px;
    line-height:1;
    font-weight:800;
    margin-bottom:35px;
}

.hero p{
    color:white;
    font-size:24px;
    font-weight:600;
    margin-bottom:35px;
}

.hero button{
    background:#236229;
    color:white;
    border:none;
    padding:18px 45px;
    border-radius:10px;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.hero button:hover{
    background:#34803b;
}

/* =========================
VIDEOS SECTION
========================= */

.videos-section{
    padding:90px 7%;
}

.top-bar{
    display:flex;
    justify-content:flex-end;
    margin-bottom:50px;
}

.search-box{
    width:380px;
    position:relative;
}

.search-box input{
    width:100%;
    padding:18px 24px;
    border-radius:40px;
    border:2px solid #236229;
    outline:none;
    font-size:16px;
    background:white;
}

/* =========================
VIDEOS GRID
========================= */

.video-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:40px 60px;
}

.video-card{
    background:white;
    border-radius:22px;
    overflow:hidden;
    display:flex;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
    cursor:pointer;
}

.video-card:hover{
    transform:translateY(-5px);
}

.video-image{
    width:230px;
    min-width:230px;
    height:190px;
    overflow:hidden;
}

.video-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.video-content{
    padding:22px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.video-content h3{
    font-size:18px;
    margin-bottom:14px;
    font-weight:700;
}

.video-content p{
    color:#333;
    line-height:1.6;
    font-size:14px;
}

/* =========================
PAGINATION
========================= */

.pagination{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:60px;
}

.page-btn{
    width:42px;
    height:42px;
    border-radius:50%;
    border:none;
    background:#dcdcdc;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.page-btn.active{
    background:#236229;
    color:white;
}


/* =========================
VIDEO MODAL
========================= */

.video-modal{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.92);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:99999;

    opacity:0;
    visibility:hidden;

    transition:.3s ease;
}

.video-modal.active{
    opacity:1;
    visibility:visible;
}

.modal-content{
    width:85%;
    max-width:1100px;

    position:relative;

    transform:scale(.95);
    transition:.3s ease;
}

.video-modal.active .modal-content{
    transform:scale(1);
}

.modal-content iframe{
    width:100%;
    height:620px;

    border:none;
    border-radius:16px;

    background:black;

    display:block;
}

/* =========================
BOTON CERRAR
========================= */

.close-modal{

    position:fixed;

    top:30px;
    right:30px;

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    background:white;

    color:black;

    font-size:32px;
    font-weight:600;

    cursor:pointer;

    z-index:100000;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.3s;
}

.close-modal:hover{
    transform:scale(1.1);
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:768px){

    .modal-content{
        width:95%;
    }

    .modal-content iframe{
        height:260px;
    }

    .close-modal{
        top:20px;
        right:20px;
        width:42px;
        height:42px;
        font-size:26px;
    }

}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1200px){

    .hero h1{
        font-size:70px;
    }

    .video-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    header{
        padding:20px;
    }

    .hero{
        padding:0 20px;
    }

    .hero h1{
        font-size:52px;
    }

    .hero p{
        font-size:20px;
    }

    .video-card{
        flex-direction:column;
    }

    .video-image{
        width:100%;
        height:230px;
    }

    .top-bar{
        justify-content:center;
    }

    .search-box{
        width:100%;
    }
}