/* CSS Principal - Fotosrunners Premium (Efectos Awwwards) */

@font-face {
    font-family: 'Mokoto';
    src: url('fonts/mokoto.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    /* Custom Scrollbar Premium */
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #0f172a;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 20px;
}

/* --- CUSTOM CURSOR --- */
@media (pointer: fine) {
    body {
        cursor: none;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #3b82f6;
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 999999;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(59, 130, 246, 0.5);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 999998;
        transform: translate(-50%, -50%);
    }

    .cursor-hover .cursor-dot {
        width: 12px;
        height: 12px;
        background-color: #fff;
        box-shadow: 0 0 15px #fff;
        transition: width 0.3s, height 0.3s, background-color 0.3s, box-shadow 0.3s;
    }

    .cursor-hover .cursor-outline {
        width: 50px;
        height: 50px;
        border-color: rgba(255, 255, 255, 0.4);
        background-color: rgba(255, 255, 255, 0.05);
        transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
    }
}

/* --- LENIS SMOOTH SCROLLING --- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --- ANIMACIONES DE ENTRADA (Scroll) --- */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    /* Curva muy elegante tipo Apple */
}

.reveal.active {
    opacity: 1;
}

.reveal-up {
    transform: translateY(60px) scale(0.98);
}

.reveal-up.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

.reveal-scale {
    transform: scale(0.9);
    filter: blur(10px);
}

.reveal-scale.active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
}

/* Entrada en cascada premium para grids eliminada por saturación de renderizado */

/* --- EFECTOS DE FONDO AMBIENTALES --- */
.hero-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* Spotlight (foco que sigue al ratón) */
.spotlight {
    background: radial-gradient(circle 800px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.15) 0%, transparent 80%);
    will-change: background;
}

/* Kinetic Speed Lines (Runner Vibe) */
@keyframes speedLine {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.animate-speed-line-1 {
    animation: speedLine 4s infinite linear;
}

.animate-speed-line-2 {
    animation: speedLine 6s infinite linear 2s;
}

.animate-speed-line-3 {
    animation: speedLine 3.5s infinite linear 1s;
}

/* --- EFECTOS PREMIUM PARA TEXTOS --- */
/* Gradiente animado (Shimmer) para textos grandes */
@keyframes textShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background-color: #fff;
    background-image: linear-gradient(to right, #ffffff 20%, #3b82f6 40%, #8b5cf6 60%, #ffffff 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShimmer 6s linear infinite;
}

/* --- EFECTOS PREMIUM PARA NAVEGACIÓN --- */
/* Sustituimos el aburrido subrayado por un pill brillante y magnético */
.nav-pill {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.15);
    /* Azul translúcido */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transform: scale(0.8);
    opacity: 0;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* --- EFECTOS PREMIUM PARA TARJETAS (CARDS) --- */
/* Efecto de cristal con borde brillante dinámico */
.glass-card-premium {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Shine Effect Sweep (El destello de luz cruzando la tarjeta) */
.glass-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 10;
    pointer-events: none;
}

.glass-card-premium:hover::after {
    left: 200%;
    transition-duration: 1s;
}

.glass-card-premium:hover {
    box-shadow: 0 30px 50px -15px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(255, 255, 255, 0.05) inset;
    border-color: rgba(59, 130, 246, 0.6);
}

/* Imagen de la tarjeta haciendo Zoom sutil pero con POP OUT 3D! */
.glass-card-premium .card-img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(15px) scale(1.02);
    /* Efecto 3D Popup out más sutil */
}

.glass-card-premium:hover .card-img {
    transform: translateZ(30px) scale(1.08);
}

/* --- BOTONES PREMIUM --- */
.pulse-btn {
    position: relative;
    overflow: hidden;
}

.pulse-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.pulse-btn:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }
}

.pulse-btn {
    animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}