:root {
    --bg-primary: #020202;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #0066ff; /* Un azul corporativo eléctrico B2B */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-primary); color: var(--text-primary);
    font-family: 'Inter', sans-serif; overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Cursor Custom */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); border-radius: 50%;
}
.cursor-dot { width: 8px; height: 8px; background: var(--accent); transition: width 0.3s, height 0.3s; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(0, 102, 255, 0.4); transition: width 0.3s, height 0.3s, border-color 0.3s; }
body:hover .cursor-ring { border-color: var(--accent); width: 60px; height: 60px; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: difference;
}
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.05em; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { color: var(--text-primary); text-decoration: none; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Hero */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding: 0 20px;
}
.hero-content { max-width: 900px; }
.hero-subtitle { font-size: 1rem; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; margin-bottom: 20px; }
.hero-name { font-size: 6vw; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 30px; }
.hero-desc { font-size: 1.5rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 50px; }
.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 15px 35px; border-radius: 30px; font-size: 1rem; font-weight: 600;
    text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(0,102,255,0.4); transform: scale(1.05); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); transform: scale(1.05); }

/* Animaciones Text Clip Reveal */
.clip-reveal-fast { overflow: hidden; }
.clip-reveal-fast > * { display: block; }
.clip-reveal { overflow: hidden; }
.clip-reveal h2, .clip-reveal p, .clip-reveal h3, .clip-reveal div { transform: translateY(110%); opacity: 0; }

/* 2. MÉTRICAS */
.metrics-section { padding: 80px 20px; background: #050505; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.metrics-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; }
.metric-item { text-align: center; }
.metric-item h2 { display: inline-block; font-size: 5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1; }
.metric-item span { font-size: 4rem; color: var(--accent); font-weight: 700; }
.metric-item p { font-size: 1.1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

/* 3. INDUSTRIAS */
.industries-section { max-width: 1200px; margin: 15vh auto; padding: 0 20px; }
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.industry-card { background: var(--bg-secondary); padding: 40px 30px; border-radius: 20px; border: 1px solid var(--glass-border); transition: transform 0.3s, border-color 0.3s; }
.industry-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.industry-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-primary); }
.industry-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

/* 4. METODOLOGÍA */
.process-section { max-width: 1200px; margin: 15vh auto; padding: 0 20px; }
.process-timeline { display: flex; flex-direction: column; gap: 40px; border-left: 2px solid var(--glass-border); padding-left: 40px; position: relative; }
.process-step { position: relative; }
.step-number { position: absolute; left: -85px; top: 0; font-size: 1.2rem; font-weight: 700; color: var(--bg-primary); background: var(--accent); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 4px solid var(--bg-primary); }
.step-content { background: var(--bg-secondary); padding: 30px; border-radius: 20px; border: 1px solid var(--glass-border); }
.step-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-primary); }
.step-content p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

/* 5. POR QUÉ VALLAGUE (Rediseño Grid) */
.why-us-section { max-width: 1200px; margin: 15vh auto; padding: 0 20px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.why-card { background: rgba(0, 102, 255, 0.05); border: 1px solid rgba(0, 102, 255, 0.2); padding: 40px 30px; border-radius: 24px; transition: transform 0.3s, background 0.3s; }
.why-card:hover { transform: translateY(-5px); background: rgba(0, 102, 255, 0.1); }
.why-icon { font-size: 2.5rem; margin-bottom: 20px; }
.why-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-primary); }
.why-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

/* 6. TECH STACK (Marquee Infinito) */
.stack-marquee-section { padding: 40px 0; background: #050505; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); overflow: hidden; margin-bottom: 15vh; }
.marquee-wrapper { display: flex; width: max-content; }
.marquee-content { display: flex; align-items: center; white-space: nowrap; animation: scroll-left 30s linear infinite; }
.marquee-content span { font-size: 3rem; font-weight: 700; color: var(--text-primary); margin: 0 40px; text-transform: uppercase; }
.marquee-content .dot { font-size: 2rem; color: var(--accent); margin: 0; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 8. TESTIMONIOS */
.testimonials-section { max-width: 1200px; margin: 15vh auto; padding: 0 20px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.testimonial-card { background: var(--bg-secondary); padding: 40px; border-radius: 20px; border: 1px solid var(--glass-border); position: relative; }
.testimonial-card::before { content: '"'; font-size: 6rem; color: rgba(255,255,255,0.05); position: absolute; top: 10px; left: 20px; line-height: 1; }
.quote { font-size: 1.2rem; font-style: italic; color: var(--text-primary); line-height: 1.6; margin-bottom: 30px; position: relative; z-index: 1; }
.author-info h4 { font-size: 1.1rem; color: var(--accent); margin-bottom: 5px; }
.author-info span { font-size: 0.9rem; color: var(--text-secondary); }

/* 9. PREGUNTAS FRECUENTES (FAQ) */
.faq-section { max-width: 800px; margin: 15vh auto; padding: 0 20px; }
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--glass-border); overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 25px; font-size: 1.2rem; font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s; color: var(--accent); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: #080808; }
.faq-answer p { padding: 0 25px 25px; font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

/* 10. CTA PRE-FOOTER */
.cta-section { background: #050505; border-top: 1px solid var(--glass-border); padding: 120px 20px; text-align: center; color: #fff; margin-bottom: 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(0,102,255,0.1) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.cta-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.cta-content h2 { font-size: 4.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.04em; line-height: 1.1; color: var(--text-primary);}
.cta-content p { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 40px; }
.cta-section .btn-primary.magnetic { background: var(--accent); color: var(--bg-primary); border: none; }
.cta-section .btn-primary.magnetic:hover { box-shadow: 0 10px 30px rgba(0,102,255,0.4); transform: translateY(-3px); }
/* 7. Bento Skills (Servicios) */
.skills-section { max-width: 1200px; margin: 0 auto 15vh; padding: 100px 20px 0; }
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 3.5rem; letter-spacing: -0.03em; margin-bottom: 15px; }
.section-header p { font-size: 1.2rem; color: var(--accent); }

.bento-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px; auto-rows: minmax(300px, auto);
}
.bento-box {
    background: var(--bg-secondary); border-radius: 24px; padding: 40px;
    box-shadow: inset 0 0 0 1px var(--glass-border);
    display: flex; flex-direction: column; justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.bento-box:hover {
    transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--accent);
}
.bento-box h3 { font-size: 1.8rem; margin-bottom: 15px; }
.bento-box p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

/* Proyectos (Scroll Horizontal) */
.projects-section { margin-bottom: 15vh; position: relative; }
.projects-container { position: relative; width: 100%; }
.projects-header { padding: 0 50px; margin-bottom: 50px; }
.projects-header h2 { font-size: 4rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.projects-header p { font-size: 1.2rem; color: var(--text-secondary); }

.horizontal-scroll-wrapper { width: 100%; height: 100vh; overflow: hidden; position: relative; }
.horizontal-track { display: flex; gap: 50px; padding: 0 50px; height: 100%; align-items: center; width: max-content; will-change: transform; }

.project-card {
    min-width: 600px; height: 500px; background: var(--bg-secondary);
    border-radius: 32px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: inset 0 0 0 1px var(--glass-border); transition: transform 0.3s ease;
}
.project-img-wrapper { width: 100%; height: 240px; background: #0a0a0a; overflow: hidden; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img-wrapper img { transform: scale(1.05); }

.project-info { padding: 30px 40px; display: flex; flex-direction: column; flex: 1; }
.project-info h3 { font-size: 2rem; margin-bottom: 15px; }
.project-info p { font-size: 1rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 20px; }
.tech-tag {
    display: inline-block; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--glass-border);
    font-size: 0.75rem; color: var(--text-secondary); margin-right: 8px; margin-bottom: 8px;
}
.project-links { margin-top: auto; }
.project-btn {
    display: inline-block; padding: 10px 24px; background: var(--text-primary); color: var(--bg-primary);
    border-radius: 20px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.3s; cursor: none;
}
.project-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(255,255,255,0.3); }

/* Contact Footer */
.contact-section { padding: 100px 20px 50px; background: #050505; text-align: left; }
.contact-content { max-width: 1200px; margin: 0 auto; }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; margin-bottom: 50px;
}
.contact-item h3 { font-size: 2rem; margin-bottom: 10px; color: var(--text-primary); }
.contact-desc { font-size: 1rem; color: var(--text-secondary); margin-bottom: 30px; line-height: 1.6; }
.contact-link {
    display: block; font-size: 1.5rem; font-weight: 600; color: var(--text-primary);
    text-decoration: none; margin-bottom: 10px; transition: color 0.3s; width: max-content;
}
.contact-link:hover { color: var(--accent); }
.contact-location { font-size: 1rem; color: var(--text-secondary); margin-top: 20px; }

/* Form Styles */
.contact-form-wrapper form { display: flex; flex-direction: column; gap: 15px; }
.input-wrapper { display: flex; gap: 15px; }
.form-input {
    width: 100%; background: #111; border: 1px solid var(--glass-border);
    padding: 15px 20px; border-radius: 12px; color: var(--text-primary);
    font-family: 'Inter', sans-serif; font-size: 1rem; outline: none; transition: border-color 0.3s;
}
.form-input:focus { border-color: var(--accent); }
textarea.form-input { min-height: 120px; resize: vertical; }

.footer-bottom {
    max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--glass-border);
    padding-top: 30px; display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; color: var(--text-secondary);
}
.footer-bottom a { color: var(--accent); text-decoration: none; font-weight: 600; }
