@charset "utf-8";
/* CSS Document */      /* --- 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-x: hidden;
            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; }

        /* --- HEADER --- */
        .header-bar {
            position: fixed; top: 0; left: 0; width: 100%; height: 100px; z-index: 1000;
            display: flex; justify-content: space-between; align-items: center; padding: 0 40px;
            background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
            pointer-events: none;
        }

        .logo-mini { width: 80px; pointer-events: auto; mix-blend-mode: normal; cursor: pointer; }
        .logo-mini a { cursor: pointer; }
        .logo-mini img { width: 100%; display: block; cursor: pointer;}

        .header-right { display: flex; align-items: center; gap: 30px; pointer-events: auto; }

        .section-title {
            font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 24px;
            text-transform: uppercase; letter-spacing: 2px;
            background: linear-gradient(90deg, #FF6B00 0%, #FF006E 100%);
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
        }

       /* --- HAMBURGER TOGGLE --- */
        .menu-toggle {
            width: 60px; height: 60px; display: flex; flex-direction: column;
            justify-content: center; align-items: center; gap: 6px; cursor: none; z-index: 2000;
            /* Transición suave para el efecto de escala */
            transition: transform 0.3s ease;
        }

        /* Efecto Hover: Aumenta tamaño */
        .menu-toggle:hover {
            transform: scale(1.15);
        }

        .menu-toggle span { 
            display: block; width: 30px; height: 2px; background-color: #fff; 
            transition: all 0.3s ease; 
        }

        /* Efecto Hover: Cambia color a gradiente */
        .menu-toggle:hover span {
            background: linear-gradient(90deg, #FF6B00 0%, #FF006E 100%);
        }

        .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
        .menu-toggle.open span:nth-child(2) { opacity: 0; }
        .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

        /* --- PORTFOLIO GRID (VIDEO) --- */
        .portfolio-grid {
            display: grid; width: 100%; 
            grid-template-columns: repeat(3, 1fr); /* 3 columnas escritorio */
            gap: 0; padding-top: 0;
        }

        .grid-item { 
            position: relative; 
            width: 100%; 
            aspect-ratio: 16 / 9; /* Formato vídeo */
            overflow: hidden; 
            cursor: none; 
            background-color: #000;
        }

        .grid-item img {
            width: 100%; height: 100%; object-fit: cover; display: block;
            transition: transform 0.5s ease, filter 0.3s ease;
            opacity: 0.85; 
        }

        /* ICONO PLAY */
        .play-icon {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 60px; height: 60px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            pointer-events: none;
            transition: transform 0.3s ease;
            z-index: 2;
            filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
            display: none; /* Se activa por JS si es video */
        }

        .grid-item:hover img { transform: scale(1.05); filter: brightness(1.1); opacity: 1; }
        .grid-item:hover .play-icon { transform: translate(-50%, -50%) scale(1.2); }

        /* --- OVERLAY MENU --- */
        .nav-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(10, 10, 10, 0.98); z-index: 2147483640;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
        }
        .nav-overlay.open { opacity: 1; visibility: visible; }
        
        .overlay-close {
            position: absolute; top: 30px; right: 40px; background: transparent;
            border: none; color: #fff; font-family: 'Montserrat', sans-serif;
            font-weight: 100; font-size: 4rem; line-height: 1; cursor: none;
            transition: transform 0.3s ease, color 0.3s ease;
        }
        .overlay-close:hover { color: #FF006E; transform: rotate(90deg); }

        .overlay-menu { display: flex; flex-direction: column; gap: 2vh; text-align: center; }
               .overlay-link {
            text-decoration: none; font-size: 4vw; font-weight: 900; text-transform: uppercase;
            color: rgba(255, 255, 255, 0.15); -webkit-text-stroke: 1px rgba(204, 255, 0, 0.4);
            mix-blend-mode: screen; transition: transform 0.4s ease;
        }
        .overlay-link: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(20px);
        }

        /* --- LIGHTBOX HÍBRIDO --- */
        .lightbox {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.85); z-index: 5000;
            display: none; flex-direction: column; justify-content: center; align-items: center;
            cursor: none; 
        }
        .lightbox.active { display: flex; }

        /* Contenedor para VÍDEOS (16:9 Fijo) */
        .video-wrapper {
            width: 80%; max-width: 1200px; aspect-ratio: 16 / 9;
            position: relative; box-shadow: 0 0 50px rgba(0,0,0,0.8);
            pointer-events: auto;  border-radius: 20px;  overflow: hidden; background: #000;
            display: none; 
        }
        .video-wrapper iframe { width: 100%; height: 100%; border: none; }

        /* Contenedor para GIFs/IMÁGENES (Flexible) */
        .lightbox-img-content {
            max-width: 85%; max-height: 75vh; object-fit: contain;
            box-shadow: 0 0 50px rgba(0,0,0,0.8);
            pointer-events: auto;  border-radius: 20px; 
            display: none; 
        }

        .lb-caption {
            position: relative; z-index: 6000; margin-top: 25px; color: #ffffff;
            font-family: 'Montserrat', 'Helvetica Neue', sans-serif; font-weight: 200;
            -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
            font-size: 16px; text-align: center; letter-spacing: 1.5px; line-height: 1.4;
            max-width: 80%; opacity: 0.9; display: block;
        }

        .lb-btn {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: transparent; border: none; color: #fff;
            font-size: 3rem; padding: 20px; z-index: 5001;
            cursor: none; transition: color 0.3s ease, transform 0.2s ease;
            font-family: 'Montserrat', sans-serif; font-weight: 100;
        }
        .lb-btn:hover { color: #FF006E; transform: translateY(-50%) scale(1.2); }
        .lb-prev { left: 20px; }
        .lb-next { right: 20px; }
        
        .lb-close {
            position: absolute; top: 20px; right: 30px; font-size: 2rem; transform: none;
        }
        .lb-close:hover { transform: scale(1.2); }

        /* --- FOOTER --- */
        .footer {
            padding: 40px 0; background-color: #0a0a0a; color: #ffffff;
            mix-blend-mode: difference; font-size: 12px; font-weight: 300;
            letter-spacing: 1px; text-transform: lowercase; text-align: center; width: 100%;
        }
        span.caja_ultima_linea_footer { /* 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.3); }
         /* Estilo del enlace dentro del footer */
        .footer .caja_ultima_linea_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 .caja_ultima_linea_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);
        }
        .text_footer_email_1 {font-size: 16px!important;}
        
        .phone-link { text-decoration: none; color: #fff; cursor: pointer; transition: color 0.3s ease;  }
        .phone-link:hover { color: #FF006E; }
        
         /* Opcional: background: linear-gradient 90deg, #FF6B00 0%, #FF006E 100% */
        .text_footer_email_2 { background: #fff;
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; -webkit-text-stroke: 0px; mix-blend-mode: normal;}

        /* --- RESPONSIVE --- */
        @media (max-width: 1024px) {
            .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
    .header-bar { 
                position: fixed !important; 
                top: 15px !important;       
                left: 15px !important;      
                right: 15px !important;     
                
                transform: none !important; 
                margin-top: 0 !important;
                
                width: auto;     
                height: 70px;
                
                /* Mantenemos este padding para que el borde (píldora) respire,
                   pero usaremos márgenes negativos dentro para mover los elementos */
                padding: 5px 15px; 

                z-index: 9999; 
                border: none; 
                border-radius: 0; 
                background: transparent; 
                backdrop-filter: blur(5px); 
                -webkit-backdrop-filter: blur(5px);
            }

            .header-bar::before {
                content: "";
                position: absolute;
                inset: 0;
                border-radius: 0; 
                padding: 1px; 
                background: linear-gradient(90deg, #ccff00 0%, #ffff00 100%);
                -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                -webkit-mask-composite: xor;
                mask-composite: exclude;
                pointer-events: none;
                z-index: -1;
            }
          /* CAMBIO 2: Empujamos el Título a la derecha */
            .section-title { 
                font-size: 16px; 
                margin-left: 5px; /* Esto lo mueve a la derecha */
            }
           /* --- CAMBIO 1: Logo pegado a la izquierda --- */
            .logo-mini { 
                width: 60px; 
                padding-left: 0 !important;
                /* Margen negativo para anular parte del padding del padre y pegarse al borde */
                margin-left: -8px; 
            }
            
            /* --- CAMBIO 2: Grupo derecho pegado a la derecha --- */
            .header-right { 
                gap: 10px; /* Reduzco un pelín el hueco entre texto y hamburguesa */
                /* Margen negativo más agresivo para pegarse al borde derecho */
                margin-right: -12px; 
            }
            
            /* MÓVIL VERTICAL: 1 COLUMNA */
            .portfolio-grid { grid-template-columns: repeat(1, 1fr); } 
            
            .overlay-close { top: 20px; right: 20px; font-size: 3rem; }
            .overlay-link { font-size: 10vw; }
         
            .cursor { display: none; }
            .lb-btn { font-size: 2rem; padding: 10px; }
            .lb-prev { left: 5px; }
            .lb-next { right: 5px; }
            .lb-caption { font-size: 14px; margin-top: 15px; width: 90%; }
            .video-wrapper, .lightbox-img-content { width: 95%; }
        }

        @media (max-height: 600px) and (orientation: landscape) {
            .header-bar { height: 60px; padding: 0 20px; }
            .logo-mini { width: 50px; }
            .section-title { font-size: 14px; }
            
            /* MÓVIL HORIZONTAL: 2 COLUMNAS */
            .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
            
            .overlay-link { font-size: 8vh; }
            .video-wrapper { height: 70vh; width: auto; aspect-ratio: 16/9; }
            .lightbox-img-content { max-height: 70vh; width: auto; }
            .lb-caption { font-size: 12px; margin-top: 10px; }
        }
/* =========================================
   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); }
}
