/* Base & Reset */
body { margin: 0; overflow-x: hidden; cursor: none; }

/* Grid de Fondo (Efecto Tech/Académico) */
.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(128, 128, 128, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 128, 128, 0.1) 1px, transparent 1px);
}

/* Custom Cursor - Azul Cian CI-MAP (A PRUEBA DE FALLOS) */
.cursor-dot, .cursor-outline { 
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); 
    border-radius: 50%; z-index: 10000; pointer-events: none; 
}
.cursor-dot { 
    width: 8px; height: 8px; background-color: #00AEEF; 
}
.cursor-outline { 
    width: 40px; height: 40px; border: 1px solid rgba(0, 174, 239, 0.5); 
    transition: width 0.2s, height 0.2s, background-color 0.2s; 
}
.hover-active .cursor-outline { 
    width: 60px; height: 60px; background-color: rgba(0, 174, 239, 0.1); 
    border-color: transparent; backdrop-filter: blur(2px); 
}

/* Utilidades de Texto Transparente con Borde */
.text-outline { 
    -webkit-text-stroke: 2px rgba(18, 37, 86, 0.8); 
    color: transparent; 
}
.dark .text-outline { 
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7); 
    color: transparent; 
}

/* Animación Revelado de Texto GSAP */
.clip-text { 
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%); 
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1); 
}
.clip-text.is-visible { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }

/* Bento Cards - Glow Azul Magnético */
.bento-card {
    position: relative; overflow: hidden; transition: border-color 0.5s;
}
.bento-card::before {
    content: ""; position: absolute; top: var(--y); left: var(--x); transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 174, 239, 0.15) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 0;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover { border-color: rgba(0, 174, 239, 0.5); }

/* Cinta Marquee Animada */
.marquee-container { 
    overflow: hidden; white-space: nowrap; width: 100%; display: flex; padding: 20px 0; 
}
.marquee-content { display: flex; animation: marquee 20s linear infinite; }
.marquee-content span { 
    font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; 
    margin: 0 40px; text-transform: uppercase; 
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Navegación Enlaces Top */
.nav-link {
    position: relative; display: inline-block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
    will-change: transform;
}
.nav-link:hover {
    transform: scale(1.2); color: #00AEEF !important;
}
.nav-link::after {
    content: ''; position: absolute; width: 100%; height: 2px;
    bottom: -4px; left: 0; background-color: #00AEEF;
    transform: scaleX(0); transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }