/* ============================================
   CSS VARIABLES - LIGHT & DARK MODE
   ============================================ */
:root {
    /* Color Palette */
    --primary-color: #009CEB;        /* Azul principal */
    --primary-dark: #164469;         /* Azul oscuro corporativo */
    --primary-darker: #012A49;       /* Azul más oscuro */
    --secondary-color: #134169;      /* Azul medio */
    --accent-color: #009CEB;         /* Azul brillante para destacados */
    --text-primary: #565656;         /* Gris oscuro texto */
    --text-secondary: #565656;       /* Gris medio */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f5f6;         /* Gris claro fondo */
    --bg-card: #ffffff;
    --border-color: #cccdce;         /* Gris medio borde */
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #164469 0%, #009CEB 100%);
    --gradient-2: linear-gradient(90deg, #164469 0%, #009CEB 100%);
    --gradient-3: linear-gradient(135deg, #009CEB 0%, #00d4ff 100%);
}

[data-theme="dark"] {
    --primary-color: #009CEB;
    --primary-dark: #012A49;
    --primary-darker: #000814;
    --secondary-color: #164469;
    --accent-color: #00d4ff;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --bg-primary: #012A49;
    --bg-secondary: #164469;
    --bg-card: #164469;
    --border-color: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    /* clip (no hidden) evita scroll horizontal sin romper position: sticky */
    overflow-x: clip;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
}

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

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle .sun,
.theme-toggle .moon {
    display: none;
}

.theme-toggle .sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon {
    display: block;
}

/* ============================================
   NAV DROPDOWNS / MEGA MENU
   ============================================ */
.navbar .container {
    gap: 1.5rem;
}

a.logo {
    text-decoration: none;
}

.nav-menu {
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.4rem;
}

.nav-menu > li {
    white-space: nowrap;
}

.has-dropdown {
    position: relative;
}

.nav-top {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.has-dropdown > .nav-top::after {
    content: "▾";
    position: static;
    width: auto;
    height: auto;
    background: none;
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.has-dropdown:hover > .nav-top::after,
.has-dropdown:focus-within > .nav-top::after {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 0.6rem;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1001;
}

.dropdown::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.dropdown a:hover {
    background: var(--bg-secondary);
}

.dropdown a::after {
    display: none;
}

.dropdown-mega {
    min-width: 540px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.dropdown-mega a {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.dropdown-mega a strong {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.dropdown-mega a small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.dropdown-mega a:hover strong {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav-cta {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 156, 235, 0.35);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1100px) {
    .navbar .container { position: relative; }
    .logo { flex: 0 1 auto; min-width: 0; }
    .nav-toggle { display: flex; }
    .btn-nav-cta { display: none; }

    .nav-actions {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        padding: 0.5rem 1.5rem 2rem;
        max-height: calc(100vh - 62px);
        overflow-y: auto;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    }

    .nav-menu.open { display: flex; }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-top { padding: 0.95rem 0; width: 100%; justify-content: space-between; }

    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 0;
        padding: 0 0 0.6rem 1rem;
        display: none;
    }

    .has-dropdown.open > .dropdown { display: flex; }
    .has-dropdown.open > .nav-top::after { transform: rotate(180deg); }
    .dropdown-mega { grid-template-columns: 1fr; min-width: 0; }
}

@media (max-width: 560px) {
    .navbar .container { gap: 0.5rem; padding: 0 1rem; }
    .logo {
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.2;
        display: block;
        max-width: 190px;
    }
    .nav-actions { right: 1rem; gap: 0.4rem; }
    .theme-toggle { font-size: 1rem; padding: 0.4rem; }
}

/* ============================================
   SIDEBAR NAVIGATION (lateral)
   ============================================ */
:root { --sidebar-w: 256px; }

body { padding-left: var(--sidebar-w); }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-logo {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.25;
    text-decoration: none;
    letter-spacing: 0.01em;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sidebar-logo-ic { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto; display: block; }
.topbar-logo-ic { width: 30px; height: 30px; border-radius: 7px; flex: 0 0 auto; display: block; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.sidebar-nav a {
    color: #c7d3e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-nav a:hover {
    background: rgba(0, 156, 235, 0.16);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(0, 156, 235, 0.22);
    color: #fff;
}

/* Módulos: nombre arriba + descriptor tabulado debajo (un solo enlace) */
.sidebar-nav a.nav-module {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.nav-module .nav-name { font-weight: 600; }
.nav-module .nav-desc {
    margin-top: 2px;
    padding-left: 0.95rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #87a3b8;
}
.sidebar-nav a.nav-module:hover .nav-desc,
.sidebar-nav a.nav-module.active .nav-desc { color: #cddae6; }

.sidebar-label {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: #6b8199;
    font-weight: 700;
    margin: 1.1rem 0.85rem 0.4rem;
    padding-bottom: 0.45rem;
    /* línea sutil que se desvanece, para dar relevancia a cada grupo */
    border-image: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)) 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .btn-nav-cta {
    flex: 1;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-footer .btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 156, 235, 0.4);
}

.sidebar-footer .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Mobile top bar (hidden on desktop) */
.topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    z-index: 1001;
}

[data-theme="dark"] .topbar { background: rgba(15, 23, 42, 0.95); }

.topbar-logo {
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    white-space: nowrap;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 1100px) {
    body { padding-left: 0; padding-top: 58px; }
    .topbar { display: flex; }
    .nav-toggle { display: flex; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.25);
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(0, 156, 235, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, #012A49 0%, #164469 55%, #009CEB 140%);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero .container {
    width: 100%;
    min-width: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.gradient-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 10, 30, 0.7), rgba(1, 10, 30, 0.3));
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: white;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 500;
    color: #e2e8f0;
    max-width: 52ch;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    color: #d1d5db;
    font-size: 0.97rem;
    margin-bottom: 2rem;
}

.hero-meta div {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
}

.eyebrow {
    color: #7dd3fc;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 1.5s ease infinite;
}

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

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 6rem 0;
}

.workflow {
    background: #f5f8fb;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 1.5rem;
}

.workflow-step {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.workflow-step h3 {
    font-size: 1.35rem;
    margin: 1rem 0 0.8rem;
}

.workflow-step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card.card-link {
    cursor: pointer;
}

.service-card.card-link::after {
    content: "Ver módulo →";
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-card.card-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   LOGISTICS SECTION
   ============================================ */
.logistics {
    background: var(--bg-primary);
}

.logistics-intro {
    margin-bottom: 4rem;
}

.intro-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.variables-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2.25rem;
}

/* Banda de rendimiento (FastTrip home) — fondo azul de cuadrícula */
.perf-band {
    margin-top: 2.6rem;
    padding: clamp(1.6rem, 4vw, 2.8rem);
    border-radius: 18px;
    color: #c7d3e0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
    box-shadow: 0 18px 44px rgba(8, 18, 37, 0.28);
}
.perf-eyebrow { display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: #36b3f3; background: rgba(0, 156, 235, 0.14); padding: 0.35rem 0.85rem; border-radius: 999px; }
.perf-title { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0.85rem 0 0; }
.perf-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin: 2rem 0; }
.perf-stat { text-align: center; padding: 1.1rem 0.4rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; }
.perf-num { display: block; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; color: #36b3f3; line-height: 1; }
.perf-num--amber { color: #fbbf24; }
.perf-lbl { display: block; margin-top: 0.55rem; font-size: 0.78rem; color: #9fb0c3; line-height: 1.3; }
.perf-text { max-width: none; margin: 0; color: #c7d3e0; line-height: 1.7; font-size: 1rem; }
.perf-text strong { color: #fff; }
.perf-foot { margin: 1rem 0 0; font-size: 0.85rem; font-weight: 600; color: #36b3f3; }
@media (max-width: 900px) { .perf-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .perf-stats { grid-template-columns: repeat(2, 1fr); } }

/* Métodos de zonificación (FastZone home) — grid de 4 tarjetas */
.fz-methods-title { text-align: center; font-size: 1.5rem; margin-top: 3.4rem; color: var(--text-primary); }
.fz-methods-sub { text-align: center; max-width: 720px; margin: 0.5rem auto 0; color: var(--text-secondary); line-height: 1.6; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; text-align: left; }
.method-grid .feature-block { padding: 1.6rem; }
@media (max-width: 980px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }

.variable-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Map Demo */
.map-demo {
    background: linear-gradient(160deg, #0e2247 0%, #081225 100%);
    padding: 3rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4rem;
}

.map-demo-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #fff;
}

.map-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.map-container h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #e2e8f0;
}

.map-canvas {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.map-canvas canvas {
    display: block;
    width: 100%;
    height: 400px;
}

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

.stat {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.cost-high {
    color: #ef4444;
}

.cost-low {
    color: #10b981;
}

.arrow-transition {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-transition svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    animation: pulse 2s ease infinite;
}

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

/* Impact Metrics */
.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.metric-card {
    background: var(--gradient-1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Logistics Features */
.logistics-features {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.feature-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

/* ============================================
   AI SECTION
   ============================================ */
.ai-section {
    /* Blanco como las secciones vecinas (optimizer y case-study) para evitar la franja gris suelta */
    background: var(--bg-primary);
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-video {
    margin: 4rem auto 0;
    max-width: 880px;
    text-align: center;
}

.app-video-player {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(22, 68, 105, 0.25);
    background: #000;
}

.app-video-caption {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   FASTANALYTICS
   ============================================ */
.analytics-section {
    padding: 6rem 0;
    /* Blanco para evitar la franja gris suelta debajo de la galería oscura de dashboards */
    background: var(--bg-primary);
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.analytics-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

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

.analytics-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.analytics-features li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.analytics-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.analytics-video-player {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(22, 68, 105, 0.25);
    background: #000;
}

.analytics-dashboards {
    margin-top: 4rem;
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 3rem 2.5rem;
}

.analytics-dashboards-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #0b1220;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.dashboard-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.dashboard-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 64px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    background: #0b1220;
}

/* ============================================
   FASTZONE GALLERY
   ============================================ */
.fastzone-section {
    padding: 6rem 0;
}

.fastzone-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: center;
    margin-top: 3rem;
    background: linear-gradient(160deg, #0e2247 0%, #081225 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 2.75rem;
}

.fastzone-card {
    flex: 0 1 360px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #0b1220;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.fastzone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.fastzone-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.fastzone-caption {
    display: block;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    background: #0b1220;
}

@media (max-width: 768px) {
    .fastzone-card { flex: 1 1 100%; }
    .fastzone-card img { height: auto; }
}

/* ============================================
   SCROLL-DRIVEN VIDEO
   ============================================ */
.scrollytelling {
    position: relative;
    height: 200vh;
}

.scrolly-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
}

.scrolly-frame {
    position: relative;
    width: min(94%, 1000px);
    max-height: 72vh;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.scrolly-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scrolly-overlay {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 7%;
    max-width: 620px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

.scrolly-overlay .eyebrow {
    color: #7dd3fc;
}

.scrolly-title {
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0.4rem 0 0.7rem;
}

.scrolly-text {
    font-size: 0.98rem;
    color: #e2e8f0;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .scrollytelling { height: 220vh; }
    .scrolly-overlay { left: 5%; right: 5%; bottom: 8%; }
}

/* ============================================
   FASTTRIP OPTIMIZER
   ============================================ */
.optimizer-section {
    padding: 6rem 0;
    text-align: center;
}

.optimizer-shot {
    display: block;
    max-width: 960px;
    margin: 3rem auto 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #0b1220;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.optimizer-shot:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.optimizer-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.optimizer-caption {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   MODULE GALLERY (Torre + App móvil)
   ============================================ */
.module-gallery {
    margin-top: 3.5rem;
}

.module-gallery-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.75rem;
}

/* Phone screenshots (portrait) */
.phone-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: center;
    background: linear-gradient(160deg, #0e2247 0%, #081225 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 2.75rem;
}

.phone-card {
    flex: 0 1 270px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #0b1220;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.phone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

.phone-card img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.phone-caption {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    background: #0b1220;
    text-align: center;
}

/* Torre de control (landscape) */
.torre-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    background: linear-gradient(160deg, #0e2247 0%, #081225 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 2.75rem;
}

.torre-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #0b1220;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.torre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

.torre-card img {
    width: 100%;
    height: auto;
    display: block;
}

.torre-caption {
    display: block;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    background: #0b1220;
}

@media (max-width: 768px) {
    .phone-card { flex: 1 1 100%; }
    .phone-card img { height: auto; }
    .torre-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .analytics-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.ai-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-brain {
    position: relative;
    width: 300px;
    height: 300px;
}

.brain-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { top: 25%; right: 10%; animation-delay: 0.5s; }
.node-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 1s; }
.node-4 { top: 25%; left: 10%; animation-delay: 1.5s; }
.node-5 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 2s; }

/* Colores tipo alerta (Torre de Control): 1ª amarillo · medias verde · última roja */
.node-1 { background: linear-gradient(135deg, #E69A0A 0%, #F7C948 100%); }
.node-2,
.node-3,
.node-4 { background: linear-gradient(135deg, #1E8E4E 0%, #2ECC71 100%); }
.node-5 { background: linear-gradient(135deg, #C0392B 0%, #EB5757 100%); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.brain-connection {
    position: absolute;
    background: var(--primary-color);
    height: 2px;
    transform-origin: left center;
    opacity: 0.3;
    animation: pulse 2s ease infinite;
}

.ai-features {
    display: grid;
    gap: 2rem;
}

.ai-feature {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ai-feature:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.ai-feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.ai-feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ai-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.ai-feature p {
    color: var(--text-secondary);
}

/* ============================================
   PROCESS SECTION - TIMELINE STYLE
   ============================================ */
.process {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.process-heading {
    text-align: center;
    font-size: 1.8rem;
    margin-top: 4rem;
    margin-bottom: 0.5rem;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 60px;
    top: 80px;
    bottom: 80px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.process-step {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-circle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step-icon {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 8px 24px rgba(0, 156, 235, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 156, 235, 0.25);
}

.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    z-index: 3;
}

.step-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-step:hover .step-content {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 156, 235, 0.15);
    transform: translateX(10px);
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.step-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    position: relative;
    font-size: 0.95rem;
}

.step-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.process-arrow {
    display: none;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-secondary);
}

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

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

.info-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

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

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Form */
.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.btn-submit {
    width: 100%;
}

.form-success {
    display: none;
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.form-success.show {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
    color: #c7d3e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-ic { width: 50px; height: 50px; border-radius: 11px; display: block; margin-bottom: 0.85rem; }
.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-brand p {
    color: #c7d3e0;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

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

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

.footer-links a {
    color: #c7d3e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #36b3f3;
}

.footer-contact p {
    color: #c7d3e0;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9fb0c3;
}

/* ============================================
   AOS ANIMATIONS
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Red de seguridad: el contenido NUNCA debe quedar oculto.
   En móvil mostramos todo de inmediato (la animación de aparición por
   scroll aporta poco en pantallas chicas y puede fallar en algunos
   navegadores móviles, dejando secciones invisibles). Igual respetamos
   la preferencia de "reducir movimiento" en cualquier tamaño. */
@media (max-width: 768px) {
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        gap: 1rem;
    }

    .map-comparison {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .arrow-transition {
        transform: rotate(90deg);
    }

    .ai-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 0;
    }

    .timeline-line {
        display: none;
    }

    .step-circle {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .map-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--gradient-2);
    padding: 4rem 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
    color: white;
}

.stat-suffix {
    font-size: 3rem;
    font-weight: 800;
    display: inline-block;
    color: #00d4ff;
    margin-left: 0.2rem;
}

.stat-text {
    font-size: 1.1rem;
    margin-top: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
/* ============================================
   CASE STUDY (Grupo Modelo)
   ============================================ */
.case-study {
    padding: 6rem 0;
}

/* Hero: logo + key metrics */
.case-hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 3rem;
}

.case-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-hero-logo img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

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

.case-metric {
    display: flex;
    flex-direction: column;
}

.case-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}

.case-label {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Countries */
.case-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin: 2rem 0 0.5rem;
}

.country-chip {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Narrative blocks */
.case-block {
    margin-top: 3rem;
}

.case-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.tag-reto       { background: #d9534f; }
.tag-solucion   { background: var(--primary-color); }
.tag-resultados { background: #2faa6a; }

.case-block-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.case-block > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    max-width: 900px;
}

.case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 900px;
}

.case-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-color);
}

.case-list strong {
    color: var(--text-primary);
}

/* Solution pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    position: relative;
}

.pillar-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pillar h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}

.pillar p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Results */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.results-grid .result-item {
    border-left: 3px solid var(--primary-color);
    padding: 0.25rem 0 0.25rem 1.25rem;
}

.results-grid .result-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.results-grid .result-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tech chips */
.case-tech {
    margin-top: 3rem;
    text-align: center;
}

.case-tech-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-chip {
    background: var(--gradient-1);
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .case-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .case-metrics,
    .pillars-grid,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.clients-section {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.client-logo {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 120px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--primary-color);
}

.client-logo-img {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.client-logo-img img {
    height: 44px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.client-name {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

.client-desc {
    color: #565656;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   IMPROVED BUTTONS
   ============================================ */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 156, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 156, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-suffix {
        font-size: 2.5rem;
    }

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

/* ============================================
   SUCCESS STORIES SECTION
   ============================================ */
.success-stories {
    background: linear-gradient(135deg, #164469 0%, #009CEB 100%);
    padding: 6rem 0;
    color: white;
}

.success-stories .section-title,
.success-stories .section-subtitle {
    color: white;
}

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

.story-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.story-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.story-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.story-content {
    flex: 1;
}

.story-challenge {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.stories-lead {
    max-width: 820px;
    margin: 2rem auto 3.5rem;
    text-align: center;
}

.stories-lead-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.stories-lead p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.stories-lead strong {
    color: #fff;
}

.story-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.25rem 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.story-results .result-item {
    text-align: center;
    min-width: 0;
    border-left: none;
    padding: 0 0.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.story-results .result-item + .result-item {
    border-left: 1px solid var(--border-color);
}

.result-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    line-height: 1.1;
    white-space: nowrap;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.story-solution {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.story-cta {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.story-cta:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   INSIGHTS SECTION
   ============================================ */
.insights-section {
    background: var(--bg-primary);
    padding: 6rem 0;
}

.insights-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.insight-card {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    align-items: center;
}

.insight-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow);
    transform: translateX(10px);
}

.insight-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.insight-image svg {
    width: 80px;
    height: 80px;
    display: block;
}

.insight-content {
    flex: 1;
}

.insight-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.insight-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.insight-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.insight-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* Accesibilidad: área de toque mínima 44px (Apple/Google) */
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    margin-left: -0.25rem;
    transition: all 0.3s ease;
}

.insight-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

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

    .story-results {
        grid-template-columns: 1fr;
    }

    .insight-card {
        flex-direction: column;
        text-align: center;
    }

    .insight-image {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
}
/* ============================================
   HOMEPAGE STRATEGY ADDITIONS
   ============================================ */
/* Two pillars row (services intro) */
.pillars-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 1rem;
}
.pillar-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}
.pillar-tag svg { width: 22px; height: 22px; flex-shrink: 0; }
.pillar-brain { background: rgba(0, 156, 235, 0.12); color: var(--primary-dark); }
.pillar-muscle { background: rgba(22, 68, 105, 0.1); color: var(--primary-dark); }
[data-theme="dark"] .pillar-brain,
[data-theme="dark"] .pillar-muscle { color: #e2e8f0; }

/* Routing feature blocks (optimizer) */
.feature-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3.5rem;
    text-align: left;
}
.feature-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}
.feature-block h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}
.feature-block > p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
    font-size: 0.97rem;
}
.feature-block ul { list-style: none; padding: 0; margin: 0; }
.feature-block li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.5;
}
.feature-block li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Technical trust */
.trust-section { padding: 6rem 0; background: var(--bg-secondary); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}
.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 14px;
    padding: 2.25rem;
}
.trust-card h3 { font-size: 1.3rem; color: var(--text-primary); margin: 0 0 0.7rem; }
.trust-card p { color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* FAQ accordion */
.faq-section { padding: 6rem 0; }
.faq-list { max-width: 860px; margin: 3rem auto 0; }
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    margin-bottom: 0.85rem;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--primary-color); }
.faq-answer { padding: 0 1.5rem 1.4rem; color: var(--text-secondary); line-height: 1.65; }
.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer ul { margin: 0.25rem 0 0.75rem; padding-left: 1.25rem; }
.faq-answer li { margin-bottom: 0.4rem; }
.faq-answer strong { color: var(--text-primary); }

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

/* ============================================
   JOURNEY — scroll-animated 3 images (dark, FASTZONE blue)
   ============================================ */
.journey {
    position: relative;
    background: #070b16;
    /* Alto extra para impulsar el avance por scroll (3 slides) */
    height: 240vh;
}
.journey-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}
.journey-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(84, 104, 255, 0.20), transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(0, 156, 235, 0.12), transparent 50%),
        #070b16;
}
.journey-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
.journey-media {
    position: relative;
    width: 100%;
    /* Imagen más alta para llenar el panel y minimizar el espacio oscuro alrededor */
    height: 72vh;
    max-height: 660px;
}
.journey-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.7s ease, transform 0.9s ease;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.journey-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.journey-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.journey-text {
    position: relative;
    min-height: 360px;
    color: #fff;
}
.journey-eyebrow {
    display: block;
    color: #8aa0ff;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 2rem;
}
.journey-copy {
    position: absolute;
    top: 3.2rem;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.journey-copy.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.journey-copy h2 {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.1rem;
    color: #fff;
}
.journey-copy p {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #c7d3e0;
    max-width: 460px;
}
.journey-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 0.6rem;
}
.journey-dot {
    width: 36px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.3s ease;
    cursor: pointer;
}
.journey-dot.is-active {
    background: #5468ff;
}

@media (max-width: 900px) {
    .journey-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-content: center;
    }
    /* En móvil la imagen es más baja para que la imagen + texto quepan en pantalla */
    .journey-media { height: 36vh; max-height: 320px; }
    .journey-text { min-height: 250px; text-align: center; }
    .journey-copy { position: absolute; left: 0; right: 0; }
    .journey-copy p { margin-left: auto; margin-right: auto; }
    .journey-dots { justify-content: center; left: 0; right: 0; }
    .journey-eyebrow { text-align: center; }
}

/* ============================================
   APP SCREENSHOT FRAMES — window chrome (Hostinger style)
   ============================================ */
.dashboard-card,
.fastzone-card,
.torre-card,
.optimizer-shot {
    position: relative;
    padding-top: 34px;
    background: #0b1220;
}
.dashboard-card::before,
.fastzone-card::before,
.torre-card::before,
.optimizer-shot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    background:
        radial-gradient(circle at 18px 17px, #ff5f57 4px, transparent 4.5px),
        radial-gradient(circle at 38px 17px, #febc2e 4px, transparent 4.5px),
        radial-gradient(circle at 58px 17px, #28c840 4px, transparent 4.5px),
        #0e1626;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
}

/* ============================================
   MEDIA PANEL (dark blue box around app images)
   ============================================ */
.media-panel {
    background: linear-gradient(160deg, #0e2247 0%, #081225 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 2.75rem;
    margin: 3rem auto 0;
}
.media-panel .optimizer-shot {
    margin: 0 auto;
}
.media-panel .optimizer-caption {
    color: #c7d3e0;
    margin-top: 1.25rem;
}

/* ============================================
   FULL-BLEED BLUE BANDS (edge to edge, sidebar-aware)
   ============================================ */
.fastzone-gallery,
.phone-gallery,
.torre-gallery,
.analytics-dashboards,
.map-demo,
.media-panel {
    width: calc(100vw - var(--sidebar-w));
    margin-left: calc(50% + (var(--sidebar-w) / 2) - 50vw);
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: max(2rem, (100% - 1180px) / 2);
    padding-right: max(2rem, (100% - 1180px) / 2);
}
@media (max-width: 1100px) {
    :root { --sidebar-w: 0px; }
}

/* ============================================
   UNIFY BAND BACKGROUND WITH SIDEBAR (same color + grid texture)
   ============================================ */
.fastzone-gallery,
.phone-gallery,
.torre-gallery,
.analytics-dashboards,
.map-demo,
.media-panel {
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
}

/* Dos líneas horizontales (arriba y abajo) sobre el fondo azul de las galerías */
.fastzone-gallery,
.phone-gallery,
.torre-gallery,
.analytics-dashboards,
.media-panel {
    border-top: 3px solid rgba(255, 255, 255, 0.55);
    border-bottom: 3px solid rgba(255, 255, 255, 0.55);
}

/* Cuadrícula en las secciones claras. La ALINEACIÓN entre secciones la hace
   alignGrid() en script.js (ajusta background-position-y a un origen global),
   así los cuadros nunca se desfasan entre una sección y la siguiente. */
.workflow,
.services,
.analytics-section,
.logistics,
.ai-section,
.optimizer-section,
.process,
.insights-section,
.contact,
.trust-section,
.faq-section,
.case-study,
.clients-section,
.fastzone-section {
    background-image:
        linear-gradient(rgba(14, 34, 71, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 34, 71, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
}

/* Grid texture on dark / colored sections (white lines) */
.stats-section,
.success-stories {
    position: relative;
}
.stats-section::before,
.success-stories::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    z-index: 0;
}
.stats-section > .container,
.success-stories > .container {
    position: relative;
    z-index: 1;
}

/* Grid texture on the journey dark background */
.journey-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 72% 28%, rgba(84, 104, 255, 0.20), transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(0, 156, 235, 0.12), transparent 50%),
        linear-gradient(160deg, #070b16 0%, #070b16 100%);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

/* Hero chips lowered (after removing CTA buttons) */
.hero-meta-low {
    margin-top: 4rem;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE POLISH (tablet + mobile)
   ============================================ */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }

    .hero-title { font-size: 2rem; line-height: 1.15; }
    .hero-subtitle { font-size: 1.02rem; }
    .hero-meta-low { margin-top: 2.5rem; }

    .section-title { font-size: 1.7rem; }
    .section-subtitle { font-size: 1rem; }

    /* tighter vertical rhythm */
    .workflow, .services, .stats-section, .analytics-section, .logistics,
    .ai-section, .optimizer-section, .process, .success-stories,
    .insights-section, .contact, .clients-section, .trust-section,
    .faq-section, .fastzone-section, .case-study {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* full-bleed bands: tighter inner padding on phones */
    .fastzone-gallery, .phone-gallery, .torre-gallery,
    .analytics-dashboards, .map-demo, .media-panel {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    /* single column everywhere it matters */
    .services-grid,
    .feature-blocks,
    .pillars-grid,
    .results-grid,
    .case-metrics,
    .trust-grid,
    .story-results { grid-template-columns: 1fr; }

    .pillars-row { flex-direction: column; }
    .case-tech .tech-chips { gap: 0.5rem; }
}

/* ============================================
   MOBILE OVERFLOW SAFETY
   ============================================ */
html { overflow-x: clip; }
img, video { max-width: 100%; }

@media (max-width: 900px) {
    .ai-content,
    .analytics-content,
    .contact-content { grid-template-columns: 1fr; }
    .ai-content > *,
    .analytics-content > *,
    .contact-content > * { min-width: 0; }
}

@media (max-width: 600px) {
    .hero-title { overflow-wrap: break-word; }
}

/* ============================================
   ROI CALCULATOR
   ============================================ */
.roi-section {
    padding: 6rem 0;
    background-image:
        linear-gradient(rgba(14, 34, 71, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 34, 71, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
}
.roi-note { font-size: 0.85em; opacity: 0.7; }

.roi-card {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
}

/* Inputs side */
.roi-inputs {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.5rem;
    align-content: start;
}
.roi-toggle { grid-column: 1 / -1; margin-bottom: 0.5rem; }
.roi-toggle-label { display: block; color: #c7d3e0; font-size: 0.85rem; margin-bottom: 0.5rem; }
.roi-toggle-btns { display: flex; gap: 0.5rem; }
.roi-toggle-btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #c7d3e0;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.roi-toggle-btn.is-active {
    background: #5468ff;
    border-color: #5468ff;
    color: #fff;
}
.roi-field { display: flex; flex-direction: column; gap: 0.35rem; }
.roi-field label { color: #aebbcc; font-size: 0.78rem; line-height: 1.3; }
.roi-field input[type="number"] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
}
.roi-field input[type="number"]:focus { outline: none; border-color: #5468ff; }
.roi-slider-field { grid-column: 1 / -1; margin-top: 0.4rem; }
.roi-slider-field label { color: #fff; font-size: 0.9rem; }
.roi-slider-field strong { color: #7dd3fc; }
.roi-slider-field input[type="range"] { width: 100%; accent-color: #5468ff; margin-top: 0.3rem; cursor: pointer; }
.roi-slider-scale { display: flex; justify-content: space-between; color: #6b8199; font-size: 0.72rem; margin-top: 0.2rem; }

/* Results side */
.roi-results {
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
}
.roi-result-main { text-align: center; }
.roi-result-label { display: block; color: #aebbcc; font-size: 0.9rem; margin-bottom: 0.3rem; }
.roi-result-big { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: #4ade80; line-height: 1; }

.roi-bar-row { display: flex; justify-content: space-between; color: #c7d3e0; font-size: 0.82rem; margin-bottom: 0.3rem; }
.roi-bar-row + .roi-bar-track { margin-bottom: 0.9rem; }
.roi-bar-track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.roi-bar-fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.roi-bar-current { background: linear-gradient(90deg, #64748b, #94a3b8); }
.roi-bar-optimized { background: linear-gradient(90deg, #009CEB, #4ade80); }

.roi-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.roi-metric-num { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.roi-metric-label { display: block; color: #aebbcc; font-size: 0.74rem; margin-top: 0.3rem; }

.roi-cta {
    display: block;
    text-align: center;
    background: #5468ff;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.roi-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(84, 104, 255, 0.45); }

@media (max-width: 860px) {
    .roi-card { grid-template-columns: 1fr; }
    .roi-inputs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .roi-inputs { grid-template-columns: 1fr; }
}

/* ROI currency selector */
.roi-currency-field { grid-column: 1 / -1; }
.roi-field select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
}
.roi-field select:focus { outline: none; border-color: #5468ff; }
.roi-field select option { color: #0b1220; }

/* ============================================
   LIGHTBOX (ampliar imágenes en la misma página)
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    background: rgba(6, 11, 22, 0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); transform: scale(1.08); }
body.lightbox-open { overflow: hidden; }

/* ============================================
   VRP FLOW DIAGRAM (FastTrip optimizer)
   ============================================ */
.vrp-flow {
    max-width: 1080px;
    margin: 4.5rem auto 0;
    text-align: center;
}
.vrp-flow-title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 0.35rem;
}
.vrp-flow-title span { color: var(--primary-color); }
.vrp-flow-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.4rem;
}
.vrp-phases {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.6rem;
}
.vrp-phase {
    flex: 1 1 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem 1.3rem;
    box-shadow: 0 10px 28px rgba(1, 42, 73, 0.07);
    text-align: left;
}
.vrp-phase--engine {
    border-color: var(--primary-color);
    box-shadow: 0 12px 34px rgba(0, 156, 235, 0.18);
}
.vrp-phase-label {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 156, 235, 0.2);
}
.vrp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.vrp-steps li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}
.vrp-num,
.vrp-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: var(--primary-color);
}
.vrp-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
}
.vrp-tag {
    min-width: 36px;
    height: 24px;
    padding: 0 0.55rem;
    border-radius: 12px;
    font-size: 0.78rem;
}
/* Paso 5 y los métodos 5a-5e comparten color: todos dependen del paso 5 */
.vrp-num--method,
.vrp-tag {
    background: var(--vrp-method);
}
/* Pasos 6 y 7: verde de "ruta optimizada" (igual que en la app) */
.vrp-num--done {
    background: var(--vrp-done);
}
.vrp-arrow {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.9rem;
    font-weight: 700;
}
.vrp-flow-footer {
    display: inline-block;
    margin-top: 1.8rem;
    background: var(--primary-dark);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.7rem 1.7rem;
    border-radius: 30px;
}
@media (max-width: 860px) {
    .vrp-phases { flex-direction: column; align-items: stretch; }
    .vrp-arrow { justify-content: center; transform: rotate(90deg); padding: 0.25rem 0; }
}

/* --- Animación en cascada (se activa al entrar en pantalla) --- */
.vrp-flow { --vrp-method: #F2994A; --vrp-done: #27AE60; }
/* Estado inicial oculto (solo cuando JS "arma" la animación) */
.vrp-flow.vrp-armed .vrp-phase {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
}
.vrp-flow.vrp-armed .vrp-steps li {
    opacity: 0;
    transform: translateY(14px);
}
.vrp-flow.vrp-armed .vrp-arrow { opacity: 0; }
/* Revelado de las tarjetas de fase (entran primero, izquierda a derecha) */
.vrp-flow.vrp-armed.is-visible .vrp-phase {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.vrp-flow.vrp-armed.is-visible .vrp-arrow {
    opacity: 1;
    transition: opacity 0.9s ease;
}
.vrp-flow.vrp-armed.is-visible .vrp-phase:nth-of-type(1) { transition-delay: 0.15s; }
.vrp-flow.vrp-armed.is-visible .vrp-phase:nth-of-type(3) { transition-delay: 0.9s; }
.vrp-flow.vrp-armed.is-visible .vrp-phase:nth-of-type(5) { transition-delay: 1.7s; }
.vrp-flow.vrp-armed.is-visible .vrp-arrow:nth-of-type(2) { transition-delay: 1.9s; }
.vrp-flow.vrp-armed.is-visible .vrp-arrow:nth-of-type(4) { transition-delay: 4.0s; }
/* TODOS los pasos numerados entran con el mismo "bounce" (3 rebotes), uno tras otro */
.vrp-flow.vrp-armed.is-visible .vrp-steps li {
    animation: vrpBounceDown 1.25s ease-out both;
    animation-delay: calc(0.5s + var(--i) * 0.32s);
}
/* Caída + 3 rebotes decrecientes (efecto pelota) */
@keyframes vrpBounceDown {
    0%   { opacity: 0; transform: translateY(-30px); }
    18%  { opacity: 1; transform: translateY(0); }      /* primer impacto */
    34%  { transform: translateY(-17px); }              /* rebote 1 */
    50%  { transform: translateY(0); }
    64%  { transform: translateY(-9px); }               /* rebote 2 */
    78%  { transform: translateY(0); }
    90%  { transform: translateY(-3px); }               /* rebote 3 */
    100% { opacity: 1; transform: translateY(0); }      /* asentado */
}
/* La flecha hace un pulso suave (solo opacidad: conserva la rotación en móvil) */
.vrp-flow.is-visible .vrp-arrow {
    animation: vrpArrowPulse 1.8s ease-in-out 3s infinite;
}
@keyframes vrpArrowPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}
/* Nota: el flujo VRP y el paletizado son demostraciones centrales del producto,
   por eso se animan también con "reducir movimiento" activo (común en móvil). */



/* ============================================
   FASTBALANCE — PALETIZADO 3D ANIMADO
   ============================================ */
.pallet-demo {
    margin: 3rem auto 1rem;
    max-width: 760px;
}
.pallet-scene {
    -webkit-perspective: 1500px;
    perspective: 1500px;
    -webkit-perspective-origin: 50% 36%;
    perspective-origin: 50% 36%;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(0,156,235,0.10), rgba(14,34,71,0) 70%);
    border-radius: 22px;
}
.pallet-stage {
    position: relative;
    width: 0;
    height: 0;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: translateY(40px) rotateX(-23deg) rotateY(-31deg);
    transform: translateY(40px) rotateX(-23deg) rotateY(-31deg);
}
.pallet-stage * {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.pallet-shadow {
    position: absolute;
    left: 0; top: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.30), rgba(0,0,0,0) 68%);
    pointer-events: none;
}

.cube {
    position: absolute;
    left: 0; top: 0;
    -webkit-transform: translate3d(var(--tx), calc(var(--ty) - 680px), var(--tz));
    transform: translate3d(var(--tx), calc(var(--ty) - 680px), var(--tz));
    -webkit-transition: -webkit-transform 1.15s cubic-bezier(0.22, 1.18, 0.4, 1);
    transition: transform 1.15s cubic-bezier(0.22, 1.18, 0.4, 1);
    transition-delay: var(--d-out, 0ms);
}
.pallet-stage.filled .cube {
    -webkit-transform: translate3d(var(--tx), var(--ty), var(--tz));
    transform: translate3d(var(--tx), var(--ty), var(--tz));
    transition-delay: var(--d-in, 0ms);
}
.pallet-stage.no-trans .cube { -webkit-transition: none !important; transition: none !important; }

.deck { position: absolute; left: 0; top: 0; }
.face { position: absolute; left: 0; top: 0; }

@media (max-width: 600px) {
    .pallet-scene { height: 380px; }
}

/* ============================================
   FASTBALANCE — ESCENA CAMIÓN CARGADO (SVG)
   ============================================ */
.truck-scene {
    margin: 1.75rem auto 0;
    max-width: 780px;
    text-align: center;
    background: linear-gradient(180deg, #eaf4fb 0%, #f3f8fc 70%, #eef3f8 100%);
    border: 1px solid rgba(14, 34, 71, 0.08);
    border-radius: 22px;
    padding: 1.25rem 1.5rem 0.9rem;
    box-shadow: 0 14px 34px rgba(14, 34, 71, 0.08);
}
.truck-scene img {
    width: 100%;
    height: auto;
    display: block;
}
.truck-scene figcaption {
    margin-top: 0.6rem;
    color: #5a6b7b;
    font-size: 0.92rem;
    font-style: italic;
}

/* ============================================
   FASTCONNECT — INTEGRACIÓN LOGÍSTICA
   ============================================ */
.fastconnect-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg-primary);
}

/* --- Diagrama de flujo animado (SAP → API → BD → FastTrip → SAP) --- */
.fc-flow {
    max-width: 980px;
    margin: 2.5rem auto 3.5rem;
    padding: 2rem 1.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(14, 34, 71, 0.08);
}
.fc-flow-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
}
.fc-flow-title span { color: var(--primary-color); }
.fc-flow-sub {
    margin: 0.4rem auto 1.5rem;
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.fc-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Nodos */
.fc-node {
    fill: var(--bg-primary);
    stroke: var(--primary-color);
    stroke-width: 2;
    filter: drop-shadow(0 6px 14px rgba(0, 156, 235, 0.12));
}
.fc-node--erp { stroke: var(--primary-dark); }
.fc-node--ft  { stroke: #22c55e; }
.fc-node-title {
    fill: var(--text-primary);
    font-size: 19px;
    font-weight: 700;
}
.fc-node-sub {
    fill: var(--text-secondary);
    font-size: 12.5px;
}
.fc-badge { fill: var(--primary-color); }
.fc-badge--ft { fill: #22c55e; }
.fc-badge-num { fill: #fff; font-size: 14px; font-weight: 700; }

/* Conectores */
.fc-link {
    stroke: var(--primary-color);
    stroke-width: 3;
    opacity: 0.35;
    stroke-linecap: round;
}
.fc-return {
    stroke: #22c55e;
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 7 7;
    opacity: 0.5;
}
.fc-flow-cap { fill: var(--text-secondary); font-size: 14px; font-weight: 600; }
.fc-flow-cap--return { fill: #16a34a; }

/* Puntos en movimiento */
.fc-dot {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 6px rgba(0, 156, 235, 0.7));
}
.fc-dot--return {
    fill: #22c55e;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.7));
}

/* Leyenda */
.fc-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.fc-legend-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.fc-legend-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 6px rgba(0, 156, 235, 0.7);
}
.fc-legend-dot--return {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

/* --- Tablas (ediciones / compatibilidad) --- */
.fc-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem auto 0;
    text-align: left;
}
.fc-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 26px rgba(14, 34, 71, 0.06);
}
.fc-table-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.fc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.fc-table th {
    text-align: left;
    padding: 0.6rem 0.7rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
}
.fc-table th:first-child { border-top-left-radius: 8px; }
.fc-table th:last-child { border-top-right-radius: 8px; }
.fc-table td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: top;
}
.fc-table tbody tr:last-child td { border-bottom: none; }
.fc-table td:first-child { font-weight: 600; color: var(--text-primary); }

@media (max-width: 760px) {
    .fc-tables { grid-template-columns: 1fr; }
    .fc-node-title { font-size: 16px; }
    .fc-node-sub { font-size: 11px; }
    .fc-flow { padding: 1.5rem 0.8rem 1.2rem; }
}

/* Respeta "reducir movimiento": detiene los puntos viajeros */
@media (prefers-reduced-motion: reduce) {
    .fc-svg animateMotion { display: none; }
    .fc-dot, .fc-dot--return { display: none; }
}

.analytics-more-link {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.analytics-more-link:hover { border-bottom-color: var(--primary-color); }
.section-cta-center { text-align: left; margin-top: 2.4rem; }

/* ============================================
   PÁGINAS DE MÓDULO (servicios/*.html)
   ============================================ */
.module-hero {
    padding: 4rem 0 3rem;
    background: var(--bg-secondary);
    text-align: center;
}
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(14, 34, 71, 0.06);
    font-size: 0.84rem;
    text-align: left;
}
.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.breadcrumb a:hover { color: var(--primary-color); background: rgba(0, 156, 235, 0.09); }
.breadcrumb-home svg { width: 15px; height: 15px; display: block; }
.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.15rem 0.4rem;
}
.breadcrumb-sep {
    display: inline-flex;
    color: var(--border-color);
    font-weight: 400;
}
.breadcrumb-sep::before { content: "\203A"; /* chevron › */ }

/* ============================================
   FASTTRIP — animación: ciudad 3D isométrica con camión
   ============================================ */
.iso {
    position: relative;
    max-width: 980px;
    margin: 2.5rem auto 0;
    aspect-ratio: 16 / 10;
    min-height: 200px; /* respaldo si el navegador no soporta aspect-ratio */
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 26px 60px rgba(8, 18, 37, 0.32);
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
    perspective: 1200px;
}
.iso-cam {
    position: absolute;
    inset: 0;
    transform-origin: 50% 80%;
    transition: transform 3.4s cubic-bezier(0.45, 0, 0.2, 1);
    will-change: transform;
}
.iso-svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .iso-cam { transition: none; } }
/* iOS Safari a veces no pinta SVG grandes con transform 3D + will-change.
   En móvil dejamos la escena plana (sin tilt de cámara) para que siempre se vea. */
@media (max-width: 768px) {
    .iso-cam { will-change: auto; transition: none; transform: none !important; }
}
.iso-svg polygon { shape-rendering: geometricPrecision; }

/* Paradas */
.route-stop { fill: #fff; stroke: #2563eb; stroke-width: 3; transition: fill 0.3s ease, stroke 0.3s ease; }
.route-stop--done { fill: #22c55e; stroke: #15803d; }
.route-stop-num { fill: #1e3a8a; font-size: 12px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.route-stop-num--done { fill: #fff; }
#isoCity polygon { stroke: rgba(15,30,55,0.06); stroke-width: 0.5; }

/* Capa de profundidad + UI */
.map3d-fog {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(11,18,32,0) 52%, rgba(130,148,166,0.28) 80%, rgba(155,172,190,0.6) 100%);
}
.map3d-badge {
    position: absolute; left: 1rem; top: 1rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(11, 18, 32, 0.78); color: #fff;
    font-size: 0.78rem; font-weight: 700;
    padding: 0.4rem 0.8rem; border-radius: 20px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.map3d-live { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: map3dPulse 1.6s ease-out infinite; }
@keyframes map3dPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }
.route-hud {
    position: absolute; top: 1rem; right: 1rem;
    display: flex; gap: 0.9rem;
    background: rgba(11, 18, 32, 0.82); color: #fff;
    border-radius: 12px; padding: 0.6rem 0.9rem;
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.route-hud-item { display: flex; flex-direction: column; min-width: 58px; }
.route-hud-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.route-hud-val { font-size: 1rem; font-weight: 800; line-height: 1.3; }
@media (max-width: 620px) {
    .route-hud { gap: 0.6rem; padding: 0.45rem 0.6rem; }
    .route-hud-item { min-width: 46px; }
    .route-hud-val { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .map3d-live { animation: none; }
}

/* Línea ámbar elegante bajo el breadcrumb (centrada) para enfocar */
.hero-divider {
    width: 72px;
    height: 3px;
    margin: 0.2rem auto 1.7rem;
    border-radius: 3px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
.module-eyebrow {
    display: inline-block;
    background: rgba(0, 156, 235, 0.12);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}
.module-hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    max-width: 880px;
    margin: 0 auto 1rem;
    color: var(--text-primary);
}
.module-hero > .container > p {
    max-width: 720px;
    margin: 0 auto 1.8rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.module-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.module-section { padding: 4.5rem 0; }
.module-section--alt { background: var(--bg-secondary); }

/* Casos de uso */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.6rem;
    text-align: left;
    box-shadow: 0 10px 26px rgba(14, 34, 71, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(14, 34, 71, 0.12);
}
.usecase-card h3 { margin: 0 0 0.6rem; font-size: 1.15rem; color: var(--text-primary); }
.usecase-card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* CTA final del módulo */
.module-cta {
    padding: 4.5rem 0;
    text-align: center;
    background: var(--gradient-1);
    color: #fff;
}
.module-cta h2 { font-size: 1.9rem; margin: 0 0 0.6rem; color: #fff; }
.module-cta > .container > p { margin: 0 auto 1.8rem; font-size: 1.05rem; opacity: 0.92; max-width: 600px; }
.module-cta .btn-primary {
    background: #fff;
    color: var(--primary-dark);
}
.module-cta .btn-primary:hover { background: #eaf6ff; }
.module-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.2rem;
    font-size: 0.92rem;
}
.module-links span { opacity: 0.85; }
.module-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 1px;
}
.module-links a:hover { border-bottom-color: #fff; }

@media (max-width: 760px) {
    .module-hero h1 { font-size: 1.8rem; }
    .module-section { padding: 3rem 0; }
}

/* Imagen / captura dentro de una sección de módulo (tarjeta de screenshot) */
.module-shot { text-align: center; }
.module-shot .optimizer-shot {
    display: block;
    max-width: 980px;
    margin: 2.5rem auto 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0b1220;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}
.module-shot .optimizer-shot img { display: block; width: 100%; height: auto; }
.module-shot--wide { max-width: 1040px; margin: 2.5rem auto 0; }
.module-shot--wide .optimizer-shot { max-width: 1040px; }

/* Franja azul oscura con cuadrícula + texto blanco para secciones con imagen de app */
.module-section--dark {
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
    color: #c7d3e0;
}
.module-section--dark > .container > .section-title,
.module-section--dark > .container > .module-subheading,
.module-section--dark .analytics-text h3 { color: #ffffff; }
.module-section--dark > .container > .section-subtitle,
.module-section--dark > .container > .module-note,
.module-section--dark .analytics-text p,
.module-section--dark .analytics-text li,
.module-section--dark .optimizer-caption { color: #c7d3e0; }
.module-section--dark .analytics-text strong { color: #ffffff; }
.module-note {
    max-width: 820px;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}
.module-subheading {
    margin: 2.5rem 0 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
}

/* ============================================
   FASTZONE — elementos específicos
   ============================================ */
/* Animación: desbalanceado -> balanceado */
.bz-demo {
    max-width: 720px;
    margin: 2.5rem auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 14px 34px rgba(14, 34, 71, 0.10);
}
.bz-demo-head {
    position: relative;
    height: 44px;
    margin-bottom: 1.5rem;
}
.bz-pill {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    padding: 0.5rem 1.3rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}
.bz-pill--bad {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    animation: bzPillBad 6s ease-in-out infinite alternate;
}
.bz-pill--good {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    opacity: 0;
    animation: bzPillGood 6s ease-in-out infinite alternate;
}
@keyframes bzPillBad { 0%,35%{opacity:1} 65%,100%{opacity:0} }
@keyframes bzPillGood { 0%,35%{opacity:0} 65%,100%{opacity:1} }

.bz-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.4rem;
    height: 230px;
}
.bz-bar {
    position: relative;
    width: 58px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.bz-bar-fill {
    display: block;
    width: 100%;
    border-radius: 10px 10px 0 0;
}
.bz-bar-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.bz-fill--1 { background: #3b82f6; animation: bzBal1 6s ease-in-out infinite alternate; }
.bz-fill--2 { background: #10b981; animation: bzBal2 6s ease-in-out infinite alternate; }
.bz-fill--3 { background: #f59e0b; animation: bzBal3 6s ease-in-out infinite alternate; }
.bz-fill--4 { background: #ef4444; animation: bzBal4 6s ease-in-out infinite alternate; }
.bz-fill--5 { background: #8b5cf6; animation: bzBal5 6s ease-in-out infinite alternate; }
/* from = desbalanceado (muy desigual) -> to = balanceado (~igual) */
@keyframes bzBal1 { 0%,30%{height:95%} 70%,100%{height:64%} }
@keyframes bzBal2 { 0%,30%{height:34%} 70%,100%{height:62%} }
@keyframes bzBal3 { 0%,30%{height:72%} 70%,100%{height:63%} }
@keyframes bzBal4 { 0%,30%{height:22%} 70%,100%{height:61%} }
@keyframes bzBal5 { 0%,30%{height:55%} 70%,100%{height:63%} }
.bz-demo-cap {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Chips de formas de ícono */
.fz-shapes, .fz-days {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    max-width: 820px;
    margin: 0 auto;
}
.fz-shape {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.5rem 1.1rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 600;
}
/* Chips de color por día */
.fz-day {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.5rem 1.1rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 600;
}
.fz-day::before {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--c, var(--primary-color));
}

/* Tarjetas de modo de transporte */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem auto 0;
    max-width: 820px;
}
.transport-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    box-shadow: 0 10px 26px rgba(14, 34, 71, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.transport-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14, 34, 71, 0.12); }
.transport-emoji { font-size: 2.4rem; line-height: 1; }
.transport-card h3 { margin: 0.6rem 0 0.2rem; font-size: 1.2rem; color: var(--text-primary); }
.transport-speed {
    margin: 0 0 0.6rem !important;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.05rem;
}
.transport-card p { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }

/* Número de paso en tarjetas de flujo */
.fz-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

@media (max-width: 760px) {
    .transport-grid { grid-template-columns: 1fr; }
    .bz-bars { gap: 0.8rem; height: 190px; }
    .bz-bar { width: 44px; }
}

/* Reducir movimiento: deja el balanceo en estado equilibrado */
@media (prefers-reduced-motion: reduce) {
    .bz-fill--1, .bz-fill--2, .bz-fill--3, .bz-fill--4, .bz-fill--5 { animation: none; height: 63%; }
    .bz-pill--bad { animation: none; opacity: 0; }
    .bz-pill--good { animation: none; opacity: 1; }
}

/* ============================================
   FASTBALANCE — camión en marcha (ruedas + líneas de velocidad)
   ============================================ */
.fb-drive {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
    background: #0a0f1c;
}
.fb-scene {
    position: relative;
    animation: fbBob 0.7s ease-in-out infinite alternate;
}
.fb-truck { display: block; width: 100%; height: auto; }
.fb-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fb-wheel {
    transform-box: fill-box;
    transform-origin: center;
    animation: fbSpin 0.5s linear infinite;
}
.fb-wheel line { stroke: #eef4fb; stroke-width: 2.6; stroke-linecap: round; opacity: 0.95; }
.fb-wheel line:first-child { stroke: #ffd23f; }   /* línea de referencia para ver el giro */
.fb-line {
    fill: rgba(175, 205, 238, 0.34);
    animation-name: fbStream;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes fbSpin { to { transform: rotate(360deg); } }
@keyframes fbBob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes fbStream { from { transform: translateX(1080px); } to { transform: translateX(-340px); } }
@media (prefers-reduced-motion: reduce) {
    .fb-scene, .fb-wheel, .fb-line { animation: none; }
    .fb-line { display: none; }
}

/* Iconos azules en bloques de característica/beneficio y tarjetas de transporte */
.fb-ic { width: 52px; height: 52px; margin-bottom: 0.8rem; }
.fb-ic svg { width: 100%; height: 100%; display: block; }
.transport-ic { display: block; width: 58px; height: 58px; margin: 0 auto 0.2rem; }
.transport-ic svg { width: 100%; height: 100%; display: block; }

/* ============================================
   PRODUCT LINK — enlace estándar a página de producto
   (icono + recuadro azul + línea ámbar debajo)
   ============================================ */
.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    margin-top: 0.5rem;
}
.product-link-ic { width: 40px; height: 40px; flex-shrink: 0; }
.product-link-ic svg { width: 100%; height: 100%; display: block; }
.product-link-box {
    position: relative;
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border: 1.5px solid rgba(0, 156, 235, 0.45);
    border-radius: 12px;
    background: rgba(0, 156, 235, 0.06);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.98rem;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.product-link:hover .product-link-box {
    background: rgba(0, 156, 235, 0.13);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.product-link-box::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: -7px;
    height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

/* Icono ilustrativo grande (columna de "¿Qué es?" sin imagen) */
.module-lead-ic { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.module-lead-ic svg { width: 180px; height: 180px; max-width: 100%; }

/* Consultoría — cifras destacadas */
.cons-stat { font-size: 2.5rem; line-height: 1; color: var(--primary-color); margin: 0 0 0.4rem; font-weight: 800; }

/* ===== Arquitectura · Ciclo de la información (flow por fases) ===== */
.arch-flow { margin-top: 3.5rem; padding-top: 2.6rem; border-top: 1px solid var(--border-color); }
.arch-flow-title { text-align: center; font-size: 1.6rem; color: var(--text-primary); margin: 0 0 0.5rem; }
.arch-flow-sub { text-align: center; max-width: 760px; margin: 0 auto 2.6rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

/* Imagen detallada de arquitectura (workflow) sobre wallpaper azul de cuadrícula */
.arch-wall {
    max-width: 1120px;
    margin: 0 auto 2.6rem;
    padding: clamp(1.1rem, 4vw, 3rem);
    border-radius: 18px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(160deg, #0e2247 0%, #081225 100%);
    box-shadow: 0 18px 44px rgba(8, 18, 37, 0.28);
}
.arch-figure { display: block; max-width: 1000px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.arch-figure:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0, 156, 235, 0.28); }
.arch-figure img { display: block; width: 100%; height: auto; }

/* Diagrama SVG del flujo (nodos + flechas exactas) */
.arch-diagram { display: block; width: 100%; max-width: 1160px; height: auto; margin: 0 auto; }
.arch-diagram .ph-name { font-family: inherit; font-weight: 800; font-size: 19px; fill: #ffffff; text-anchor: middle; }
.arch-diagram .ph-sub { font-family: inherit; font-weight: 600; font-size: 10px; letter-spacing: 1.6px; fill: rgba(255, 255, 255, 0.85); text-anchor: middle; }
.arch-diagram .nc { fill: var(--bg-card); stroke: var(--border-color); stroke-width: 1.2; transition: stroke 0.2s ease, stroke-width 0.2s ease; }
.arch-diagram .n-name { font-family: inherit; font-weight: 700; font-size: 17px; fill: var(--text-primary); }
.arch-diagram .n-step { font-family: inherit; font-weight: 400; font-size: 13.5px; fill: var(--text-secondary); }
.arch-diagram .nodeA { cursor: pointer; }
.arch-diagram .nodeA:hover .nc { stroke: var(--primary-color); stroke-width: 2; }

.arch-diagram .fa-fwd { fill: none; stroke: var(--primary-color); stroke-width: 2.6; stroke-dasharray: 9 7; marker-end: url(#ahB); animation: faDash 1.1s linear infinite; }
.arch-diagram .fa-fb { fill: none; stroke: #0e9f6e; stroke-width: 2.4; stroke-dasharray: 8 7; opacity: 0.9; marker-end: url(#ahG); animation: faDash 1.1s linear infinite; }
.arch-diagram .fa-fb-lbl { font-family: inherit; font-weight: 600; font-size: 13px; fill: #0e9f6e; text-anchor: middle; }
@keyframes faDash { to { stroke-dashoffset: -32; } }

@media (prefers-reduced-motion: reduce) {
  .arch-diagram .fa-fwd, .arch-diagram .fa-fb { animation: none; }
}
