/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* Header y Hero */
.hero {
    height: 100vh;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    /* La imagen de fondo se establece mediante JavaScript */
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.5);
    /* Preparamos para transiciones suaves entre imágenes */
    transition: background-image 1.5s ease-in-out;
}


.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: 8px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav a {
    font-size: 1rem;
    letter-spacing: 2px;
    transition: color 0.3s;
    color: #e0e0e0;
}

.main-nav a:hover {
    color: #f8c9c4;
}

/* Sección de ubicaciones */
.locations {
    background-color: #f8f3f1;
    padding: 15px 0;
    text-align: center;
}

.locations-title {
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: #d6a9a4;
    margin: 0;
}

/* Sección de Media */
.media-section {
    background-color: #fff;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Sección About */
.about-section {
    background-color: #f8f3f1;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Galería de fotos */
.gallery-section {
    background-color: #fff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Sección About */
.about-section {
    background-color: #fff;
    padding: 40px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.8;
}

/* Sección de noticias */
.news-section {
    background-color: #f8f3f1;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.festival-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

.festival-list li {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.news-excerpt {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #d6a9a4;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #b78a86;
}

/* Sección de contacto */
.contact-section {
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-submit {
    background-color: #d6a9a4;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #b78a86;
}

#form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-left: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #d6a9a4;
}

.social-media {
    margin-top: 30px;
}

.social-media a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.8rem;
    color: #d6a9a4;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #b78a86;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .container {
    padding: 15px 0;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    font-size: 1rem;
    margin: 0;
}

/* Selector de idioma */
.language-selector-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 5px;
    backdrop-filter: blur(5px);
}

#language-selector {
    padding: 8px 12px;
    border: 1px solid #d6a9a4;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#language-selector:hover {
    background-color: #fff;
    border-color: #b78a86;
}

#language-selector:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(214, 169, 164, 0.5);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content, 
    .contact-content {
        flex-direction: column;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .language-selector-container {
        top: 10px;
        right: 10px;
    }
    
    #language-selector {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .locations-title {
        font-size: 1.2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .language-selector-container {
        top: 5px;
        right: 5px;
    }
    
    #language-selector {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}