body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #58cc02; /* Color verde de Duolingo */
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #333;
    text-align: center;
}

main {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.intro, .advantages {
    margin-bottom: 20px;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

li {
    margin-bottom: 10px;
}

.slideshow-container {
    max-width: 700px;
    position: relative;
    margin: auto;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden; /* Para que las imágenes no se salgan del borde */
}

.mySlides {
    display: none;
    text-align: center;
}

.mySlides img {
    width: 100%;
    height: auto;
    display: block; /* Elimina espacio extra debajo de la imagen */
    object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
    max-height: 400px; /* Limita la altura de las imágenes del carrusel */
}

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para el texto */
}

/* Botones Anterior y Siguiente */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.final-message {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.final-message .frame {
    border: 2px solid #ffc107; /* Color amarillo */
    padding: 15px 25px;
    display: inline-block;
    border-radius: 10px;
    background-color: #fffde7; /* Fondo amarillo muy claro */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.final-message p {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    font-size: 0.9em;
    margin-top: 30px;
}