/* =========================================
   VARIABLES Y RESET
========================================= */
:root {
    --b-bg: #ffffff;
    --b-text: #0a0a0a;
    --b-line: rgba(0, 0, 0, 0.15);
    --m-bg: #050505;
    --m-text: #f4f4f0;
}

body, html { margin: 0; padding: 0; background-color: var(--b-bg); overflow-x: hidden; }

.brandium-style { background-color: var(--b-bg); color: var(--b-text); overflow-x: hidden; width: 100%; position: relative; }
.articulat-font { font-family: 'Articulat CF', sans-serif; }
.dm-font { font-family: 'DM Sans', Helvetica, Arial;  }
.fractul-font { font-family: 'Fractul', sans-serif; }
.safe-font { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }

.full-width {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
}

.b-animate-in { display: inline-block; will-change: transform; }
.b-line-mask { overflow: hidden; display: flex; }

/* =========================================
   1. HERO
========================================= */
.b-hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 5vw; box-sizing: border-box; }
.b-hero-content { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.b-hero-title-group { display: flex; flex-direction: column; align-items: center; width: 100%; }
.b-title { display: flex; flex-direction: column; width: 100%; margin: 0; }
.line-1 { display: flex; flex-direction: row; justify-content: center; width: 100%; font-size: clamp(2.5rem, 15vw, 18rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.07em; }
.char-wrap { display: inline-block; position: relative; overflow: visible; perspective: 1000px; }
.char { display: inline-block; will-change: transform, opacity; transform-style: preserve-3d; backface-visibility: visible; }
.flip-h { transform-origin: center center; display: inline-block; }

.b-hero-sub-title { font-size: clamp(1rem, 2.5vw, 2.5rem); font-weight: 700; margin-top: -1.5rem; margin-bottom: 0; text-align: center; line-height: 1.2; overflow: hidden; display: flex; }

/* =========================================
   2. MANIFIESTO
========================================= */
.b-manifesto { padding: 0 12vw 10vw 5vw; background-color: var(--b-bg); color: var(--b-text); display: flex; justify-content: flex-end; position: relative; z-index: 1; }
.manifesto-container { width: 100%; max-width: 1600px; position: relative; z-index: 2; }
.manifesto-line { font-size: clamp(1.2rem, 3.2vw, 4rem); font-weight: 500; line-height: 1.25; margin: 0; }

/* =========================================
   3. DESTACADOS 
========================================= */
.b-destacados { background-color: var(--b-bg); color: var(--b-text); padding: 10vh 0; position: relative; z-index: 2; }
.destacados-pin-wrapper { height: 60vh; width: 100%; display: flex; align-items: center; justify-content: flex-start; overflow: visible; }
.destacados-mask { width: 100vw; height: 60vh; overflow: visible; position: relative; display: flex; align-items: center; }
.destacados-track { display: flex; height: 100%; align-items: center; width: max-content; }

.destacado-panel { height: 100%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; box-sizing: border-box; position: relative; margin-right: 12vw; }
.destacado-panel:last-child { margin-right: 0; }
.destacado-spacer { width: 15vw; flex-shrink: 0; }
.panel-festival { padding-left: 12vw; }

.d-content { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; z-index: 2; }
.d-link { text-decoration: none; color: inherit; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.d-link:hover { transform: scale(1.03); } 

.d-anim-wrap { overflow: hidden; display: block; perspective: 1000px; padding-top: 0.2em; padding-right: 0.2em; margin-top: -0.2em; margin-right: -0.2em; }
.d-anim { display: inline-block; will-change: transform, opacity; transform-origin: bottom center; }

.d-badge { background: var(--b-text); color: var(--b-bg); padding: 0.2rem 1rem; border-radius: 50px; font-size: 1rem; font-weight: 600; text-transform: uppercase; margin-bottom: 1.5rem; display: inline-flex; overflow: hidden; }
.badge-char { display: inline-block; will-change: transform; }
.d-title-inline { display: flex; flex-direction: row; gap: 3vw; align-items: baseline; margin: 0; width: 100%; }
.panel-festival .d-title { font-size: clamp(4rem, 10vw, 15rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.85; }
.d-anim-fest1, .d-anim-fest2 { display: inline-block; will-change: transform, opacity; transform-origin: bottom center; }
.d-anim-fest3 { display: inline-block; will-change: transform, opacity; }
.panel-festival .d-date { font-size: clamp(1.5rem, 3vw, 3rem); font-weight: 600; line-height: 1; text-align: right; width: 100%; margin-top: 1rem; }

.panel-noticias .d-title { display: flex; flex-direction: column; gap: 1rem; width: 100%; margin: 0; }
.solid-box { background-color: var(--b-text); color: var(--b-bg); border-radius: 20px; padding: 0.5rem 2rem; font-size: clamp(3rem, 8vw, 12rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; display: inline-block; }
.offset-box { align-self: flex-end; margin-right: 5vw; }

.panel-articulos .d-title { font-size: clamp(4rem, 9vw, 12rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.04em; margin: 0; width: 100%; display: flex; flex-direction: column;}
.offset-text { align-self: flex-end; margin-right: 5vw; }

/* =========================================
   GRÁFICOS SVG UNIFICADOS (DESKTOP)
========================================= */
.dec-svg { position: absolute; z-index: 0; pointer-events: none; will-change: transform, opacity, clip-path; }

/* --- Panel 1: Festival --- */
.g-12 { 
    top: -101vh; 
    right: -40vw; 
    width: clamp(335px, 27vw, 1200px); 
} 
.g-3 { 
    bottom: -5vh; 
    left: -3vw; /* Tu ajuste a -3vw */
    width: clamp(150px, 20vw, 800px); 
    clip-path: inset(0 50% 0 0); 
} 

/* --- Panel 2: Noticias --- */
.g-13 { 
    top: -20vh;
    right: -45vw; /* Empujado más a la derecha como pediste */
    width: clamp(250px, 27vw, 1100px); /* Tamaño más pequeño coordinado con g-12 */
} 

/* --- Panel 3: Artículos --- */
.g-6 { 
    top: 32vh; /* Sutilmente más arriba */
    right: -25%; 
    width: clamp(120px, 15vw, 600px); 
} 
.g-7 { 
    bottom: -10vh; 
    right: -25%; 
    width: clamp(150px, 18vw, 700px); 
}

/* =========================================
   4. MEMORIAS
========================================= */
.b-memorias { background-color: var(--m-bg); color: var(--m-text); }
.memorias-pin-wrapper { height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.memorias-mask { width: 90vw; height: 80vh; overflow: hidden; position: relative; display: flex; align-items: center; }
.memorias-track { display: flex; height: 70vh; align-items: center; width: max-content; }

.memoria-panel, .memoria-spacer { width: 35vw; height: 100%; flex-shrink: 0; margin-right: 5vw; display: flex; align-items: center; }
.memoria-spacer { width: 2vw; }
.memoria-intro { width: 40vw; flex-direction: column; align-items: flex-start; justify-content: center; }
.m-title { font-size: clamp(3rem, 6vw, 8rem); margin: 0; line-height: 1; font-weight: 700; text-transform: uppercase; }
.m-desc { font-size: clamp(1.2rem, 2vw, 2rem); margin-top: 2rem; opacity: 0.8; line-height: 1.3; }

.memoria-card { position: relative; width: 100%; height: 100%; overflow: hidden; background: #111; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.memoria-img-wrap { width: 100%; height: 100%; overflow: hidden; background: #000; }
.memoria-img { width: 100%; height: 120%; background-size: cover; background-position: center; transform-origin: center; }

.memoria-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; box-sizing: border-box; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%); pointer-events: none; }
.memoria-year { font-size: clamp(4rem, 8vw, 10rem); font-weight: 700; color: rgba(255, 255, 255, 0.15); -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9); text-shadow: 0 10px 30px rgba(0,0,0,0.6); margin: 0; line-height: 0.8; }
.memoria-info { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; pointer-events: auto; }
.m-theme { font-size: 1.5rem; font-weight: 500; }
.m-link { color: var(--m-text); text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; transition: all 0.3s ease; }
.m-link:hover { background: var(--m-text); color: var(--m-bg); }

.view-more-panel { display: flex; justify-content: center; align-items: center; }
.view-more-link { font-size: clamp(3rem, 6vw, 8rem); font-weight: 700; color: var(--m-text); text-decoration: none; text-transform: uppercase; display: flex; overflow: hidden; line-height: 0.9; transition: all 0.4s ease; }
.view-more-link:hover { color: #a0a0a0; opacity: 0.8; }
.vm-char { display: inline-block; will-change: transform, opacity; }

/* =========================================
   🔥 RESPONSIVE MEDIA QUERIES (MOBILE)
========================================= */
@media (max-width: 768px) {
    .b-hero { height: 60vh; padding: 10vh 5vw; justify-content: center; } 
.line-1 { letter-spacing: -0.02em; font-size: clamp(3rem, 16vw, 12rem); }    .b-hero-sub-title { font-size: clamp(1.2rem, 5vw, 2rem); margin-top: 0; }
    
    .b-manifesto { padding: 2vh 5vw 10vh 5vw; justify-content: flex-start; } 
    .manifesto-container { width: 100%; }
    .manifesto-line { font-size: clamp(1.5rem, 6vw, 2.5rem); }

    .b-destacados { padding: 0; }
    .destacados-pin-wrapper { height: auto; display: block; overflow: visible; }
    .destacados-mask { width: 100vw; height: auto; display: block; overflow: hidden; } 
    .destacados-track { flex-direction: column; height: auto; width: 100%; display: flex; }
    .destacado-panel { width: 100%; height: auto; padding: 10vh 5vw; margin-right: 0; margin-bottom: 0; border-bottom: 1px solid var(--b-line); }
    .destacado-spacer { display: none; } 
    .panel-festival { padding-left: 5vw; } 
    .solid-box { padding: 0.5rem 1rem; border-radius: 12px; }
    .d-title-inline { flex-direction: column; gap: 0; }
    
    /* GRÁFICOS MOBILE OVERRIDES */
    /* Reseteamos el top negativo extremo en móvil para no romper el apilamiento */
    .g-12 { display: none; } 
    .g-3 { bottom: 0; left: 0; width: 30vw; } 
    .g-13 { display: none; }
    .g-6 { top: 5%; right: 5%; width: 30vw; }
    .g-7 { bottom: 5%; right: 5%; width: 30vw; }

    /* MEMORIAS */
    .memorias-pin-wrapper { height: auto; display: block; padding: 5vh 0; }
    .memorias-mask { width: 100vw; margin: 0; height: auto; overflow: visible; display: block; } 
    .memorias-track { flex-direction: column; height: auto; width: 100%; display: flex; padding: 0 6vw; box-sizing: border-box; }
    .memoria-panel { width: 100%; margin-right: 0; margin-bottom: 6vh; height: 60vh; }
    .memoria-spacer { display: none; } 
    .memoria-intro { width: 100%; height: auto; padding: 0 0 5vh 0; margin-bottom: 0; }
    .view-more-panel { height: auto; padding: 5vh 0 10vh 0; justify-content: flex-start; margin-bottom: 0; }
    
    .memoria-info span { font-size: 1rem; }
    .memoria-info a { font-size: 0.6rem; }
}