

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #eff7ff;
}


header {
    background-color:whitw;
    padding: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.2s ease-out;
    flex-direction: row;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}
header nav ul li a:hover {
    color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

header nav ul li a i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}


header.scrolling {
    transform: translateY(-100%);
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 1rem;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex; /* Para alinear icono y texto */
    align-items: center; /* Centrar verticalmente */
}

header nav ul li a i {
    margin-right: 0.5rem; /* Espacio entre el icono y el texto */
    font-size: 1.2rem; /* Tamaño del icono */
}

header nav ul li a:hover {
    color: #ffcc00;
}

.header-left {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 2rem;
}




.hero-section {
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    animation: movimientoHorizontal 15s infinite alternate;
    background-image: url('../imagenes/fondo2.jpg'), url('../imagenes/fondo1.jpg'), url('../imagenes/fondo3.jpg');
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 0% 50%, 33.33% 50%, 66.66% 50%;
    padding-top: 4rem;
    box-sizing: border-box;
}

@keyframes movimientoHorizontal {
    from {
        background-position: 0% 50%, 33.33% 50%, 66.66% 50%;
    }

    to {
        background-position: 100% 50%, 133.33% 50%, 166.66% 50%;
    }
}


.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 60%;
}

.cta-button {
    background-color: #ffcc00;
    color: #65a2df;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e5b800;
}

.course-section {
    padding: 3rem 1rem;
    text-align: center;
}

.course-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #afbfcf;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #eef7ff;
    text-align: center;
}

.course-card p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    text-align: center;
}

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

footer {
    background-color: #000264;
    color: white;
    padding: 1rem;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.user-image {
    max-height: 50px;
    border-radius: 50%;
    margin-left: 1rem;
}


