@charset "utf-8";
/* CSS Document */
  /* --- VARIABLES DEL GLITCH --- */
        :root {
            --gap-horizontal: 10px;
            --gap-vertical: 5px;
            --time-anim: 2s;
            --delay-anim: 0s;
            --blend-mode-1: none;
            --blend-mode-2: exclusion;
            --blend-mode-3: hard-light;
            --blend-mode-4: overlay;
            --blend-mode-5: overlay;
            --blend-color-1: transparent;
            --blend-color-2: #3700ff;
            --blend-color-3: #ff0000;
            --blend-color-4: #00ff00;
            --blend-color-5: #af4949;
        }

        /* --- RESET & BASE --- */
        * { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

        body {
            background-color: #0a0a0a;
            color: #f0f0f0;
            font-family: 'Helvetica Neue', 'Montserrat', sans-serif;
            overflow: hidden; /* Bloqueado por defecto (Escritorio/Móvil Vertical) */
            height: 100vh;
            width: 100vw;
        }

        /* --- CURSOR --- */
        .cursor {
            width: 20px; height: 20px; border: 1px solid white; border-radius: 50%;
            position: fixed; pointer-events: none; z-index: 2147483647;
            transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s;
            mix-blend-mode: difference;
        }
        .cursor.active { width: 80px; height: 80px; background-color: white; border: none; }

        /* --- GRID CONTAINER (FONDO) --- */
        .bg-container {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
            background-color: #050505;
        }

        .bg-grid {
            width: 100%; height: 100%;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-auto-rows: 1fr;
            gap: 0;
        }

        /* --- NUEVA CAPA DE DOTS / VELO --- */
        .dot-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 5;
            pointer-events: none;
            background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi2r9//38gYGAEESAAEGAAasgJOgzOKCoAAAAASUVORK5CYII=);
            background-color: rgba(0, 0, 0, 0.3); 
            mix-blend-mode: multiply;
        }

        /* --- GLITCH CELL STRUCTURE --- */
        .glitch-cell {
            position: relative; width: 100%; height: 100%; overflow: hidden; background-color: #000;
        }

        .glitch__img {
            position: absolute;
            top: calc(-1 * var(--gap-vertical));
            left: calc(-1 * var(--gap-horizontal));
            width: calc(100% + var(--gap-horizontal) * 2);
            height: calc(100% + var(--gap-vertical) * 2);
            background-size: cover; background-position: center;
            background-color: var(--blend-color-1);
            transform: translate3d(0,0,0); background-blend-mode: var(--blend-mode-1);
            transition: opacity 0.5s ease; 
        }

        .glitch__img:nth-child(n+2) { opacity: 0; }

        /* Animaciones Glitch ACTIVAS */
        .glitch-cell.active .glitch__img:nth-child(n+2) {
            opacity: 1; animation-duration: var(--time-anim); animation-delay: var(--delay-anim);
            animation-timing-function: linear; animation-iteration-count: infinite;
        }
        
        /* ESTILOS PARA DESACTIVAR EL GLITCH (Manual o Automático) */
        body.no-glitch .glitch-cell.active .glitch__img:nth-child(n+2) {
            opacity: 0 !important; 
            animation: none !important; 
        }

        /* Definición de animaciones individuales */
        .glitch-cell.active .glitch__img:nth-child(2) { background-color: var(--blend-color-2); background-blend-mode: var(--blend-mode-2); animation-name: glitch-anim-1; }
        .glitch-cell.active .glitch__img:nth-child(3) { background-color: var(--blend-color-3); background-blend-mode: var(--blend-mode-3); animation-name: glitch-anim-2; }
        .glitch-cell.active .glitch__img:nth-child(4) { background-color: var(--blend-color-4); background-blend-mode: var(--blend-mode-4); animation-name: glitch-anim-3; }
        .glitch-cell.active .glitch__img:nth-child(5) { background-color: var(--blend-color-5); background-blend-mode: var(--blend-mode-5); animation-name: glitch-anim-flash; }

        /* --- KEYFRAMES --- */
        @keyframes glitch-anim-1 { 0% { opacity: 1; transform: translate3d(var(--gap-horizontal),0,0); clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); } 2% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); } 4% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); } 6% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); } 8% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); } 10% { clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%); } 12% { clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%); } 14% { clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%); } 16% { clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%); } 18% { clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%); } 20% { clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%); } 21.9% { opacity: 1; transform: translate3d(var(--gap-horizontal),0,0); } 22%, 100% { opacity: 0; transform: translate3d(0,0,0); clip-path: polygon(0 0, 0 0, 0 0, 0 0); } }
        @keyframes glitch-anim-2 { 0% { opacity: 1; transform: translate3d(calc(-1 * var(--gap-horizontal)),0,0); clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%); } 3% { clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%); } 5% { clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%); } 7% { clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%); } 9% { clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%); } 11% { clip-path: polygon(0 52%, 100% 52%, 100% 59%, 0 59%); } 13% { clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%); } 15% { clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%); } 17% { clip-path: polygon(0 65%, 100% 65%, 100% 40%, 0 40%); } 19% { clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%); } 20% { clip-path: polygon(0 14%, 100% 14%, 100% 33%, 0 33%); } 21.9% { opacity: 1; transform: translate3d(calc(-1 * var(--gap-horizontal)),0,0); } 22%, 100% { opacity: 0; transform: translate3d(0,0,0); clip-path: polygon(0 0, 0 0, 0 0, 0 0); } }
        @keyframes glitch-anim-3 { 0% { opacity: 1; transform: translate3d(0, calc(-1 * var(--gap-vertical)), 0) scale3d(-1,-1,1); clip-path: polygon(0 1%, 100% 1%, 100% 3%, 0 3%); } 1.5% { clip-path: polygon(0 10%, 100% 10%, 100% 9%, 0 9%); } 2% { clip-path: polygon(0 5%, 100% 5%, 100% 6%, 0 6%); } 2.5% { clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%); } 3% { clip-path: polygon(0 10%, 100% 10%, 100% 10%, 0 10%); } 5% { clip-path: polygon(0 30%, 100% 30%, 100% 25%, 0 25%); } 5.5% { clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%); } 7% { clip-path: polygon(0 40%, 100% 40%, 100% 39%, 0 39%); } 8% { clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%); } 9% { clip-path: polygon(0 60%, 100% 60%, 100% 55%, 0 55%); } 10.5% { clip-path: polygon(0 30%, 100% 30%, 100% 31%, 0 31%); } 11% { clip-path: polygon(0 70%, 100% 70%, 100% 69%, 0 69%); } 13% { clip-path: polygon(0 40%, 100% 40%, 100% 41%, 0 41%); } 14% { clip-path: polygon(0 80%, 100% 80%, 100% 75%, 0 75%); } 14.5% { clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%); } 15% { clip-path: polygon(0 90%, 100% 90%, 100% 90%, 0 90%); } 16% { clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%); } 18% { clip-path: polygon(0 100%, 100% 100%, 100% 99%, 0 99%); } 20% { clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%); } 21.9% { opacity: 1; transform: translate3d(0, calc(-1 * var(--gap-vertical)), 0) scale3d(-1,-1,1); } 22%, 100% { opacity: 0; transform: translate3d(0,0,0); clip-path: polygon(0 0, 0 0, 0 0, 0 0); } }
        @keyframes glitch-anim-flash { 0%, 5% { opacity: 0.2; transform: translate3d(var(--gap-horizontal), var(--gap-vertical), 0); } 5.5%, 100% { opacity: 0; transform: translate3d(0, 0, 0); } }

        /* --- LOGO --- */
        .logo-container {
            position: absolute; top: 3vh; left: 50%; transform: translateX(-50%);
            z-index: 100; width: 140px; mix-blend-mode: normal;
        }
        .logo-container img { width: 100%; display: block; }

        /* --- MENU WRAP --- */
        .menu-wrap {
            height: 100vh; width: 100%; display: flex; flex-direction: column;
            justify-content: center; align-items: center; position: relative;
            z-index: 10; padding: 120px 0; gap: 1vh;
        }

        /* --- LINKS --- */
       /* --- LINKS (MODO AMARILLO FLUORESCENTE) --- */
.menu-item {
    position: relative; 
    text-decoration: none; 
    
    /* 1. EL GRADIENTE AMARILLO FLÚOR */
    /* Va de un amarillo lima (#ccff00) a un amarillo puro (#ffff00) */
    background: linear-gradient(90deg, #ccff00 0%, #ffff00 100%);
    
    /* 2. TÉCNICA DE TEXTO GRADIENTE */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* 3. LIMPIEZA */
    /* Quitamos el borde blanco para que sea relleno sólido */
    -webkit-text-stroke: 0px;
    
    /* 4. ESTILOS DE FUENTE */
    font-size: 7.5vw; 
    line-height: 1.1; 
    font-weight: 900;
    text-transform: uppercase; 
    letter-spacing: -2px; 
    padding: 0 20px;

    /* 5. BRILLO NEÓN (GLOW) */
    /* Esto le da el toque "fluorescente" real iluminando alrededor */
    filter: drop-shadow(0 0 5px rgba(204, 255, 0, 0.2));

    /* 6. TRANSICIÓN SUAVE AL HOVER */
    transition: transform 0.4s ease, filter 0.3s ease, background 0.3s ease;
    
    /* Nota: Quitamos el blend-mode screen anterior para que el color sea puro */
    mix-blend-mode: normal; 
}

        .menu-item:hover {
            background: linear-gradient(90deg, #FF6B00 0%, #FF006E 100%);
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; -webkit-text-stroke: 0px;
            mix-blend-mode: normal;
            transform: translateX(30px);
        }

      /* --- FOOTER --- */
        .footer {
            position: fixed; 
            bottom: 20px; 
            left: 50%; 
            transform: translateX(-50%);
            z-index: 200; 
            
            /* ESTILO DE TEXTO */
            color: #ffffff;
            mix-blend-mode: normal; /* Quitamos 'difference' para evitar colores raros */
            font-family: 'Montserrat', sans-serif;
            font-size: 11px; 
            font-weight: 500; 
            letter-spacing: 1px;
            text-transform: lowercase; 
            text-align: center;
            
            /* IMPORTANTE: Permitir click en el link */
            pointer-events: auto; 

            /* CAJA DE FONDO PARA LEGIBILIDAD */
            background-color: rgba(0, 0, 0, 0.6); /* Fondo negro al 60% */
            padding: 8px 20px; 
            border-radius: 50px; /* Bordes redondeados estilo pastilla */
            width: auto;
            white-space: nowrap;
            
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.1); 
        }

        /* Estilo del enlace dentro del footer */
        .footer a {
            color: #ccff00;
            text-decoration: none;
            font-weight: 500; /* Un poco más grueso para destacar */
            transition: color 0.3s ease;
        }
       /* EFECTO HOVER CON GRADIENTE DE FUEGO */
        .footer a:hover {
            /* 1. Definimos el fondo como el gradiente */
            background: linear-gradient(90deg, #FF6B00 0%, #FF006E 100%);
            
            /* 2. Recortamos el fondo a la forma del texto */
            -webkit-background-clip: text;
            background-clip: text;
            
            /* 3. Hacemos el texto transparente para ver el fondo a través */
            -webkit-text-fill-color: transparent;
            
            /* Opcional: Un pequeño zoom para dar feedback visual ya que no hay transición de color suave */
            display: inline-block;
            transform: scale(1.02);
        }
        /* --- LOADING LINE --- */
        .loader-line {
            position: fixed;
            bottom: 12vh; 
            left: 0;
            height: 5px;
            width: 0%; 
            background-color: #ccff00; /* Amarillo Fluorescente */
            z-index: 99999; 
            transition: width 2s cubic-bezier(0.25, 1, 0.5, 1); 
            box-shadow: 0 0 20px #ccff00; 
        }

        .loader-line.loading { width: 100%; }

        /* --- BOTÓN TOGGLE GLITCH --- */
       #glitch-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    background: transparent;
    
    /* --- INICIO CAMBIO BORDE GRADIENTE --- */
    /* 1. Definimos el grosor y el estilo (el color base es transparente) */
    border: 1px solid transparent;
    
    /* 2. Aplicamos el gradiente como "imagen" del borde */
    border-image: linear-gradient(90deg, #ccff00 0%, #ffff00 100%);
    
    /* 3. Slice 1 indica que el gradiente debe estirarse por todo el borde */
    border-image-slice: 1;
    /* --- FIN CAMBIO BORDE GRADIENTE --- */

    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    padding: 8px 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    mix-blend-mode: NORMAL;
    transition: all 0.3s ease;
}
        
        #glitch-toggle:hover {
            background-color: #fff;
            color: #000;
        }

        /* ==========================================================================
           RESPONSIVE MEDIA QUERIES
           ========================================================================== */

        /* 1. ESCRITORIO GRANDE (>1200px) */
        @media (min-width: 1200px) {
            .menu-wrap { padding-top: 15vh; padding-bottom: 10vh; gap: 2vh; }
            .menu-item { font-size: 110px; line-height: 1.2; }
        }

     /* 2. MÓVIL / TABLET VERTICAL (<768px) */
        @media (max-width: 768px) {
            
            /* BLOQUEO DE SCROLL */
            body {
                overflow: hidden;
                height: 100vh;
                width: 100vw;
                position: fixed;
            }

            /* GRID: 2 COLUMNAS x 4 FILAS = 8 ELEMENTOS */
            .bg-container { width: 100%; height: 100%; }
            
            .bg-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr); 
                grid-template-rows: repeat(4, 1fr);    
                width: 100%;
                height: 100%;
                gap: 0;
            }

            /* OCULTAR EL 9º ELEMENTO */
            .glitch-cell:nth-child(9) { display: none !important; }

            .glitch-cell {
                aspect-ratio: auto; 
                width: 100%;
                height: 100%;
            }

            /* --- AJUSTE MENÚ (BAJARLO DEL LOGO) --- */
            .menu-wrap {
                height: 100vh;
                width: 100%;
                padding: 0;
                
                /* ESTA LÍNEA BAJA EL MENÚ */
                padding-top: 15vh; /* Aumenta este valor si quieres bajarlo más */
                
                justify-content: center;
                gap: 2vh;
            }

            .menu-item { 
                font-size: 11vw; 
                -webkit-text-stroke: 0px; 
                color: #aaa; 
                mix-blend-mode: normal;
            }
            
            .menu-item:hover { 
                background: linear-gradient(90deg, #FF6B00 0%, #FF006E 100%);
                -webkit-background-clip: text; background-clip: text;
                -webkit-text-fill-color: transparent; transform: none; 
            }

            /* UI ELEMENTS */
            .cursor { display: none; }
.footer { 
                position: fixed; 
                bottom: 25px; 
                font-size: 10px; 
                z-index: 200; 
                width: auto; 
                padding: 6px 15px;
                background-color: rgba(0, 0, 0, 0.7); /* Un pelín más oscuro en móvil */
            }
            
            .loader-line { bottom: 15vh; }
            
            #glitch-toggle { 
                top: 20px; right: 20px; padding: 5px 10px; font-size: 9px;
                width: min-content; text-align: right; word-break: normal; line-height: 1.1;
            }

            .dot-overlay { height: 100vh; width: 100vw; }
        }
  /* 3. MÓVIL HORIZONTAL (LANDSCAPE) */
        @media (max-height: 600px) and (orientation: landscape) {
            
            /* BLOQUEO DE SCROLL */
            body {
                overflow: hidden;
                height: 100vh;
                width: 100vw;
                position: fixed;
            }

            /* GRID: 4 COLUMNAS x 2 FILAS = 8 ELEMENTOS */
            .bg-container { width: 100vw; height: 100vh; overflow: hidden; }
            
            .bg-grid {
                display: grid;
                grid-template-columns: repeat(4, 1fr); 
                grid-template-rows: repeat(2, 1fr);    
                width: 100%;
                height: 100%;
            }
            
            /* OCULTAR EL 9º ELEMENTO */
            .glitch-cell:nth-child(9) { display: none !important; }
            
            .glitch-cell {
                aspect-ratio: auto;
                width: 100%;
                height: 100%;
            }

            /* MENÚ CENTRADO */
            .menu-wrap {
                height: 100vh; 
                width: 100%;
                padding: 0; 
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center; 
                padding-left: 0; 
                justify-content: center;
                padding-bottom: 35px;
                gap: 10px; 
            }

            /* --- AJUSTE TEXTO MÁS GRANDE --- */
            .menu-item { 
                /* Edita este valor para cambiar el tamaño */
                font-size: 9vh; /* Antes era 8vh */
                line-height: 1.1; 
            }

            /* UI ELEMENTS */
            .logo-container { top: 10px; left: 70px; width: 80px; }
            #glitch-toggle { top: 15px; right: 20px; }

.footer {
                position: fixed; 
                bottom: 10px; 
                left: 50%; 
                transform: translateX(-50%);
                z-index: 200; 
                font-size: 9px;
                width: auto;
                padding: 4px 12px;
                background-color: rgba(0, 0, 0, 0.7);
            }

            .dot-overlay { height: 100vh; width: 100vw; }
            .loader-line { bottom: 0; }
        }
/* =========================================
   EFECTO GLITCH PARA LOGO (CORREGIDO: Z-INDEX SUPERIOR)
   ========================================= */

.efecto_glitch_logo_header {
    /* Variables */
    --glitch-cyan: #00f0ff;
    --glitch-pink: #ff0099;
    
    position: relative;
    display: inline-block; 
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none;
    /* Importante: permite que los hijos se ordenen en 3D si fuera necesario */
    transform-style: preserve-3d; 
}

/* La imagen original (BASE) */
.efecto_glitch_logo_header img {
    position: relative;
    display: block;
    /* Z-INDEX BAJO: La imagen original se queda abajo como "base" */
    z-index: 1; 
}

/* Pseudo-elementos (FANTASMAS GLITCH) */
.efecto_glitch_logo_header::before,
.efecto_glitch_logo_header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Cargamos la misma imagen */
    background-image: url('images_advertising_animation_studio/logo_goonie_studio_animation_branding_illustration_storyboard_studio.gif');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    
    background-color: transparent !important;
    opacity: 0; 
    
    /* Z-INDEX ALTO: Ahora están ENCIMA de la imagen original */
    z-index: 2; 
    
    pointer-events: none;
    
    /* MEZCLA: Esto es vital. 'hard-light' o 'screen' hace que 
       el fantasma se fusione con la imagen de abajo en lugar de taparla */
    mix-blend-mode: hard-light; 
}

/* --- ESTADO HOVER --- */

/* 1. La imagen base vibra un poco */
.efecto_glitch_logo_header:hover img {
    animation: glitch-main-shake 0.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 2. Fantasma Cyan (ENCIMA) */
.efecto_glitch_logo_header:hover::before {
    opacity: 0.9; /* Bien visible */
    /* Usamos drop-shadow para colorear la silueta */
    filter: drop-shadow(-3px 0px var(--glitch-cyan)); 
    animation: glitch-anim-1 0.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 3. Fantasma Rosa (ENCIMA) */
.efecto_glitch_logo_header:hover::after {
    opacity: 0.9; /* Bien visible */
    filter: drop-shadow(3px 0px var(--glitch-pink)); 
    animation: glitch-anim-2 0.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
}

/* --- KEYFRAMES --- */
@keyframes glitch-main-shake {
    0% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-3px, 0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-3px, 0); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(3px, 0); }
    80% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 0); }
    100% { clip-path: inset(30% 0 30% 0); transform: translate(3px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(3px, 0); }
    20% { clip-path: inset(30% 0 20% 0); transform: translate(-3px, 0); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(3px, 0); }
    60% { clip-path: inset(20% 0 50% 0); transform: translate(-3px, 0); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
    100% { clip-path: inset(0% 0 80% 0); transform: translate(-3px, 0); }
}
