/* --- Estilos Globales --- */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin: 0;
}

/* --- ESTILOS PARA LA NUEVA PORTADA (HERO SECTION) --- */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: url('img/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.logo-hero {
    max-width: 200px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); 
}

.hero-content h1 {
    font-size: 4em;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    margin: 0 10px;
}

.btn-hero:hover {
    background-color: white;
    color: #333;
    transform: translateY(-3px);
}

.site-footer-hero {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-top: auto;
}

.site-footer-hero a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-footer-hero a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- ESTILOS PARA LAS PÁGINAS DE LA AUDIOGUÍA (SE CONSERVAN) --- */
.audioguide-page {
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px 0;
}

.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
}

.audioguide-page h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #0d6efd;
}

.back-button {
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1em;
    color: #0d6efd;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: white;
}

.audio-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

/* --- ESTA SECCIÓN HA SIDO CORREGIDA --- */
.audio-item {
    display: flex;
    align-items: center; /* Mantiene la alineación vertical centrada */
    padding: 20px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.audio-item:last-child {
    border-bottom: none;
}

.audio-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-right: 20px; /* Espacio entre el título y el reproductor */
}

audio {
    width: 280px;
    height: 40px;
    margin-left: auto; /* ¡Esta es la regla clave que empuja el reproductor a la derecha! */
}
/* --- FIN DE LA CORRECCIÓN --- */

.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.site-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: bold;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* --- Media Queries para móviles --- */
@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.5em; }
    .hero-text { font-size: 1.1em; }
    .language-selector { display: flex; flex-direction: column; gap: 15px; }

    .audioguide-page { padding: 0; }

    .container {
        padding: 20px;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .audioguide-page h1 { font-size: 2em; }
    
    .audio-item {
        flex-direction: column; /* Apila el título y el reproductor */
        align-items: flex-start; /* Alinea todo a la izquierda */
    }

    .audio-title {
        margin-bottom: 10px; /* Añade espacio debajo del título en móvil */
    }

    audio {
        width: 100%;
        margin-left: 0; /* Resetea el margen en móvil */
    }
}