/* CORE IDENTITY & RESET */
:root {
    --bg-void: #05020a;
    --ninblu-purple: #752c86;
    --ninblu-pink: #f4676f;
    --ninblu-yellow: #feee8c;
    --text-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 20px rgba(117, 44, 134, 0.4);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    cursor: none; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-void);
    color: var(--text-white);
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

body.menu-open { 
    overflow: hidden; 
}

/* Cursor Personalizado */
.cursor-dot, .cursor-outline {
    position: fixed; 
    top: 0; 
    left: 0;
    transform: translate(-50%, -50%); 
    border-radius: 50%;
    z-index: 9999; 
    pointer-events: none;
}

.cursor-dot { 
    width: 8px; 
    height: 8px; 
    background-color: var(--ninblu-yellow); 
}

.cursor-outline {
    width: 40px; 
    height: 40px;
    border: 1px solid var(--ninblu-pink);
    transition: width 0.2s, height 0.2s;
}

/* Fondos Animados */
#universe-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -2; 
}

#bg-logo-container {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 70vh; 
    height: 70vh; 
    opacity: 0.03; 
    z-index: -1;
    pointer-events: none; 
    fill: #fff; 
    will-change: transform;
}

#bg-logo-container svg { 
    width: 100%; 
    height: 100%; 
    animation: breathe 10s infinite ease-in-out; 
}

@keyframes breathe { 
    0%, 100% { 
        transform: scale(1); 
    } 
    50% { 
        transform: scale(1.05); 
    } 
}

/* Tipografía y Utils */
a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

ul { 
    list-style: none; 
}

h1, h2, h3 { 
    font-family: 'Inder', sans-serif; 
}

::-webkit-scrollbar { 
    width: 0; 
}

/* 2. NAVBAR & NAVIGATION */
.navbar {
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 90%; 
    max-width: 1200px; 
    padding: 0.5rem 1.5rem;
    background: rgba(10, 5, 20, 0.4);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 100px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 1000; 
    transition: all 0.4s ease;
}

.nav-brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    z-index: 1002; 
}

.ninblu-icon.nav-size svg {
    width: 35px; 
    height: auto; 
    fill: var(--ninblu-purple);
    filter: drop-shadow(0 0 10px rgba(117, 44, 134, 0.5));
    display: block;
}

.nav-brand-img { 
    height: 35px; 
    width: auto; 
    object-fit: contain; 
    border-radius: 4px; 
}

.nav-container { 
    display: flex; 
    align-items: center; 
}

.nav-links {
    display: flex; 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.02);
    padding: 5px; 
    border-radius: 50px;
}

.nav-bubble {
    position: absolute; 
    top: 5px; 
    left: 5px;
    height: calc(100% - 10px);
    background: linear-gradient(90deg, var(--ninblu-purple), var(--ninblu-pink));
    border-radius: 30px; 
    z-index: 1; 
    width: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0; 
    box-shadow: 0 0 15px var(--ninblu-purple);
}

.nav-item {
    position: relative; 
    z-index: 2; 
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem; 
    font-weight: 500; 
    color: rgba(255,255,255,0.7);
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: color 0.3s;
    white-space: nowrap; 
    cursor: pointer;
}

.nav-item:hover, .nav-item.active { 
    color: #fff; 
}

.cta-btn {
    position: relative; 
    background: transparent; 
    color: #fff;
    border: 1px solid var(--ninblu-pink); 
    padding: 0.7rem 1.8rem;
    border-radius: 30px; 
    font-weight: 700; 
    font-size: 0.8rem;
    overflow: hidden; 
    transition: 0.4s; 
    white-space: nowrap; 
    cursor: pointer;
}

.cta-btn::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 0%; 
    height: 100%;
    background: var(--ninblu-pink); 
    z-index: -1; 
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-btn:hover::before { 
    width: 100%; 
}

.cta-btn:hover { 
    box-shadow: 0 0 20px var(--ninblu-pink); 
    border-color: transparent; 
}

.hamburger { 
    display: none; 
    cursor: pointer; 
    z-index: 1002; 
}

.bar {
    display: block; 
    width: 25px; 
    height: 3px; 
    margin: 5px auto;
    transition: all 0.3s ease-in-out; 
    background-color: #fff; 
    border-radius: 3px;
}

/* Responsive Navbar */
@media (max-width: 900px) {
    .navbar { 
        width: 95%; 
        padding: 1rem; 
        background: rgba(5,2,10,0.95); 
        justify-content: center; 
        border-radius: 20px; 
    }
    
    .nav-brand { 
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%); 
    }
    
    .nav-brand-img { 
        height: 35px; 
    }
    
    .hamburger { 
        display: block; 
        position: absolute; 
        right: 20px; 
    }

    .nav-container {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh;
        background: rgba(5, 2, 10, 0.98); 
        backdrop-filter: blur(20px);
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        gap: 2rem;
        transform: translateY(-120%); 
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }
    
    .nav-container.active { 
        transform: translateY(0); 
    }

    .nav-links { 
        position: relative; 
        left: auto; 
        transform: none; 
        flex-direction: column; 
        background: transparent; 
        gap: 2rem; 
        padding: 0; 
    }
    
    .nav-item { 
        font-size: 1.5rem; 
        font-weight: 700; 
        opacity: 0; 
        transform: translateY(20px); 
        transition: 0.3s; 
    }
    
    .nav-container.active .nav-item { 
        opacity: 1; 
        transform: translateY(0); 
        transition-delay: 0.2s; 
    }
    
    .nav-bubble { 
        display: none; 
    }
    
    .cta-btn.mobile-cta { 
        margin-top: 1rem; 
        font-size: 1.2rem; 
        padding: 1rem 3rem; 
        transform: scale(0.9); 
    }

    .hamburger.active .bar:nth-child(2) { 
        opacity: 0; 
    }
    
    .hamburger.active .bar:nth-child(1) { 
        transform: translateY(8px) rotate(45deg); 
    }
    
    .hamburger.active .bar:nth-child(3) { 
        transform: translateY(-8px) rotate(-45deg); 
    }
}

/* 3. SECCIONES, HERO & ABOUT */
section { 
    padding: 80px 5%; 
    position: relative; 
    z-index: 2; 
}

section#team { 
    padding-bottom: 20px; 
}

.section-header { 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-bottom: 3rem; 
}

.section-header h2 { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}

.section-header p { 
    color: #aaa; 
    max-width: 600px; 
    font-size: 1.1rem; 
    line-height: 1.6; 
}

.hero {
    height: 100vh; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center; 
    padding: 0;
}

.hero-content { 
    z-index: 2; 
}

.hero-slogan {
    color: var(--ninblu-yellow); 
    letter-spacing: 6px; 
    margin-bottom: 1rem;
    text-transform: uppercase; 
    font-size: 0.9rem; 
    text-shadow: 0 0 10px rgba(254, 238, 140, 0.5);
}

.hero-title { 
    font-size: 4.5rem; 
    line-height: 1.1; 
    margin-bottom: 2rem; 
    font-weight: 700; 
}

.word-wrapper {
    display: inline-block; 
    position: relative; 
    height: 1.2em;
    overflow: hidden; 
    vertical-align: bottom;
    border-bottom: 3px solid var(--ninblu-pink); 
    min-width: 600px;
}

.dynamic-word {
    position: absolute; 
    width: 100%; 
    left: 0; 
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--ninblu-purple));
    background-clip: text; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    transform: translateY(100%); 
    opacity: 0;
    transition: 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
    white-space: nowrap;
}

.dynamic-word.active { 
    transform: translateY(0); 
    opacity: 1; 
}

.dynamic-word.exit { 
    transform: translateY(-100%); 
    opacity: 0; 
}

/* Responsive Hero */
@media (max-width: 900px) {
    .section { 
        padding: 60px 5%; 
    }
    
    .hero-title { 
        font-size: 2.5rem; 
    }
    
    .word-wrapper { 
        min-width: 280px; 
        max-width: 90vw; 
    }
}

.about-bento {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem;
    max-width: 1000px; 
    margin: 0 auto;
}

.bento-full {
    grid-column: 1 / -1; 
    min-height: 250px;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(117, 44, 134, 0.1) 100%);
    text-align: center;
}

.bento-half {
    min-height: 300px;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center;
    text-align: center;
}

.bento-title {
    font-family: 'Inder', sans-serif; 
    font-size: 2rem; 
    color: var(--ninblu-yellow);
    margin-bottom: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

.bento-text {
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #ccc;
    max-width: 90%;
}

/* Responsive Bento */
@media (max-width: 900px) {
    .about-bento { 
        grid-template-columns: 1fr; 
    }
}

/* 4. UI COMPONENTS & TEAM SYSTEM */
.tilt-card {
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem; 
    border-radius: 20px; 
    position: relative;
    transform-style: preserve-3d; 
    transform: perspective(1000px);
    transition: transform 0.1s; 
    backdrop-filter: blur(5px);
}

.tilt-card::after {
    content: ''; 
    position: absolute; 
    inset: 0; 
    border-radius: 20px; 
    padding: 2px;
    background: linear-gradient(135deg, transparent, var(--ninblu-purple), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; 
    -webkit-mask-composite: destination-out;
    opacity: 0.5; 
    transition: 0.3s;
}

.tilt-card:hover::after { 
    opacity: 1; 
    box-shadow: 0 0 20px rgba(117, 44, 134, 0.3); 
}

.team-reveal-stage { 
    position: relative; 
    width: 100%; 
    height: 500px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
}

.booster-pack {
    position: absolute; 
    width: 280px; 
    height: 420px; 
    z-index: 100;
    transition: transform 0.3s ease; 
    animation: floatPack 6s ease-in-out infinite; 
    cursor: pointer;
}

@keyframes floatPack { 
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    } 
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    } 
}

.click-trigger { 
    position: absolute; 
    top: 0; 
    width: 50%; 
    height: 200px; 
    z-index: 999; 
}

.trigger-left { 
    left: 0; 
}

.trigger-right { 
    right: 0; 
}

.trigger-left:hover ~ .pack-body, .trigger-right:hover ~ .pack-body { 
    box-shadow: 0 0 30px var(--ninblu-purple); 
    border-color: var(--ninblu-pink); 
}

.pack-body {
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    height: 85%;
    background: linear-gradient(135deg, #1a0b2e 0%, #000 100%);
    border: 1px solid var(--ninblu-purple); 
    border-radius: 0 0 15px 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-direction: column;
    pointer-events: none; 
    transition: 0.3s;
}

.pack-body::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background-image: radial-gradient(var(--ninblu-purple) 1px, transparent 1px); 
    background-size: 20px 20px; 
    opacity: 0.2; 
}

.pack-top {
    position: absolute; 
    top: 0; 
    width: 100%; 
    height: 16%;
    background: linear-gradient(to bottom, #2a1b3e, #1a0b2e);
    border: 1px solid var(--ninblu-purple); 
    border-bottom: 2px dashed rgba(255,255,255,0.3);
    border-radius: 15px 15px 0 0; 
    transform-origin: bottom center; 
    transition: 0.3s; 
    pointer-events: none;
}

.pack-logo {
    font-family: 'Inder', sans-serif; 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: #fff;
    text-transform: uppercase; 
    letter-spacing: 4px; 
    text-shadow: 0 0 15px var(--ninblu-purple); 
    text-align: center; 
    z-index: 2;
}

.pack-instruction {
    color: var(--ninblu-yellow); 
    font-family: 'Montserrat', sans-serif;
    margin-top: 15px; 
    font-weight: 700; 
    font-size: 0.7rem; 
    letter-spacing: 2px;
    animation: blink 2s infinite; 
    z-index: 2;
}

@keyframes blink { 
    0%, 100% { 
        opacity: 1; 
    } 
    50% { 
        opacity: 0.5; 
    } 
}

.ripped-left .pack-top { 
    animation: tearLeft 0.6s forwards cubic-bezier(0.23, 1, 0.32, 1); 
}

.ripped-right .pack-top { 
    animation: tearRight 0.6s forwards cubic-bezier(0.23, 1, 0.32, 1); 
}

@keyframes tearLeft { 
    to { 
        transform: translateX(-150px) rotate(-45deg) translateY(-50px); 
        opacity: 0; 
    } 
}

@keyframes tearRight { 
    to { 
        transform: translateX(150px) rotate(45deg) translateY(-50px); 
        opacity: 0; 
    } 
}

.fade-out { 
    opacity: 0; 
    transform: scale(2); 
    pointer-events: none; 
    transition: all 0.8s ease; 
    filter: blur(10px); 
}

.carousel-viewport {
    position: absolute; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 1s ease; 
    z-index: 10;
    display: flex; 
    align-items: center; 
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.carousel-viewport.active { 
    opacity: 1; 
    visibility: visible; 
}

.carousel-track { 
    display: flex; 
    gap: 40px; 
    width: max-content; 
}

.carousel-viewport.active .carousel-track { 
    animation: scroll-seamless 30s linear infinite; 
}

.carousel-track:hover { 
    animation-play-state: paused !important; 
}

@keyframes scroll-seamless { 
    0% { 
        transform: translateX(0); 
    } 
    100% { 
        transform: translateX(calc(var(--scroll-distance) * -1)); 
    } 
}

.team-card {
    width: 260px; 
    height: 400px; 
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; 
    padding: 10px; 
    flex-shrink: 0; 
    position: relative; 
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover {
    transform: scale(1.05) translateY(-15px); 
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ninblu-purple); 
    box-shadow: 0 0 30px rgba(117, 44, 134, 0.4); 
    z-index: 50;
}

.card-inner { 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    border-radius: 12px; 
}

.card-portrait-frame { 
    height: 60%; 
    width: 100%; 
    position: relative; 
    overflow: hidden; 
    border-bottom: 2px solid var(--accent); 
}

.card-portrait img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(100%); 
    transition: 0.5s; 
}

.team-card:hover .card-portrait img { 
    filter: grayscale(0%); 
    transform: scale(1.1); 
}

.agency-logo-badge {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    width: 30px; 
    height: 30px;
    background: rgba(0,0,0,0.6); 
    border-radius: 5px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 5;
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.3);
}

.card-content { 
    height: 40%; 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.card-name { 
    font-family: 'Inder', sans-serif; 
    font-size: 1.2rem; 
    color: #fff; 
    margin: 0; 
    text-transform: uppercase; 
}

.card-role { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.8rem; 
    color: var(--accent); 
    font-weight: 600; 
    text-transform: uppercase; 
}

.specialties-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 5px; 
    margin-top: 10px; 
}

.spec-tag { 
    background: rgba(255,255,255,0.1); 
    color: #ccc; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 0.6rem; 
    font-weight: 500; 
    border: 1px solid rgba(255,255,255,0.05); 
}

/* Responsive Team */
@media (max-width: 900px) {
    .team-reveal-stage { 
        height: 450px; 
    }
    
    .carousel-track { 
        gap: 15px; 
    } 
    
    .carousel-viewport.active .carousel-track { 
        animation-duration: 20s; 
    } 
    
    .team-card { 
        width: 240px; 
        height: 380px; 
    }
    
    .booster-pack { 
        width: 240px; 
        height: 380px; 
    }
}

/* 5. SCROLL INMERSIVO 3D */
.immersive-section {
    padding: 0;
    height: 150vh; 
    position: relative; 
    z-index: 10;
}

.scroll-trigger { 
    height: 100%; 
    width: 100%; 
}

.sticky-viewport {
    position: sticky; 
    top: 0;
    height: 100vh; 
    width: 100%;
    overflow: hidden;
    display: flex; 
    justify-content: center; 
    align-items: flex-start;
    padding-top: 20vh; 
    perspective: 400px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.scene-3d {
    position: relative; 
    width: 90%; 
    max-width: 800px; 
    height: auto;
    display: flex; 
    justify-content: center;
    transform: rotateX(20deg); 
    transform-style: preserve-3d;
}

.crawl-content {
    position: relative; 
    width: 100%; 
    text-align: center; 
    color: #fff;
    will-change: transform;
}

.crawl-title {
    font-family: 'Inder', sans-serif; 
    font-size: 5rem;
    line-height: 0.9; 
    margin-bottom: 3rem;
    text-shadow: 0 0 20px var(--ninblu-purple);
}

.crawl-title span { 
    color: transparent; 
    -webkit-text-stroke: 2px var(--ninblu-pink); 
}

.crawl-text {
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.8rem;
    line-height: 1.5; 
    font-weight: 600; 
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.highlight { 
    color: var(--ninblu-yellow); 
}

.highlight-pink { 
    color: var(--ninblu-pink); 
}

.final-statement {
    font-size: 2.5rem; 
    font-weight: 900; 
    letter-spacing: 5px;
    margin-top: 5rem; 
    margin-bottom: 0;
    color: var(--ninblu-purple); 
    text-shadow: 0 0 15px var(--ninblu-purple);
}

/* Responsive Immersive */
@media (max-width: 900px) {
    .immersive-section { 
        height: 150vh; 
    }
    
    .crawl-title { 
        font-size: 3rem; 
    }
    
    .crawl-text { 
        font-size: 1.2rem; 
    }
}

/* 6. SERVICIOS, PROYECTOS Y ALIADOS */
.flex-center-grid {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 2rem; 
    max-width: 1200px; 
    margin: 0 auto;
}

.service-card {
    flex: 1 1 300px; 
    max-width: 350px; 
    text-align: center;
}

.service-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    color: var(--ninblu-yellow); 
}

.service-card p { 
    color: #ccc; 
}

/* PROYECTOS: Grid Centrada */
.projects-scroller {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; 
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap; /* Grilla */
    justify-content: center; /* Centrado */
    gap: 2rem;
    overflow-x: visible; 
    scroll-snap-type: none;
}

.projects-scroller::-webkit-scrollbar { 
    display: none; 
}

.project-mini-card {
    width: 350px; 
    height: 400px;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; 
    overflow: hidden; 
    position: relative;
    transition: transform 0.3s ease;
    display: flex; 
    flex-direction: column;
    margin: 0; 
    flex-shrink: 0;
    scroll-snap-align: unset;
}

.project-img { 
    height: 70%; 
    width: 100%; 
    overflow: hidden; 
}

.project-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.project-mini-card:hover .project-img img { 
    transform: scale(1.1); 
}

.project-info {
    height: 30%; 
    padding: 1rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    background: rgba(0,0,0,0.4);
}

.project-info h3 { 
    font-size: 1.2rem; 
    color: var(--ninblu-yellow); 
    margin-bottom: 5px; 
}

.project-info p { 
    font-size: 0.9rem; 
    color: #ccc; 
}

.center-btn-container { 
    display: flex; 
    justify-content: center; 
    margin-top: 3rem; 
}

/* Responsive Proyectos */
@media (max-width: 900px) {
    .project-mini-card { 
        width: 100%; 
        max-width: 350px; 
        height: 350px; 
    }
}

/* ALIADOS ESTRATÉGICOS (LOOP INFINITO) */
.clients-section {
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
}

.clients-header { 
    text-align: center; 
    margin-bottom: 20px; 
}

.clients-header h3 {
    font-family: 'Inder', sans-serif; 
    font-size: 1.5rem;
    color: var(--ninblu-yellow); 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    margin-bottom: 10px;
}

.separator-line { 
    width: 60px; 
    height: 2px; 
    background: var(--ninblu-purple); 
    margin: 0 auto; 
}

/* Contenedor principal de la pista */
.marquee-track {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 20px 0;
}

/* La pista que se mueve */
.marquee-content {
    display: flex;
    gap: 0;
    width: max-content; 
    flex-wrap: nowrap; 
    will-change: transform;
}

/* Animación IZQUIERDA */
.marquee-content.scroll-left {
    animation: fixedScrollLeft 60s linear infinite;
}

/* Animación DERECHA */
.marquee-content.scroll-right {
    animation: fixedScrollRight 60s linear infinite;
}

.client-logo {
    flex: 0 0 250px;
    width: 250px;
    height: 100px;
    padding: 0 20px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0.4; 
    transition: 0.3s;
    filter: grayscale(100%) brightness(200%);
}

.client-logo img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

.client-logo:hover { 
    opacity: 1; 
    filter: grayscale(0%) brightness(100%); 
    transform: scale(1.1); 
}

/* KEYFRAMES */
@keyframes fixedScrollLeft {
    0% { 
        transform: translate3d(0, 0, 0); 
    }
    100% { 
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes fixedScrollRight {
    0% { 
        transform: translate3d(-50%, 0, 0);
    }
    100% { 
        transform: translate3d(0, 0, 0); 
    }
}

/* RESPONSIVE ALIADOS */
@media (max-width: 900px) {
    .client-logo { 
        flex: 0 0 150px; 
        width: 150px; 
    }
    
    .marquee-content.scroll-left,
    .marquee-content.scroll-right {
        animation-duration: 40s;
    }
}

/* 7. UI OVERLAYS & FOOTER */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(5, 2, 10, 0.9); 
    z-index: 2000;
    display: flex; 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.4s ease; 
    backdrop-filter: blur(10px);
}

.modal-overlay.active { 
    opacity: 1; 
    pointer-events: all; 
}

.modal-content {
    background: rgba(20, 20, 30, 0.8); 
    border: 1px solid var(--ninblu-pink);
    box-shadow: 0 0 50px rgba(244, 103, 111, 0.2); 
    width: 90%; 
    max-width: 450px;
    border-radius: 20px; 
    overflow: hidden; 
    position: relative;
    transform: translateY(50px); 
    transition: 0.4s;
}

.modal-overlay.active .modal-content { 
    transform: translateY(0); 
}

.modal-close {
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: rgba(0,0,0,0.5); 
    color: #fff; 
    border: 1px solid #fff;
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 20; 
    transition: 0.3s;
}

.modal-close:hover { 
    background: var(--ninblu-pink); 
    border-color: var(--ninblu-pink); 
}

.modal-image-container { 
    width: 100%; 
    height: 250px; 
    position: relative; 
}

.modal-image-container img.profile-pic { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.modal-agency-logo {
    position: absolute; 
    bottom: -25px; 
    right: 25px; 
    width: 60px; 
    height: 60px;
    background: #000; 
    border: 2px solid var(--ninblu-purple); 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 10; 
    overflow: hidden;
}

.modal-info { 
    padding: 35px 25px 25px; 
    text-align: left; 
}

.modal-info h2 { 
    font-family: 'Inder', sans-serif; 
    color: #fff; 
    margin: 0; 
    font-size: 1.8rem; 
}

.modal-info h3 { 
    font-family: 'Montserrat', sans-serif; 
    margin: 5px 0 15px; 
    color: var(--ninblu-yellow); 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
}

.modal-bio { 
    color: #ccc; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    font-size: 0.9rem; 
}

.flash { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #fff; 
    opacity: 0; 
    pointer-events: none; 
    z-index: 3000; 
    transition: opacity 0.5s; 
    mix-blend-mode: overlay; 
}

.flash.on { 
    opacity: 1; 
}

.contact-wrap { 
    max-width: 700px; 
    margin: 0 auto; 
    background: rgba(117, 44, 134, 0.05); 
    padding: 3rem; 
    border-radius: 30px; 
    border: 1px solid var(--glass-border); 
}

.form-input {
    width: 100%; 
    background: transparent; 
    border: none; 
    border-bottom: 2px solid #333;
    padding: 1rem 0; 
    color: #fff; 
    margin-bottom: 2rem; 
    font-family: inherit; 
    font-size: 1.1rem; 
    transition: 0.3s;
}

textarea.form-input.message-box { 
    resize: vertical; 
    min-height: 150px; 
    line-height: 1.6; 
}

.form-input:focus { 
    outline: none; 
    border-bottom-color: var(--ninblu-pink); 
}

.submit-btn {
    width: 100%; 
    padding: 1.2rem; 
    background: linear-gradient(90deg, var(--ninblu-purple), var(--ninblu-pink));
    border: none; 
    border-radius: 50px; 
    color: #fff; 
    font-weight: 900; 
    letter-spacing: 2px;
    text-transform: uppercase; 
    cursor: pointer; 
    transition: 0.3s;
}

.submit-btn:hover { 
    transform: scale(1.02); 
    box-shadow: 0 0 30px var(--ninblu-purple); 
}

footer { 
    padding: 4rem; 
    text-align: center; 
    opacity: 0.6; 
    font-size: 0.8rem; 
}

/* ESTILOS MODAL DE PROYECTOS */
.project-modal-content {
    background: rgba(10, 5, 20, 0.95);
    border: 1px solid var(--ninblu-yellow);
    box-shadow: 0 0 50px rgba(254, 238, 140, 0.15);
    width: 95%;
    max-width: 600px;
}

.project-media-view {
    width: 100%;
    height: 300px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-media-view img, 
.project-media-view video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajuste para que el video no se salga */
.modal-info .cta-btn {
    padding: 0.5rem 1.5rem;
    border-color: var(--ninblu-yellow);
}

.modal-info .cta-btn::before {
    background: var(--ninblu-yellow);
}

.modal-info .cta-btn:hover {
    box-shadow: 0 0 20px var(--ninblu-yellow);
    color: #000;
}

/* Loader simple */
@keyframes pulse-loader { 
    0% { 
        opacity: 0.5; 
    } 
    100% { 
        opacity: 1; 
    } 
}

#loader-projects { 
    animation: pulse-loader 0.8s infinite alternate; 
    font-family: 'Montserrat'; 
    letter-spacing: 2px; 
    font-size: 0.8rem; 
}

/* OVERRIDES PARA INTL-TEL-INPUT (Dark Mode) */
.iti { 
    width: 100%; 
}

/* Color del texto del input */
.iti__tel-input {
    background: transparent !important;
    color: #fff !important;
    border: none;
    border-bottom: 2px solid #333;
    border-radius: 0;
    padding-left: 90px !important;
}

.iti__tel-input:focus {
    border-bottom-color: var(--ninblu-pink);
    outline: none;
}

/* El menú desplegable de países */
.iti__country-list {
    background-color: #0a0514;
    color: #fff;
    border: 1px solid var(--ninblu-purple);
}

/* Hover en los países */
.iti__country.iti__highlight {
    background-color: var(--ninblu-purple);
}

/* Color del dial code (+52, etc) en la lista */
.iti__dial-code {
    color: #aaa;
}

/* FOOTER STYLES */
footer {
    padding: 3rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(5, 2, 10, 0.8) 100%);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Iconos Sociales */
.footer-socials {
    display: flex;
    gap: 2rem;
}

.social-link {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efectos Hover Específicos */
.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
}

/* Colores de marca al hacer hover */
.social-link:hover .fa-whatsapp {
    color: #25D366;
    text-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

.social-link:hover .fa-instagram {
    color: var(--ninblu-pink);
    text-shadow: 0 0 15px rgba(244, 103, 111, 0.6);
}

.social-link:hover .fa-envelope {
    color: var(--ninblu-yellow);
    text-shadow: 0 0 15px rgba(254, 238, 140, 0.6);
}

/* Copyright Text */
.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.copyright strong {
    color: var(--ninblu-purple);
    font-weight: 700;
}