*{
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(85, 42, 81);
    line-height: 1.6;
}

#logo{
    color: black;
    font-size: 1.8rem;
}

#logo span{
    color: cadetblue;

}

.subtitulo{
    color: black;
}

.banner-oferta{
    background-color: #ffa20c;
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    border-bottom: 3px solid #d35400;
    font-weight: bolder;
    font-size: 1rem;
    position: sticky;
    top: 0px;
    z-index: 100;
    font-weight: bold;
}

.tarjeta-curso{
    background-color: white;
    width:  100%;
    min-width: 350px;
    padding: 25px;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
}

.tarjeta-curso{
    font-size: 1.4rem;
    color: #0d0c0b;  
    margin-bottom: 10px;  
}

.precio{
    display: inline-block;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color:rgb(74, 197, 74);
}

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

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

.menu-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.menu-nav a{
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    display: inline-block;
    padding: 5px 10px;
}

.seccion-curso{
    padding: 40px;
}

.seccion-curso h2{
    color: #2c3e50;
    margin-bottom: 20px;
}

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

/*Diseño responsive*/
@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 degradado */
.hero{
    background: linear-gradient(132deg, #2c3e50, #3490db);
    color: #ffffff;
    text-align: center;
    padding: 60px;
}

.hero h2{
    color: #ffffff;
}

.hero .subtitulo{
    color: #ecf0f1;
}

.btn-principal{
    background-color: #36c572;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-principal:focus{
    outline: 3px solid #f1c40f;
}

.btn-principal:hover{
    background-color: #1b8848;
}

.tarjeta-curso{
    border-radius: 5%;
    box-shadow: 0.4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3 ease, box-shadow 0.3s ease;
}

.tarjeta-curso:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px rgba(0, 0, 0, 0.15);
}

.tarjeta-curso.destacado{
    border: 2px solid #3490db;
    position: relative;
}

.tarjeta-curso.destacado::before{
    content: "MÁS POPULAR";
    position: absolute;
    top: -20px;
    right: -14px;
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 3px;
    padding: 3px 8px;
}

/*Pie de la pagina*/
.pie-pagina{
    background-color: #1a252f;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    padding: 20px;
    margin-top: 40px;
}
.regresar {
    text-align: center;
    margin: 30px;
}

.regresar a {
    display: inline-block;
    background-color: #008577;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: 0.3s;
}

.regresar a:hover {
    background-color: #005f56;
    transform: scale(1.05);
}













































































































































































































































































