/* =========================================
   VARIABLES & DESIGN SYSTEM
========================================= */
:root {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    --accent-gold: #c9a739;
    --accent-gold-hover: #b59226;
    --accent-cyan: #0284c7;
    
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-gold: rgba(201, 167, 57, 0.3);
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(217, 119, 6, 0.15);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    
    --nav-height: 90px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET & TYPOGRAPHY
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(234, 179, 8, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   UNIFIED BRAND & COLLABORATOR (NAVBAR)
========================================= */
.nav-left-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--border-gold), transparent);
}

.nav-fecyt-clean {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-fecyt-clean:hover {
    transform: scale(1.02);
}

.nav-fecyt-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-fecyt-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* =========================================
   NAVIGATION (GLASSMORPHISM)
========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-gold {
    color: var(--accent-gold);
}

.logo-black {
    color: #000000;
}

.logo-flip-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
}

.nav-fecyt-clean {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.nav-fecyt-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-fecyt-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 0.3rem;
    gap: 0.3rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    flex: 0 1 auto;
    margin: 0 0.75rem;
    flex-wrap: wrap;
}

.nav-links li {
    display: flex;
    flex: 1 1 auto;
}

.nav-btn {
    width: 100%;
    text-align: center;
    padding: 0.45rem 0.85rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

.nav-btn.active {
    color: var(--accent-gold);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(234, 179, 8, 0.25);
    font-weight: 700;
}

/* =========================================
   MAIN LAYOUT & TABS
========================================= */
.content-wrapper {
    padding-top: var(--nav-height);
    min-height: 100vh;
    position: relative; /* Added for absolute positioning of tabs */
}

.tab-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1;
}

.tab-content:not(.active):not(.map-tab) {
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.tab-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    top: 0;
    z-index: 2;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Map Tab Special Case */
.map-tab {
    height: calc(100vh - var(--nav-height));
    padding: 0 !important;
}

.iframe-container {
    width: 100%;
    height: 100%;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================
   SECTIONS & GRIDS
========================================= */
section:not(.map-tab) {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-header {
    margin-bottom: 3rem;
    width: 100%;
}

.header-accent {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
    margin-bottom: 1rem;
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 100%;
}

/* Grid Layouts */
.news-grid, .interviews-grid, .entidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.colab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* =========================================
   COLLABORATOR CARDS
========================================= */
.colab-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.colab-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-gold);
}

.colab-card:hover .colab-img-container {
    transform: scale(1.05);
    border-color: #d97706;
    box-shadow: 0 15px 30px rgba(234, 179, 8, 0.25);
}

.colab-img-container {
    width: 240px;
    height: 240px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 5px solid var(--accent-gold);
    padding: 6px;
    background: transparent;
    box-shadow: 0 10px 25px rgba(201, 167, 57, 0.2);
    transition: var(--transition);
}

.colab-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.colab-content {
    flex: 1;
}

.colab-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.colab-role {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.colab-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   ENTIDADES PARTICIPANTES CARDS
========================================= */
.entidad-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold) !important;
}

/* =========================================
   CARDS (UI COMPONENTS)
========================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-gold);
}

.card-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-cyan);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

/* Play button badge shown on video cards without a custom thumbnail */
.card-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(201, 167, 57, 0.85);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: transform 0.2s, background 0.2s;
}

.card:hover .card-play-badge {
    transform: translate(-50%, -50%) scale(1.12);
    background: rgba(201, 167, 57, 1);
}


.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: auto;
}

.read-more {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-gold-hover);
    gap: 0.8rem;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1350px) {
    .nav-container {
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }
    .glass-nav {
        height: auto;
        padding: 0.5rem 0;
    }
    .logo-flip-container, .nav-fecyt-clean {
        flex: none;
        width: 100%;
        justify-content: center;
    }
    .nav-links {
        width: 100%;
        max-width: 500px;
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 0.35rem;
        gap: 0.35rem;
    }
    .nav-links li {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 120px;
    }
    .nav-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }
    .nav-btn.active {
        background: #ffffff;
        color: var(--accent-gold) !important;
    }
    .nav-brand-divider {
        display: none;
    }
    .nav-fecyt-clean {
        gap: 0.5rem;
    }
    .nav-fecyt-text {
        font-size: 0.7rem;
    }
    .nav-fecyt-img {
        height: 36px;
    }
    .content-wrapper {
        padding-top: 185px;
    }
    .map-tab {
        height: calc(100vh - 185px);
    }
    section:not(.map-tab) {
        padding: 2rem 1rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .news-grid, .interviews-grid, .entidades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .colab-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .colab-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .card-content {
        padding: 1rem;
    }
}

/* =========================================
   ARTICLE MODAL
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-glass);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--accent-gold);
}

.modal-header-img {
    width: 100%;
    position: relative;
    background: var(--bg-dark); /* Background color in case of letterboxing */
    display: flex;
    justify-content: center;
}

.modal-header-img img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain; /* Ensures the whole image is visible without cropping */
}

.modal-tag {
    position: absolute;
    bottom: -15px;
    left: 2rem;
    background: var(--accent-cyan);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.modal-body {
    padding: 3rem 2rem 2rem 2rem;
}

.modal-date {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.modal-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.modal-text p {
    margin-bottom: 1.5rem;
}

/* Video player inside modal */
.modal-video-container {
    width: 100%;
    background: #0f172a;
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
}

.modal-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
}


/* ─── YouTube-style: video fixed top, text scrolls below ─── */
.modal-content.modal-video-mode {
    display: flex;
    flex-direction: column;
    overflow: hidden;           /* container itself does NOT scroll */
    height: 90vh;
    max-height: 90vh;
}

.modal-content.modal-video-mode .modal-video-container {
    flex-shrink: 0;             /* video never gets squeezed */
    position: relative;
    padding-top: 0;             /* override the 16:9 trick */
    height: clamp(200px, 45vh, 420px);
    background: #000;
}

.modal-content.modal-video-mode .modal-video-container video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.modal-content.modal-video-mode .modal-body {
    flex: 1;                    /* takes all remaining space */
    overflow-y: auto;           /* independent scroll */
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid var(--border-glass);
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .modal-header-img img {
        max-height: 250px;
    }
    .modal-body {
        padding: 2rem 1.2rem 1.5rem 1.2rem;
    }
    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .modal-close {
        top: 10px;
        right: 15px;
        background: rgba(0, 0, 0, 0.7);
    }
    /* Video mode on mobile: taller video, compact text */
    .modal-content.modal-video-mode {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .modal-content.modal-video-mode .modal-video-container {
        height: clamp(180px, 56vw, 280px);
    }
    .modal-content.modal-video-mode .modal-body {
        padding: 1rem 1.2rem 1.5rem 1.2rem;
    }
}


/* =========================================
   FOOTER (LOGOS INSTITUCIONALES)
========================================= */
.main-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem 2rem 2rem;
    background: transparent;
    margin-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-logo {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .footer-logo {
        max-height: 65px;
    }
}



/* =========================================
   MAP ACTIVE COMPACT NAVBAR
========================================= */
body.map-active {
    --nav-height: 55px;
}
body.map-active .logo-img {
    height: 38px;
}
body.map-active .logo {
    font-size: 1.2rem;
}
body.map-active .nav-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
}

/* Ensure smooth transitions */
.glass-nav, .content-wrapper, .map-tab, .tab-content {
    transition: height 0.4s ease, top 0.4s ease, padding-top 0.4s ease;
}
.logo-img, .logo {
    transition: height 0.4s ease, font-size 0.4s ease, transform 0.3s ease;
}
.nav-btn {
    transition: all 0.3s ease;
}
/* =========================================
   HIT COUNTER
========================================= */
.main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hit-counter-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.1);
}

.hit-counter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.hit-counter-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hit-counter-number {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
    letter-spacing: 2px;
}

.hit-counter-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .main-footer .footer-content {
        flex-direction: column;
        justify-content: center;
    }
    .hit-counter-container {
        align-items: center;
    }
}

/* =========================================
   FLIP LOGO HIT COUNTER
========================================= */
.logo-flip-container {
    perspective: 1000px;
    cursor: pointer;
    display: inline-block;
}

.logo-flipper {
    position: relative;
    width: 250px;
    height: 50px;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

.logo-flipper.flipped {
    transform: rotateX(180deg);
}

.logo-front, .logo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    border-radius: 25px;
}

.logo-front {
    /* Front uses original styling, background is transparent or whatever the logo has */
    z-index: 2;
}

.logo-back {
    transform: rotateX(180deg);
    background: #ffffff;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--accent-gold);
}

.visits-label {
    color: #333333;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
}

.visits-number {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: inherit;
}

/* =========================================
   PREMIUM PROYECTO & DOCUMENTAL STYLES
========================================= */
/* =========================================
   ACTO I: HERO EDITORIAL & BARRA CIENTÍFICA
========================================= */
.editorial-hero {
    position: relative;
    padding: 5rem 3rem 0 3rem;
    background: radial-gradient(circle at 75% 25%, rgba(217, 119, 6, 0.15) 0%, rgba(5, 5, 8, 0.95) 70%), var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 5rem;
    overflow: hidden;
}

.editorial-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 1.15rem;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 4px;
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.15);
}

.editorial-hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 1.5rem 0;
    max-width: 1100px;
}

.editorial-hero-lead {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 400;
    color: #e2e8f0;
    max-width: 900px;
    line-height: 1.5;
    margin-bottom: 3rem;
    border-left: 2px solid var(--accent-gold);
    padding-left: 1.5rem;
}

.editorial-hero-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 950px;
    margin-bottom: 4.5rem;
    text-align: justify;
}

.editorial-hero-body strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Barra de Especificaciones Científicas minimalista */
.scientific-specs-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    margin: 0 -3rem;
    padding: 0 3rem;
}

.spec-item {
    padding: 1.75rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: background 0.3s ease;
}

.spec-item:first-child {
    border-left: none;
    padding-left: 0;
}

.spec-item:hover {
    background: rgba(234, 179, 8, 0.04);
}

.spec-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.spec-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

/* =========================================
   ACTO II: VENTANA CINEMATOGRÁFICA (VUELO)
========================================= */
.editorial-section {
    max-width: 1300px;
    margin: 0 auto 7rem auto;
    padding: 0 2rem;
}

.editorial-section-header {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.editorial-idx {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.editorial-heading {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin: 0;
}

.editorial-subheading {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 750px;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

.editorial-stage-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.editorial-video-frame {
    background: #050508;
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(234, 179, 8, 0.08);
    position: relative;
}

.editorial-video-frame video {
    width: 100%;
    max-height: 520px;
    display: block;
    object-fit: cover;
}

.video-metadata-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    background: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.strip-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strip-badge {
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(234, 179, 8, 0.4);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1px;
}

.strip-title {
    color: #f8fafc;
    font-weight: 600;
}

.strip-right {
    color: #64748b;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.stage-analysis-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analysis-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.25rem;
}

.analysis-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.analysis-tag {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.analysis-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.analysis-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.analysis-points li {
    font-size: 0.9rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.point-bullet {
    color: var(--accent-gold);
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

/* =========================================
   ACTO III: EXPLORADOR INTERACTIVO DE MINAS
========================================= */
.site-explorer-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    align-items: stretch;
    min-height: 480px;
}

.site-selector-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-selector-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid transparent;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-selector-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(6px);
}

.site-selector-btn.active {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.3);
    border-left-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.site-selector-btn .site-idx {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
}

.site-selector-btn .site-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.site-selector-btn .site-pill {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.site-selector-btn.active .site-pill {
    color: #f8fafc;
}

.site-preview-display {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.site-preview-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #000;
}

.site-preview-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.site-preview-display:hover .site-preview-img-wrapper img {
    transform: scale(1.05);
}

.preview-badge-map {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: var(--accent-gold);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.preview-badge-map:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-2px);
}

.site-preview-info {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 1.25rem;
}

.preview-title-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.preview-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.preview-type-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.preview-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
}

.preview-specs {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

.preview-spec-item span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.preview-spec-item strong {
    color: #e2e8f0;
    font-weight: 700;
}

/* =========================================
   ACTO IV: HOJA DE RUTA (PRECISIÓN SIN EMOJIS)
========================================= */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.roadmap-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.col-header {
    border-bottom: 1px solid rgba(234, 179, 8, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.col-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.col-idx {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.precision-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.precision-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(234, 179, 8, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.precision-idx {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-family: monospace;
}

.precision-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.precision-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* =========================================
   ACTO V: EPÍLOGO & MANIFIESTO MONOLÍTICO
========================================= */
.editorial-monolith {
    max-width: 1000px;
    margin: 4rem auto 2rem auto;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(5, 5, 8, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.monolith-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.monolith-quote {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.75;
    color: #f1f5f9;
    font-weight: 300;
    margin: 0 0 3rem 0;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.monolith-quote strong {
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--accent-gold);
}

.monolith-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
    margin: 0 auto 2.5rem auto;
}

.monolith-conclusion {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
}

.monolith-conclusion strong {
    color: var(--text-main);
}

/* =========================================
   RESPONSIVIDAD (MÓVIL / TABLET)
========================================= */
@media (max-width: 992px) {
    .editorial-hero { padding: 3.5rem 1.5rem 0 1.5rem; }
    .scientific-specs-bar {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }
    .spec-item:nth-child(2n+1) { border-left: none; padding-left: 0; }
    .spec-item:nth-child(1), .spec-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.06); }
    
    .editorial-stage-grid,
    .site-explorer-layout,
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .editorial-monolith { padding: 3.5rem 2rem; }
}

@media (max-width: 600px) {
    .scientific-specs-bar { grid-template-columns: 1fr; }
    .spec-item { border-left: none !important; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 1rem 0; }
    .spec-item:last-child { border-bottom: none; }
    .video-metadata-strip { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .preview-specs { flex-direction: column; gap: 0.75rem; }
}

.documental-construction {
    transition: var(--transition);
}

/* =========================================
   SALA DE CINE AUDITORIUM (#documental)
   Encuadre perfecto (100% viewport, sin espacio en blanco en el lado derecho)
========================================= */
#documental.tab-content {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    width: 100vw !important;
    max-width: 100% !important;
    position: relative;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: #050508 !important;
}

.cinema-auditorium {
    height: calc(100vh - var(--nav-height));
    min-height: 580px;
    width: 100%;
    max-width: 100%;
    position: relative;
    background: radial-gradient(circle at 50% 30%, #11131a 0%, #050508 70%, #020203 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    box-sizing: border-box;
    user-select: none;
}

/* -----------------------------------------
   TELÓN / CORTINAS LATERALES DE TERCIOPELO (ANIMACIÓN SÚPER FLUIDA POR GPU)
----------------------------------------- */
.theater-curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    max-width: 55vw;
    z-index: 14; /* Encima de la pantalla para que al abrirse se revele el cine */
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.9));
    will-change: transform; /* Promoción a capa GPU para máxima fluidez a 60/120 fps */
}

.theater-curtain-left {
    left: 0;
    background: linear-gradient(
        90deg,
        #1a0408 0%,
        #3b0a12 15%,
        #1a0408 30%,
        #4a0d17 45%,
        #24060b 60%,
        #3b0a12 75%,
        #1a0408 90%,
        rgba(26, 4, 8, 0.8) 100%
    );
    box-shadow: inset -15px 0 40px rgba(0, 0, 0, 0.85);
}

.theater-curtain-right {
    right: 0;
    background: linear-gradient(
        -90deg,
        #1a0408 0%,
        #3b0a12 15%,
        #1a0408 30%,
        #4a0d17 45%,
        #24060b 60%,
        #3b0a12 75%,
        #1a0408 90%,
        rgba(26, 4, 8, 0.8) 100%
    );
    box-shadow: inset 15px 0 40px rgba(0, 0, 0, 0.85);
}

/* Animación ultra suave (sólo translate3d) con curva de velocidad natural ease-in-out */
#documental.tab-content.active .theater-curtain-left {
    animation: curtainOpenLeft 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

#documental.tab-content.active .theater-curtain-right {
    animation: curtainOpenRight 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

@keyframes curtainOpenLeft {
    0% {
        transform: translate3d(0%, 0, 0);
    }
    100% {
        transform: translate3d(-70%, 0, 0);
    }
}

@keyframes curtainOpenRight {
    0% {
        transform: translate3d(0%, 0, 0);
    }
    100% {
        transform: translate3d(70%, 0, 0);
    }
}

/* -----------------------------------------
   APLIQUES / LUCES DE PARED LATERALES
----------------------------------------- */
.wall-sconce {
    position: absolute;
    top: 38%;
    width: 12px;
    height: 45px;
    background: #eab308;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 0 25px 8px rgba(234, 179, 8, 0.5), 0 0 50px 15px rgba(217, 119, 6, 0.3);
    opacity: 0.85;
}
.wall-sconce-left { left: 7%; transform: perspective(400px) rotateY(30deg); }
.wall-sconce-right { right: 7%; transform: perspective(400px) rotateY(-30deg); }

/* -----------------------------------------
   HAZ DE LUZ DEL PROYECTOR DESDE EL TECHO
----------------------------------------- */
.projector-light-beam {
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 65%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(234, 179, 8, 0.08) 50%, transparent 100%);
    clip-path: polygon(45% 0%, 55% 0%, 100% 100%, 0% 100%);
    z-index: 2;
    pointer-events: none;
    filter: blur(8px);
    animation: beamFlicker 6s infinite alternate ease-in-out;
    will-change: opacity, transform;
}

#documental.tab-content.active .projector-light-beam {
    animation: beamTurnOn 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards, beamFlicker 6s 3.6s infinite alternate ease-in-out;
}

@keyframes beamTurnOn {
    0%, 25% {
        opacity: 0;
        transform: scaleY(0) translateZ(0);
        transform-origin: top center;
    }
    60% {
        opacity: 0.85;
        transform: scaleY(1) translateZ(0);
    }
    100% {
        opacity: 0.7;
        transform: scaleY(1) translateZ(0);
    }
}

@keyframes beamFlicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
    75% { opacity: 0.6; }
}

/* -----------------------------------------
   CABECERA COMPACTA DE LA SALA
----------------------------------------- */
.auditorium-header {
    text-align: center;
    margin-bottom: 1.2rem;
    z-index: 15;
    position: relative;
}

.auditorium-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.35rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(234, 179, 8, 0.35);
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.auditorium-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(234, 179, 8, 0.2);
    text-transform: uppercase;
}

/* -----------------------------------------
   PANTALLA DE CINE WIDESCREEN 16:9
   Restringida en altura (max-height: 52vh)
----------------------------------------- */
.auditorium-screen-wrapper {
    width: 80%;
    max-width: 1150px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 12;
    margin-bottom: 3.5rem;
    flex: 1;
    min-height: 0;
}

.screen-ambient-glow {
    position: absolute;
    top: -8%;
    left: -5%;
    right: -5%;
    bottom: -8%;
    background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.3) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    filter: blur(35px);
    z-index: 0;
    pointer-events: none;
}

.auditorium-screen {
    width: 100%;
    max-height: calc(100vh - var(--nav-height) - 185px);
    aspect-ratio: 16 / 9;
    background: radial-gradient(ellipse at center, #1b1e29 0%, #090a0f 100%);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 12px solid #000000;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(234, 179, 8, 0.25),
        inset 0 0 60px rgba(0, 0, 0, 0.85);
    will-change: opacity;
}

#documental.tab-content.active .auditorium-screen {
    animation: screenWakeUp 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

@keyframes screenWakeUp {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Contenido proyectado en la pantalla */
.screen-projection-content {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: projectionPulse 4s infinite alternate ease-in-out;
    will-change: opacity, transform;
}

#documental.tab-content.active .screen-projection-content {
    animation: contentIlluminate 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards, projectionPulse 4s 3.6s infinite alternate ease-in-out;
}

@keyframes contentIlluminate {
    0%, 30% {
        opacity: 0;
        transform: scale(0.96) translateZ(0);
    }
    70% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

@keyframes projectionPulse {
    0% { opacity: 0.92; transform: scale(0.998); }
    100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.3)); }
}

.projection-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

.projection-status {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: 6px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding: 0.4rem 2.5rem;
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    text-shadow: 0 0 30px rgba(234, 179, 8, 0.8);
}

.projection-subtext {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(234, 179, 8, 0.7), 0 2px 6px rgba(0, 0, 0, 0.9);
    margin-top: 0.5rem;
}

/* -----------------------------------------
   SILUETA DE BUTACAS DE CINE EN PRIMER PLANO
----------------------------------------- */
.theater-seats-foreground {
    position: absolute;
    bottom: -4px;
    left: 4%;
    right: 4%;
    height: 45px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 15;
    pointer-events: none;
    opacity: 0.95;
}

.theater-seats-foreground .seat {
    flex: 1;
    max-width: 65px;
    height: 40px;
    background: linear-gradient(180deg, #0f1015 0%, #050508 100%);
    margin: 0 3px;
    border-top-left-radius: 40% 60%;
    border-top-right-radius: 40% 60%;
    border-top: 1px solid rgba(234, 179, 8, 0.25);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.9);
    position: relative;
}

.theater-seats-foreground .seat::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -4px;
    width: 6px;
    height: 35px;
    background: #08080c;
    border-radius: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .auditorium-title { font-size: 1.5rem; }
    .auditorium-screen-wrapper { width: 92%; margin-bottom: 2rem; }
    .auditorium-screen { border-width: 6px; max-height: 52vh; }
    .projection-status { font-size: 1.8rem; letter-spacing: 2px; padding: 0.35rem 1rem; margin-bottom: 0.8rem; }
    .projection-title { font-size: 0.9rem; letter-spacing: 5px; margin-bottom: 0.5rem; }
    .projection-subtext { font-size: 1rem; letter-spacing: 1px; font-weight: 700; color: #ffffff; opacity: 1; }
    .theater-curtain { width: 10%; min-width: 35px; }
    .theater-seats-foreground { height: 32px; }
    .theater-seats-foreground .seat { height: 28px; margin: 0 1px; }
    .cinema-auditorium { height: calc(100vh - 70px); min-height: 480px; }
}

@media (max-width: 768px) {
    .premium-hero-banner { padding: 2.5rem 1.5rem; }
    .premium-hero-title { font-size: 2.25rem; }
    .premium-bento-grid { grid-template-columns: 1fr; }
    .premium-philosophy-card { padding: 2.5rem 1.5rem; }
    .video-overlay-bar { flex-direction: column; text-align: center; }
}

/* =========================================
   ESTILOS DE GRID Y TARJETAS (RESTAURADOS)
========================================= */

/* Grids Generales */
.news-grid, .interviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

#colaboradores-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

/* Tarjeta Estándar (Noticias y Entrevistas) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--border-gold);
}

.card-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #0f172a;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(201, 167, 57, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-gold-hover);
    gap: 0.75rem;
}



/* =========================================
   BENTO BOX LAYOUT (PROYECTO REDESIGN)
========================================= */

.bento-hero {
    margin-bottom: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.bento-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201,167,57,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.bento-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.badge-gold {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(201, 167, 57, 0.15);
    color: var(--accent-gold);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(201, 167, 57, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bento-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(201, 167, 57, 0.15);
    border-color: rgba(201, 167, 57, 0.4);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    cursor: pointer;
}

.bento-tall {
    grid-row: span 2;
    cursor: pointer;
}

.bento-wide {
    grid-column: span 2;
}

.bento-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.bento-item:hover .bento-bg {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bottom-aligned {
    justify-content: flex-end;
}

.bento-play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(201, 167, 57, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: auto;
    box-shadow: 0 0 20px rgba(201, 167, 57, 0.5);
    transition: transform 0.3s ease;
}

.bento-video:hover .bento-play-icon {
    transform: scale(1.1);
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bento-large .bento-title {
    font-size: 2.2rem;
}

.bento-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.bento-link {
    margin-top: 1rem;
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.gold-circle {
    background: rgba(201, 167, 57, 0.15);
    border-color: rgba(201, 167, 57, 0.3);
    color: var(--accent-gold);
}

.bento-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.badge-cyan {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.obj-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.obj-icon {
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.obj-item strong {
    display: block;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.obj-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Bento */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(200px, auto);
    }
    .bento-large, .bento-tall, .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}


/* =========================================
   PESTAÑA PROYECTO — BENTO PREMIUM OSCURO
   ========================================= */

/* ---- HERO ---- */
.proy-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(201, 167, 57, 0.2);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.proy-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 167, 57, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.proy-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.proy-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(201, 167, 57, 0.15);
    color: #c9a739;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 20px;
    border: 1px solid rgba(201, 167, 57, 0.3);
    margin-bottom: 1.2rem;
}

.proy-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.proy-hero-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.75;
    max-width: 680px;
}

.proy-hero-desc strong {
    color: #c9a739;
}

/* ---- STATS ---- */
.proy-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.proy-stat-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(201, 167, 57, 0.2);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proy-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(201, 167, 57, 0.15);
    border-color: rgba(201, 167, 57, 0.4);
}

.proy-stat-num {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #c9a739;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.proy-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- MAIN BENTO GRID ---- */
.proy-bento-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
}

.proy-bento-item {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 1.8rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.proy-bento-item:hover {
    border-color: rgba(201, 167, 57, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.proy-block-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a739;
    background: rgba(201, 167, 57, 0.1);
    border: 1px solid rgba(201, 167, 57, 0.25);
    border-radius: 12px;
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
    display: block;
    width: fit-content;
}

/* ---- GALLERY ---- */
.proy-gallery-block {
    grid-column: 1;
    grid-row: 1;
    padding: 1.5rem;
}

.proy-gallery-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.proy-gallery-note {
    font-size: 0.75rem;
    color: #475569;
    font-style: italic;
}

.proy-gallery-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px;
    gap: 8px;
    height: 328px;
}

.proy-photo {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.proy-photo-tall {
    grid-row: span 2;
    height: 100%;
}

.proy-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 0.6rem 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proy-photo:hover .proy-photo-overlay {
    opacity: 1;
}

.proy-photo-overlay span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #c9a739;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- VIDEO ---- */
.proy-video-block {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
}

.proy-video-wrap {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    margin-bottom: 0.8rem;
    min-height: 200px;
}

.proy-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proy-video-caption {
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.4;
}

/* ---- DESCRIPCION ---- */
.proy-desc-block {
    grid-column: 1;
    grid-row: 2 / 4;
}

.proy-desc-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.proy-desc-text {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.proy-desc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1.3rem;
    background: rgba(201, 167, 57, 0.15);
    color: #c9a739;
    border: 1px solid rgba(201, 167, 57, 0.35);
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.proy-desc-cta:hover {
    background: rgba(201, 167, 57, 0.28);
    transform: translateX(4px);
}

/* ---- OBJETIVOS ---- */
.proy-obj-block {
    grid-column: 2;
    grid-row: 2;
}

.proy-obj-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.5rem;
}

.proy-obj-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.proy-obj-icon {
    color: #c9a739;
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: rgba(201, 167, 57, 0.1);
    border: 1px solid rgba(201, 167, 57, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.proy-obj-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.2rem;
}

.proy-obj-item p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ---- TECNOLOGIA ---- */
.proy-tech-block {
    grid-column: 2;
    grid-row: 3;
}

.proy-tech-chips {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.5rem;
}
.proy-tech-chip {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    transition: all 0.3s ease;
}

.proy-tech-chip:hover {
    background: rgba(201, 167, 57, 0.07);
    border-color: rgba(201, 167, 57, 0.25);
    transform: translateY(-3px);
}

.proy-tech-icon { color: #c9a739;
    width: 40px;
    height: 40px;
    background: rgba(201, 167, 57, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.proy-tech-chip strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.4rem;
}

.proy-tech-chip p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ---- MAPA CTA ---- */
.proy-map-cta {
    grid-column: 2;
    grid-row: 3;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    min-height: 220px;
    padding: 0;
    border: 1px solid rgba(201, 167, 57, 0.25) !important;
}

.proy-map-cta:hover .proy-map-overlay {
    background: rgba(0,0,0,0.5);
}

.proy-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    border-radius: 18px;
    transition: background 0.3s ease;
}

.proy-map-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.proy-map-icon { color: #c9a739;
    width: 48px;
    height: 48px;
    background: rgba(201, 167, 57, 0.2);
    border: 1px solid rgba(201, 167, 57, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.proy-map-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.proy-map-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.proy-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.3rem;
    background: #c9a739;
    color: #000;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 25px;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 167, 57, 0.3);
}

.proy-map-cta:hover .proy-map-btn {
    background: #d4b84a;
    transform: scale(1.04);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .proy-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .proy-bento-grid {
        grid-template-columns: 1fr;
    }
    .proy-gallery-block,
    .proy-video-block,
    .proy-desc-block,
    .proy-obj-block,
    .proy-tech-block,
    .proy-map-cta {
        grid-column: 1;
        grid-row: auto;
    }
    .proy-tech-chips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .proy-hero {
        padding: 2.5rem 1.5rem;
    }
    .proy-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .proy-gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 140px 140px;
        height: 288px;
    }
    .proy-stat-num {
        font-size: 2rem;
    }
}

/* ---- STAT ICON ---- */
.proy-stat-icon { color: #c9a739;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    line-height: 1;
}

/* ---- VIDEO THUMB (reemplaza al video nativo en la tarjeta) ---- */
.proy-video-thumb {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1a2540 100%);
    margin-bottom: 0.8rem;
    min-height: 200px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease;
    border: 1px solid rgba(201,167,57,0.15);
}

.proy-video-thumb:hover {
    filter: brightness(1.15);
}

.proy-video-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(201, 167, 57, 0.9);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    padding-left: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 1;
}

.proy-video-thumb:hover .proy-video-play-btn {
    transform: scale(1.12);
    background: #c9a739;
}

.proy-video-thumb-label {
    position: absolute;
    bottom: 0.7rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* ---- LIGHTBOX (fotos) ---- */
.proy-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.proy-lightbox.open {
    display: flex;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.proy-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.proy-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    animation: lbScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lbScale {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.proy-lightbox-caption {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.proy-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.proy-lightbox-close:hover {
    opacity: 1;
}

/* ---- VIDEO MODAL ---- */
.proy-video-modal-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.proy-modal-video {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    background: #000;
    object-fit: contain;
}

#proy-video-modal .proy-lightbox-close {
    position: fixed;
    top: 25px;
    right: 35px;
    z-index: 999999;
    font-size: 2.5rem;
    color: #fff;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    cursor: pointer;
}
#proy-video-modal .proy-lightbox-close:hover {
    background: #c9a739;
    border-color: #c9a739;
    color: #000;
}


/* ---- VIDEO PREVIEW TAG ---- */
.proy-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

/* ---- LIGHTBOX NAVIGATION BUTTONS ---- */
.proy-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.2s, transform 0.2s;
    border-radius: 8px;
}

.proy-lightbox-nav:hover {
    background: rgba(201, 167, 57, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.proy-lightbox-nav.prev {
    left: 2rem;
}

.proy-lightbox-nav.next {
    right: 2rem;
}


/* ---- UNIFIED MEDIA MOSAIC ---- */
.proy-media-mosaic {
    grid-column: 1 / -1;
    display: grid;
    grid-template-areas: 
        "video video p1 p2"
        "video video p3 p4";
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 180px 180px;
    gap: 12px;
    padding: 16px !important;
}

@media (max-width: 900px) {
    .proy-media-mosaic {
        grid-template-areas: 
            "video video"
            "p1 p2"
            "p3 p4";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 160px 160px;
    }
}

@media (max-width: 640px) {
    .proy-media-mosaic {
        grid-column: 1;
        grid-template-rows: 200px 140px 140px;
    }
}


/* ---- MAP IFRAME PREVIEW ---- */
.proy-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Previene interaccion para que el boton funcione */
    z-index: 0;
}

/* Ensure map content sits above the iframe */
.proy-map-overlay {
    z-index: 1;
}
.proy-map-content {
    z-index: 2;
    position: relative;
    padding: 1.8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* --- Audio Player Styles --- */
audio::-webkit-media-controls-panel {
    background-color: rgba(201, 167, 57, 0.9); /* Gold background for controls */
}
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-volume-slider {
    filter: invert(100%);
}
.modal-audio-container {
    animation: fadeIn 0.5s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin: 10px auto;
    width: 90%;
}

