body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    text-align: center;
}

header {
    background: #1A9190;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    display:flex;
    justify-content: space-around;
    width: 30%;
    gap: 10px;
}

.btn-nav {
    background: white;
    color: #007bff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

.btn-nav:hover {
    background: rgb(196, 196, 196);
    color: #007bff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

#logout-btn:hover {
    background-color: rgb(248, 142, 142);
}


.presentacion, .cursos-destacados {
    padding: 50px;
    background: white;
    margin: 20px auto;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.curso {
    position: relative;
    overflow: hidden; /* ← muy importante */
    font-size: 1.5rem;
    height: 20vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 2vh auto;
    width: 25%;
    background-image: radial-gradient(rgb(170, 245, 170), #1A9190);
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.cursos-destacados h2 {
    font-size: 2rem;
    color:white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.curso h3 {
    position: relative;
    z-index: 1; /* ← para que se vea encima de la imagen */
}


.curso:hover {
    transform: scale(1.03);
}


#curso1 {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#curso2 {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.curso-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    z-index: 0;
}

.cursos-destacados {
    background-image: url(../img/curso1.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}