body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f5f6f7;
}

/* HEADER */
.header {
    width: 100%;
    background: #0a0a0a;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.nav a {
    margin-left: 25px;
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    transition: .2s;
}

.nav a:hover {
    color: #ffb400;
}

.nav .active {
    color: #ffb400;
}

/* COURSES */
.courses {
    padding: 60px 20px;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 40px;
}

/* CARDS */
.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    width: 280px;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.card p {
    color: #555;
    margin-bottom: 15px;
}

.btn-enter {
    display: inline-block;
    padding: 10px 18px;
    background: #ffb400;
    color: #000;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background: #0a0a0a;
    color: #fff;
    margin-top: 40px;
}
.card-img {
    width: 100%;
    height: 160px;      /* Ajusta la altura como quieras */
    object-fit: cover;  /* Recorta la imagen sin deformarla */
    border-radius: 10px;
    display: block;
    margin-bottom: 15px;
}
.card-img {
    width: 100%;
    height: 220px;       /* antes 160px, ahora más alta */
    object-fit: cover;   /* mantiene proporción sin deformar */
    border-radius: 10px;
    display: block;
    margin-bottom: 15px;
}