/* --- ESTILOS GENERALES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; line-height: 1.6; color: #561d25; background-color: #d4e79e; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER --- */
.main-header { background-color: #264653; width: 100%; position: sticky; top: 0; z-index: 1000; }
.header-top { padding: 15px 0; text-align: center; border-bottom: 1px solid rgba(212, 231, 158, 0.2); }
.site-title a { color: #d4e79e; text-decoration: none; font-family: 'Roboto', sans-serif; font-size: 1.8rem; font-weight: 700; }

/* --- NAVEGACIÓN --- */
.main-nav ul { display: flex; list-style: none; justify-content: center; gap: 15px; padding: 15px 0; align-items: center; }
.main-nav a { color: #d4e79e; text-decoration: none; font-weight: 700; padding: 8px 15px; border-radius: 4px; transition: 0.3s; }
.main-nav a.active, .main-nav a:hover { background-color: #561d25; }

/* --- ARREGLO DEL MENÚ CV'S (DROPDOWN) --- */
.dropdown { 
    position: relative; /* Fundamental para que el submenú se alinee con este elemento */
    display: inline-block; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #264653;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    z-index: 1001;
    border-radius: 4px;
    top: 100%; /* Aparece justo debajo */
    left: 50%; /* Lo movemos al centro */
    transform: translateX(-50%); /* Lo centramos respecto a la palabra CV's */
    overflow: hidden;
}

.dropdown-content a {
    color: #d4e79e !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    background-color: #264653;
    border-radius: 0; /* Quitamos el radio redondeado dentro del menú */
}

.dropdown-content a:hover { 
    background-color: #561d25 !important; 
}

/* Mostrar al pasar el ratón */
.dropdown:hover .dropdown-content { 
    display: block; 
}

/* --- SECCIONES --- */
section { padding: 60px 0; }
.section-light { background-color: #d4e79e; color: #561d25; }
.section-dark { background-color: #561d25; color: #d4e79e; }
.text-center { text-align: center; }
.exhibition-logo { max-width: 300px; margin: 0 auto 30px; display: block; }
.section-title-large { font-size: 2.5rem; margin-bottom: 25px; }
.section-title-small { font-size: 1.8rem; margin-bottom: 20px; }
.exhibition-details p { margin-bottom: 20px; text-align: justify; }

/* --- GRID OBRAS --- */
.thumbnail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 30px; }
.artwork-card { background: rgba(255, 255, 255, 0.1); padding: 15px; border-radius: 10px; text-align: center; transition: transform 0.3s; }
.artwork-card:hover { transform: translateY(-5px); }
.artwork-thumbnail { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; border: 2px solid #264653; }
.artwork-title { margin-top: 15px; font-weight: 700; color: #561d25; font-size: 0.9rem; }

/* --- RECUADRO DE RESERVA Y VÍDEO --- */
.highlight-box { background-color: #f1f7e0; border: 3px double #561d25; border-radius: 15px; padding: 2.5rem; margin: 2rem auto; max-width: 800px; color: #561d25; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-cta-container { margin-top: 25px; border-top: 1px dashed rgba(86,29,37,0.3); padding-top: 25px; }
.btn-video { display: inline-block; padding: 15px 35px; background-color: #561d25; color: #d4e79e !important; text-decoration: none; font-weight: 700; border-radius: 50px; transition: 0.3s; }
.btn-video:hover { background-color: #264653; transform: scale(1.05); }

/* --- UBICACIÓN --- */
.location-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.map-link { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #d4e79e; color: #264653; font-weight: 700; text-decoration: none; border-radius: 4px; }
.venue-photo { width: 100%; border-radius: 8px; }
.map-embed { position: relative; padding-bottom: 75%; height: 0; overflow: hidden; border-radius: 8px; }
.map-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

footer { background: #264653; color: #d4e79e; padding: 30px 0; text-align: center; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) { 
    .thumbnail-grid { grid-template-columns: 1fr; } 
    .location-content-grid { grid-template-columns: 1fr; }
    .main-nav ul { flex-direction: column; display: none; }
    .main-nav ul.active { display: flex; }
    .dropdown-content { position: static; transform: none; left: 0; width: 100%; }
}