:root {
    /* Color Palette - Updated for BIMIC TECH */
    --c-space-1: #020617; /* Deeper dark blue */
    --c-space-2: #0b1120;
    --c-space-3: #1e293b;
    
    --c-brand-primary: #06b6d4; /* Neon Cyan */
    --c-brand-secondary: #3b82f6; /* Bright Blue */
    --c-brand-accent: #22d3ee; /* Electric Cyan */
    --c-brand-success: #10b981;
    
    --c-text-primary: #f8fafc;
    --c-text-secondary: #94a3b8;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--c-brand-primary), var(--c-brand-secondary));
    --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    --grad-glow: linear-gradient(90deg, #06b6d4, #3b82f6, #00d4ff);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spans & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    background-color: var(--c-space-1);
    color: var(--c-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-alternate {
    background-color: var(--c-space-2);
}

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

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--c-text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
}

.text-center {
    text-align: center;
}

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.d-block { display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
}

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

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-block {
    width: 100%;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--grad-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--c-brand-secondary);
}

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

.nav-links a:not(.btn) {
    color: var(--c-text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--c-brand-secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for nav */
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--c-brand-primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--c-brand-secondary);
    bottom: -100px;
    left: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50px;
    color: var(--c-brand-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--c-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--c-text-secondary);
}

/* ====================== */
/* AI Agent Scene - Hero  */
/* ====================== */
.ai-agent-scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow de fondo difuminado */
.scene-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.glow-cyan-alt {
    width: 350px; height: 350px;
    background: rgba(6, 182, 212, 0.25);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite alternate;
}
.glow-cyan {
    width: 200px; height: 200px;
    background: rgba(14, 165, 233, 0.25);
    top: 25%; left: 65%;
    animation: glowPulse 5s ease-in-out infinite alternate-reverse;
}
@keyframes glowPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Anillos de órbita */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.1);
    top: 50%; left: 50%;
}
.orbit-1 {
    width: 280px; height: 280px;
    margin-top: -140px; margin-left: -140px;
    animation: orbitSpin 12s linear infinite;
}
.orbit-2 {
    width: 190px; height: 190px;
    margin-top: -95px; margin-left: -95px;
    animation: orbitSpin 8s linear infinite reverse;
}
@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.orbit-dot {
    position: absolute;
    top: -6px; left: 50%;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 10px var(--c), 0 0 20px var(--c);
}

/* Núcleo central del Agente */
.agent-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}
.core-pulse {
    position: absolute;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--grad-primary);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: corePulse 2.5s ease-in-out infinite;
    opacity: 0.5;
}
@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
.core-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 60px rgba(59, 130, 246, 0.3);
    animation: coreFloat 4s ease-in-out infinite;
}
@keyframes coreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Conexiones SVG */
.connection-svg {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 1;
}
.conn-line {
    stroke: rgba(255,255,255,0.07);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
}

/* Nodos satélite */
.sat-node {
    position: absolute;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    z-index: 2;
    animation: satFloat 3s ease-in-out infinite;
}
.sn-1 { top: 15%; left: 15%; color: #25d366; animation-delay: 0s; }
.sn-2 { top: 15%; right: 15%; color: #0ea5e9; animation-delay: 0.7s; }
.sn-3 { bottom: 15%; left: 15%; color: #f59e0b; animation-delay: 1.4s; }
.sn-4 { bottom: 15%; right: 15%; color: #ec4899; animation-delay: 2.1s; }
@keyframes satFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.07); }
}

/* Data chips (burbujas de conversación) */
.data-chip {
    position: absolute;
    display: flex; align-items: center; gap: 10px;
    background: rgba(15, 15, 25, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 0.78rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 4;
    max-width: 220px;
}
.data-chip i { font-size: 1.3rem; flex-shrink: 0; color: #0ea5e9; }
.data-chip small { display: block; color: rgba(255,255,255,0.5); font-size: 0.7rem; }
.data-chip strong { font-size: 0.82rem; }

.chip-1 {
    top: 8%; left: -5%;
    animation: chipFloat 5s ease-in-out infinite;
}
.chip-2 {
    bottom: 18%; right: -5%;
    animation: chipFloat 6s ease-in-out infinite reverse;
}
.chip-3 {
    bottom: 5%; left: 5%;
    animation: chipFloat 4.5s ease-in-out infinite 1s;
}
@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* Services */
/* Services Carousel - Overlay Style */
.services-carousel-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    cursor: default;
}

.services-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll-left 60s linear infinite;
    will-change: transform;
}

.services-track:hover {
    animation-play-state: paused;
}

.services-carousel-container::before,
.services-carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.services-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #05050f, transparent);
}

.services-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #05050f, transparent);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.service-card {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02); /* Very subtle background */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border */
    backdrop-filter: blur(8px);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--grad-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.service-icon i {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--c-text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    color: var(--c-text-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--c-brand-secondary);
}

/* AI Solutions */
.ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ai-visual {
    position: relative;
    height: 400px;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.ai-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--grad-primary);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.n8n-svg-paths {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.flow-line {
    fill: none;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 4;
}

.flow-line-active {
    fill: none;
    stroke-width: 4;
    stroke-dasharray: 100;
}

.src-line { stroke: #25d366; animation: flowLineRun1 4s infinite linear; }
.dst-line-1 { stroke: #0ea5e9; animation: flowLineRun2 4s infinite linear; }
.dst-line-2 { stroke: #10b981; animation: flowLineRun2 4s infinite linear; }
.dst-line-3 { stroke: #f43f5e; animation: flowLineRun2 4s infinite linear; }

@keyframes flowLineRun1 {
    0%, 5% { stroke-dashoffset: 100; opacity: 1; }
    30% { stroke-dashoffset: 0; opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 1; }
    90% { stroke-dashoffset: 0; opacity: 0; }
    99% { stroke-dashoffset: 100; opacity: 0; }
    100% { stroke-dashoffset: 100; opacity: 1; }
}

@keyframes flowLineRun2 {
    0%, 45% { stroke-dashoffset: 100; opacity: 1; }
    70% { stroke-dashoffset: 0; opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 1; }
    90% { stroke-dashoffset: 0; opacity: 0; }
    99% { stroke-dashoffset: 100; opacity: 0; }
    100% { stroke-dashoffset: 100; opacity: 1; }
}

.workflow-node {
    position: absolute;
    background: rgba(26, 27, 35, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.workflow-node i {
    font-size: 1.3rem;
    color: var(--n-color);
}

.node-trigger { --n-color: #25d366; left: 15%; top: 50%; border-left: 4px solid var(--n-color); animation: pulseTrig 4s infinite; }
.node-ai { --n-color: #8b5cf6; left: 50%; top: 50%; border-left: 4px solid var(--n-color); animation: pulseAI 4s infinite; }
.node-db { --n-color: #0ea5e9; left: 85%; top: 21.4%; border-left: 4px solid var(--n-color); animation: pulseEnd 4s infinite; }
.node-crm { --n-color: #10b981; left: 85%; top: 50%; border-left: 4px solid var(--n-color); animation: pulseEnd 4s infinite; }
.node-slack { --n-color: #f43f5e; left: 85%; top: 78.5%; border-left: 4px solid var(--n-color); animation: pulseEnd 4s infinite; }

@keyframes pulseTrig {
    0%, 5% { box-shadow: 0 0 20px var(--n-color), inset 0 0 10px rgba(37, 211, 102, 0.2); border-color: var(--n-color); }
    30%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0); border-color: rgba(255,255,255,0.08); }
}

@keyframes pulseAI {
    0%, 25% { box-shadow: 0 0 0 rgba(0,0,0,0); border-color: rgba(255,255,255,0.08); background: rgba(26, 27, 35, 0.4); }
    30%, 55% { box-shadow: 0 0 25px var(--n-color), inset 0 0 10px rgba(139, 92, 246, 0.2); border-color: var(--n-color); background: rgba(139, 92, 246, 0.15); transform: translate(-50%, -50%) scale(1.05); }
    60%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0); border-color: rgba(255,255,255,0.08); background: rgba(26, 27, 35, 0.4); }
}

@keyframes pulseEnd {
    0%, 65% { box-shadow: 0 0 0 rgba(0,0,0,0); border-color: rgba(255,255,255,0.08); background: rgba(26, 27, 35, 0.4); }
    70%, 90% { box-shadow: 0 0 20px var(--n-color), inset 0 0 10px rgba(255,255,255,0.1); border-color: var(--n-color); background: rgba(255,255,255,0.05); }
    95%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0); border-color: rgba(255,255,255,0.08); background: rgba(26, 27, 35, 0.4); }
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-feature-item {
    display: flex;
    gap: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--c-brand-secondary);
    flex-shrink: 0;
}

.ai-feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ai-feature-item p {
    color: var(--c-text-secondary);
    font-size: 0.95rem;
}

/* Transformation (Benefits) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    text-align: left;
    padding: 2rem;
    border-left: 2px solid rgba(255,255,255,0.1);
    transition: var(--transition-smooth);
}

.benefit-item:hover {
    border-color: var(--c-brand-secondary);
    background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent);
}

.benefit-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.benefit-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-item p {
    color: var(--c-text-secondary);
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Timeline Process */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255,255,255,0.1);
    top: 0;
    bottom: 0;
    left: 30px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-space-2);
    border: 2px solid var(--c-brand-secondary);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--c-brand-secondary);
}

.timeline-content p {
    color: var(--c-text-secondary);
}

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

.portfolio-item {
    overflow: hidden;
    padding: 0; /* Override glass-card padding if any */
}

.portfolio-img {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.bg-grad-1 { background-image: url('motortech.png'); background-size: cover; background-position: center; }
.bg-grad-2 { background-image: url('medical.png'); background-size: cover; background-position: center; }

.portfolio-info {
    padding: 2rem;
}

.portfolio-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-brand-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-info p {
    color: var(--c-text-secondary);
}

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

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--c-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--c-text-primary);
}

.contact-list i {
    color: var(--c-brand-secondary);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--c-brand-secondary);
    background: rgba(0,0,0,0.4);
}

/* Video Showcase Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(109, 40, 217, 0.2);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 20px;
}

/* Facade thumbnail overlay */
.yt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 60%);
    border-radius: 20px;
    transition: background 0.3s;
}
#yt-facade:hover .yt-overlay {
    background: linear-gradient(0deg, rgba(109,40,217,0.3) 0%, transparent 60%);
}

/* Botón play central */
.yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 0 30px rgba(255,0,0,0.6), 0 0 60px rgba(255,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
#yt-facade:hover .yt-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 40px rgba(255,0,0,0.8), 0 0 80px rgba(255,0,0,0.4);
}


/* Footer */
footer {
    background: var(--c-space-1);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-desc {
    color: var(--c-text-secondary);
    max-width: 350px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--c-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--c-brand-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--c-text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--c-text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--c-text-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title { font-size: 3rem; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .visual-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-container { grid-template-columns: 1fr; }
    .ai-visual { order: -1; }
    
    .contact-wrapper { grid-template-columns: 1fr; padding: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--c-space-1);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }
    
    .services-grid, .benefits-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title { font-size: 2.3rem; }
    
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    
    .timeline::after { left: 20px; }
    .timeline-dot { left: 1px; width: 40px; height: 40px; }
    .timeline-item { padding-left: 60px; }
}

/* Strategic Focus Section */
.strategic-focus {
    margin-top: -3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.focus-item i {
    font-size: 1.5rem;
    color: var(--c-brand-primary);
    background: rgba(6, 182, 212, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.focus-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.focus-item p {
    font-size: 0.8rem;
    color: var(--c-text-secondary);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing Section */
.pricing-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.pricing-card {
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--c-brand-primary);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.2);
    transform: scale(1.05);
    z-index: 2;
}

.plan-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--c-brand-primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.price span {
    color: var(--c-brand-primary);
}

.price small {
    font-size: 0.9rem;
    color: var(--c-text-secondary);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    color: var(--c-text-secondary);
    font-size: 0.85rem;
}

.pricing-features li i {
    color: var(--c-brand-primary);
    font-size: 0.8rem;
}

@media (max-width: 1100px) {
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* BIMIC TECH Logo Styles */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 140px; /* Base width for the text block */
}

.brand-bimic {
    display: flex;
    justify-content: space-between;
    font-family: 'Michroma', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 2px;
}

.brand-tech {
    display: flex;
    justify-content: space-between;
    font-family: 'Michroma', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--c-brand-primary);
    line-height: 1;
    width: 100%;
}

@media (max-width: 768px) {
    .brand-bimic { font-size: 1.5rem; }
    .brand-tech { font-size: 0.7rem; letter-spacing: 5px; }
}

/* Image Logo Styles */
.brand-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-logo-img {
    height: 40px;
}



