@import url('fonts.css');

:root {
    --bg-dark: #070709;
    --bg-card: #121217;
    --pink: #d972aa;
    --pink-glow: rgba(217, 114, 170, 0.4);
    --cyan: #4DEDFF;
    --white: #ffffff;
    --gray: #A0AEC0;
    
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section-padding {
    padding: 120px 0;
}

/* Custom Cursor */
.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(--pink);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--pink-glow);
    transition: width 0.2s, height 0.2s;
}

/* Navbar */
header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}
header.scrolled {
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img {
    height: 50px;
    transition: var(--transition);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    position: relative;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--pink);
}
.nav-btn {
    padding: 10px 25px;
    border: 2px solid var(--pink);
    border-radius: 30px;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}
.nav-btn:hover {
    background: var(--pink);
    box-shadow: 0 0 20px var(--pink-glow);
}

/* Menu Toggle Mobile */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}
.menu-line {
    width: 30px; height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%),
                linear-gradient(to bottom, rgba(7,7,9,0.3) 0%, var(--bg-dark) 100%);
}

/* Neon Lines Animation */
.neon-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    height: 2px;
    width: 200px;
    filter: blur(2px) drop-shadow(0 0 10px var(--pink));
    animation: shoot 4s infinite linear;
    opacity: 0.6;
}
.line-1 { top: 20%; left: -200px; animation-delay: 0s; }
.line-2 { top: 50%; left: -200px; width: 300px; animation-delay: 1.5s; background: linear-gradient(90deg, transparent, var(--cyan), transparent); filter: blur(2px) drop-shadow(0 0 10px var(--cyan)); }
.line-3 { top: 80%; left: -200px; animation-delay: 2.8s; }

@keyframes shoot {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(120vw); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.glitch-text {
    font-size: 5vw;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    color: var(--white);
    letter-spacing: -2px;
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--cyan);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--pink);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(80% 0 5% 0); }
    40% { clip-path: inset(30% 0 20% 0); }
    60% { clip-path: inset(70% 0 10% 0); }
    80% { clip-path: inset(20% 0 50% 0); }
    100% { clip-path: inset(50% 0 30% 0); }
}

.hero-subtitle {
    font-size: 4vw;
    margin-top: -10px;
    margin-bottom: 20px;
}
.text-pink {
    color: var(--pink);
    text-shadow: 0 0 20px var(--pink-glow);
}
.hero-desc {
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.8;
}
.scroll-down {
    position: absolute;
    bottom: -10vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}
.arrow-down {
    width: 2px; height: 40px;
    background: linear-gradient(transparent, var(--white));
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Marquee */
.marquee-container {
    width: 100%;
    padding: 20px 0;
    background: var(--pink);
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    transform: rotate(-2deg) scale(1.05);
    margin: -30px 0 50px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 30px var(--pink-glow);
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.marquee-content span {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 20px;
}
.marquee-content .dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--bg-dark);
    border-radius: 50%;
    margin: 0 20px;
    vertical-align: middle;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Titles */
.section-tag {
    font-size: 0.9rem;
    color: var(--cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
}
.section-title span {
    color: var(--pink);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.image-mask {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    padding-top: 120%; /* aspect ratio */
}
.image-mask img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition);
}
.about-visual:hover .image-mask img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.about-visual {
    position: relative;
}
.floating-badge {
    position: absolute;
    bottom: -30px; right: -30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.floating-badge h3 {
    font-size: 2.5rem;
    color: var(--cyan);
}

.lead {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
}
.about-text p {
    margin-bottom: 30px;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.mv-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border-top: 2px solid var(--pink);
    transition: var(--transition);
}
.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--pink-glow);
}
.mv-icon {
    width: 40px; height: 40px;
    color: var(--pink);
    margin-bottom: 20px;
}
.mv-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.mv-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Services Bento Grid */
.text-center { text-align: center; margin-bottom: 60px; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 20px;
}
.bento-box {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}
.bento-box:hover {
    transform: scale(0.98);
    border-color: var(--pink);
}
.bento-large {
    grid-row: span 2;
    grid-column: span 1;
}
.bento-wide {
    grid-column: span 2;
}
.bento-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: grayscale(80%) brightness(0.6);
    transition: var(--transition);
}
.bento-box:hover .bento-bg {
    filter: grayscale(0%) brightness(0.4);
    transform: scale(1.1);
}
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card) 10%, transparent 100%);
    z-index: 2;
}
.dark-bg {
    background: radial-gradient(circle at top right, var(--pink-glow), transparent 60%);
}
.neon-mesh {
    background-image: 
        linear-gradient(rgba(217,114,170,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217,114,170,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
}

.bento-content {
    position: relative;
    z-index: 3;
}
.bento-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--cyan);
}
.bento-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.bento-content p {
    font-size: 0.95rem;
    opacity: 0.8;
}
.icon-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(217,114,170,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.icon-circle svg { width: 30px; height: 30px; }

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
}
.flex-1 { max-width: 60%; }

.btn-outline-pink {
    padding: 15px 30px;
    border: 2px solid var(--pink);
    border-radius: 30px;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-outline-pink:hover {
    background: var(--pink);
    box-shadow: 0 0 20px var(--pink-glow);
}

/* Timeline (Metodologia) */
.timeline {
    max-width: 800px;
    margin: 80px auto 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--pink-glow), transparent);
}
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}
.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: var(--transition);
}
.timeline-content:hover {
    border-color: var(--pink);
    box-shadow: 0 10px 30px var(--pink-glow);
    transform: translateY(-5px);
}
.timeline-num {
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
    position: absolute;
    top: -20px;
    opacity: 0.5;
}
.timeline-item:nth-child(odd) .timeline-num { right: 20px; }
.timeline-item:nth-child(even) .timeline-num { left: 20px; }

.timeline-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--cyan);
    position: relative;
    z-index: 2;
}
.timeline-content p {
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}
.timeline-dot {
    width: 20px; height: 20px;
    background: var(--bg-dark);
    border: 4px solid var(--pink);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--pink);
    z-index: 2;
}

/* Metrics Section */
.metrics {
    position: relative;
    padding: 80px 0;
    background: var(--pink);
    color: var(--bg-dark);
    overflow: hidden;
}
.metrics-bg {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 8px);
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}
.metric-box {
    text-align: center;
    padding: 30px;
}
.metric-num {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--bg-dark);
}
.metric-box p {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Scroll Reveals */
.reveal-up { opacity: 0; transform: translateY(50px); transition: 0.8s ease-out; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: 0.8s ease-out; }
.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 20px;
    background: #040406;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.f-brand img {
    height: 80px;
    margin-bottom: 20px;
}
.f-brand p {
    max-width: 300px;
    font-size: 1.1rem;
}
.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--cyan);
}
.f-list {
    list-style: none;
}
.f-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.f-list svg {
    width: 24px; height: 24px;
    color: var(--pink);
    flex-shrink: 0;
}
.f-list a:hover {
    color: var(--pink);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .menu-btn { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; left: 100%;
        width: 100%; height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    .nav-links.active { left: 0; }
    
    .glitch-text { font-size: 8vw; }
    .hero-subtitle { font-size: 6vw; }
    
    .about-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; }
    
    .flex-row { flex-direction: column; align-items: flex-start; gap: 30px; }
    .flex-1 { max-width: 100%; }
    
    .footer-top { grid-template-columns: 1fr; }
    
    /* Mobile Timeline Fix */
    .timeline::before { left: 15px; transform: none; }
    .timeline-item { flex-direction: row !important; justify-content: flex-end; gap: 20px; margin-bottom: 40px; }
    .timeline-content { width: calc(100% - 45px); text-align: left !important; padding: 20px; }
    .timeline-dot { left: 15px; transform: translateX(-50%); }
    .timeline-item:nth-child(even) .timeline-num, .timeline-item:nth-child(odd) .timeline-num {
        right: 15px; left: auto;
    }
    
    /* Mobile Metrics Marquee */
    .metrics { padding: 40px 0; overflow: hidden; }
    .metrics-grid {
        display: flex;
        gap: 50px;
        width: max-content;
        animation: scroll-metrics 15s linear infinite;
    }
    .metric-box { padding: 0; min-width: 180px; }
    .metric-num { font-size: 3rem; }
    
    /* Disable custom cursor on mobile */
    .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto; }
}

@keyframes scroll-metrics {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
