/* ==========================================================================
   RESET & SYSTEM BASE (Premium Dark Mode Architecture)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette - Extracted from Automat IA Banner */
    --bg-dark: #05070f;
    --bg-dark-card: rgba(10, 15, 30, 0.45);
    --bg-dark-card-hover: rgba(16, 24, 48, 0.65);
    --border-dark: rgba(255, 255, 255, 0.06);
    --border-dark-hover: rgba(0, 242, 254, 0.25);
    
    /* Core Brand Colors */
    --accent-cyan: #00f2fe;        /* Bright Cyan */
    --accent-teal: #05e3be;        /* Technological Teal */
    --accent-blue: #3b82f6;        /* Professional Royal Blue */
    --accent-indigo: #4f46e5;      /* Deep brand indigo */
    
    /* Text Colors */
    --text-primary: #f3f4f6;       /* Warm white for readability */
    --text-secondary: #a1a1aa;     /* Cool gray for description text */
    --text-muted: #71717a;         /* Muted gray for labels and details */
    
    /* Fonts & Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout Tokens */
    --max-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Subtle background grid pattern representing connected networks */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   TYPOGRAPHY & GLOBAL STYLES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Gradients text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

/* ==========================================================================
   COMMON COMPONENTS & LAYOUTS
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 1.5rem; /* Increased from 6.5rem to 8rem for a more premium look */
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 1px;
    background-color: var(--accent-cyan);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #030712;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem 2.4rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px -2px rgba(0, 242, 254, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.015em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -2px rgba(0, 242, 254, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 2.4rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Custom Grid Utility */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; /* Increased gap from 4rem to 5rem */
    align-items: center;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(5, 7, 15, 0.65);
    border-bottom: 1px solid var(--border-dark);
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(5, 7, 15, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    background-color: #ffffff; /* Gives logo context if it has white margins */
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.logo-wrapper:hover {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    border-color: rgba(0, 242, 254, 0.3);
}

.brand-logo {
    display: block;
    height: 66px; /* Increased from 60px (+10% brand presence) */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.scrolled .brand-logo {
    height: 50px; /* Increased from 46px (+10% brand presence scrolled) */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background-color: var(--accent-cyan);
    color: #030712;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile Toggle Hamburger Animation */
.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer (Menu Navigation) */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #080c18;
    border-left: 1px solid var(--border-dark);
    padding: 90px 2rem 2rem 2rem;
    z-index: 99;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    visibility: hidden;
}

.mobile-drawer.open {
    right: 0;
    visibility: visible;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.mobile-nav-item {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-nav-item:hover {
    color: var(--accent-cyan);
}

.mobile-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #030712;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(80px + 6rem); /* Increased top padding from 4.5rem to 6rem */
    padding-bottom: 8rem; /* Increased from 6rem to 8rem */
    overflow: hidden;
}

/* Glow effects behind Hero with slow pulsing animation */
@keyframes glowDrift {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    50% { transform: scale(1.1) translate(30px, -20px); opacity: 0.6; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
}

.hero-glow-1 {
    position: absolute;
    top: -15%;
    right: -10%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowDrift 12s infinite ease-in-out;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowDrift 12s infinite ease-in-out;
    animation-delay: -6s;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

@media (min-width: 769px) {
    .hero-content {
        padding-left: 25px; /* Offset from left edge (+25px visual refinement) */
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 242, 254, 0.08);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    margin-right: 0.6rem;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-teal);
    animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

.hero-title {
    font-size: 4rem; /* Enlarged for greater visual impact */
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem; /* Larger and cleaner body size */
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    line-height: 1.6;
    max-width: 580px;
}

.hero-highlight-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 12px 12px 0;
    max-width: 520px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-quote {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-cyan);
    line-height: 1;
    margin-top: -0.25rem;
}

.highlight-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Hero Media Block - perspectiva 3D */
.hero-media {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.flow-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: rotateX(6deg) rotateY(-10deg) rotateZ(2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-container:hover {
    transform: rotateX(2deg) rotateY(-3deg) rotateZ(0deg);
}

/* Sweep reflection animation */
@keyframes glassSheen {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

.banner-frame {
    position: relative;
    background-color: var(--bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem;
    border-radius: 16px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5), 
        0 0 40px rgba(0, 242, 254, 0.06);
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
}

/* Ambient glow under the banner */
.banner-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 70, 229, 0.15));
    opacity: 0.5;
    z-index: -1;
    transition: var(--transition-smooth);
}

/* Inner blend vignette to merge image edges */
.banner-frame::after {
    content: '';
    position: absolute;
    inset: 0.6rem;
    border-radius: 10px;
    background: radial-gradient(circle, transparent 55%, rgba(5, 7, 15, 0.95) 100%);
    pointer-events: none;
    z-index: 2;
}

.banner-frame:hover {
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6), 
        0 0 50px rgba(0, 242, 254, 0.12);
}

/* Sweeping reflection on the glass panel */
.banner-frame-gloss {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    border-radius: 16px;
}

.banner-frame-gloss::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04) 20%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.04) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: glassSheen 6s infinite ease-in-out;
}

.banner-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    filter: brightness(0.9) contrast(1.05);
    transition: var(--transition-smooth);
}

.banner-frame:hover .banner-img {
    filter: brightness(1.05) contrast(1.1);
}

/* Flujo Inteligente Flow Diagram - element central y protagonista */
.interactive-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 12, 28, 0.75);
    border: 1px solid rgba(0, 242, 254, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.5rem 1.8rem;
    border-radius: 16px;
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.6), 
        0 0 35px rgba(0, 242, 254, 0.08);
    margin-top: -3.5rem; /* overlapping the banner visual */
    z-index: 10;
    position: relative;
    transform: translateZ(20px); /* 3D layers */
    transition: var(--transition-smooth);
}

.interactive-flow-diagram:hover {
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7), 
        0 0 45px rgba(0, 242, 254, 0.15);
}

/* Floating animation for nodes */
@keyframes floatNode {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.flow-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 80px;
    text-align: center;
    position: relative;
}

.flow-step-node:nth-child(1) { animation: floatNode 5s ease-in-out infinite; }
.flow-step-node:nth-child(3) { animation: floatNode 5s ease-in-out infinite; animation-delay: 1.25s; }
.flow-step-node:nth-child(5) { animation: floatNode 5s ease-in-out infinite; animation-delay: 2.5s; }
.flow-step-node:nth-child(7) { animation: floatNode 5s ease-in-out infinite; animation-delay: 3.75s; }

.node-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15), 
        0 5px 12px rgba(0, 0, 0, 0.4);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.node-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

/* Color Coding of brand theme for nodes */
.flow-step-node[data-label="Cliente"] .node-icon {
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}
.flow-step-node[data-label="Inteligencia"] .node-icon {
    border-color: rgba(0, 242, 254, 0.35);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}
.flow-step-node[data-label="Automatización"] .node-icon {
    border-color: rgba(5, 227, 190, 0.35);
    color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(5, 227, 190, 0.1);
}
.flow-step-node[data-label="Resultados"] .node-icon {
    border-color: rgba(79, 70, 229, 0.35);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.1);
    background: rgba(0, 242, 254, 0.05);
}

.flow-step-node:hover .node-icon {
    color: #030712;
    border-color: transparent;
    transform: scale(1.15);
}

.flow-step-node[data-label="Cliente"]:hover .node-icon {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.flow-step-node[data-label="Inteligencia"]:hover .node-icon {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}
.flow-step-node[data-label="Automatización"]:hover .node-icon {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-indigo) 100%);
    box-shadow: 0 0 20px rgba(5, 227, 190, 0.5);
}
.flow-step-node[data-label="Resultados"]:hover .node-icon {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.flow-step-node:hover .node-text {
    color: var(--text-primary);
}

/* Connector Line Styling */
.flow-connection-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(0, 242, 254, 0.25), rgba(255, 255, 255, 0.04));
    position: relative;
    margin: 0 -4px;
    margin-top: -28px; /* centered relative to 48px node icons */
}

/* Flow Pulse Animating Dot */
.flow-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px 2px var(--accent-cyan);
    animation: flowPulse 2.4s infinite linear;
}

@keyframes flowPulse {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Delay for staggering the visual flow */
.interactive-flow-diagram .flow-connection-line:nth-child(2) .flow-pulse {
    animation-delay: 0s;
}
.interactive-flow-diagram .flow-connection-line:nth-child(4) .flow-pulse {
    animation-delay: 0.6s;
}
.interactive-flow-diagram .flow-connection-line:nth-child(6) .flow-pulse {
    animation-delay: 1.2s;
}

/* ==========================================================================
   ¿QUÉ ES AUTOMAT IA?
   ========================================================================== */
.what-is-section {
    background-color: #070a14;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
}

.what-is-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.visual-brand-bar {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
}

/* Problems Box styling */
.problems-card-box {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.problems-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.problems-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.problems-header p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.problem-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.6875rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.problem-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.problem-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   CÓMO TRABAJAMOS (Flow cards timeline)
   ========================================================================== */
.how-we-work-section {
    background-color: var(--bg-dark);
    position: relative;
}

.how-work-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.work-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 2.2rem 1.75rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Glow border effect on cards */
.card-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid transparent;
    pointer-events: none;
    z-index: 1;
    transition: var(--transition-smooth);
}

.work-card:hover {
    transform: translateY(-6px); /* slightly more elevation */
    background-color: var(--bg-dark-card-hover);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4), 
        0 0 30px rgba(0, 242, 254, 0.03);
}

.work-card:hover .card-glow-border {
    border-color: rgba(0, 242, 254, 0.3);
}

.work-step-num {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background-color: rgba(0, 242, 254, 0.08);
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.work-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.work-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Special styling for the final step */
.work-card.highlight-step {
    background: linear-gradient(180deg, rgba(10, 15, 30, 0.45) 0%, rgba(0, 242, 254, 0.05) 100%);
    border-color: rgba(0, 242, 254, 0.15);
}

.work-card.highlight-step .work-step-num {
    background-color: var(--accent-cyan);
    color: #030712;
}

/* ==========================================================================
   SOLUCIONES INTELIGENTES (Services)
   ========================================================================== */
.solutions-section {
    background-color: #070a14;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.solution-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 2.75rem 2.2rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.solution-card:hover {
    transform: translateY(-6px);
    background-color: var(--bg-dark-card-hover);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.45), 
        0 0 30px rgba(0, 242, 254, 0.04);
}

.solution-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent-cyan);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.solution-card:hover .solution-icon {
    color: #030712;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.solution-card p {
    font-size: 0.90625rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   SECTORES
   ========================================================================== */
.sectors-section {
    background-color: var(--bg-dark);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sector-tag-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 1.75rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.sector-tag-card:hover {
    background-color: var(--bg-dark-card-hover);
    border-color: rgba(0, 242, 254, 0.15);
    transform: translateY(-2px);
}

.sector-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.sector-tag-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   CASOS REALES (Projects)
   ========================================================================== */
.cases-section {
    background-color: #070a14;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.case-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 2.5rem;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.case-status-badge {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.case-status-badge.implemented {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.case-status-badge.demo {
    background-color: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.case-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    margin-top: 2rem; /* leaves room for badge */
}

.case-desc {
    font-size: 0.90625rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 4.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-bullets {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-bullets .bullet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bullet-icon-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.contact-bullets .bullet-item span {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Glassmorphism Form Card */
.contact-card {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 3.5rem 3rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.form-group.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    cursor: pointer;
}

.legal-link {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.legal-link:hover {
    color: var(--accent-blue);
}

/* Form Validation Styling */
.error-msg {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.form-group.has-error input, .form-group.has-error textarea {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.02);
}

.form-group.has-error .error-msg {
    display: block;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #030712;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px -2px rgba(0, 242, 254, 0.3);
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.btn-submit:hover {
    box-shadow: 0 8px 25px -2px rgba(0, 242, 254, 0.5);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Success State styling */
.form-success-state {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.success-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(0, 242, 254, 0.08);
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 242, 254, 0.15);
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-details {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #03050a;
    border-top: 1px solid var(--border-dark);
    position: relative;
    z-index: 2;
}

.footer-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem 3.5rem 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    background-color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 56px; /* Increased from 28px to match header logo presence */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.footer-links a, .footer-contact p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-contact p a {
    color: inherit;
    transition: var(--transition-smooth);
}

.footer-contact p a:hover {
    color: var(--accent-cyan);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.developed-by {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.developed-by:hover {
    color: var(--accent-cyan);
}

.footer-bottom .legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom .legal-links a {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-bottom .legal-links a:hover {
    color: var(--accent-cyan);
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(13, 18, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 1000;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: var(--max-width);
    margin: 0 auto;
}

@keyframes slideUp {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.cookie-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.875rem;
    margin-bottom: 0;
    flex: 1;
    min-width: 280px;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: var(--accent-cyan);
    color: #030712;
    border: none;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cookie-accept:hover {
    background-color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.btn-cookie-reject {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   FLOATING ACTIONS CONTAINER (WhatsApp & Social Networks)
   ========================================================================== */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 45px; /* Increased from 30px (+15px separation from right border) */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 999;
}

.floating-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* WhatsApp Button specifics */
.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 0 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-pulse {
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: whatsappPulse 2s infinite ease-in-out;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Social Buttons Group */
.floating-social-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.social-btn {
    width: 42px;
    height: 42px;
    background-color: rgba(10, 15, 30, 0.85);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.social-btn svg {
    transition: var(--transition-smooth);
}

.social-btn:hover {
    transform: translateY(-2px);
    color: var(--text-primary);
}

.social-btn.linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.social-btn.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

/* ==========================================================================
   MEDIA QUERIES (Responsive Design Layout)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .flow-container {
        transform: none; /* Disable perspective on tablets for consistency */
    }
    .flow-container:hover {
        transform: none;
    }
    .interactive-flow-diagram {
        margin-top: -2rem;
    }
    .how-work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .how-work-grid .work-card:nth-child(4), .how-work-grid .work-card:nth-child(5) {
        grid-column: span 1.5; /* balances the grid when items wrap */
    }
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-top {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        height: 48px; /* Increased from 44px (+10%) proportional on mobile */
    }
    .main-header.scrolled .brand-logo {
        height: 42px; /* Increased from 38px scrolled on mobile */
    }
    .floating-actions-container {
        bottom: 20px;
        right: 25px; /* Separated from right border slightly on mobile */
    }
    .social-btn {
        width: 40px; /* Reduced by ~20% compared to mobile WhatsApp (52px) */
        height: 40px;
    }
    .whatsapp-btn {
        width: 52px;
        height: 52px;
    }
    .section-container {
        padding: 6rem 1.5rem; /* Adjusted for mobile view spacing */
    }
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.15rem;
    }
    .hero-highlight-box {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
    .hero-actions {
        justify-content: center;
        width: 100%;
    }
    .nav-menu {
        display: none; /* Hide standard menu on tablets/mobile */
    }
    .mobile-toggle {
        display: flex; /* Show mobile drawer trigger button */
    }
    .interactive-flow-diagram {
        margin-top: -1.5rem;
        padding: 1.2rem;
    }
    .how-work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .how-work-grid .work-card:nth-child(4), .how-work-grid .work-card:nth-child(5) {
        grid-column: span 1;
    }
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .contact-info {
        text-align: center;
    }
    .contact-bullets {
        align-items: center;
    }
    .contact-card {
        padding: 2.5rem 2rem;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .footer-brand {
        align-items: center;
    }
    .footer-tagline {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 42px; /* Increased from 38px (+10%) compact for small screens */
    }
    .main-header.scrolled .brand-logo {
        height: 36px; /* Scrolled for small screens */
    }
    .hero-title {
        font-size: 2.35rem;
    }
    .hero-actions .btn-primary, .hero-actions .btn-secondary {
        width: 100%;
    }
    .interactive-flow-diagram {
        margin-top: -1.2rem;
        padding: 0.75rem 0.5rem;
        gap: 0.15rem;
    }
    .flow-step-node {
        width: 60px;
    }
    .node-icon {
        width: 34px;
        height: 34px;
    }
    .node-icon svg {
        width: 16px;
        height: 16px;
    }
    .node-text {
        font-size: 0.6rem;
    }
    .flow-connection-line {
        margin-top: -17px;
    }
    .flow-pulse {
        width: 5px;
        height: 5px;
    }
    .sectors-grid {
        grid-template-columns: 1fr;
    }
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 1.2rem;
    }
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    .cookie-buttons button {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   LEGAL PAGES BACKWARD COMPATIBILITY
   ========================================================================== */
.legal-body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
}

.legal-header {
    border-bottom: 1px solid var(--border-dark);
    background-color: rgba(5, 7, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
}

.legal-header-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-back-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.legal-back-link:hover {
    color: var(--accent-blue);
    transform: translateX(-2px);
}

.legal-container {
    max-width: 800px;
    margin: 3.5rem auto 0 auto;
    padding: 0 1.5rem 5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.legal-container h1 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
}

.legal-last-update {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
}

.legal-container h2 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.legal-container p, .legal-container ul, .legal-container ol {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.legal-container ul, .legal-container ol {
    padding-left: 1.5rem;
}

.legal-container li {
    margin-bottom: 0.5rem;
}

.legal-container strong {
    color: var(--text-primary);
}

.legal-footer {
    margin-top: 4.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.75rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
