/* ==========================================================================
   🌐 RUTANEXO DESIGN SYSTEM STYLES
   Tokens + Component Styles (Nov 2025)
   ========================================================================== */


/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --blue-light: #EBF5FF;
    --blue-light-hover: #CCE7FF;
    --blue-info: #99D6FF;
    --blue-info-border: #52A9F2;
    --blue-primary: #189AF2;
    --blue-primary-hover: #0A78C2;
    --blue-contrast: #0763A4;
    --blue-border: #52A9F2;
    --blue-info-text: #0F5BA3;
    --color-brand-vivid-300: #189AF2;
    --color-brand-vivid-400: #0A78C2;
    --color-neutral-0: #FFFFFF;
    --color-neutral-900: #0A0A0A;
    --color-neutral-800: #1F1F1F;
    --green-primary: #10B981;
    --green-light: #E6F6ED;
    --green-info-border: #B4E1C4;
    --green-info-text: #008033;
    --red-light: #FDE8E8;
    --red-info-border: #F8B4B4;
    --red-info-text: #B80009;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #D1D5DB;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #0A0A0A;
}

/* --------------------------------------------------------------------------
   Base Styles & Typography
   -------------------------------------------------------------------------- */
body {
    background-color: var(--gray-50);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Color Utility Helpers
   -------------------------------------------------------------------------- */
.bg-blue-light {
    background-color: var(--blue-light) !important;
}

.bg-blue-info {
    background-color: var(--blue-info) !important;
}

.border-blue-info-border {
    border-color: var(--blue-info-border) !important;
}

.text-blue-info-text {
    color: var(--blue-info-text) !important;
}

.bg-green-light {
    background-color: var(--green-light) !important;
}

.border-green-info-border {
    border-color: var(--green-info-border) !important;
}

.text-green-info-text {
    color: var(--green-info-text) !important;
}

.bg-red-light {
    background-color: var(--red-light) !important;
}

.border-red-info-border {
    border-color: var(--red-info-border) !important;
}

.text-red-info-text {
    color: var(--red-info-text) !important;
}

.text-green-primary {
    color: var(--green-primary) !important;
}

.text-blue-contrast {
    color: var(--blue-contrast) !important;
}

.bg-blue-primary {
    background-color: var(--blue-primary) !important;
}

.bg-blue-primary-hover:hover {
    background-color: var(--blue-primary-hover) !important;
}

.border-blue-border {
    border-color: var(--blue-border) !important;
}

.bg-blue-light-hover:hover {
    background-color: var(--blue-light-hover) !important;
}

/* --------------------------------------------------------------------------
   Component Utility Patterns
   -------------------------------------------------------------------------- */
.load-card {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.load-card:hover {
    border-color: var(--blue-info-border);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.load-card__route {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.load-card__point {
    flex: 1;
}

.load-card__point--from .load-card__label {
    color: var(--green-primary);
}

.load-card__point--to .load-card__label {
    color: #E7000B;
}

.load-card__label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.load-card__location {
    font-family: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 0;
}

.load-card__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: var(--gray-50);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.load-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.load-card__meta-item i {
    color: var(--blue-info-text);
}

.load-card__price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.load-card__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue-info-text);
}

.load-card__actions {
    display: flex;
    gap: 0.75rem;
}

.filter-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-section.show {
    max-height: 500px;
}

.form-range::-webkit-slider-thumb {
    background-color: var(--blue-primary);
}

.form-range::-moz-range-thumb {
    background-color: var(--blue-primary);
}

.btn-outline-secondary {
    border-color: var(--gray-200);
    color: var(--gray-600);
}

.btn-outline-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-900);
}

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

/* --------------------------------------------------------------------------
   Bootstrap Compatibility Helpers (temporary)
   -------------------------------------------------------------------------- */
.btn.bg-blue-primary,
.btn.btn-outline-primary,
.btn.btn-outline-secondary,
.btn.btn-outline-success {
    min-height: 48px;
    border-radius: 16px !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Layout Helpers
   -------------------------------------------------------------------------- */
.tab-content {
    display: none;
}

.tab-content.show {
    display: block;
}

/* --------------------------------------------------------------------------
   Generic Button Reset
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 0.25rem !important;
}

/* --------------------------------------------------------------------------
   Message Review UI
   -------------------------------------------------------------------------- */
.hidden {
    display: none !important;
}

.app-shell {
    max-width: 1560px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 3rem);
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

.layout {
    display: grid;
    grid-template-columns: minmax(170px, 210px) minmax(0, 2.1fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    justify-content: flex-start;
}

.panel {
    background-color: var(--color-neutral-0);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
}

.panel--compact {
    padding: 0.75rem 1rem;
}

.panel--tight {
    padding: 0.65rem 0.85rem;
    gap: 0;
}

.sidebar,
.chat-panel,
.details-column {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin: 0 0 0.75rem;
    align-items: baseline;
    gap: 0.35rem;
}

.sidebar-count {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.message-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.message-list__item {
    border-radius: 14px;
    border: 1px solid transparent;
    background: var(--gray-100);
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border 0.15s ease;
}

.message-list__item:hover {
    background: var(--gray-200);
}

.message-list__item.is-active {
    border-color: var(--blue-border);
    color: var(--blue-contrast);
    background: var(--blue-light);
    font-weight: 600;
}

.panel + .panel,
.panel + .nav-footer {
}

.panel--header {
    display: flex;
    flex-direction: column;
}

.chat-panel {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
}

.chat-panel__header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
}

.chat-counter {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.chat-title,
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--color-neutral-900);
}

.section-title {
    color: var(--color-neutral-900);
}

.chat-detail {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 500;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin: 0;
}

.section-title {
    margin: 0;
    color: var(--color-neutral-900);
}

.section-label {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

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

.chat-stream {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-section-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin: 0;
}

.bubble-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bubble {
    border-radius: 18px;
    padding: 1rem 1.25rem;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03);
    line-height: 1.4;
}

.bubble--prev {
    background: var(--gray-100);
    color: var(--gray-600);
    border-color: var(--gray-200);
}

.bubble--post {
    background: var(--gray-800);
    color: var(--color-neutral-0);
    border-color: transparent;
}

.bubble--main {
    background: var(--green-light);
    color: var(--green-info-text);
    border-color: var(--green-info-border);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.15);
}

.bubble-meta {
    font-size: 0.8rem;
    margin-top: 0.65rem;
    color: var(--gray-500);
    opacity: 0.85;
}

.bubble-meta--main {
    color: var(--green-info-text);
}

.bubble--post .bubble-meta {
    color: rgba(255, 255, 255, 0.85);
}

.empty-copy {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.offers-textarea {
    width: 100%;
    min-height: 360px;
    flex: 1;
    border-radius: 18px;
    border: 1px solid var(--gray-300);
    padding: 1rem;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
    resize: vertical;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.offers-textarea:focus {
    outline: none;
    border-color: var(--blue-border);
    box-shadow: 0 0 0 3px rgba(24, 154, 242, 0.2);
}

.status-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#offers-editor {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-height: inherit;
    height: 100%;
}

.status-btn {
    flex: 1;
    min-width: 160px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.status-btn:active {
    transform: translateY(1px);
}

.status-btn--success {
    background: var(--green-light);
    border-color: var(--green-info-border);
    color: var(--green-info-text);
}

.status-btn--warning {
    background: var(--blue-light);
    border-color: var(--blue-border);
    color: var(--blue-contrast);
}

.status-btn--danger {
    background: var(--red-light);
    border-color: var(--red-info-border);
    color: var(--red-info-text);
}

.nav-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    flex: 1;
    min-width: 180px;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn--prev {
    background: var(--gray-100);
    color: var(--gray-600);
    border-color: var(--gray-300);
}

.nav-btn--next {
    background: var(--blue-primary);
    color: var(--color-neutral-0);
    border: none;
}

.nav-floating {
    position: sticky;
    bottom: 0.5rem;
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    width: min(480px, 90vw);
    z-index: 20;
    margin-left: auto;
    margin-right: auto;
}

.offers-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.25rem;
}

.alert {
    border-radius: 20px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert--error {
    background: var(--red-light);
    border: 1px solid var(--red-info-border);
    color: var(--red-info-text);
}

.alert--warning {
    background: var(--blue-light);
    border: 1px dashed var(--blue-info-border);
    color: var(--blue-info-text);
}

.file-input-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-contrast);
}

.input-file {
    border: 1px dashed var(--blue-border);
    border-radius: 16px;
    padding: 0.75rem;
    cursor: pointer;
    background: var(--color-neutral-0);
}

.bubble-stack::-webkit-scrollbar {
    width: 6px;
}

.bubble-stack::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 999px;
}

@media (max-width: 768px) {
    .nav-btn {
        min-width: unset;
        width: 100%;
    }

    .layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chat-panel {
        min-height: unset;
    }

    .sidebar {
        order: -1;
    }

    .sidebar-title {
        margin-bottom: 0.5rem;
    }

}

/* --------------------------------------------------------------------------
   Overlay Menu Component
   -------------------------------------------------------------------------- */
.rtn-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    pointer-events: none;
    transition: opacity 0.2s ease;
    opacity: 0;
    z-index: 1040;
}

.rtn-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
}

.rtn-overlay__backdrop {
    flex: 1;
    background: rgba(15, 25, 38, 0.35);
}

.rtn-overlay__panel {
    width: min(280px, 80vw);
    max-width: 320px;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
    border-radius: 0;
    display: flex;
}

.rtn-overlay__content {
    padding: 24px 16px 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    gap: 1.5rem;
}

.rtn-overlay__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rtn-overlay__greeting {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
}

.rtn-overlay__icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px !important;
    padding: 0.25rem;
}

.rtn-overlay__section {
    padding: 0 0 0.5rem 0;
}

.rtn-overlay__section-link {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--gray-900);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rtn-overlay__section-link::after {
    content: '\203A';
    font-size: 1.25rem;
    color: var(--gray-400);
}

.rtn-overlay__section-link:hover {
    color: var(--blue-info-text);
}

.rtn-overlay__footer {
    padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   Button System (Rutanexo)
   -------------------------------------------------------------------------- */
.btn-rtn {
    --btn-padding-y: 0.5rem;
    --btn-padding-x: 1rem;
    --btn-radius: 1rem;
    --btn-gap: 0.25rem;
    --btn-font-family: 'DM Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --btn-font-size: 1rem;
    --btn-line-height: 1.5rem;
    --btn-font-weight: 600;
    --btn-focus-ring: rgba(24, 154, 242, 0.35);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--btn-gap);
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 var(--btn-padding-x);
    border-radius: var(--btn-radius) !important;
    border: 1px solid transparent;
    box-sizing: border-box;
    font-family: var(--btn-font-family);
    font-size: var(--btn-font-size);
    line-height: 1.25rem;
    font-weight: var(--btn-font-weight);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.btn-rtn--whatsapp {
    --btn-focus-ring: rgba(0, 166, 62, 0.35);
    background-color: #00A63E;
    border-color: #00A63E;
    color: #fff;
}

.btn-rtn--whatsapp:not(:disabled):hover {
    background-color: #008a35;
    border-color: #008a35;
    color: #fff;
}

.btn-rtn__icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-rtn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--btn-focus-ring);
}

.btn-rtn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-rtn:disabled,
.btn-rtn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 1;
}


.btn-rtn--primary {
    --btn-focus-ring: rgba(24, 154, 242, 0.35);
    --btn-primary-bg: var(--color-brand-vivid-300, var(--blue-primary));
    --btn-primary-hover-bg: var(--color-brand-vivid-400, var(--blue-primary-hover));
    --btn-primary-active-bg: var(--blue-contrast);

    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--color-neutral-0, #fff);
}

.btn-rtn--primary:not(:disabled):hover {
    background-color: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-bg);
    color: var(--color-neutral-0, #fff);
}

.btn-rtn--primary:not(:disabled):active {
    background-color: var(--btn-primary-active-bg);
    border-color: var(--btn-primary-active-bg);
}

.btn-rtn--danger {
    --btn-focus-ring: rgba(184, 0, 9, 0.35);
    --btn-danger-bg: var(--red-info-text, #B80009);
    --btn-danger-hover-bg: #970007;
    --btn-danger-active-bg: #7a0005;

    background-color: var(--btn-danger-bg);
    border-color: var(--btn-danger-bg);
    color: var(--color-neutral-0, #fff);
}

.btn-rtn--danger:not(:disabled):hover {
    background-color: var(--btn-danger-hover-bg);
    border-color: var(--btn-danger-hover-bg);
}

.btn-rtn--danger:not(:disabled):active {
    background-color: var(--btn-danger-active-bg);
    border-color: var(--btn-danger-active-bg);
}

.btn-rtn--primary:disabled,
.btn-rtn--primary[aria-disabled="true"] {
    background-color: var(--gray-200);
    border-color: var(--gray-200);
    color: var(--gray-500);
}

.btn-rtn--danger:disabled,
.btn-rtn--danger[aria-disabled="true"] {
    background-color: var(--red-info-border);
    border-color: var(--red-info-border);
    color: var(--color-neutral-0, #fff);
}

.btn-rtn--secondary {
    --btn-focus-ring: rgba(24, 154, 242, 0.2);

    background-color: var(--color-neutral-0, #fff);
    border: 1.5px solid var(--color-brand-vivid-300, var(--blue-primary));
    color: var(--blue-info-text);
}

.btn-rtn--secondary:not(:disabled):hover {
    background-color: var(--blue-light);
    border-color: var(--color-brand-vivid-400, var(--blue-primary-hover));
}

.btn-rtn--secondary:not(:disabled):active {
    background-color: var(--blue-light-hover);
    border-color: var(--blue-contrast);
    color: var(--blue-contrast);
}

.btn-rtn--secondary:disabled,
.btn-rtn--secondary[aria-disabled="true"] {
    background-color: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-400);
}

.btn-rtn--text {
    --btn-focus-ring: rgba(24, 154, 242, 0.2);

    background-color: transparent;
    border-color: transparent;
    color: var(--blue-info-text);
}

.btn-rtn--text:not(:disabled):hover {
    background-color: transparent;
    color: var(--color-brand-vivid-400, var(--blue-primary-hover));
}

.btn-rtn--text:not(:disabled):active {
    background-color: transparent;
    color: var(--blue-contrast);
    border-color: transparent;
}

.btn-rtn--text:disabled,
.btn-rtn--text[aria-disabled="true"] {
    color: var(--gray-400);
}

.btn-rtn--google {
    --btn-focus-ring: rgba(255, 255, 255, 0.35);

    background-color: var(--color-neutral-900, #0A0A0A);
    border-color: var(--color-neutral-900, #0A0A0A);
    color: var(--color-neutral-0, #fff);
}

.btn-rtn--google:not(:disabled):hover {
    background-color: var(--color-neutral-800, #1F1F1F);
    border-color: var(--color-neutral-800, #1F1F1F);
}

/* --------------------------------------------------------------------------
   Landing Page Layout
   -------------------------------------------------------------------------- */
body.landing {
    margin: 0;
    overflow: auto;
    background: var(--color-neutral-0, #fff);
    min-height: 100vh;
    color: var(--color-neutral-900, #0A0A0A);
    font-family: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.landing h1,
.landing h2,
.landing h3,
.landing h4 {
    font-family: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.landing-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #f5f7fb 100%);
}

.max-width {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

header.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--gray-200);
}

.navbar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
}

.nav-toggle:focus {
    outline: none;
}

.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-neutral-900);
    text-decoration: none;
}

.brand img {
    width: 140px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-brand-vivid-400, #0A78C2);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero {
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 5vw, 3rem);
    align-items: stretch;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    background: rgba(24, 154, 242, 0.08);
    border: 1px solid rgba(24, 154, 242, 0.18);
    color: var(--color-brand-vivid-300, #189AF2);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.hero p {
    color: #0A3962;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero__stat {
    margin-left: 0.25rem;
    padding: 0.6rem 0.9rem;
    background: rgba(24, 154, 242, 0.08);
    border: 1px solid rgba(24, 154, 242, 0.18);
    border-radius: 12px;
    color: #0A78C2;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.hero__media {
    border: none;
    border-radius: 20px;
    overflow: visible;
    position: relative;
    padding: 0;
    line-height: 0;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
}

.hero__media img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    object-position: right center;
}

.overlay-pill {
    position: absolute;
    bottom: -14px;
    right: -12px;
    background: #fff;
    border: 1px solid rgba(24, 154, 242, 0.2);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    color: #0A0A0A;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    white-space: nowrap;
}

.overlay-pill__accent {
    color: #189AF2;
    font-weight: 600;
}

.section {
    padding: 2rem 1rem;
    justify-items: center;
}

.section__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1rem;
    display: grid;
    gap: 0.5rem;
}

.section__header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.2rem);
}

.section__header p {
    margin: 0;
    color: #0A3962;
}

.benefits {
    display: grid;
    gap: 1.75rem;
    justify-items: center;
}

.tabs {
    display: inline-flex;
    gap: 0.35rem;
    background: #e5e7eb;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tab-btn {
    border: 1px solid transparent;
    background: transparent;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.is-active {
    background: #fff;
    border-color: var(--gray-200);
    color: #0A3962;
    box-shadow: 0 8px 20px rgba(10, 15, 30, 0.12);
}

.benefits-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: 0 12px 32px rgba(10, 15, 30, 0.08);
    display: grid;
    gap: 1.5rem;
}

.benefits-panel {
    display: none;
    gap: 1.25rem;
}

.benefits-panel.is-active {
    display: grid;
}

.benefits-card__header h3 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.benefits-card__header p {
    margin: 0;
    color: #0A3962;
}

.benefits-card__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.benefit-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    align-items: flex-start;
}

.benefit-item h4 {
    margin: 0;
    font-size: 1.05rem;
}

.benefit-item p {
    margin: 0;
    color: #0A3962;
    line-height: 1.6;
}


.benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(24, 154, 242, 0.18);
    background: rgba(24, 154, 242, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0A78C2;
    box-shadow: 0 6px 16px rgba(24, 154, 242, 0.15);
}

.benefit-icon img,
.benefit-icon svg {
    width: 22px;
    height: 22px;
}

.cta-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2.25rem;
    display: grid;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 22px rgba(10, 15, 30, 0.08);
    margin: 1rem auto;
    width: 100%;
}

.cta-card__text h3 {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
}

.cta-card__text p {
    margin: 0;
    color: #0A3962;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.benefit-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem;
    display: grid;
    gap: 0.65rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    margin: 1rem auto;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(24, 154, 242, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-vivid-300);
    font-weight: 700;
    font-size: 1.1rem;
}

.benefit-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.benefit-card p {
    margin: 0;
    color: #0A3962;
    line-height: 1.6;
}

.gradient-cta {
    background: #e6f3ff;
    border-radius: 0;
    border: none;
    padding: clamp(2.5rem, 8vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
    text-align: center;
    display: grid;
    gap: 1.5rem;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.gradient-cta__content {
    width: min(1024px, 92vw);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    align-items: center;
}

.gradient-cta__actions {
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 5vw, 3rem);
    align-items: center;
}

.about-text {
    display: grid;
    gap: 0.9rem;
}

.about-text h3 {
    margin: 0;
    font-size: 1.5rem;
}

.about-highlight {
    background: rgba(229, 231, 235, 0.5);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.about-media {
    border-radius: 16px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid var(--gray-200);
    min-height: 360px;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
}

.about-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(10, 15, 30, 0.08);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
}

.contact-header {
    margin: 0;
}

.contact-header h2 {
    margin: 0;
    line-height: 1.2;
}

.btn-rtn--channel {
    --btn-focus-ring: rgba(16, 185, 129, 0.25);

    background: #fff;
    border: 1.5px solid var(--green-primary);
    color: var(--green-primary);
    height: 48px;
    padding: 0 1.25rem;
    width: min(260px, 100%);
}

.btn-rtn--channel:not(:disabled):hover {
    background: var(--green-light);
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.btn-rtn--channel img {
    width: 18px;
    height: 18px;
    display: block;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--gray-600);
    transition: border 0.2s ease, transform 0.1s ease;
}

.icon-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.icon-btn:hover {
    border-color: var(--color-brand-vivid-300);
    color: var(--color-brand-vivid-300);
}

.landing-shell footer {
    background: #0A0A0A;
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0;
    margin-top: auto;
}

.landing-shell .footer-content {
    display: grid;
    gap: 1.5rem;
    text-align: center;
}

.landing-shell .footer-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.landing-shell .footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.landing-shell .footer-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    header.navbar {
        backdrop-filter: none;
    }

    .max-width {
        width: 100%;
        box-sizing: border-box;
    }

    .navbar__content {
        flex-direction: row;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 66.666vw;
        background: #fff;
        border-left: 1px solid var(--gray-200);
        border-radius: 0;
        box-shadow: -8px 0 24px rgba(15, 23, 42, 0.12);
        padding: 96px 0px 32px;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        z-index: 6;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .nav-links a {
        padding: 0.4rem 0.25rem;
        width: 100%;
        border-radius: 12px;
        text-align: center;
        font-size: 1.05rem;
        color: #111827;
    }

    .nav-links a:hover {
        background: rgba(24, 154, 242, 0.08);
    }

    .nav-links.is-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .cta-card {
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        padding: 1.25rem;
        gap: 0.9rem;
        text-align: left;
        align-items: stretch;
    }

    .cta-card .hero__cta {
        width: 100%;
    }

    .hero {
        padding-top: 1.5rem;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hero__badges {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.55rem;
        border-radius: 8px;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .hero__media {
        min-height: 0;
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }

    .hero__cta .btn-rtn {
        width: 100%;
    }

    .overlay-pill {
        bottom: 12px;
        right: 12px;
        font-size: 0.85rem;
        padding: 12px 16px;
        border-radius: 12px;
    }

    .about-highlight {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text {
        text-align: left;
    }

    .about-highlight {
        padding: 1rem 1.15rem;
        gap: 0.85rem;
        align-items: flex-start;
    }

    .about-media {
        min-height: 220px;
        border-radius: 14px;
    }

    .about-highlight .btn-rtn {
        width: 100%;
        justify-content: center;
    }

    .section__header {
        text-align: center;
    }

    .benefits {
        width: 100%;
        justify-items: stretch;
        gap: 1.25rem;
    }

    .tabs {
        max-width: 343px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .tab-btn {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        padding: 0.45rem 0.6rem;
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: normal;
    }

    .benefits-card {
        max-width: 343px;
        padding: 1.5rem;
        box-shadow: 0 8px 24px rgba(10, 15, 30, 0.08);
    }

    .benefits-card__items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .benefit-item div {
        min-width: 0;
    }

    .benefit-item p {
        word-break: break-word;
    }

    .gradient-cta {
        padding: 2.25rem 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .gradient-cta__content {
        width: 100%;
        justify-items: stretch;
        text-align: center;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .gradient-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    .contact-card {
        width: 100%;
        padding: 1.5rem 1.25rem;
        text-align: center;
        gap: 1.25rem;
    }

    .social-row {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .social-row .btn-rtn {
        width: 100%;
    }

    .social-row .icon-btn {
        width: 100%;
        height: 48px;
        border-radius: 14px;
        font-weight: 600;
    }

    .landing-shell .footer-links {
        flex-direction: column;
        gap: 0.6rem;
    }
}

@media (min-width: 769px) {
    .cta-card {
        max-width: 1200px;
        width: 100%;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1.25rem;
    }

    .cta-card .hero__cta {
        justify-content: flex-end;
        flex-wrap: nowrap;
  }

    .benefits-card {
        max-width: 1200px;
        width: 100%;
    }

    .contact-card {
        max-width: 980px;
        width: 100%;
    }

    .contact-header h2 {
        white-space: nowrap;
    }

    .contact-actions {
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

    .contact-actions .btn-rtn--channel {
        width: auto;
    }

    .social-icons {
        flex-wrap: nowrap;
    }
}

/* --------------------------------------------------------------------------
   Legacy Figma Export (kept for reference)
   -------------------------------------------------------------------------- */
.iniciar-sesin {
  	flex: 1;
  	position: relative;
  	line-height: 24px;
  	font-weight: 600;
}

.typeprimary-statehover {
  	position: absolute;
  	width: calc(100% - 814px);
  	top: 20px;
  	right: 446px;
  	left: 368px;
  	border-radius: 14px;
  	background-color: #0a78c2;
  	height: 48px;
  	display: flex;
  	align-items: center;
  	justify-content: center;
  	padding: 8px 16px;
  	box-sizing: border-box;
}
.typeprimary-statedisabled {
  	position: absolute;
  	width: calc(100% - 814px);
  	top: 20px;
  	right: 98px;
  	left: 716px;
  	border-radius: 14px;
  	background-color: #e5e7eb;
  	height: 48px;
  	display: flex;
  	align-items: center;
  	justify-content: center;
  	padding: 8px 16px;
  	box-sizing: border-box;
  	opacity: 0.5;
  	color: #0a3962;
}

.olvidaste-tu-contrasea {
  	position: relative;
  	line-height: 24px;
  	font-weight: 600;
}
.typetext-statehover {
  	position: absolute;
  	top: 242px;
  	left: calc(50% - 156.5px);
  	border-radius: 14px;
  	height: 40px;
  	display: flex;
  	align-items: center;
  	justify-content: center;
  	padding: 9.5px 16px 10.5px;
  	box-sizing: border-box;
  	color: #0a78c2;
}
.typetext-statedisabled {
  	position: absolute;
  	top: 242px;
  	left: calc(50% + 191.5px);
  	border-radius: 14px;
  	height: 40px;
  	display: flex;
  	align-items: center;
  	justify-content: center;
  	padding: 9.5px 16px 10.5px;
  	box-sizing: border-box;
  	opacity: 0.5;
  	color: #0a3962;
}
/* --------------------------------------------------------------------------
   Wizard Step Styles
   -------------------------------------------------------------------------- */
/* Wizard step containers */
.step-container {
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.step-container .card-body {
    padding: 2rem;
}

.step-user-role {
    /* Custom styles for user role step */
}

.step-truck-details {
    /* Custom styles for truck details step */
}

.step-employment {
    /* Custom styles for employment step */
}

.step-load-details {
    /* Custom styles for load details step */
}

.step-company-details {
    /* Custom styles for company details step */
}
