/* =========================================
   VARIABLES & DESIGN TOKENS - MEXIPAY
   ========================================= */
   :root {
    /* Primary Graphic System */
    --mx-primary: #0C4772;
    --mx-blue: #4CA8E2;
    --mx-teal: #6CB7AE;
    --mx-green: #1F7766;
    --mx-mint: #90CEC8;
    --mx-violet: #7686EA;

    /* Neutral System */
    --background: #FFFFFF;
    --foreground: #13212B;
    --muted: #66747E;
    --subtle: #94A1AA;
    --line: rgba(12, 71, 114, 0.14);
    --surface: #F2F2F2;
    --surface-soft: #F7F9FA;
    --surface-blue: rgba(12, 71, 114, 0.055);

    /* Dark Institutional Surfaces */
    --dark: #0C4772;
    --dark-deep: #083653;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Responsive font scale - Clamp */
    --text-h1: clamp(3rem, 5vw + 1rem, 5rem);
    --text-h2: clamp(2rem, 3.5vw + 1rem, 3.5rem);
    --text-h3: clamp(1.25rem, 2vw + 1rem, 1.75rem);
    --text-body: clamp(1rem, 1.1vw, 1.125rem);
    --text-small: clamp(0.75rem, 0.8vw, 0.875rem);

    /* Spacing & Layout */
    --max-width: 88rem;
    --padding-x: clamp(1.25rem, 4vw, 3rem);
    --section-spacing: clamp(4rem, 8vw, 8rem);
    
    /* Animation / Motion Timing (Lumora inspired, but restrained 20-30%) */
    --ease-reveal: cubic-bezier(.215, .61, .355, 1);
    --ease-word: cubic-bezier(.165, .84, .44, 1);
    --ease-hover: cubic-bezier(.2, .8, .2, 1);
    
    --dur-reveal: 800ms;
    --dur-word: 650ms;
    --dur-hover: 300ms;

    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --shadow-soft: 0 8px 30px rgba(12, 71, 114, 0.06);
    --shadow-hover: 0 12px 40px rgba(12, 71, 114, 0.1);
}

html { font-size: 16px; }

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: initial; /* Handled by Lenis */ }
body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main,
#app-root {
    background-color: var(--background);
    color: var(--foreground);
}

#app-root > section {
    position: relative;
    background-color: inherit;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Typography elements */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark); font-weight: 600; line-height: 1.1; margin-bottom: 2.5rem; }
h1 { font-size: var(--text-h1); line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--text-h3); font-weight: 500; }
p { color: var(--muted); margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; }

/* Utilities */
.container { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--padding-x); width: 100%; }
.section-spacing { padding-block: var(--section-spacing); }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-white h1, .text-white h2, .text-white h3 { color: #fff; }
.bg-surface { background-color: var(--surface); }
.bg-surface-soft { background-color: var(--surface-soft); }
.bg-dark { background-color: var(--dark); color: #fff; }
.bg-dark p { color: rgba(255,255,255,0.75); }
.mt-xl { margin-top: 4rem; }
.mb-xl { margin-bottom: 3rem; }
.mb-sm { margin-bottom: 1rem; }

/* Eyebrow Component */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark);
    margin-bottom: 2rem;
}
.text-center .eyebrow {
    justify-content: center;
}
.eyebrow-light { color: rgba(255,255,255,0.8); }
.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--mx-blue);
}
.eyebrow-light .eyebrow-dot { background-color: var(--mx-mint); }

/* Official logo assets */
.logo-image { display: block; width: auto; height: auto; max-height: 56px; object-fit: contain; }
.logo-default { display: block; max-height: 70px; }
.logo-home-top { display: none; max-height: 80px; }

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-body);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover);
    border: 1px solid transparent;
}
.btn i { transition: transform var(--dur-hover) var(--ease-hover); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background-color: var(--mx-primary); color: #fff; }
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(12, 71, 114, 0.2); }

.btn-secondary { background-color: #fff; border-color: rgba(12, 71, 114, 0.22); color: var(--dark); }
.btn-secondary:hover { background-color: var(--surface-soft); transform: scale(1.02); }

.btn-soft { background-color: rgba(12, 71, 114, 0.06); color: var(--dark); }
.btn-soft:hover { background-color: rgba(12, 71, 114, 0.1); }

.btn-dark-section { background-color: #fff; color: var(--dark); }
.btn-dark-section:hover { transform: scale(1.02); }

/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 2rem; color: #fff; }
.loader-logo { display: block; width: 160px; height: auto; object-fit: contain; margin-block: -26px; }
.loader-progress-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); overflow: hidden; border-radius: 2px; }
.loader-progress-fill { height: 100%; width: 0%; background: var(--mx-mint); }
.loader-percentage { font-family: var(--font-body); font-size: var(--text-small); font-variant-numeric: tabular-nums; opacity: 0.8; }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(12, 71, 114, 0.08);
    box-shadow: 0 4px 20px rgba(12, 71, 114, 0.04);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 5rem; }
.desktop-nav { display: none; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.desktop-nav a {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    position: relative;
    padding-block: 0.5rem;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background-color: var(--mx-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-hover) var(--ease-hover);
}
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-right { display: flex; align-items: center; gap: 1rem; }
.menu-trigger {
    display: flex; flex-direction: column; gap: 6px; justify-content: center;
    width: 48px; height: 48px;
    background: transparent; border: none; cursor: pointer;
}
.menu-trigger span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 0 auto; transition: 0.3s; }
@media (min-width: 1024px) { .menu-trigger { display: none; } }

/* Fullscreen Menu */
.nav-menu {
    position: fixed; inset: 0; z-index: 9000;
    background-color: var(--dark);
    display: flex; flex-direction: column;
    visibility: hidden; opacity: 0; pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nav-menu.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.nav-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem var(--padding-x); }
.nav-close { background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.nav-menu-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; padding: 2rem; }
.nav-link {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}
.nav-link:hover { color: #fff; }
.mobile-menu-open { overflow: hidden; }

/* 01 Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; overflow: hidden; }
/* hero-home overrides base hero to use column layout with logos at the bottom */
.hero-home { align-items: stretch; padding-top: 0; }
.hero-canvas-container {
    position: absolute; inset: 0; z-index: -1;
    background-color: #FAFCFD; /* Very light neutral */
}
canvas#liquid-canvas { width: 100%; height: 100%; display: block; }
.hero-content { max-width: 52rem; position: relative; z-index: 10; padding-block: 4rem; }
.hero-title { margin-bottom: 2rem; }
.hero-primary { font-size: clamp(1.125rem, 1.5vw, 1.25rem); color: var(--foreground); margin-bottom: 1.5rem; }
.hero-secondary { font-size: var(--text-body); margin-bottom: 3rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-home {
    background: #0c4772;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}
.hero-video-wrap,
.hero-video,
.hero-video-overlay {
    position: absolute;
    inset: 0;
}
.hero-video-wrap {
    z-index: 0;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.65) contrast(1.05) brightness(0.8);
}
.hero-video-overlay {
    background: rgba(12, 71, 114, 0.53);
    z-index: 1;
}
.hero-home .hero-container,
.hero-home .hero-content,
.hero-home .hero-actions {
    position: relative;
    z-index: 2;
}
.hero-home .hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding-top: 5rem;
}
.hero-home .hero-content {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
    padding-block: 3rem;
    text-align: center;
}
.hero-home .hero-title,
.hero-home .hero-primary,
.hero-home .hero-content { color: #fff; }
.hero-home .hero-title {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
    font-size: clamp(42px, 4.5vw, 68px);
    line-height: 1.05;
}
.hero-home .hero-primary {
    display: block;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
    line-height: 1.5;
}
.hero-home .hero-actions {
    justify-content: center;
}

.header.is-home-top {
    background-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}
.header.is-home-top .logo-default {
    display: none;
}
.header.is-home-top .logo-home-top {
    display: block;
}
.header.is-home-top .desktop-nav a {
    color: #ffffff;
}
.header.is-home-top .menu-trigger span {
    background-color: #ffffff;
}
.header.is-home-top .desktop-nav a::after {
    background-color: rgba(255, 255, 255, 0.88);
}
.header.is-home-top .btn-primary {
    background: rgba(12, 71, 114, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* 02 Benefits Strip */
.benefits-strip { background-color: var(--surface-soft); border-block: 1px solid var(--line); padding-block: 2.5rem; }
.benefits-container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.benefit-module { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-weight: 600; color: var(--dark); }
.benefit-module i { font-size: 1.5rem; color: var(--mx-blue); }

/* Hover Lift */
.hover-lift { transition: transform var(--dur-hover) var(--ease-hover); }
.hover-lift:hover { transform: translateY(-4px); }

/* 03 Payment Flow */
.payment-flow-section { overflow: hidden; }
.flow-container { margin-top: 4rem; position: relative; padding-block: 2rem; }
.flow-track { position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.flow-progress { position: absolute; top: 0; left: 0; width: 100%; background: var(--mx-blue); height: 0; transition: height 0.1s linear; }
.flow-stages { display: flex; flex-direction: column; gap: 4rem; position: relative; z-index: 2; }
.flow-stage { display: flex; flex-direction: column; padding-left: 5rem; position: relative; opacity: 0.4; transition: opacity var(--dur-hover) var(--ease-hover); }
.flow-stage.is-active { opacity: 1; }
.stage-number {
    position: absolute; left: 0; top: 0;
    width: 48px; height: 48px;
    background: var(--background); border: 2px solid var(--line); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--muted);
    transition: all var(--dur-hover) var(--ease-hover);
}
.flow-stage.is-active .stage-number { border-color: var(--mx-blue); color: var(--mx-blue); background: var(--surface-blue); }
.flow-stage h3 { margin-bottom: 0.5rem; }
.flow-stage p { margin-bottom: 0; }

@media (min-width: 768px) {
    .flow-track { left: 0; right: 0; top: 60px; bottom: auto; width: 100%; height: 2px; }
    .flow-progress { height: 100%; width: 0; transition: width 0.1s linear; }
    .flow-stages { flex-direction: row; gap: 2rem; }
    .flow-stage { padding-left: 0; padding-top: 100px; text-align: center; flex: 1; }
    .stage-number { left: 50%; top: 36px; transform: translateX(-50%); }
}

/* 04 Beyond */
.beyond-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .beyond-grid { grid-template-columns: 1fr 1fr; } }
/* Terminal Composition */
.terminal-composition {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.terminal-img {
    position: relative;
    z-index: 2;
    width: min(82vw, 420px);
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(12, 71, 114, 0.14);
    animation: float-terminal 5s ease-in-out infinite;
}

@media (min-width: 768px) {
    .terminal-composition {
        max-width: 600px;
    }
}
@media (min-width: 1024px) {
    .terminal-img {
        width: clamp(360px, 34vw, 600px);
        transform-origin: center;
    }
}

@keyframes float-terminal {
    0%, 100% { transform: translateY(-5px); }
    50% { transform: translateY(5px); }
}
@keyframes dashOffset {
    0% { stroke-dashoffset: 400; }
    100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .terminal-img, .wave-line {
        animation: none;
    }
}
.diagram-node { position: absolute; background: #fff; padding: 0.5rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: var(--text-small); font-weight: 600; box-shadow: var(--shadow-soft); }
.center-node { top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--mx-primary); color: #fff; font-size: 1.125rem; padding: 1rem 1.5rem; }
.node-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 25%; right: 5%; }
.node-3 { bottom: 25%; right: 5%; }
.node-4 { bottom: 10%; left: 50%; transform: translateX(-50%); }
.node-5 { bottom: 25%; left: 5%; }
.node-6 { top: 25%; left: 5%; }

/* 05 Audiences */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 4rem; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.mx-card {
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    display: flex; flex-direction: column;
    transition: transform var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover);
}
.mx-card:hover { transform: translateY(-6px) scale(1.005); box-shadow: var(--shadow-hover); }
.card-tag { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 1.5rem; }
.mx-card h3 { color: var(--dark); font-size: 1.5rem; }
.mx-card p { flex-grow: 1; margin-bottom: 2rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--mx-primary); font-weight: 600; font-family: var(--font-body); }
.card-link:hover { gap: 0.75rem; }

/* 06 Solutions */
.solutions-list { margin-top: 4rem; border-top: 1px solid var(--line); }
.solution-row { display: flex; align-items: center; padding: 2.5rem 0; transition: background var(--dur-hover) var(--ease-hover); }
.solution-row:hover { background-color: var(--surface-blue); padding-inline: 1.5rem; margin-inline: -1.5rem; border-radius: var(--radius-md); }
.solution-num { width: 4rem; font-family: var(--font-heading); font-size: 1rem; color: var(--muted); font-weight: 600; }
.solution-title { flex: 1; margin: 0; font-size: 2rem; }
.solution-arrow { font-size: 1.5rem; color: var(--mx-blue); opacity: 0.5; transition: all var(--dur-hover) var(--ease-hover); }
.solution-row:hover .solution-arrow { opacity: 1; transform: translateX(5px); }
.solution-divider { height: 1px; background: var(--line); }

/* 07 Aggregators */
.aggr-modules { display: flex; flex-direction: column; gap: 2rem; margin-top: 4rem; }
@media (min-width: 768px) { .aggr-modules { flex-direction: row; align-items: stretch; justify-content: space-between; } }
.aggr-module { flex: 1; padding: 2rem; }
.aggr-num { font-family: var(--font-heading); font-size: 2.5rem; color: var(--mx-mint); font-weight: 300; margin-bottom: 1rem; line-height: 1; }
.aggr-line { width: 100%; height: 1px; background: var(--line); }
@media (min-width: 768px) { .aggr-line { width: 1px; height: auto; } }

/* 08 Platform */
.platform-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .platform-grid { grid-template-columns: 5fr 7fr; } }
.capability-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.capability-list li { display: flex; align-items: center; gap: 1rem; font-weight: 600; color: var(--foreground); }
.capability-list i { color: var(--mx-teal); font-size: 1.25rem; }
.dashboard-ui { background: var(--background); border-radius: var(--radius-md); box-shadow: var(--shadow-hover); border: 1px solid var(--line); overflow: hidden; height: 400px; display: flex; flex-direction: column; }
.ui-header { height: 48px; background: var(--surface-soft); border-bottom: 1px solid var(--line); padding: 0 1rem; display: flex; align-items: center; }
.ui-dots { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; box-shadow: 16px 0 0 #E2E8F0, 32px 0 0 #E2E8F0; }
.ui-body { display: flex; flex: 1; }
.ui-sidebar { width: 64px; background: var(--surface); border-right: 1px solid var(--line); }
.ui-content { flex: 1; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; background: #FAFCFD; }
.ui-widgets { display: flex; gap: 1rem; }
.ui-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ui-widget.small { flex: 1; height: 80px; }
.ui-widget.large { flex: 1; height: 160px; }
#platform .home-dashboard-image,
.platform-section .aggregator-dashboard-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    animation: home-dashboard-float 6s ease-in-out infinite;
}
@keyframes home-dashboard-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    #platform .home-dashboard-image,
    .platform-section .aggregator-dashboard-image { animation: none; }
}

/* 09 Security */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 4rem; }
@media (min-width: 768px) { .security-grid { grid-template-columns: repeat(4, 1fr); } }
.security-module { text-align: center; }
.sec-icon { width: 80px; height: 80px; background: #fff; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: var(--mx-primary); box-shadow: var(--shadow-soft); }
.security-module h3 { font-size: 1.125rem; }

/* 10 Final CTA */
.final-cta-section { padding-block: 8rem; }
.cta-desc { font-size: 1.25rem; max-width: 48rem; margin: 0 auto 3rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.footer { background-color: var(--dark-deep); color: #fff; padding-top: 6rem; padding-bottom: 2rem; position: relative; overflow: hidden; border-top-left-radius: 2rem; border-top-right-radius: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; position: relative; z-index: 2; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.brand-desc { color: rgba(255,255,255,0.7); max-width: 20rem; }
.footer-col h4 { color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.footer-col nav { display: flex; flex-direction: column; gap: 1rem; }
.footer-col a { color: rgba(255,255,255,0.8); font-size: 0.875rem; transition: color 0.3s; }
.footer-bottom { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    position: relative; 
    z-index: 2; 
    color: rgba(255,255,255,0.5); 
    font-size: 0.875rem; 
}

.footer-copyright {
    white-space: nowrap;
    margin: 0;
}

.footer-regulatory {
    max-width: 620px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
    }
    .footer-regulatory {
        text-align: left;
    }
}
/* =========================================
   MODAL: HABLA CON UN EXPERTO & CARD
   ========================================= */
.request-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.request-modal.is-active {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 38, 62, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 530px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(8, 38, 62, 0.35), 0 0 0 1px rgba(12, 71, 114, 0.08);
    padding: 2.5rem 2.25rem 2.25rem;
    max-height: min(92vh, 760px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(12, 71, 114, 0.2) transparent;
}

.modal-panel::-webkit-scrollbar {
    width: 6px;
}
.modal-panel::-webkit-scrollbar-thumb {
    background: rgba(12, 71, 114, 0.2);
    border-radius: 999px;
}

.request-modal.is-active .modal-panel {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--muted);
    transition: all 0.2s ease;
    z-index: 2;
}

.modal-close:hover {
    background: var(--mx-primary);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0.35rem 0 0.5rem;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

.modal-intro {
    font-size: 0.925rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

/* --- TARJETA DE CONTACTO EXPERTO --- */
.expert-card {
    background: linear-gradient(145deg, #0C4772 0%, #083653 100%);
    border-radius: 18px;
    padding: 1.6rem 1.6rem 1.4rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(12, 71, 114, 0.28);
    border: 1px solid rgba(76, 168, 226, 0.25);
    margin-bottom: 1.75rem;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(76, 168, 226, 0.28) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.expert-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #EAF5FD;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.expert-badge-dot {
    width: 7px;
    height: 7px;
    background: #6CB7AE;
    border-radius: 50%;
    box-shadow: 0 0 8px #6CB7AE;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.expert-card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.expert-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #90CEC8;
    flex-shrink: 0;
}

.expert-card-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.expert-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.expert-card-email {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.expert-card-email:hover {
    color: #90CEC8;
    text-decoration: underline;
}

.expert-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.expert-btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FFFFFF;
    color: #0C4772;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.expert-btn-copy:hover {
    background: #EAF5FD;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.expert-btn-copy.is-copied {
    background: #1F7766;
    color: #FFFFFF;
}

.expert-btn-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.expert-btn-mail:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.expert-card-meta {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.expert-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(234, 245, 253, 0.85);
}

.expert-meta-item i {
    color: #6CB7AE;
    font-size: 0.95rem;
}

/* --- QUICK MESSAGE SECTION --- */
.expert-quick-section {
    padding-top: 0.25rem;
}

.quick-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.85rem;
    font-family: var(--font-heading);
}

.expert-quick-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.expert-quick-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.expert-quick-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--foreground);
}

.expert-quick-form input,
.expert-quick-form select,
.expert-quick-form textarea {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    background: var(--surface-soft);
    color: var(--foreground);
    transition: all 0.2s ease;
}

.expert-quick-form input:focus,
.expert-quick-form select:focus,
.expert-quick-form textarea:focus {
    outline: none;
    border-color: var(--mx-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(12, 71, 114, 0.08);
}

.expert-submit-btn {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 640px) {
    .modal-panel {
        padding: 2rem 1.25rem 1.5rem;
        max-height: 94vh;
    }
    .expert-card {
        padding: 1.25rem 1rem;
    }
    .expert-card-actions {
        grid-template-columns: 1fr;
    }
    .modal-title {
        font-size: 1.5rem;
    }
}

/* Utilities for Animations */
.reveal-line { overflow: hidden; display: inline-block; vertical-align: top; }
.reveal-line-inner { display: inline-block; transform: translateY(100%); opacity: 0; }
.reveal-word { display: inline-block; overflow: hidden; }
.reveal-word-inner { display: inline-block; transform: translateY(20px); opacity: 0; }
.reveal-fade { opacity: 0; transform: translateY(20px); }


/* ============================================================
   AGREGADORES REDESIGN
   ============================================================ */

/* Hero */
.agregador-hero-visual {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 1;
}
.hero-network-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.network-pulse {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: pulseFlow 3s infinite linear;
}
.network-pulse.delay-1 { animation-delay: 1s; }
.network-pulse.delay-2 { animation-delay: 2s; }
@keyframes pulseFlow {
    0% { stroke-dashoffset: 60; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -60; }
}

/* El Modelo */
.model-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .model-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}
.model-step {
    padding: 1.5rem;
    border-left: 2px solid var(--line);
    cursor: pointer;
    transition: border-color var(--dur-hover), background var(--dur-hover);
}
.model-step:hover, .model-step.is-active {
    border-color: var(--mx-primary);
    background: var(--surface-blue);
}
.step-num {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mx-primary);
    margin-bottom: 0.5rem;
}
.interactive-diagram {
    position: relative;
    height: 400px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    overflow: hidden;
}
.diagram-layer {
    position: absolute;
    width: 80%;
    left: 10%;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
}
.dev-layer { top: 10%; z-index: 4; }
.inc-layer { top: 35%; z-index: 3; }
.op-layer { top: 60%; background: var(--mx-primary); color: #fff; z-index: 2; }
.base-layer { bottom: 5%; border-style: dashed; z-index: 1; }

.interactive-diagram.active-dev .dev-layer { transform: scale(1.05); border-color: var(--mx-primary); }
.interactive-diagram.active-inc .inc-layer { transform: scale(1.05); border-color: var(--mx-primary); }
.interactive-diagram.active-op .op-layer { transform: scale(1.05); }

/* Storytelling Sticky */
.story-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
@media (min-width: 1024px) {
    .story-layout { flex-direction: row; align-items: flex-start; }
    .story-text-col { width: 40%; }
    .story-visual-col { width: 60%; position: sticky; top: 120px; height: 500px; }
}
.story-step {
    padding: 4rem 0;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}
.story-step.is-active { opacity: 1; }
.story-step h3 { font-size: 1.25rem; color: var(--mx-primary); }
.story-visual-container {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-svg { width: 100%; max-width: 400px; height: auto; overflow: visible; }

/* Terminal Hero */
.bg-mx-primary { background-color: var(--mx-primary); }
.terminal-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .terminal-hero-grid { grid-template-columns: 1fr 1fr; }
}
.terminal-callouts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.t-callout {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}
.t-callout:hover {
    background: #ffffff;
    border-color: var(--mx-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(12, 71, 114, 0.1);
}
.t-callout h3 {
    color: var(--mx-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.t-callout p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}
.terminal-hero-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}
.terminal-hero-img {
    width: min(88vw, 440px);
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(12, 71, 114, 0.14);
    position: relative;
    z-index: 2;
    animation: float-terminal 5s ease-in-out infinite;
}
@media (min-width: 1024px) {
    .terminal-hero-img { width: clamp(380px, 34vw, 540px); }
}


/* Accordion / Cards Grid */
.accordion-container {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .accordion-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}
.acc-panel {
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}
.acc-panel:hover {
    border-color: var(--mx-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(12, 71, 114, 0.12);
}
.acc-panel.is-active {
    border-color: rgba(12, 71, 114, 0.35);
}
.acc-header {
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}
.acc-num {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--mx-primary);
}
.acc-header h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: var(--foreground);
}
.acc-content {
    padding: 1.25rem;
    opacity: 1;
    max-height: none;
    visibility: visible;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.acc-content p {
    margin: 0 0 1rem 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    min-height: 2.7em;
}
.acc-visual {
    margin-top: auto;
    height: 100px;
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF4F8 100%);
    border: 1px solid rgba(12, 71, 114, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.acc-visual::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 168, 226, 0.14) 0%, rgba(76, 168, 226, 0) 70%);
    pointer-events: none;
}
.acc-visual-icon-box {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 6px 18px -3px rgba(12, 71, 114, 0.12), 0 2px 4px -1px rgba(12, 71, 114, 0.04);
    border: 1px solid rgba(12, 71, 114, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mx-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.acc-panel:hover .acc-visual-icon-box {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px -3px rgba(12, 71, 114, 0.18);
}
.acc-icon-svg {
    width: 26px;
    height: 26px;
    color: var(--mx-primary);
    display: block;
}
/* Trust grid */
#app-root > section.aggregator-continuity {
    position: relative;
    width: min(1280px, calc(100% - 64px));
    margin: 48px auto;
    padding: 72px 64px;
    border-radius: 36px;
    overflow: hidden;
    background: #062334;
    box-shadow: 0 24px 70px rgba(12, 71, 114, 0.14);
}
.aggregator-soffit-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.aggregator-continuity .container {
    position: relative;
    z-index: 1;
    max-width: none;
    padding-inline: 0;
}
.aggregator-continuity h2 {
    color: #FFFFFF;
}
.aggregator-continuity .subtitle,
.aggregator-continuity .trust-block p {
    color: rgba(255,255,255,.72);
}
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.aggregator-continuity .trust-block {
    padding: 2rem;
    border-top: 2px solid rgba(255,255,255,.35);
    text-align: left;
}
.aggregator-continuity .trust-num {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255,255,255,.25);
    margin-bottom: 1rem;
}
.aggregator-continuity .trust-block h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #FFFFFF;
}
@media (max-width: 640px) {
    #app-root > section.aggregator-continuity {
        width: calc(100% - 32px);
        padding: 40px 24px;
        border-radius: 24px;
    }
    .aggregator-continuity .trust-block {
        padding: 1.5rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .network-pulse, .terminal-hero-img { animation: none !important; }
}


/* ============================================================
   PROCESAMIENTO REDESIGN
   ============================================================ */
.proc-hero-bg { position: absolute; top: 0; right: 0; width: 35%; height: 100%; z-index: 0; opacity: 0.9; }
.proc-hero-bg svg { width: 100%; height: 100%; }
.proc-hero-visual { position: relative; width: 100%; max-width: 450px; margin: 0 auto; aspect-ratio: 1; }
.proc-network-svg { width: 100%; height: 100%; overflow: visible; }
.proc-particle { animation: procFlow 3s infinite linear; }
.proc-particle.d-1 { animation-delay: 1s; }
.proc-particle.d-2 { animation-delay: 2s; }
@keyframes procFlow {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(200px, 300px); opacity: 0; }
}

.proc-bg-corner-curve { position: absolute; top: 0; left: 0; width: 30%; height: 50%; z-index: 0; }
.proc-bg-corner-curve svg { width: 100%; height: 100%; }
.proc-tri-container { position: relative; max-width: 800px; margin: 0 auto; height: auto; }
.proc-tri-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; display: none; }
.proc-tri-lines svg { display: block; width: 100%; height: 100%; }
.proc-tri-nodes { display: flex; flex-direction: column; gap: 2rem; position: relative; z-index: 2; }
.tri-node { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2rem; text-align: center; transition: all 0.3s; }
.tri-node h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--dark); transition: color 0.3s; }
.tri-node p { margin: 0; font-size: 0.95rem; }
@media (min-width: 768px) {
    .proc-tri-lines { display: block; }
    .proc-tri-nodes { flex-direction: row; flex-wrap: wrap; justify-content: center; height: 350px; }
    .tri-node { width: 45%; position: absolute; }
    .tri-node[data-node="tec"] { top: 0; left: 27.5%; }
    .tri-node[data-node="per"] { bottom: 0; left: 0; }
    .tri-node[data-node="pro"] { bottom: 0; right: 0; }
    .tri-node:hover { transform: translateY(-5px); border-color: var(--mx-primary); box-shadow: var(--shadow-md); }
    .tri-node:hover h3 { color: var(--mx-primary); }
}

.proc-abstract-bg { position: absolute; bottom: 0; left: 0; width: 50%; height: 100%; z-index: 0; opacity: 0.8; }
.proc-abstract-bg svg { width: 100%; height: 100%; }
.timeline-wrapper { position: relative; padding-left: 2rem; padding-bottom: 2rem; }
.timeline-line { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: rgba(12,71,114,0.1); }
.timeline-progress { position: absolute; left: 6px; top: 0; width: 2px; background: var(--mx-primary); height: 0; transition: height 0.3s; }
.tl-step { position: relative; margin-bottom: 2rem; opacity: 0.4; transition: opacity 0.3s; }
.tl-step.is-active { opacity: 1; }
.tl-dot { position: absolute; left: -2rem; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: border-color 0.3s, background 0.3s; z-index: 2; }
.tl-step.is-active .tl-dot { border-color: var(--mx-primary); background: var(--mx-primary); }
.tl-content { padding-left: 1rem; }
.tl-num { font-size: 0.85rem; font-weight: bold; color: var(--mx-primary); }
.tl-content h3 { font-size: 1.1rem; margin: 0; }

.proc-dash-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) {
    .proc-dash-grid { grid-template-columns: 45% 55%; }
}
.proc-dash-visual-wrapper { position: relative; width: 100%; aspect-ratio: 4/3; }
.proc-dash-bg { position: absolute; top: 10%; right: 10%; width: 50%; height: 80%; z-index: 0; }
.proc-dash-bg svg { width: 100%; height: 100%; }
.proc-dash-ui { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; display: flex; align-items: center; justify-content: center; }
.proc-dashboard-image { display: block; height: 90%; width: auto; max-width: 55%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(12,71,114,.12)); }
.dash-callout { position: absolute; background: #fff; border: 1px solid var(--line); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: bold; box-shadow: var(--shadow-soft); opacity: 0; transform: scale(0.9); transition: all 0.4s cubic-bezier(.16,1,.3,1); }
.dash-callout.is-visible { opacity: 1; transform: scale(1); }
.d-call-1 { top: 10%; left: 5%; }
.d-call-2 { top: 20%; right: 5%; }
.d-call-3 { bottom: 20%; left: 10%; }
.d-call-4 { bottom: 10%; right: 10%; }
.d-call-5 { top: 40%; right: -5%; }
.d-call-6 { bottom: 40%; left: -5%; }

.admin-srv-layout { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) {
    .admin-srv-layout { flex-direction: row; }
    .srv-list { width: 40%; }
    .srv-visual-area { width: 60%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; min-height: 400px; }
}
.srv-item { padding: 1.5rem; border-left: 2px solid var(--line); cursor: pointer; transition: all 0.3s; }
.srv-item.is-active, .srv-item:hover { border-color: var(--mx-primary); background: var(--surface-blue); }
.srv-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.srv-item p { margin: 0; font-size: 0.9rem; }
.srv-visual-area { display: none; }
@media (min-width: 1024px) { .srv-visual-area { display: flex; } }
.srv-vis-content { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; animation: fadeIn 0.5s; }
.srv-vis-content.is-active { display: flex; }
.srv-icon-svg { width: 150px; height: 150px; }
.srv-image { max-width: 90%; max-height: 90%; width: auto; height: auto; object-fit: contain; }

.comp-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .comp-grid { grid-template-columns: 1fr 1fr; } }
.comp-col h3 { text-align: center; font-size: 1rem; color: var(--muted); margin-bottom: 2rem; }
.comp-visual { height: 300px; background: var(--surface-soft); border-radius: var(--radius-md); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.c-node { position: absolute; width: 20px; height: 20px; background: #cbd5e1; border-radius: 50%; transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.before-comp .n1 { top: 20%; left: 20%; }
.before-comp .n2 { top: 70%; left: 30%; }
.before-comp .n3 { top: 40%; left: 70%; }
.before-comp .n4 { top: 80%; left: 80%; }
.before-comp .n5 { top: 10%; left: 60%; }
.comp-svg { width: 80%; height: 80%; overflow: visible; }
.c-path { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 1, 0.5, 1); }
.comp-visual.is-animated .c-path { stroke-dashoffset: 0; }

.proc-cta-bg { position: absolute; top: 0; right: 0; width: 40%; height: 100%; z-index: 0; }
.proc-cta-bg svg { width: 100%; height: 100%; }
.proc-cta-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .proc-cta-grid { grid-template-columns: 60% 40%; } }

/* ============================================================
   NOSOTROS REDESIGN
   ============================================================ */
.nos-hero-bg { position: absolute; top: 0; right: 0; width: 25%; height: 100%; z-index: 0; }
.nos-hero-bg svg { width: 100%; height: 100%; }

.nos-timeline-section { padding: 6rem 0; }
.nos-timeline { position: relative; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.nos-tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(12,71,114,0.1); transform: translateX(-50%); }
.nos-tl-item { position: relative; width: 100%; display: flex; justify-content: flex-end; opacity: 0.3; transition: opacity 0.5s; }
.nos-tl-item:nth-child(even) { justify-content: flex-start; }
.nos-tl-dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; background: var(--mx-primary); border-radius: 50%; transform: translate(-50%, -50%); transition: transform 0.3s; }
.nos-tl-item.is-active { opacity: 1; }
.nos-tl-item.is-active .nos-tl-dot { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 10px rgba(12,71,114,0.3); }
.nos-tl-content { width: 45%; padding: 0 2rem; }
.nos-tl-item:nth-child(even) .nos-tl-content { text-align: right; }
.nos-tl-content h3 { font-size: 1.5rem; margin: 0; color: var(--dark); }

.mv-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
    .mv-grid { grid-template-columns: 45% 10% 45%; gap: 0; }
    .mv-mision { padding-right: 3rem; }
    .mv-vision { padding-left: 3rem; margin-top: 8rem; }
    .mv-divider { height: 100%; position: relative; }
    .mv-wave-svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); width: 300px; height: 100px; }
}
.mv-wave-path { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 2s cubic-bezier(0.25, 1, 0.5, 1); }
.mv-grid.is-animated .mv-wave-path { stroke-dashoffset: 0; }

.nos-valores-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .nos-valores-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.nos-valor-card { position: relative; padding: 2.5rem; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--line); transition: transform 0.4s; overflow: hidden; }
.nos-valor-card:hover { transform: translateY(-5px); }
.val-num { position: relative; font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--mx-primary); margin-bottom: 1rem; z-index: 2; }
.val-bg-shape { position: absolute; bottom: 10px; left: -10px; width: 0; height: 0; background: rgba(12,71,114,0.08); border-radius: 50%; transition: all 0.4s ease; z-index: -1; }
.nos-valor-card:hover .val-bg-shape { width: 80px; height: 80px; left: -15px; bottom: -10px; }
.val-title { font-size: 1.25rem; margin-bottom: 0.5rem; }

.nos-tecexp-bg { position: absolute; top: 0; left: 0; width: 40%; height: 100%; z-index: 0; }
.nos-tecexp-bg svg { width: 100%; height: 100%; }
.nos-tecexp-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .nos-tecexp-grid { grid-template-columns: 1fr 1fr; } }
.nos-tecexp-image { display: block; width: 100%; height: auto; object-fit: contain; }

.nos-define-section { padding: 8rem 0; }
.define-word-block { margin-bottom: 6rem; opacity: 0.3; transition: opacity 0.5s; }
.define-word-block.is-active { opacity: 1; }
.define-word { font-size: clamp(3rem, 8vw, 8rem); font-family: var(--font-heading); font-weight: 800; line-height: 1; margin: 0; color: var(--mx-primary); transition: color 0.5s ease; }
.define-word-block.is-active .define-word { color: var(--mx-primary); }
.define-desc { font-size: 1.25rem; max-width: 500px; margin: 1rem auto 0 auto; color: var(--dark); }

.nos-cta-bg { position: absolute; width: 200px; height: 200px; z-index: 0; opacity: 0.8; transition: transform 0.5s ease-out; }
.shape-bl { bottom: -50px; left: -50px; }
.shape-tr { top: -50px; right: -50px; }

@media (prefers-reduced-motion: reduce) {
    .proc-particle, .c-path, .mv-wave-path { animation: none !important; transition: none !important; }
}

/* Processing WebGL Flowstate Hero */
.processing-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(
        circle at 50% 38%,
        #0C4772 0%,
        #082F4A 32%,
        #061D2D 68%,
        #04131F 100%
    );
    box-shadow: inset 0 0 120px rgba(12, 71, 114, 0.22);
    padding-block: 7rem 4rem;
}

.processing-fluid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.processing-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        115% 95% at 50% 46%,
        rgba(4, 18, 30, 0.48) 0%,
        rgba(4, 18, 30, 0.44) 24%,
        rgba(4, 18, 30, 0.28) 52%,
        rgba(4, 18, 30, 0.06) 100%
    );
}

.processing-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}

.processing-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-inline: 1rem;
}

.processing-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.processing-eyebrow-pill .eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--mx-cyan);
    display: inline-block;
}

.processing-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2rem;
    max-width: 900px;
}

.processing-title .word-span {
    display: inline-block;
    opacity: 0;
    transform: translateY(26px);
    will-change: opacity, transform;
}

.processing-copy-primary {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.90);
    max-width: 780px;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(14px);
    will-change: opacity, transform;
}

.processing-copy-secondary {
    font-family: var(--font-body);
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.70);
    max-width: 740px;
    margin-bottom: 2.75rem;
    opacity: 0;
    transform: translateY(14px);
    will-change: opacity, transform;
}

.processing-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.btn-processing-primary {
    background: #FFFFFF;
    color: #0C4772;
    border-radius: 9999px;
    padding: 0.85rem 2.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-processing-primary:hover {
    background: #f0f7fc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-processing-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    border-radius: 9999px;
    padding: 0.85rem 2.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.btn-processing-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.processing-hero.no-webgl {
    background: radial-gradient(
        circle at 50% 35%,
        #0C4772 0%,
        #06111D 42%,
        #040A10 75%
    ) !important;
}

@media (prefers-reduced-motion: reduce) {
    .processing-title .word-span,
    .processing-copy-primary,
    .processing-copy-secondary,
    .processing-actions {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Terminal Floating Animation for Agregador Section */
.terminal-floating {
    animation: terminal-floating-motion 4s ease-in-out infinite;
}

@keyframes terminal-floating-motion {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-15px) scale(1.02) rotate(1deg);
    }
    50% {
        transform: translateY(-8px) scale(1) rotate(0deg);
    }
    75% {
        transform: translateY(-18px) scale(1.01) rotate(-1deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Logos Slider Section */
.logos-slider-section {
    padding: 0 var(--padding-x) 1.5rem;
    background: transparent;
    margin-top: -1rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.logos-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logos-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.logos-track {
    display: flex;
    gap: 2.5rem;
    animation: scrollLogos 30s linear infinite;
    padding: 1.5rem 0;
    background: transparent;
    will-change: transform;
}

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

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

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 80px;
    flex-shrink: 0;
}

.logo-img {
    max-width: 120px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.logo-item:hover .logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

.slider-btn {
    display: none;
}

@media (max-width: 768px) {
    .logos-slider-section {
        padding: 1rem var(--padding-x) 1.5rem;
    }
    
    .logo-item {
        min-width: 100px;
        height: 65px;
    }
    
    .logo-img {
        max-width: 90px;
        max-height: 55px;
    }
    
    .logos-track {
        gap: 2rem;
    }
}

/* =========================================
   04b ACCEPTANCE ECOSYSTEM SECTION
   ========================================= */

.acceptance-section {
    background: var(--background);
    padding-bottom: clamp(2rem, 4vw, 4rem);
}

.audiences-section {
    padding-top: clamp(2rem, 4vw, 4rem);
}

.acceptance-header {
    max-width: 680px;
    margin: 0 auto 4rem;
}

.acceptance-desc {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--muted);
    margin-top: 1.25rem;
    line-height: 1.65;
    max-width: 560px;
    margin-inline: auto;
}

.acceptance-block {
    margin-bottom: 3.5rem;
}

.acceptance-sub-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--subtle);
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: center;
}

/* --- Card Brands Row --- */
.card-brands-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.card-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity var(--dur-hover) var(--ease-hover), transform var(--dur-hover) var(--ease-hover);
}

.card-brand-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.card-brand-img {
    height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.card-brand-img.card-brand-img-sivale {
    height: 46px;
    max-width: 155px;
}

/* --- Payment Methods Row --- */
.payment-methods-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.payment-method-item {
    padding: 2rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--background);
    transition: border-color var(--dur-hover) var(--ease-hover),
                box-shadow var(--dur-hover) var(--ease-hover),
                transform var(--dur-hover) var(--ease-hover);
    cursor: default;
}

.payment-method-item:hover {
    border-color: rgba(76, 168, 226, 0.4);
    box-shadow: 0 8px 28px rgba(12, 71, 114, 0.07);
    transform: translateY(-3px);
}

.pm-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--surface-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.pm-icon-wrap i {
    font-size: 1.5rem;
    color: var(--mx-blue);
}

.pm-title {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.6rem;
}

.pm-desc {
    font-size: clamp(0.875rem, 0.9vw, 0.95rem);
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Disclaimer --- */
.acceptance-disclaimer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--subtle);
    margin-top: 0.5rem;
    line-height: 1.5;
    max-width: 640px;
    margin-inline: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .payment-methods-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-brands-row {
        gap: 2rem;
    }

    .card-brand-img {
        height: 38px;
    }

    .card-brand-img.card-brand-img-sivale {
        height: 36px;
        max-width: 130px;
    }

    .acceptance-header {
        margin-bottom: 3rem;
    }

    .acceptance-block {
        margin-bottom: 2.5rem;
    }
}

/* =========================================
   WHATSAPP FLOATING WIDGET (ALL SCREENS)
   ========================================= */
.wa-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 8500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-body);
}

/* Floating Action Button */
.wa-floating-btn {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.42), 0 4px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.25s ease;
    outline: none;
}

.wa-floating-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.52), 0 6px 14px rgba(0, 0, 0, 0.15);
    background: #20BD5A;
}

.wa-floating-btn:active {
    transform: scale(0.96);
}

.wa-floating-btn .wa-icon-wa {
    font-size: 2rem;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.wa-floating-btn .wa-icon-x {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.wa-widget.is-open .wa-floating-btn {
    background: #0C4772;
    box-shadow: 0 10px 25px rgba(12, 71, 114, 0.35);
}

.wa-widget.is-open .wa-floating-btn .wa-icon-wa {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.wa-widget.is-open .wa-floating-btn .wa-icon-x {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Pulse animation */
.wa-pulse-wave {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.8;
    animation: waPulse 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.wa-widget.is-open .wa-pulse-wave {
    display: none;
}

@keyframes waPulse {
    0% { transform: scale(0.95); opacity: 0.9; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Badge */
.wa-badge-unread {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-widget.is-open .wa-badge-unread {
    opacity: 0;
    transform: scale(0);
}

/* Chat Popup Window */
.wa-popup {
    width: 360px;
    max-width: calc(100vw - 2.5rem);
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 50px -10px rgba(12, 71, 114, 0.28), 0 0 0 1px rgba(12, 71, 114, 0.08);
    overflow: hidden;
    margin-bottom: 1rem;
    transform-origin: bottom right;
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.wa-widget.is-open .wa-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Header */
.wa-popup-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: #FFFFFF;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wa-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-avatar-container {
    position: relative;
    width: 44px;
    height: 44px;
}

.wa-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: #FFFFFF;
}

.wa-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: #25D366;
    border: 2px solid #075E54;
    border-radius: 50%;
}

.wa-header-meta {
    display: flex;
    flex-direction: column;
}

.wa-header-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.98rem;
    color: #FFFFFF;
    line-height: 1.2;
}

.wa-header-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.wa-status-text {
    color: #90CEC8;
    font-weight: 600;
}

.wa-btn-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wa-btn-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.05);
}

/* Body */
.wa-popup-body {
    background: #ECE5DD;
    background-image: radial-gradient(rgba(12, 71, 114, 0.05) 1px, transparent 1px);
    background-size: 16px 16px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 280px;
    overflow-y: auto;
}

.wa-chat-bubble {
    background: #FFFFFF;
    border-radius: 4px 14px 14px 14px;
    padding: 0.85rem 1rem 0.6rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    position: relative;
    align-self: flex-start;
}

.wa-sender-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #128C7E;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.wa-message-text {
    font-size: 0.875rem;
    color: #13212B;
    line-height: 1.45;
    margin: 0;
}

.wa-timestamp {
    display: block;
    text-align: right;
    font-size: 0.68rem;
    color: #8696A0;
    margin-top: 4px;
}

.wa-status-notice {
    background: rgba(12, 71, 114, 0.08);
    border: 1px dashed rgba(12, 71, 114, 0.25);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.76rem;
    color: var(--mx-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.35;
}

.wa-status-notice i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Footer / Input */
.wa-popup-footer {
    background: #F0F2F5;
    padding: 0.75rem 1rem 0.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-input-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 4px 6px 4px 14px;
    border: 1px solid #E2E8F0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-input-form:focus-within {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.wa-input-text {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--foreground);
    outline: none;
    padding: 6px 0;
}

.wa-btn-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wa-btn-send:hover {
    background: #20BD5A;
    transform: scale(1.05);
}

.wa-footer-caption {
    text-align: center;
    margin-top: 6px;
    font-size: 0.68rem;
    color: #8696A0;
}

@media (max-width: 640px) {
    .wa-widget {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    .wa-floating-btn {
        width: 56px;
        height: 56px;
    }
    .wa-floating-btn .wa-icon-wa {
        font-size: 1.8rem;
    }
    .wa-popup {
        width: calc(100vw - 2.5rem);
    }
}

/* =========================================
   PÁGINA CONTACTO: FORMULARIO Y RUTAS
   ========================================= */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-sidebar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.75rem;
    font-family: var(--font-heading);
}

.btn-route {
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    background: #FFFFFF;
    border: 1.5px solid var(--line);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(12, 71, 114, 0.03);
}

.btn-route:hover {
    border-color: var(--mx-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(12, 71, 114, 0.08);
}

.btn-route.is-active {
    border-color: var(--mx-primary);
    background: rgba(12, 71, 114, 0.03);
    box-shadow: 0 4px 16px rgba(12, 71, 114, 0.08);
}

.btn-route h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    margin: 0;
}

.btn-route p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

/* Contact Form Container */
.contact-form-container {
    background: #FFFFFF;
    border-radius: 22px;
    border: 1px solid rgba(12, 71, 114, 0.12);
    box-shadow: 0 16px 45px rgba(12, 71, 114, 0.08);
    padding: 3rem 2.75rem;
}

.form-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.25rem;
}

.form-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--foreground);
    font-family: var(--font-heading);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 0.925rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.form-email-link {
    color: var(--mx-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Contact Form & Form Groups */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 3px;
}

.required-star {
    color: #E53E3E;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A1AA;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mx-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(12, 71, 114, 0.1);
}

/* Select wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 2.5rem 0.85rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--foreground);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--mx-primary);
    box-shadow: 0 0 0 3px rgba(12, 71, 114, 0.1);
}

.select-caret {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
    font-size: 1.1rem;
}

/* Textarea */
.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--mx-primary);
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.45;
}

/* Page Submit Button */
.page-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--mx-primary);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(12, 71, 114, 0.2);
    margin-top: 0.5rem;
}

.page-submit-btn:hover {
    background: #083653;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(12, 71, 114, 0.3);
}

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

.form-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.85rem;
    text-align: center;
}

.form-footer-note i {
    color: #1F7766;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-form-container {
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .contact-form-container {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
    .form-title {
        font-size: 1.4rem;
    }
}

/* Responsive layout refinements */
@media (max-width: 1023px) {
    .header-container {
        height: 4.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --text-h1: clamp(2.25rem, 10vw, 3.25rem);
        --text-h2: clamp(1.75rem, 7.5vw, 2.5rem);
        --text-h3: clamp(1.2rem, 5vw, 1.5rem);
        --text-body: clamp(1rem, 4.4vw, 1.125rem);
        --padding-x: clamp(1rem, 5vw, 1.5rem);
        --section-spacing: clamp(3.5rem, 12vw, 5rem);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .header-container {
        height: 4.25rem;
    }

    .logo-image,
    .logo-default,
    .logo-home-top {
        max-width: 130px;
        max-height: 48px;
    }

    .header-right {
        gap: 0.5rem;
    }

    .header-right > .btn {
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
    }

    .menu-trigger {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .nav-menu {
        height: 100vh;
        height: 100dvh;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-menu-header {
        flex: 0 0 auto;
        padding: calc(1rem + env(safe-area-inset-top)) var(--padding-x) 1rem;
    }

    .nav-close {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
    }

    .nav-menu-content {
        min-height: 0;
        justify-content: flex-start;
        gap: clamp(1rem, 3.5vh, 1.75rem);
        padding: 1.5rem var(--padding-x) 2rem;
        overflow-y: auto;
    }

    .nav-link {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.1;
        text-align: center;
        padding: 0.35rem 0.75rem;
    }

    .container {
        padding-inline: var(--padding-x);
    }

    .section-spacing {
        padding-block: var(--section-spacing);
    }

    h1, h2, h3, h4 {
        margin-bottom: 1.5rem;
        overflow-wrap: anywhere;
    }

    p {
        overflow-wrap: anywhere;
    }

    img,
    video,
    canvas,
    svg {
        max-width: 100%;
    }

    .hero:not(.hero-home) {
        min-height: auto;
        padding-top: calc(4.25rem + env(safe-area-inset-top));
        padding-bottom: 3.5rem;
    }

    .hero-home {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-home .hero-container {
        padding-top: calc(4.25rem + env(safe-area-inset-top));
    }

    .hero-home .hero-content {
        padding-block: 2.5rem;
    }

    .hero-home .hero-title {
        font-size: clamp(2.4rem, 10.5vw, 3.5rem);
        line-height: 1.05;
    }

    .hero-home .hero-primary {
        font-size: 1rem;
    }

    .hero-actions,
    .cta-actions,
    .processing-actions {
        gap: 0.75rem;
    }

    .hero-actions .btn,
    .cta-actions .btn,
    .processing-actions > a {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .logos-slider-section {
        padding-inline: var(--padding-x);
    }

    .solution-row {
        gap: 0.75rem;
        padding-block: 1.5rem;
    }

    .solution-num {
        width: 2rem;
        flex: 0 0 2rem;
    }

    .solution-title {
        min-width: 0;
        font-size: clamp(1.15rem, 5vw, 1.5rem);
        line-height: 1.25;
    }

    .terminal-callouts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .t-callout {
        padding: 1rem;
    }

    .flow-stages {
        gap: 1.5rem;
    }

    .security-grid {
        gap: 1.25rem 0.75rem;
        margin-top: 2rem;
    }

    .sec-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    .final-cta-section {
        padding-block: var(--section-spacing);
    }

    .footer {
        padding-top: 3.5rem;
    }

    .footer-grid {
        gap: 2rem;
        margin-bottom: 2.5rem;
    }

    .nos-timeline {
        gap: 2rem;
        padding-left: 1.5rem;
    }

    .nos-tl-line {
        left: 0.35rem;
    }

    .nos-tl-item,
    .nos-tl-item:nth-child(even) {
        justify-content: flex-start;
    }

    .nos-tl-dot,
    .nos-tl-item.is-active .nos-tl-dot {
        left: 0.35rem;
    }

    .nos-tl-content,
    .nos-tl-item:nth-child(even) .nos-tl-content {
        width: 100%;
        padding: 0 0 0 1.5rem;
        text-align: left;
    }

    .nos-valor-card,
    .tri-node {
        padding: 1.5rem;
    }

    .proc-dash-grid {
        gap: 2rem;
    }

    .dash-callout {
        display: none;
    }

    .admin-srv-layout {
        gap: 1rem;
    }

    .srv-item {
        padding: 1.1rem;
    }

    .srv-visual-area {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 14rem;
        padding: 1rem;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
    }

    .srv-vis-content {
        min-height: 12rem;
    }

    .srv-image {
        max-width: 100%;
        max-height: 18rem;
    }

    .comp-visual {
        height: 220px;
    }

    .nos-timeline-section,
    .nos-define-section {
        padding-block: var(--section-spacing);
    }

    .define-word-block {
        margin-bottom: 3rem;
    }

    .platform-grid {
        gap: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group textarea,
    .select-wrapper select {
        font-size: 16px;
    }

    .modal-panel {
        width: 100%;
        max-height: calc(100dvh - 2rem);
        padding: 2rem 1.25rem 1.5rem;
    }

    .wa-widget {
        right: max(1rem, env(safe-area-inset-right));
        bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

@media (max-width: 420px) {
    .header-right > .btn {
        padding-inline: 0.75rem;
    }

    .terminal-callouts {
        grid-template-columns: 1fr;
    }

    .logo-item {
        min-width: 90px;
    }

    .card-brands-row {
        gap: 1.25rem;
    }

    .card-brand-img,
    .card-brand-img.card-brand-img-sivale {
        max-width: 110px;
        height: 34px;
    }
}
