body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
    background-color: #f7e0c1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    color: #b8860b;
    padding-top: 60px; /* Espacio para el menú fijo */
}

/* Estilos para el menú de navegación */
nav {
    background-color: #e0c097; /* Color de paleta */
    width: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 5px solid #b8860b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #4b2e17;
    text-align: center;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible; /* Asegurar que no haya desbordamiento vertical */
}

nav ul li {
    margin: 0;
    padding: 0;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #4b2e17;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #b8860b;
    color: white;
}

/* Contenedor de artículos */
.articles-container {
    width: 80%;
    max-width: 1200px;
    margin: 100px auto 40px;
   
}

h2 {
    font-size: 2rem;
    text-align: center;
    color: #4b2e17;
    margin-bottom: 20px;
}

.article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* Centrar texto horizontalmente */
    background-color: #fff4e6;
    border-left: 5px solid #b8860b;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 150px; /* Ajustar según la altura deseada */
}



article h3 {
    color: #4b2e17;
    font-size: 1.6rem;
    margin-bottom: 10px;
 
}

article p {
    color: #6d4c41;
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #e0c097;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-family: 'Georgia', serif;
    border-top: 5px solid #b8860b;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    margin-top: auto;
}

footer h4 {
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

footer:hover {
    background-color: #b8860b;
    transition: background-color 0.3s ease;
}

/* Estilo del menú desplegable */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #e0c097;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    text-align: left;
    color: #4b2e17;
}

.dropdown-content a:hover {
    background-color: #b8860b;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Media Queries para diseño responsive */

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    nav ul {
        flex-direction: row; /* Mantener los elementos en fila */
        gap: 5px; /* Reducir el espacio entre elementos */
        flex-wrap: nowrap; /* Evitar que los elementos se envuelvan */
        overflow-x: auto; /* Permitir desplazamiento horizontal sin crear rectángulo */
    }

    nav h1 {
        font-size: 1.2rem;
    }

    nav ul li a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .articles-container {
        width: 90%;
    }

    h2 {
        font-size: 1.6rem;
    }

    article {
        padding: 15px;
    }

    article h3 {
        font-size: 1.4rem;
    }

    article p {
        font-size: 0.9rem;
    }

    footer h4 {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

/* Pantallas medianas (601px a 900px) */
@media (min-width: 601px) and (max-width: 900px) {
    .articles-container {
        width: 85%;
    }

    h2 {
        font-size: 1.8rem;
    }

    article h3 {
        font-size: 1.5rem;
    }

    article p {
        font-size: 0.95rem;
    }

    footer h4 {
        font-size: 20px;
    }
}

/* Pantallas grandes (a partir de 901px) */
@media (min-width: 901px) {
    .articles-container {
        width: 80%;
    }

    h2 {
        font-size: 2rem;
    }

    article h3 {
        font-size: 1.6rem;
    }

    article p {
        font-size: 1rem;
    }

    footer h4 {
        font-size: 24px;
    }
}
