*{
    margin: 0;
    padding: 0;
}
*,*::before,*::after{
    box-sizing: border-box;

}
.encabezado-principal{
    background-color: #ffffff;
    padding: 15p 5%;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
boody{

    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #333333;
    line-height: 1.6;
}
#logo{
    color:aqua;
    font-size: 1.8rem;
}
#logo span{
    color: #4398db;
}
.subtitulo{
    color: #555555;
}
.banner-ofertas{
    background-color: #f39c12;
    color:#ffffff;
    text-align: center;
    padding: 10px 15px;
    border-bottom: 3px solid #d35400;
    font-weight: bolder;
    font-size: 0.9rem;
}
/*HERO CON SU DEGRADADO*/
.hero{
    background: linear-gradient(135deg,#2c3e50,#4398db);
    color: #ffffff;
    padding: 60px;
    text-align: center;
}
.hero .subtitulo{
    color: #ecf0f1;
}
.tarjeta-cursos{
    background-color: #ffffff;
    width: 100%;
    min-width: 350px;
    padding: 25px;
    margin: 15px;
    border: 1px solid #e0e0e0;
}
.tarjeta-cursos h3{
    font-size: 1.4rem;
    color:#333333;
    margin-bottom: 10px;
}
.presio{
    display: inline-block;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;

}

.banner-ofertas{
    position: sticky;
    top: 0 ;
    z-index: 100;
}

.menu-nav ul{
    list-style: none;
    display: flex;
    gap: 20px;

}
.menu-navna{
    text-decoration: none;
    color:#2c3e50;
    font-weight: 600;
    display: inline-block;
    padding: 5px 10px;
}
.seccion-cursos{
    padding: 40px 5%;

}
.grid-cursos{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top: 20px;
}

@media(max-width:768px){
    .encabezado-principal{
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero h2{
        font-size: 1.5rem;
    }
}

.grid-cursos{
    grid-template-columns: 1fr;
}
/*hero color de gradado*/
.hero{
    background-color: linear-gradient(135deg,#2c3e50,#4398db);
    color:white;
    text-align: center;
    padding: 60px 20px;
}
.hero h2{
    color: #ffffff;

}
.hero .subtitulo{
    color: #ecf0f1;
}
.tarjeta-cursos{
    border-radius: 8px;
    box-shadow: 0.4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.tarjeta-cursos:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px rgba(0,0,0,0.15);
}
.tarjeta-cursos.destacado{
    border: 2px solid #4398db;
    position: relative;
}
/*etiquete de destacado*/
.tarjeta-cursos.tarjeta-cursos.destacado::before{
    content: "MAS POPULAR";
    position: absolute;
    top: -12px;
    right: -12px; 
    background-color: #e74c3c;
    color: #ffffff;   
}
.btn-principal{
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
    cursor:pointer;
    transition: background-color 0.2s ease;
}
.btn-principal:hover{
    background-color: #27ae60;
}
.btn-principal:focus{
    outline: 2px solid #f39c12;
}
/*ESTA ES LA SECCION DE CURSOS*/
.seccion-cursos{
    padding: 40px 5%;
}
.seccion-cursos h2{
    color: #2c3e50;
    margin-bottom: 2;
}
/*DISENO RESPONSIVE*/
@media(max-width:768px){
    .encabezado-principal{
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero h2{
        font-size: 1.5 rem;
    }
    .grid-cursos{
        grid-template-columns: 1frem;
    }
}
.targejta-cursos:hover{
    transform: translatey(-8px);
    box-shadow: 0 12px rgba(0,0,0,0.15);
}
.tarjeta-cursos.destacado{
    border: 2px solid #3498db;
    position: relative;
}
.targejta-cursos::before{
    content: "mas pupular";
    position: absolute;
    top: -13;
    right: 12px;
    background-color: #d35400;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
}
.pie-pagina{
    background-color: #1a252f;
    color: #ffffff;
    text-align: center;
    padding: 20px ;
    margin-top:  40px;
}