*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#222;
}

/* ================= HERO ================= */

.hero{
    position:relative;
    min-height:55vh;   /* antes 80vh */
    padding:120px 20px 100px 20px;
    background:linear-gradient(-45deg,
        #ff4d6d,
        #ff9e00,
        #ffd60a,
        #2dc653,
        #00b4d8,
        #4361ee,
        #8338ec
    );
    background-size:400% 400%;
    animation:gradientMove 20s ease infinite;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
}


@keyframes gradientMove{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.35);
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
}

.tag{
    letter-spacing:4px;
    font-size:13px;
}

.hero h1{
    font-size:60px;
    font-weight:800;
    margin:20px 0;
}

.hero p{
    font-size:22px;
}

.countdown{
    margin-top:25px;
    font-size:18px;
    background:rgba(255,255,255,0.2);
    backdrop-filter:blur(10px);
    padding:14px 30px;
    border-radius:40px;
    display:inline-block;
    font-weight:600;
}

/* ================= TARJETAS ================= */

.convocatorias{
    max-width:1100px;
    margin:100px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:40px;
    padding:0 20px;
}

.card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
    transition:0.4s ease;
    display:flex;
    flex-direction:column;   /* 👈 importante */
}


.card.show{
    opacity:1;
    transform:translateY(0);
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 60px rgba(0,0,0,0.12);
}

.card img{
    width:100%;
    height:auto;          
    display:block;
    object-fit:contain;   
    background:#ffffff;
}

.card:hover img{
    transform:scale(1.05);
}
.card-content{
    padding:25px;
}

.categoria{
    font-size:12px;
    letter-spacing:2px;
    color:#888;
}

.card h2{
    font-size:22px;
    margin:10px 0;
}

.fecha{
    font-size:14px;
    font-weight:600;
    color:#4361ee;
    margin-bottom:20px;
}
.info-inscripcion{
    font-size:14px;
    line-height:1.6;
    color:#555;
    margin-bottom:20px;
}

.info-inscripcion strong{
    color:#222;
    font-weight:600;
}

.info-item{
    margin-bottom:6px;
}

.btn-descargar{
    display:inline-block;
    padding:12px 22px;
    background:linear-gradient(135deg,#4361ee,#3a0ca3);
    color:white;
    text-decoration:none;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    transition:0.3s;
}

.btn-descargar:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}
footer{
    background:#fcf9f9;
    color:rgb(8, 0, 0);
    text-align:center;
    padding:25px;
}

/* Responsive */
@media(max-width:768px){
    .hero h1{font-size:38px;}
}
.hero{
    position:relative;
    overflow:hidden;
}

/* ================= ONDA ANIMADA ================= */
.wave{
    position:absolute;
    bottom:-1px;
    left:0;
    width:100%;
    line-height:0;
    overflow:hidden;
}
.wave svg{
    width:200%;           
    height:75px;
    display:block;
    animation:waveMove 12s linear infinite;
}
.wave-path{
    fill:#f4f7fb;        
}
@keyframes waveMove{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}


