:root {
    /* Color Palette - Dark Corporate Tech Theme */
    --bg-dark: #0a0e17;
    --bg-card: rgba(19, 26, 42, 0.6);
    --bg-card-hover: rgba(28, 38, 59, 0.8);
    
    --primary: #00d2ff;       /* Vibrant Cyan / Tech Neon */
    --primary-glow: rgba(0, 210, 255, 0.3);
    --secondary: #3a7bd5;     /* Corporate Blue */
    --accent: #ff4b4b;        /* Alert/Action Red */
    
    --text-main: #f0f4f8;
    --text-muted: #9ba3b5;
    
    --border-light: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 span {
    color: var(--primary);
    display: block;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; color: var(--primary); }

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

strong { color: var(--text-main); }
a { text-decoration: none; color: inherit; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 6rem 0; }
.bg-darker { background-color: rgba(6, 8, 13, 0.8); }
.text-primary { color: var(--primary); }
.text-green { color: #00e676; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.overflow-hidden { overflow: hidden; position: relative; }

/* Image Styling */
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.service-item:hover .service-img, .portfolio-item:hover .service-img {
    transform: scale(1.05);
    opacity: 1;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.1);
}

/* Animations (To trigger via JS) */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.1);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background 0.4s ease;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.logo-dot {
    color: var(--primary);
}

.logo-img {
    height: 85px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.navbar .logo-img {
    transform: scale(1.35);
    transform-origin: left center;
    transition: var(--transition-fast);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #0a0e17;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta-container { display: flex; gap: 1rem; }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
    z-index: 1001;
}
.mobile-menu-btn svg {
    width: 32px;
    height: 32px;
}
.mobile-menu-btn:hover {
    background: rgba(0, 210, 255, 0.1);
}

/* 1. Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 11rem; /* Increased top padding to avoid overlap with large fixed navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #101828 0%, #0a0e17 100%);
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 0;
}

.glow-1 {
    width: 600px; height: 600px;
    background: rgba(0, 210, 255, 0.15);
    top: -200px; right: -100px;
}

.glow-2 {
    width: 400px; height: 400px;
    background: rgba(58, 123, 213, 0.15);
    bottom: -100px; left: -100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-prop {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Dashboard Mockup in Hero */
.dashboard-mockup {
    padding: 1.5rem;
    background: rgba(10, 15, 25, 0.8);
    position: relative;
}

.dashboard-mockup::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), transparent, transparent, var(--secondary));
    z-index: -1;
    border-radius: 18px;
    opacity: 0.5;
}

.mockup-header {
    display: flex; gap: 8px; margin-bottom: 1.5rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.status-row {
    display: flex; gap: 1rem; margin-bottom: 2rem;
}

.status-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
    border: 1px solid var(--border-light);
}

.status-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.status-value { font-weight: 600; font-family: var(--font-heading); }

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 150px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--secondary), var(--primary));
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.h-70 { height: 70%; } .h-40 { height: 40%; } .h-90 { height: 90%; } .h-60 { height: 60%; } .h-100 { height: 100%; box-shadow: 0 0 15px var(--primary-glow); opacity: 1; }

/* 2. Nosotros */
.section-header { margin-bottom: 4rem; max-width: 800px; }
.section-header.text-center { margin: 0 auto 4rem auto; text-align: center; }

.sub-heading {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.icon-box {
    width: 60px; height: 60px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}

/* 3. Servicios - Alternating pattern */
.services-wrapper { display: flex; flex-direction: column; gap: 4rem; }

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
}

.service-item.reverse .service-content { order: 2; }
.service-item.reverse .service-visual { order: 1; }

.service-pain {
    background: rgba(255,75,75,0.05);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.service-list {
    list-style: none;
    margin-top: 1rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-list svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.service-visual {
    height: 350px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    position: relative;
}

.service-visual::after, .portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.7);
    pointer-events: none;
    border-radius: inherit;
    z-index: 10;
}

.bg-grad-1 { background: linear-gradient(135deg, #102a43, #0a0e17); border: 1px solid rgba(0,210,255,0.2); }
.bg-grad-2 { background: linear-gradient(135deg, #1f1c2c, #0a0e17); border: 1px solid rgba(255,189,46,0.2); }
.bg-grad-3 { background: linear-gradient(135deg, #0d324d, #0a0e17); border: 1px solid rgba(0,230,118,0.2); }
.bg-grad-4 { background: linear-gradient(135deg, #2b1055, #0a0e17); border: 1px solid rgba(162,89,255,0.2); }

/* 4. Diferenciadores */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.diff-card { position: relative; padding: 3rem 2rem; overflow: hidden; }

.diff-number {
    position: absolute;
    top: -10px; right: 10px;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    font-family: var(--font-heading);
    z-index: 0;
}

.diff-card h3, .diff-card p { position: relative; z-index: 1; }

/* 5. Casos de Éxito */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item { padding: 0; overflow: hidden; position: relative; }

.portfolio-image {
    height: 200px;
    background: #111a2c;
    border-bottom: 1px solid var(--border-light);
}

.text-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.portfolio-content { padding: 1.5rem; }
.impact-text { color: var(--primary); font-weight: 600; font-size: 1rem; margin-top: 0.5rem; }

.testimonial-card {
    display: flex; flex-direction: column; gap: 1.5rem;
    border-left: 4px solid var(--primary);
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-main);
}

.quote-author strong { display: block; color: var(--primary); }
.quote-author span { font-size: 0.9rem; color: var(--text-muted); }

/* 6. Contacto */
.contact { position: relative; overflow: hidden; }
.contact-glow {
    position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 800px; background: radial-gradient(circle, rgba(0,210,255,0.05) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}

.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem;
}

.info-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.info-item svg { color: var(--primary); flex-shrink: 0; }
.info-item strong { display: block; margin-bottom: 0.25rem;}

.contact-form-container {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.contact-form-container h3 { margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,210,255,0.05);
}

.form-disclaimer { font-size: 0.8rem; margin-top: 1rem; text-align: center; }

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    background: #06080d;
}

.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p { margin-top: 1rem; max-width: 300px; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-muted); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary); }

.seo-foot { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin-top: 1rem; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-ctas { justify-content: center; }
    .hero-prop { margin: 0 auto 2.5rem auto; }
    
    .nav-links, .nav-cta-container { 
        display: none; 
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 100%;
        left: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-links.active, .nav-cta-container.active {
        display: flex;
    }

    .nav-cta-container {
        top: calc(100% + 180px); /* Position below links */
        border-bottom: none;
        padding-bottom: 1.5rem;
    }
    
    .nav-container { flex-wrap: wrap; }
    
    .navbar .logo-img {
        transform: scale(1.1);
        height: 70px;
    }
    
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    
    .about-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; padding: 2rem; }
}

@media (max-width: 768px) {
    .navbar .logo-img {
        transform: scale(1);
        height: 55px;
        max-width: 220px;
    }

    .diff-grid, .about-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .service-item { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; }
    .service-item.reverse .service-content { order: 1; }
    .service-item.reverse .service-visual { order: 2; border-radius: 8px; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-wrapper { padding: 1.5rem; }
}

/* WhatsApp Floating Button */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 1000; animation: bounce 2s infinite; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

