*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
}

#logo {
    color: #1a252f;
    font-size: 2rem;
}

#logo span {
    color: #3498db;
}

.subtitulo {
    color: #555555;
}

.banner-oferta {
    background-color: #f39c12;
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    border-bottom: 3px solid #d35400;
    font-weight: bold;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.encabezado-principal {
    background-color: #ffffff;
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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;
    transition: color 0.3s ease;
}

.menu-nav a:hover {
    color: #3498db;
}

.hero {
    background: linear-gradient(135deg, #2c3e50, #3498db); 
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.hero h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

.hero .subtitulo { 
    color: #ecf0f1;
    max-width: 600px;
    margin: 0 auto;
}

.seccion-cursos {
    padding: 40px 5%;
}

.seccion-cursos h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

.grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tarjeta-cursos {
    background-color: #ffffff;
    width: 100%;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Requerido para orientar el distintivo 'destacado' */
}

/* Animación al pasar el mouse sobre la tarjeta */
.tarjeta-cursos:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tarjeta-cursos h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tarjeta-cursos.destacado::before {
    content: "¡MÁS POPULAR!";
    position: absolute;
    top: 13px;
    right: 15px;
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
}

.precio {
    display: inline-block;
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #27ae60;
}

.btn-principal {
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 3px;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-principal:hover {
    background-color: #219150;
}

.tarjeta-cursos p {
    color: #555555;
}

.pie-pagina {
    background-color: #1a252f;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Media queries */
@media (max-width: 760px) {
    .encabezado-principal {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .grid-cursos {
        grid-template-columns: 1fr;
    }
}