body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.9;
}

html,
body {
    height: 100vh;
}

header {
    position: relative;
    background-color: #f0f0f0;
    padding: 0;
    width: 100%;
    line-height: .5;
}

.full-width-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 40px 0;
    background-color: #f0f0f0;
}

.full-width-nav li {
    margin: 0 25px;
}

.full-width-nav li:hover {
    background-color: #050505;
    transition: background-color 0.6s ease-in-out;
}

.full-width-nav a {
    text-decoration: none;
    color: #070707;
    font-weight: bold;
    font-size: 1.2em;
}

.full-width-nav a:hover {
    color: #e2e1e1;
    background-color: #050505;
    transition: background-color 0.4s ease-in-out;
}

/*-------------------Estilos contenido------------------------------------*/
main {
    text-align: center;
    /* Centra el contenido del main */
    padding: 20px;
}

main h1 {
    font-size: 2.5em;
    /* Tamaño de fuente más grande para el título principal */
    color: #333;
    /* Un color oscuro para que resalte */
    margin-bottom: 10px;
    /* Espacio debajo del h1 */
}

main h2 {
    font-size: 1.5em;
    /* Tamaño de fuente para el subtítulo */
    color: #555;
    margin-bottom: 20px;
    /* Espacio debajo del h2 */
}


/* Nuevos estilos para el audio y el PDF */

.audio-container,
.pdf-container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.audio-container h3,
.pdf-container h3 {
    margin: 0 0 15px 0;
    color: #333;
}

audio {
    width: 100%;
    max-width: 500px;
}

iframe {
    border: none;
}

/* Estilos para el nuevo botón de descarga */
.download-btn {
    display: none; /* Ocultar por defecto en escritorio */
    background-color: #272728;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #5f6060;
}


/* ----------------- ESTILOS PARA FOOTER Y RESPONSIVE ----------------- */

footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 20px;
}

@media (max-width: 600px) {
    /* Estilos para el menú en móviles */
    .full-width-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #f0f0f0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        padding: 0 0;
    }

    .full-width-nav ul.show {
        max-height: 500px;
    }

    .full-width-nav ul.initial-hide {
        max-height: 0;
    }

    .full-width-nav li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .full-width-nav ul.show {
        display: flex;
    }
    
    /* Cambios para el contenido principal en móviles */
    .pdf-container iframe {
        display: none; /* Ocultar el iframe en dispositivos móviles */
    }

    .download-btn {
        display: inline-block; /* Mostrar el botón de descarga en móviles */
    }

    .pdf-container {
        height: auto; /* Ajustar la altura del contenedor */
    }
}