/* SYSTEMIC / EDITORIAL STYLE SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Marca corporativa (logo: morado carretera, verde lima, amarillo) */
    --brand-purple-950: #1a0a2e;
    --brand-purple-900: #2A0845;
    --brand-purple-700: #4A148C;
    --brand-purple-500: #6d28d9;
    --brand-purple-tint: rgba(74, 20, 140, 0.09);
    --brand-purple-border: rgba(74, 20, 140, 0.14);
    --brand-lime: #2dd573;
    --brand-lime-dark: #16a34a;
    --brand-lime-soft: rgba(45, 213, 115, 0.18);
    --brand-yellow: #e9b308;
    --brand-yellow-dark: #b8860b;

    /* Brand Colors - Deep & Modern (compatibilidad con el resto del sitio) */
    --sys-green-base: #0FA958;
    --sys-green-dark: #0A733C;
    --sys-green-tint: rgba(15, 169, 88, 0.08);
    --sys-green-neon: #2dd573;
    
    --sys-yellow-base: #F4C542;
    --sys-purple-deep: #2A0845;
    --sys-purple-tint: #4A148C;
    
    /* Neutrals - Editorial Scale */
    --bg-base: #FAFAFA;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F4F5F7;
    --bg-inverse: #0B0B0C;
    
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --text-inverse: #F9FAFB;
    
    /* System Colors */
    --status-active: #10B981;
    --status-warning: #F59E0B;
    --status-variable: #8B5CF6;
    
    /* Aesthetics */
    --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 32px;
    --shadow-subtle: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
    --shadow-float: 0 12px 32px -4px rgba(0,0,0,0.08), 0 4px 8px -2px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 24px rgba(28, 227, 124, 0.2);
    --shadow-inner: inset 0 2px 4px 0 rgba(0,0,0,0.02);
    
    /* Typography */
    --font-ui: 'Inter', -apple-system, sans-serif;
    --font-data: 'Space Grotesk', monospace;
    
    /* Motion */
    --ts-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Sistema tipo shadcn/nickel adaptado al logo (morado · verde · amarillo) */
    --atm-bg: hsl(249, 18%, 95%);
    --atm-fg: hsl(265, 28%, 11%);
    --atm-muted: hsl(265, 8%, 46%);
    --atm-border: hsl(265, 12%, 88%);
    --atm-nav: hsl(0, 0%, 100%);
    --atm-primary-t: hsl(275, 52%, 54%);
    --atm-primary-b: hsl(268, 62%, 30%);
    --atm-accent-g: hsl(142, 58%, 42%);
    --atm-accent-y: hsl(48, 92%, 52%);

    /* Bloque #flota (amarillo marca + armonía morado / verde) */
    --flota-bg-top: hsl(48, 78%, 72%);
    --flota-bg-mid: hsl(48, 82%, 62%);
    --flota-bg-bottom: hsl(44, 76%, 54%);
    --flota-ink: hsl(268, 48%, 16%);
    --flota-muted: hsl(265, 22%, 28%);
    --flota-tag-bg: hsla(268, 45%, 22%, 0.08);
    --flota-tag-border: hsla(268, 40%, 30%, 0.18);
}

/* BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ui);
    background-color: var(--atm-bg);
    color: var(--atm-fg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
    touch-action: manipulation;
}

/* Skip link (contenido principal) */
.skip-link {
    position: absolute;
    left: 1rem;
    top: 0;
    z-index: 10001;
    padding: 0.65rem 1rem;
    background: var(--text-primary);
    color: var(--bg-surface);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transform: translateY(-120%);
    transition: transform 0.2s var(--ts-fluid);
}
.skip-link:focus-visible {
    transform: translateY(6.75rem);
}

#operaciones,
#flota,
#contacto {
    scroll-margin-top: 7rem;
}

/* NOISE TEXTURE */
.noise-overlay {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* LAYOUT UTILS */
.container { max-width: 1240px; margin: 0 auto; padding: 0 8%; }
.container-full { max-width: 1600px; padding: 0 4%; }
.mt-xl { margin-top: 3rem; }
.p-xl { padding: 5rem 0; }
.flex-gap { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* TEXT UTILS */
h1, h2, h3, h4 { letter-spacing: -0.04em; line-height: 1.1; font-weight: 700; color: var(--text-primary); }
.text-yellow { color: var(--status-warning); font-weight: 600; }
.text-green { color: var(--sys-green-base); font-weight: 600; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.875rem 1.75rem; border-radius: 999px; font-weight: 600; font-size: 0.9375rem;
    transition: color 0.25s var(--ts-fluid), background 0.25s var(--ts-fluid), border-color 0.25s var(--ts-fluid),
        box-shadow 0.25s var(--ts-fluid), opacity 0.25s var(--ts-fluid); cursor: pointer; text-decoration: none; border: 1px solid transparent;
}
.btn i { font-size: 1.25em; }

.btn-primary-glowing {
    background: linear-gradient(135deg, var(--sys-green-base) 0%, var(--sys-green-dark) 100%);
    color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary-glowing:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(15, 169, 88, 0.4);
}

.btn-outline-minimal { background: rgba(0,0,0,0.02); color: var(--text-primary); border: 1px solid rgba(0,0,0,0.08); }
.btn-outline-minimal:hover { background: var(--bg-surface); border-color: var(--text-tertiary); box-shadow: var(--shadow-subtle); }

.btn-action-bold { background: var(--sys-purple-tint); color: #fff; }
.btn-action-bold:hover { background: var(--sys-purple-deep); transform: translateY(-2px); }

.btn-secondary-solid { background: var(--text-primary); color: #fff; border-radius: var(--radius-sm); }
.btn-secondary-solid:hover { background: #000; padding-right: 2rem; }

/* CTA sección flota (morado marca, contraste sobre amarillo) */
.btn-flota-cta {
    background: linear-gradient(180deg, var(--atm-primary-t) 0%, var(--atm-primary-b) 100%);
    color: #fff;
    border: 1px solid hsla(268, 50%, 22%, 0.4);
    border-radius: 0.5rem;
    box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.15) inset, 0 4px 20px -4px hsla(268, 55%, 25%, 0.35);
    padding: 0.9rem 1.65rem;
    font-weight: 600;
    font-size: 0.9375rem;
}
.btn-flota-cta:hover {
    filter: brightness(1.05);
    box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.18) inset, 0 8px 28px -6px hsla(268, 55%, 22%, 0.4);
}
.btn-flota-cta:focus-visible {
    outline: 2px solid var(--atm-accent-g);
    outline-offset: 3px;
}
.btn-flota-cta i { font-size: 1.1em; opacity: 0.95; }

.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: #fff; color: var(--text-primary); }


/* —— Barra flotante (nickel-like, nav sobre fondo página) —— */
.top-shelf {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: max(1rem, env(safe-area-inset-top, 0px)) max(1.5rem, env(safe-area-inset-right, 0px)) 0 max(1.5rem, env(safe-area-inset-left, 0px));
    pointer-events: none;
    isolation: isolate;
}

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

/* Por encima del FAB de WhatsApp (z-index 9999) mientras el menú está abierto */
body.nav-menu-open .top-shelf {
    z-index: 10050;
}

.nav-float__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: hsla(268, 42%, 18%, 0.4);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    pointer-events: none;
}
.nav-float__backdrop:not([hidden]) {
    pointer-events: auto;
}
@media (min-width: 1024px) {
    .top-shelf {
        padding-top: max(1rem, env(safe-area-inset-top, 0px));
        padding-left: max(2rem, env(safe-area-inset-left, 0px));
        padding-right: max(2rem, env(safe-area-inset-right, 0px));
    }
}

.nav-float-shell {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
    pointer-events: auto;
}

.nav-float {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1.1rem 1.75rem;
    background: var(--atm-nav);
    border: 1px solid hsla(265, 12%, 88%, 0.85);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(42, 8, 69, 0.04), 0 8px 28px -6px rgba(42, 8, 69, 0.07);
}

.nav-float__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--atm-fg);
    flex-shrink: 0;
}

.nav-float__logoimg {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 0 1px hsla(265, 20%, 90%, 1);
}

.nav-float__wordmark {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-float__center {
    display: none;
    align-items: center;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .nav-float__center { display: flex; }
}

.nav-float__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    font-weight: 500;
    color: hsla(265, 28%, 11%, 0.78);
    text-decoration: none;
    transition: color 0.2s var(--ts-fluid);
}
.nav-float__link:hover { color: var(--atm-fg); }
.nav-float__link i { font-size: 0.875rem; opacity: 0.75; }

.nav-float a,
.nav-float__menu-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: hsla(268, 45%, 42%, 0.12);
}

.nav-float__end {
    display: none;
    align-items: center;
    gap: 0.65rem 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}
@media (min-width: 640px) {
    .nav-float__end { display: flex; }
}

.nav-float__ghost {
    font-size: 1rem;
    font-weight: 500;
    color: hsla(265, 28%, 11%, 0.78);
    text-decoration: none;
    transition: color 0.2s var(--ts-fluid);
    white-space: nowrap;
}
.nav-float__ghost:hover { color: var(--atm-fg); }

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, var(--atm-primary-t) 0%, var(--atm-primary-b) 100%);
    border: 1px solid hsla(268, 50%, 22%, 0.35);
    box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.15) inset;
    transition: opacity 0.2s var(--ts-fluid), filter 0.2s var(--ts-fluid);
    touch-action: manipulation;
    -webkit-tap-highlight-color: hsla(268, 45%, 42%, 0.15);
    flex-shrink: 0;
}
.btn-nav-cta:hover { opacity: 0.92; filter: brightness(1.03); }

.nav-float__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    margin: 0;
    color: var(--atm-fg);
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    cursor: pointer;
    font: inherit;
}
.nav-float__menu-btn:focus-visible {
    outline: 2px solid var(--atm-primary-t);
    outline-offset: 2px;
}
.nav-float__menu-icon {
    font-size: 1.35rem;
    line-height: 1;
}
.nav-float__menu-icon--close {
    display: none;
}
.nav-float-shell--open .nav-float__menu-icon--open {
    display: none;
}
.nav-float-shell--open .nav-float__menu-icon--close {
    display: block;
}

/* Panel móvil: fondo tipo “grouped” (HIG / lista inset) */
.nav-float__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 5;
    padding: 0.4rem 0 0.85rem;
    background: hsl(249, 14%, 94%);
    border: 1px solid hsla(265, 10%, 86%, 0.75);
    border-radius: 14px;
    box-shadow: 0 12px 40px -8px rgba(42, 8, 69, 0.16), 0 4px 16px rgba(42, 8, 69, 0.06);
}
.nav-float__panel[hidden] {
    display: none !important;
}
.nav-float__panel-group {
    margin: 4px 10px 12px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--atm-nav);
    border: 1px solid hsla(265, 12%, 88%, 0.9);
    box-shadow: 0 1px 2px rgba(42, 8, 69, 0.04);
}
.nav-float__panel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--atm-fg);
    text-decoration: none;
    border-bottom: 1px solid hsla(265, 10%, 90%, 1);
    transition: background 0.15s var(--ts-fluid), color 0.15s var(--ts-fluid);
    -webkit-tap-highlight-color: hsla(268, 45%, 42%, 0.08);
}
.nav-float__panel-link:last-child {
    border-bottom: none;
}
.nav-float__panel-link-label {
    flex: 1;
    min-width: 0;
    text-align: start;
}
.nav-float__panel-chevron {
    font-size: 1rem;
    color: hsla(265, 8%, 62%);
    flex-shrink: 0;
    opacity: 0.85;
}
.nav-float__panel-link:hover,
.nav-float__panel-link:focus-visible {
    background: hsl(249, 22%, 97%);
    color: var(--atm-primary-b);
    outline: none;
}
.nav-float__panel-link:active {
    background: hsl(249, 18%, 94%);
}
.nav-float__panel-cta {
    margin: 0 1rem 0.35rem;
    width: calc(100% - 2rem);
    min-height: 48px;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .nav-float__menu-btn {
        display: none;
    }
    .nav-float__panel {
        display: none !important;
    }
}

/* —— Hero fold (layout nickel: texto + visual 55%, colores marca) —— */
.hero-fold {
    position: relative;
    min-height: calc(100vh - 4rem);
    overflow: hidden;
    background: var(--atm-bg);
}

.hero-fold__mesh {
    position: absolute;
    left: -5%;
    top: 8%;
    width: min(42vw, 420px);
    height: 72%;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}
.hero-fold__arc {
    width: 100%;
    height: 100%;
}

.hero-fold__dashlane {
    position: absolute;
    left: 8%;
    bottom: 18%;
    width: 180px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        hsla(268, 55%, 40%, 0.2) 0 10px,
        transparent 10px 22px
    );
    pointer-events: none;
    z-index: 0;
}

.hero-fold__container {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
}
@media (min-width: 1024px) {
    .hero-fold__container {
        padding: 0 max(2rem, env(safe-area-inset-right, 0px)) 0 max(2rem, env(safe-area-inset-left, 0px));
        display: grid;
        grid-template-columns: minmax(0, min(38rem, 46%)) minmax(0, 1fr);
        column-gap: clamp(1.25rem, 3vw, 2.75rem);
        align-items: stretch;
        justify-content: unset;
    }
}

.hero-fold__rail {
    position: absolute;
    left: max(1.5rem, env(safe-area-inset-left, 0px));
    top: 22%;
    bottom: 28%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--atm-accent-y), var(--atm-accent-g), var(--atm-primary-b));
    opacity: 0.55;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .hero-fold__rail {
        left: max(2rem, env(safe-area-inset-left, 0px));
    }
}

.hero-fold__text {
    position: relative;
    z-index: 2;
    max-width: 40rem;
    width: 100%;
    min-width: 0;
    padding: 6.5rem 0 3rem;
    padding-left: 0.5rem;
}
@media (min-width: 1024px) {
    .hero-fold__text {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        max-width: none;
        padding: 5.25rem 0 3.5rem;
        padding-left: 1.15rem;
    }
}

.hero-fold__eyebrow {
    font-family: var(--font-data);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsla(265, 14%, 48%, 1);
    margin: 0 0 1rem;
    line-height: 1.45;
    max-width: 22rem;
}

.hero-fold__title {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.08;
    color: var(--atm-fg);
    margin: 0 0 1.35rem;
    text-wrap: balance;
}

@supports (text-wrap: pretty) {
    .hero-fold__title,
    .hero-fold__lead {
        text-wrap: pretty;
    }
}

.hero-fold__title-line {
    display: block;
}

.hero-fold__title-line + .hero-fold__title-line {
    margin-top: 0.14em;
}

.hero-fold__title-line--primary {
    letter-spacing: -0.04em;
}

.hero-fold__lead {
    margin: 0;
    font-size: clamp(1.0625rem, 1.85vw, 1.1875rem);
    line-height: 1.62;
    color: var(--atm-muted);
    max-width: 38rem;
}

.hero-fold__actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.hero-fold__actions a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: hsla(268, 45%, 42%, 0.12);
}

.btn-hero-gradient {
    background: linear-gradient(180deg, var(--atm-primary-t) 0%, var(--atm-primary-b) 100%);
    color: #fff;
    border: 1px solid hsla(268, 50%, 22%, 0.35);
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.12) inset;
    transition: opacity 0.2s var(--ts-fluid), filter 0.2s var(--ts-fluid);
}
.btn-hero-gradient:hover { opacity: 0.9; filter: brightness(1.02); }

.btn-hero-outline {
    background: #fff;
    color: var(--atm-fg);
    border: 1px solid var(--atm-border);
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    transition: background 0.2s var(--ts-fluid), border-color 0.2s var(--ts-fluid);
}
.btn-hero-outline:hover {
    background: hsl(249, 22%, 98%);
    border-color: hsla(268, 35%, 40%, 0.25);
}

.btn-hero-xl {
    min-height: 3.5rem;
    padding: 1rem 2.5rem;
}

.btn-hero-gradient:focus-visible,
.btn-hero-outline:focus-visible,
.btn-nav-cta:focus-visible {
    outline: 2px solid var(--atm-primary-t);
    outline-offset: 3px;
}

.hero-fold__visual {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .hero-fold__visual {
        display: block;
        position: relative;
        grid-column: 2;
        grid-row: 1;
        top: auto;
        right: auto;
        width: 100%;
        height: 100%;
        min-height: min(78vh, 700px);
        align-self: stretch;
    }
}

.hero-fold__visual-frame {
    position: absolute;
    inset: 0;
    border-bottom-left-radius: 1rem;
    overflow: hidden;
}

.hero-fold__visualwash {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        hsla(268, 62%, 28%, 0.18) 0%,
        transparent 42%,
        hsla(48, 90%, 55%, 0.07) 100%
    );
    pointer-events: none;
}

.hero-fold__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    filter: contrast(1.04) saturate(0.92);
}

/* DASHBOARD OPERACIONES */
.ops-dashboard { padding: 8% 0; background: var(--bg-surface); position: relative; z-index: 10; border-top: 1px solid rgba(0,0,0,0.04); }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 2rem; }
.dashboard-title h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.dashboard-title p { color: var(--text-secondary); font-size: 1.125rem; }

.system-alert { flex: 1; max-width: 500px; background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.2); border-radius: var(--radius-sm); padding: 1rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
/* NEW DASHBOARD ROWS (Ultra clean, harmonious) */
.dashboard-interface { display: flex; flex-direction: column; gap: 0.75rem; }
.dash-row { display: grid; grid-template-columns: 2fr 3.5fr auto; gap: 2rem; background: var(--bg-surface); border: 1px solid rgba(0,0,0,0.04); border-radius: var(--radius-md); padding: 1.75rem 2rem; align-items: center; transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.dash-row:hover { box-shadow: var(--shadow-subtle); border-color: rgba(0,0,0,0.08); transform: translateY(-1px); }

/* Focus States Requirement */
:focus-visible { outline: 2px solid var(--sys-green-base); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }

.col-route { display: flex; flex-direction: column; gap: 0.25rem; }
.route-nodes {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.route-nodes i { color: var(--text-tertiary); font-size: 0.9em; }
.route-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}
.col-freq .label-sm {
    display: block;
    font-size: 0.6875rem;
    font-family: var(--font-data);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}
.data-val { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }

.font-data { font-family: var(--font-data); }

.col-freq {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Horarios en columna (misma fila que ruta + acción) */
.timeline-v {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}
.timeline-v.numbered {
    counter-reset: tlstep;
    border-left: 2px solid rgba(17, 24, 39, 0.08);
    padding-left: 0.85rem;
    margin-left: 0.4rem;
}
.timeline-v.numbered.reverse {
    flex-direction: column-reverse;
}
.timeline-v.numbered .tl-node {
    position: relative;
    padding: 0.45rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}
.timeline-v.numbered .tl-node::before {
    counter-increment: tlstep;
    content: counter(tlstep);
    position: absolute;
    left: -1.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-data);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.compact-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.compact-sub i { font-size: 1rem; opacity: 0.95; }
.compact-sub.text-green,
.compact-sub.text-green i {
    color: var(--sys-green-base);
}
.compact-sub.text-green { font-weight: 600; }
.col-route > .compact-sub.text-green { margin-top: 0.35rem; }

.route-label { font-size: 0.6875rem; font-family: var(--font-data); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.route-name { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.route-name i { color: var(--text-tertiary); font-size: 0.9em; }

.col-times { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.time-pill { background: var(--bg-base); border: 1px solid rgba(0,0,0,0.06); color: var(--text-primary); padding: 6px 12px; border-radius: var(--radius-xs); font-family: var(--font-data); font-size: 0.9375rem; font-weight: 500; }
.time-pill.featured { background: var(--sys-green-tint); color: var(--sys-green-dark); border-color: rgba(15,169,88,0.2); font-weight: 600; padding: 6px 14px; }
.time-text { font-size: 0.875rem; color: var(--text-tertiary); font-family: var(--font-data); font-weight: 500; margin-left: 0.5rem; }

.col-action { display: flex; justify-content: flex-end; }
.col-action .btn { white-space: nowrap; font-weight: 500; font-size: 0.875rem; padding: 10px 16px; min-width: 160px; justify-content: center; }

.dashboard-footer-note { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--text-tertiary); text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

/* EDITORIAL FEATURE — #flota (fondo amarillo corporativo, texto morado / acentos verde) */
.editorial-feature {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 6.5rem) 0;
    color: var(--flota-ink);
    background:
        radial-gradient(100% 120% at 100% -10%, hsla(268, 58%, 32%, 0.14) 0%, transparent 52%),
        radial-gradient(80% 80% at -5% 100%, hsla(142, 45%, 38%, 0.12) 0%, transparent 45%),
        linear-gradient(168deg, var(--flota-bg-top) 0%, var(--flota-bg-mid) 42%, var(--flota-bg-bottom) 100%);
}
.editorial-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 140px,
        hsla(268, 40%, 28%, 0.03) 140px,
        hsla(268, 40%, 28%, 0.03) 141px
    );
    opacity: 0.9;
}

.editorial-feature .feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 8%;
    align-items: center;
}

.editorial-feature .tag-label {
    display: inline-block;
    font-family: var(--font-data);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--atm-primary-b);
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--flota-tag-bg);
    border: 1px solid var(--flota-tag-border);
    box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.35) inset;
}

.editorial-feature .feature-text h2 {
    font-size: clamp(2.25rem, 5vw, 3.65rem);
    font-weight: 700;
    color: var(--brand-purple-900);
    margin-bottom: 1.35rem;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-wrap: balance;
}

.editorial-feature .feature-text p {
    font-size: 1.0625rem;
    color: var(--flota-muted);
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 36rem;
}

.editorial-feature .feature-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.editorial-feature .feature-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--flota-ink);
    line-height: 1.45;
}
.editorial-feature .feature-benefits i {
    flex-shrink: 0;
    margin-top: 0.12rem;
    color: var(--atm-accent-g);
    font-size: 1.35rem;
    filter: drop-shadow(0 1px 0 hsla(0, 0%, 100%, 0.5));
}

.editorial-feature .feature-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid hsla(268, 35%, 28%, 0.15);
    box-shadow:
        0 4px 6px -2px hsla(268, 40%, 20%, 0.08),
        0 24px 48px -12px hsla(268, 45%, 22%, 0.28),
        0 0 0 1px hsla(48, 90%, 85%, 0.4) inset;
}
.editorial-feature .feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}
.editorial-feature .image-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        hsla(268, 58%, 26%, 0.22) 0%,
        transparent 48%,
        hsla(48, 85%, 40%, 0.12) 100%
    );
    pointer-events: none;
}

.editorial-feature .mt-xl a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: hsla(268, 45%, 42%, 0.15);
}

/* RECRUITMENT CTA BOARD */
.bottom-system { background: var(--bg-surface); }
.cta-board { background: var(--bg-elevated); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-xl); padding: 4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; position: relative; overflow: hidden; }
.cta-board::after { content: ''; position: absolute; right: -10%; top: -50%; width: 50%; height: 200%; background: linear-gradient(90deg, transparent, var(--sys-purple-deep)); opacity: 0.9; transform: skewX(-15deg); z-index: 1; }
.cta-board-left { max-width: 500px; position: relative; z-index: 2; }
.cta-board-left h3 { font-size: 2rem; margin-bottom: 1rem; }
.cta-board-left p { color: var(--text-secondary); font-size: 1.125rem; }
.cta-board-right { position: relative; z-index: 2; }

/* SYSTEM FOOTER */
.system-footer { background: var(--bg-surface); border-top: 1px solid rgba(0,0,0,0.06); padding: 4rem 0 2rem 0; font-size: 0.875rem; }
.footer-layout { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.foot-brand .logo-mark.lg { font-size: 2rem; }
.foot-moto { color: var(--text-tertiary); margin-top: 1rem; max-width: 250px; }
.foot-col h4 { font-family: var(--font-data); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-primary); margin-bottom: 1.5rem; }
.foot-col p, .foot-col a { color: var(--text-secondary); margin-bottom: 0.75rem; display: block; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.foot-col a:hover { color: var(--text-primary); }
.footer-bottomx { border-top: 1px solid rgba(0,0,0,0.06); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-data); color: var(--text-tertiary); font-size: 0.75rem; }

/* WHATSAPP CORE ACTION BAR (Desktop: Corner, Mobile: Bottom Bar) */
.wa-action-bar { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; }
.wa-core-btn {
    display: flex; align-items: center; background: var(--bg-surface); border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px; padding: 0.5rem 1rem 0.5rem 0.5rem; text-decoration: none;
    box-shadow: var(--shadow-float);
    transition: transform 0.25s var(--ts-fluid), box-shadow 0.25s var(--ts-fluid), border-color 0.25s var(--ts-fluid);
}
.wa-icon-wrapper { position: relative; width: 48px; height: 48px; min-width: 48px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; margin-right: 12px; }
.wa-icon { font-size: 1.5rem; z-index: 2; }
.wa-ripple { position: absolute; inset: 0; border: 2px solid #25D366; border-radius: 50%; opacity: 0; animation: ripple 3s infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .wa-ripple { animation: none; }
}

.wa-text-content { display: flex; flex-direction: column; margin-right: 1rem; }
.wa-primary-text { color: var(--text-primary); font-weight: 700; font-size: 0.9375rem; }
.wa-secondary-text { color: var(--text-tertiary); font-size: 0.75rem; }
.wa-arrow { color: var(--text-tertiary); transition: 0.2s; }

.wa-core-btn:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -8px rgba(37, 211, 102, 0.2); border-color: rgba(37, 211, 102, 0.4); }
.wa-core-btn:hover .wa-arrow { transform: translateX(4px); color: #25D366; }

/* RESPONSIVE FLUIDITY */
@media (max-width: 1023px) {
    .hero-fold__container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .hero-fold__text {
        padding-top: 5.75rem;
        padding-bottom: 1.5rem;
        max-width: none;
        padding-left: 0;
        grid-column: unset;
        grid-row: unset;
        align-self: stretch;
    }
    .hero-fold__rail { display: none; }
    .hero-fold__mesh { opacity: 0.45; width: min(55vw, 280px); }
    .hero-fold__visual {
        display: block;
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: min(42vh, 360px);
        min-height: 0;
        order: 2;
        margin: 0 0 2rem;
        pointer-events: auto;
        grid-column: unset;
        grid-row: unset;
        align-self: stretch;
    }
    .hero-fold__visual-frame {
        border-bottom-left-radius: 0;
        border-radius: 0 0 1rem 1rem;
    }
    .hero-fold__img {
        object-position: center 45%;
    }
}

@media (max-width: 1024px) {
    .container { padding: 0 5%; }

    /* Tables adapt to vertical stack */
    .dash-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
    .col-action { justify-content: flex-start; }
    
    .editorial-feature .feature-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .hero-fold__eyebrow { max-width: none; letter-spacing: 0.1em; }
    .hero-fold__title { font-size: clamp(1.85rem, 7vw, 2.65rem); }
    .hero-fold__title-line + .hero-fold__title-line { margin-top: 0.1em; }
    .hero-fold__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero-xl {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .dashboard-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    
    .col-action .btn { width: 100%; }
    
    .cta-board { padding: 2rem; flex-direction: column; text-align: left; }
    .cta-board::after { display: none; }
    .cta-board-left { background: none; }
    .cta-board-right { width: 100%; }
    .cta-board-right .btn { width: 100%; text-align: center; }
    .footer-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    
    /* Sticky FAB on mobile */
    .wa-action-bar { bottom: 1rem; right: 1rem; left: 1rem; }
    .wa-core-btn { width: 100%; justify-content: space-between; }
}

/* Móvil compacto (≤767px): safe areas, márgenes ~16pt, filas ≥44pt, materiales tipo iOS (HIG) */
@media (max-width: 767px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    #contenido-principal {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }

    #operaciones,
    #flota,
    #contacto {
        scroll-margin-top: max(6.5rem, calc(4.25rem + env(safe-area-inset-top, 0px)));
    }

    .top-shelf {
        padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .nav-float {
        padding: 0.65rem 0.85rem;
        background: hsla(0, 0%, 100%, 0.82);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
    }

    .hero-fold__container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .hero-fold__lead {
        font-size: 1.0625rem;
        line-height: 1.5;
    }

    .btn-hero-xl {
        min-height: 48px;
        border-radius: 12px;
    }

    .ops-dashboard .container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .ops-dashboard {
        padding-top: clamp(2.5rem, 10vw, 3.5rem);
        padding-bottom: clamp(2.5rem, 10vw, 3.5rem);
    }

    .dashboard-interface {
        gap: 0.65rem;
    }

    .dash-row {
        border-radius: 14px;
        padding: 1.05rem 1rem;
    }

    .system-alert {
        border-radius: 14px;
    }

    .dashboard-footer-note {
        justify-content: flex-start;
        text-align: left;
        flex-wrap: wrap;
    }

    .timeline-v.numbered .tl-node {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .editorial-feature .container-full {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .editorial-feature .feature-grid {
        gap: 2rem;
    }

    .editorial-feature .feature-text h2 {
        font-size: clamp(1.85rem, 6.5vw, 2.35rem);
    }

    .editorial-feature .feature-image-container {
        border-radius: 14px;
    }

    .editorial-feature .mt-xl .btn-flota-cta {
        width: 100%;
        min-height: 48px;
        border-radius: 12px;
        justify-content: center;
    }

    .bottom-system .container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .cta-board {
        border-radius: 14px;
        padding: 1.35rem 1.1rem;
    }

    .system-footer .container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .system-footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    }

    .foot-col a {
        min-height: 44px;
        align-items: center;
        padding: 0.35rem 0;
    }

    .wa-action-bar {
        bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
        left: max(1rem, env(safe-area-inset-left, 0px));
        right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .wa-core-btn {
        min-height: 52px;
        padding: 0.5rem 0.85rem 0.5rem 0.45rem;
        border-radius: 14px;
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        backdrop-filter: saturate(180%) blur(18px);
        background: hsla(0, 0%, 100%, 0.9);
        border: 1px solid hsla(0, 0%, 0%, 0.06);
    }
}

@media (max-width: 767px) and (hover: none) {
    .wa-core-btn:hover {
        transform: none;
        box-shadow: var(--shadow-float);
    }

    .wa-core-btn:hover .wa-arrow {
        transform: none;
        color: var(--text-tertiary);
    }

    .dash-row:hover {
        transform: none;
    }
}
