* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f4f4f6 100%); 
    color: #1a1a1a; 
    min-height: 100vh;
}

header { 
    padding: 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    max-width: 1400px; 
    margin: 0 auto; 
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.header-info { max-width: 650px; }
.header-info h1 { font-size: 1.5rem; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1rem; }
.header-info p { font-size: 0.95rem; line-height: 1.6; color: #555; margin-bottom: 1.5rem; }

.header-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.cv-btn { display: inline-block; padding: 8px 16px; border: 1px solid #1a1a1a; background: transparent; color: #1a1a1a; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: all 0.3s; border-radius: 4px; cursor: pointer; font-family: inherit; }
.cv-btn:hover { background: #1a1a1a; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.filters-container { display: flex; justify-content: center; gap: 1rem; padding: 2rem; flex-wrap: wrap; }
.filter-btn { background: transparent; border: none; color: #888; cursor: pointer; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active { color: #1a1a1a; border-bottom: 1px solid #1a1a1a; }

.art-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 4rem 3rem; 
    padding: 2rem; 
    max-width: 1400px; 
    margin: 0 auto 5rem; 
    align-items: center; 
}

.art-item { 
    text-align: center; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.art-item img { 
    max-width: 100%; 
    height: auto; 
    max-height: 400px; 
    object-fit: contain; 
    pointer-events: none; 
    user-select: none; 
    -webkit-user-drag: none; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.art-item:hover img { 
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.item-title { 
    margin-top: 0.5rem; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    color: #555; 
    transition: color 0.3s ease; 
}

.art-item:hover .item-title { color: #1a1a1a; }

.fade-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(250,250,252,0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.fade-overlay.active { opacity: 1; visibility: visible; }
.lightbox-content { display: flex; flex-direction: row; background: #fff; width: 95%; max-width: 1300px; max-height: 90vh; box-shadow: 0 20px 60px rgba(0,0,0,0.15); border-radius: 16px; overflow: hidden; transform: scale(0.98); transition: transform 0.4s ease; position: relative; }
.fade-overlay.active .lightbox-content { transform: scale(1); }

.lightbox-image-container { flex: 2; display: flex; justify-content: center; align-items: center; padding: 2rem; background: #fafafa; border-right: 1px solid #eee; }
#lb-img { max-height: 80vh; width: auto; max-width: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.lightbox-info { flex: 1; padding: 3rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.2rem; overscroll-behavior: contain; }
.lightbox-info h2 { font-size: 1.5rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.lightbox-info p { font-size: 0.95rem; line-height: 1.6; color: #444; }

.timeline-modal-content { max-width: 900px; flex-direction: column; }
.timeline-scroll-area { padding: 4rem 3rem; overflow-y: auto; width: 100%; height: 100%; overscroll-behavior: contain; }
.section-title { text-align: center; font-size: 1.2rem; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 3rem; color: #1a1a1a; }
.timeline-grid { display: flex; flex-direction: column; gap: 2.5rem; border-left: 2px solid #eee; padding-left: 2rem; margin-left: 1rem; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -2.4rem; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #1a1a1a; border: 3px solid #fff; box-shadow: 0 0 0 2px #eee; transition: background 0.3s; }
.timeline-item:hover::before { background: #555; }
.timeline-year { font-size: 0.85rem; font-weight: 600; color: #888; letter-spacing: 2px; margin-bottom: 0.5rem; }
.timeline-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.8rem; color: #1a1a1a; }
.timeline-desc { font-size: 0.95rem; line-height: 1.6; color: #555; margin-bottom: 1.2rem; }
.timeline-link { display: inline-flex; align-items: center; padding: 6px 14px; background: transparent; border: 1px solid #1a1a1a; color: #1a1a1a; text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; transition: all 0.3s; font-family: inherit; cursor: pointer; }
.timeline-link:hover { background: #1a1a1a; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.timeline-link-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1 1 250px; 
    max-width: 100%;
}
.timeline-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}
.timeline-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.timeline-item.highlight-event { padding: 1.5rem; background: #faf8f3; border-radius: 8px; border: 1px solid rgba(212, 175, 55, 0.3); margin-top: 1rem; margin-bottom: 1rem; }
.timeline-item.highlight-event::before { background: #d4af37; border-color: #fff; box-shadow: 0 0 0 2px #f4ecd8; }
.timeline-item.highlight-event .timeline-title { color: #a67c00; font-weight: 600; }

#video-modal { z-index: 1050; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.video-modal-content { width: 95%; max-width: 1000px; background: transparent; box-shadow: none; position: relative; border-radius: 0; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; width: 100%; background: #000; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 2rem;
    margin-top: 2rem;
    background-color: transparent;
    text-align: center;
}
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}
.footer-content p {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-link {
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s;
}
.footer-link:hover { color: #555; }

.contact-content {
    max-width: 600px;
    flex-direction: column;
    padding: 4rem 3rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}
.submit-btn {
    align-self: flex-start;
    padding: 12px 24px;
    background-color: #1a1a1a;
    color: #fff;
}
.submit-btn:hover { background-color: #333; }

.press-overlay { z-index: 1100; }
.press-content {
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    max-width: 900px;
    background: transparent;
    box-shadow: none;
}
#press-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}
.press-source-btn {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.press-source-btn:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

#closeLightbox, #closeTimeline, #closeContact, #closePress { 
    position: absolute; top: 20px; right: 30px; font-size: 2.5rem; font-weight: 300; cursor: pointer; color: #1a1a1a; z-index: 10; line-height: 1; transition: transform 0.3s ease; 
}
#closeLightbox:hover, #closeTimeline:hover, #closeContact:hover, #closePress:hover { transform: scale(1.1); }
#closeVideo { position: absolute; top: -40px; right: 0; font-size: 2.5rem; font-weight: 300; cursor: pointer; color: #fff; z-index: 10; line-height: 1; transition: transform 0.3s ease; }
#closeVideo:hover { transform: scale(1.1); }

@media (max-width: 900px) { 
    .lightbox-content { flex-direction: column; overflow-y: auto; height: 100dvh; max-height: 100dvh; width: 100%; border-radius: 0; justify-content: flex-start; } 
    header { flex-direction: column; position: relative; backdrop-filter: none; background: transparent; border: none; }
    .lightbox-image-container { flex: none; padding: 3rem 1rem 1rem; border-right: none; border-bottom: 1px solid #eee; }
    #lb-img { max-height: 50vh; }
    .lightbox-info { flex: none; padding: 2rem 1.5rem 4rem; overflow-y: visible; }
    .timeline-scroll-area { padding: 4rem 1.5rem; }
    #closeLightbox, #closeTimeline, #closeContact, #closePress { top: 15px; right: 20px; background: rgba(255,255,255,0.85); border-radius: 50%; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); color: #1a1a1a;}
    #closeVideo { top: -45px; right: 10px; }
    .contact-content { padding: 4rem 1.5rem; justify-content: flex-start; }
}

/* AQUÍ SE ELIMINÓ #langToggle PARA NO RESTRINGIR SU HOVER. SOLO OPACITY Y TRANSFORM PARA ESTOS: */
.art-grid, .header-info, .filters-container { transition: opacity 0.3s ease-out, transform 0.3s ease-out; opacity: 1; transform: translateY(0); }
.fade-out-state { opacity: 0 !important; transform: translateY(15px) !important; pointer-events: none; }

/* Estilos Arquitectura Oscura de la Cuenta Regresiva */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none; 
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.8s ease;
    color: #ffffff;
    background-color: #0b0b0b;
    overflow: hidden;
}
.countdown-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 11, 11, 0.40), rgba(11, 11, 11, 0.75)), url('../images/galeria-en-construccion.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
}
.countdown-content-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}
.countdown-content-container h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.countdown-content-container p.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 0.1em;
    color: #e0e0e0;
    margin-bottom: 50px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}
.countdown-timer {
    display: flex;
    gap: clamp(15px, 4vw, 40px);
    font-weight: 300;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}
.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.time-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}
.time-label {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #cccccc;
    margin-top: 5px;
}
.countdown-footer-text {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    letter-spacing: 0.05em;
    color: #b3b3b3;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
#langToggle { min-width: 105px; text-align: center; }