/* ============================================================
   STI Logística Internacional — CSS Premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ── PALETA STI — Tema Light ── */
    --primary:       #1a56c4;
    --primary-light: #2d6de0;
    --primary-glow:  rgba(45, 109, 224, 0.25);
    --accent:        #f9a825;
    --accent-light:  #f59f00;
    --danger:        #e53935;
    --success:       #2e7d32;

    --fca-color:     #1a56c4;
    --fca-light:     #5b9af8;
    --fca-glow:      rgba(26, 86, 196, 0.2);

    --exw-color:     #6a1b9a;
    --exw-light:     #ba68c8;
    --exw-glow:      rgba(106, 27, 154, 0.2);

    /* Fondo app: gris muy claro (como la imagen) */
    --bg-dark:       #1e3a8a;
    --bg-grad-start: #1e3a8a;
    --bg-grad-mid:   #1e40af;
    --bg-grad-end:   #1e3a8a;

    /* Colores light para formularios/modales */
    --bg-app:        #f0f4f8;
    --bg-card:       #ffffff;
    --bg-glass:      #ffffff;
    --bg-input:      #ffffff;
    --bg-input-focus: #f0f7ff;
    --border-glass:  #dde3ec;
    --border-glass2: #e8edf5;
    --border-input:  #c8d3e0;

    /* Texto oscuro para formularios */
    --text-main:     #1a2332;
    --text-muted:    #5a6a80;
    --text-label:    #4a5568;
    --text-placeholder: #9aaabb;

    --radius-sm:  0px;
    --radius-md:  0px;
    --radius-lg:  0px;
    --radius-xl:  0px;

    --shadow-card:  0 2px 12px rgba(0,0,0,0.08);
    --shadow-glow:  0 0 20px rgba(45,109,224,0.15);
    --shadow-modal: 0 8px 40px rgba(0,0,0,0.18);

    --transition: all 0.28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── ANIMATED BACKGROUND ── */
.bg-animated {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.15;
    animation: blobFloat 20s ease-in-out infinite alternate;
}
.blob-1 { width: 700px; height: 700px; top: -200px; left: -200px; background: radial-gradient(circle, #5b9af8, #1a56c4); animation-duration: 22s; }
.blob-2 { width: 500px; height: 500px; bottom: -100px; right: -100px; background: radial-gradient(circle, #7b1fa2, #4a148c); animation-duration: 18s; opacity: 0.1; }
.blob-3 { width: 400px; height: 400px; top: 40%; left: 40%; background: radial-gradient(circle, #90c8ff, #3d82f5); opacity: 0.08; animation-duration: 25s; }

@keyframes blobFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

/* ── NAVBAR ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1e3a8a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 16px rgba(10,40,120,0.3);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 2rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #3b82f6, #f59f00);
    border-radius: var(--radius-sm);
    display: grid; place-items: center;
    font-size: 1.1rem; color: #fff;
    box-shadow: 0 0 12px rgba(59,130,246,0.4);
}
.nav-title { display: flex; flex-direction: column; }
.brand-main { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.2rem; color: #ffffff; letter-spacing: 1px; line-height: 1; }
.brand-sub { font-size: 0.63rem; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 0.2rem; margin-left: 2rem; flex: 1; }
.nav-link {
    padding: 0.4rem 0.9rem;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex; align-items: center; gap: 0.4rem;
}
.nav-link:hover {
    color: var(--accent) !important;
    background: rgba(255,255,255,0.12) !important;
}
.nav-link.active {
    color: #ffffff !important;
    background: rgba(255,255,255,0.18) !important;
    font-weight: 700;
}
.nav-user { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.user-avatar {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 0.9rem;
}
.user-name { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); }

/* ── HERO ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.hero-content { max-width: 900px; width: 100%; text-align: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(249, 168, 37, 0.12);
    border: 1px solid rgba(249, 168, 37, 0.3);
    color: var(--accent-light);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.7s ease 0.1s both;
}
.text-gradient {
    background: linear-gradient(135deg, #42a5f5 0%, #7b1fa2 50%, #f9a825 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.7s ease 0.2s both;
}

/* ── MODULES GRID ── */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    animation: fadeInUp 0.7s ease 0.3s both;
}
@media(min-width: 768px) {
    .modules-grid { grid-template-columns: 1fr 1fr 1fr; }
    .module-main  { grid-column: 1 / -1; }
}

.module-card {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    text-align: left;
}
.module-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

/* Glow principal FCA button */
.module-main {
    background: linear-gradient(135deg, rgba(21,101,192,0.25) 0%, rgba(106,27,154,0.15) 100%);
    border-color: rgba(66, 165, 245, 0.3);
    padding: 2rem 2.5rem;
}
.module-main:hover {
    border-color: rgba(66, 165, 245, 0.5);
    box-shadow: 0 0 40px var(--fca-glow), var(--shadow-card);
    transform: translateY(-5px);
}
.module-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(66,165,245,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.module-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--fca-color), var(--fca-light));
    border-radius: var(--radius-md);
    display: grid; place-items: center;
    font-size: 1.6rem; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--fca-glow);
}
.module-icon-sm {
    width: 48px; height: 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    font-size: 1.2rem;
    box-shadow: none;
}
.module-info { flex: 1; }
.module-info h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.module-info p  { font-size: 0.85rem; color: var(--text-muted); }
.module-tags    { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.tag { padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; }
.tag-fca { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.tag-exw { background: #f3e5f5; color: #7b1fa2; border: 1px solid #ce93d8; }
.tag-fob { background: #e0f2f1; color: #00695c; border: 1px solid #80cbc4; }
.module-arrow { color: var(--text-muted); font-size: 1.1rem; transition: var(--transition); }
.module-card:hover .module-arrow { color: #fff; transform: translateX(4px); }
.module-soon { padding: 0.2rem 0.6rem; background: rgba(255,255,255,0.05); border-radius: 50px; font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; margin-left: auto; }

/* ── MODAL OVERLAY ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }

/* ── MODAL BOX (SELECTOR) ── */
.modal-box {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    animation: slideUp 0.3s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}
.modal-selector {
    max-width: 900px;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

/* ── MODAL FULL FORM ── */
.modal-form-full, .modal-xl {
    max-width: 1200px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── MODAL HEADER ── */
.modal-header-custom {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56c4 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.modal-header-fca { background: linear-gradient(135deg, #1e3a8a 0%, #1a56c4 100%); }
.modal-header-exw { background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%); }
.modal-header-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-md);
    display: grid; place-items: center;
    font-size: 1.4rem; color: #fff;
    flex-shrink: 0;
}
.modal-header-custom h2 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.modal-header-custom p  { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 0.15rem; }
.modal-header-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.badge-fca-header {
    background: var(--fca-color); color: #fff;
    padding: 0.15rem 0.6rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-family: 'Outfit', sans-serif;
}
.badge-exw-header {
    background: var(--exw-color); color: #fff;
    padding: 0.15rem 0.6rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-family: 'Outfit', sans-serif;
}

.btn-close-modal, .btn-back-modal {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    display: grid; place-items: center;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-back-modal {
    width: auto;
    padding: 0 0.8rem;
    gap: 0.4rem;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-close-modal:hover { background: rgba(229,57,53,0.2); border-color: rgba(229,57,53,0.4); color: #ef5350; }
.btn-back-modal:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── FORM BODY (Scroll) ── */
.form-body, .modal-content-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 0;
    background: var(--bg-app);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.form-body::-webkit-scrollbar, .modal-content-scroll::-webkit-scrollbar { width: 5px; }
.form-body::-webkit-scrollbar-thumb, .modal-content-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ── FORM SECTIONS ── */
.form-section {
    padding: 2rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-glass2);
    margin-bottom: 0;
}
.form-section:last-of-type { border-bottom: none; }

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass2);
}
.section-number {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--fca-color), var(--fca-light));
    border-radius: var(--radius-sm);
    display: grid; place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.section-exw { background: linear-gradient(135deg, var(--exw-color), var(--exw-light)); }
.section-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex; align-items: center; gap: 0.5rem;
}

/* ── FORM GRID ── */
.form-grid { display: grid; gap: 1rem; }
.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.25rem; }

@media (max-width: 900px) {
    .form-grid-3, .form-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .form-grid-2, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-label);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.req { color: #ef5350; }

.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff;
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    width: 100%;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.form-group input::placeholder { color: var(--text-placeholder); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(26,86,196,0.12);
}
.form-group select option { background: #ffffff; color: var(--text-main); }
.form-group textarea { resize: vertical; min-height: 80px; }

.input-calc {
    background: #f8fafc !important;
    border-color: #dde3ec !important;
    color: #1a56c4 !important;
    font-weight: 600;
    cursor: not-allowed;
}
.input-result {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
    font-weight: 700;
}
.input-icon-group { position: relative; display: flex; }
.input-currency {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 1;
}
.input-icon-group input { padding-left: 2.2rem !important; }

/* ── DIMENSIONES BOX ── */
.dimensiones-box {
    background: rgba(21,101,192,0.08);
    border: 1px solid rgba(66,165,245,0.15);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1rem;
}
.dimensiones-box-exw {
    background: rgba(74,20,140,0.08);
    border-color: rgba(186,104,200,0.15);
}
.dimensiones-box h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #90caf9;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.dimensiones-box-exw h4 { color: #ce93d8; }

/* ── ALERT INFO BOX ── */
.alert-info-box {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(249,168,37,0.1);
    border: 1px solid rgba(249,168,37,0.25);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.alert-info-box-exw {
    background: rgba(186,104,200,0.1);
    border-color: rgba(186,104,200,0.25);
    color: #ce93d8;
}

/* ── ROUTE BOXES ── */
.route-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.route-box h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.route-box-origin h4 { color: #42a5f5; }
.route-box-dest h4   { color: #69f0ae; }
.route-box-origin-exw h4 { color: #ce93d8; }

/* ── INFO BOXES ── */
.info-box {
    padding: 0.75rem 1rem;
    background: rgba(25,118,210,0.1);
    border: 1px solid rgba(25,118,210,0.25);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: #90caf9;
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin-bottom: 1rem;
}
.info-box-exw {
    background: rgba(249,168,37,0.08);
    border-color: rgba(249,168,37,0.2);
    color: #ffd54f;
}

/* ── SUBTOTAL ROW ── */
.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(21,101,192,0.12);
    border: 1px solid rgba(66,165,245,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: #90caf9;
}
.subtotal-row-exw {
    background: rgba(74,20,140,0.12);
    border-color: rgba(186,104,200,0.2);
    color: #ce93d8;
}
.subtotal-value { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700; }

/* ── TOTALES PANEL ── */
.totales-panel {
    margin: 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(13,71,161,0.3) 0%, rgba(21,101,192,0.15) 100%);
    border-top: 1px solid rgba(66,165,245,0.2);
    border-bottom: 1px solid rgba(66,165,245,0.2);
}
.totales-panel-exw {
    background: linear-gradient(135deg, rgba(74,20,140,0.3) 0%, rgba(106,27,154,0.15) 100%);
    border-color: rgba(186,104,200,0.2);
}
.totales-panel h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.totales-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.total-line:hover { background: rgba(255,255,255,0.04); }
.total-line span:last-child { font-weight: 600; color: var(--text-main); font-family: 'Outfit', sans-serif; }
.total-line-sub {
    background: rgba(66,165,245,0.06);
    color: #90caf9;
    font-weight: 600;
    border: 1px solid rgba(66,165,245,0.1);
}
.total-line-sub span:last-child { color: #42a5f5; }
.total-line-sub-exw { background: rgba(186,104,200,0.06); border-color: rgba(186,104,200,0.1); color: #ce93d8; }
.total-line-sub-exw span:last-child { color: #ba68c8; }
.total-line-grand {
    background: linear-gradient(135deg, rgba(13,71,161,0.4), rgba(66,165,245,0.15));
    border: 1px solid rgba(66,165,245,0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}
.total-line-grand span:last-child { font-size: 1.3rem; color: var(--accent-light); }
.total-line-grand-exw {
    background: linear-gradient(135deg, rgba(74,20,140,0.4), rgba(186,104,200,0.15));
    border-color: rgba(186,104,200,0.3);
}
.total-line-grand-exw span:last-child { color: #e040fb; }
.total-line-unit { font-size: 0.82rem; color: var(--text-muted); border-top: 1px dashed rgba(255,255,255,0.06); margin-top: 0.25rem; padding-top: 0.5rem; }

/* ── FORM ACTIONS ── */
.form-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-glass2);
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}
.form-actions button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-secondary-action { background: #ffffff; color: var(--text-muted); border: 1.5px solid var(--border-input); }
.btn-secondary-action:hover { background: #f0f4f8; color: var(--text-main); border-color: #b0bec5; }
.btn-calc-action { background: rgba(249,168,37,0.1); color: #b45309; border: 1.5px solid rgba(249,168,37,0.4); }
.btn-calc-action:hover { background: rgba(249,168,37,0.2); }
.btn-primary-action { background: linear-gradient(135deg, #c62828, #e53935); color: #fff; box-shadow: 0 2px 10px rgba(229,57,53,0.3); }
.btn-primary-action:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(229,57,53,0.4); }
.btn-export-action { background: linear-gradient(135deg, #1b5e20, #2e7d32); color: #a5d6a7; border: 1px solid rgba(56,142,60,0.4); }
.btn-export-action:hover { background: linear-gradient(135deg, #2e7d32, #388e3c); }
.btn-save-action { background: linear-gradient(135deg, var(--fca-color), var(--fca-light)); color: #fff; box-shadow: 0 2px 10px var(--fca-glow); }
.btn-save-action:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--fca-glow); }
.btn-save-exw { background: linear-gradient(135deg, var(--exw-color), var(--exw-light)); box-shadow: 0 2px 10px var(--exw-glow); }
.btn-save-exw:hover { box-shadow: 0 4px 15px var(--exw-glow); }

/* ── INCOTERM SELECTOR ── */
.incoterm-selector {
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
}
.incoterm-card {
    flex: 1;
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.incoterm-card:first-child { border-radius: 0 0 0 var(--radius-xl); }
.incoterm-card:last-child  { border-radius: 0 0 var(--radius-xl) 0; }
.incoterm-card:hover { background: rgba(255,255,255,0.04); }
.incoterm-card:first-child:hover { background: rgba(21,101,192,0.1); }
.incoterm-card:last-child:hover  { background: rgba(106,27,154,0.1); }
.incoterm-divider {
    width: 1px;
    background: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.incoterm-divider span {
    background: #0e1828;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    transform: rotate(0deg);
}
.incoterm-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--fca-color), var(--fca-light));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px var(--fca-glow);
}
.incoterm-badge-exw {
    background: linear-gradient(135deg, var(--exw-color), var(--exw-light));
    box-shadow: 0 4px 15px var(--exw-glow);
}
.incoterm-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.incoterm-card p  { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.incoterm-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.incoterm-list li { font-size: 0.83rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.incoterm-list li i { color: var(--success); font-size: 0.75rem; }
.btn-incoterm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.btn-fca { background: linear-gradient(135deg, var(--fca-color), var(--fca-light)); color: #fff; box-shadow: 0 3px 12px var(--fca-glow); }
.btn-exw { background: linear-gradient(135deg, var(--exw-color), var(--exw-light)); color: #fff; box-shadow: 0 3px 12px var(--exw-glow); }
.btn-fca:hover, .btn-exw:hover { transform: translateY(-2px); }

/* ── MODAL HEADER SELECTOR ── */
.modal-selector .modal-header-custom {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ── TOAST ── */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    animation: slideInRight 0.3s ease;
    max-width: 360px;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--fca-light); }
.toast i { font-size: 1.1rem; }
.toast-success i { color: var(--success); }
.toast-error   i { color: var(--danger); }
.toast-info    i { color: var(--fca-light); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── SCROLLBAR GLOBAL ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f4f8; }
::-webkit-scrollbar-thumb { background: #b0bec5; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #78909c; }

/* ── INCOTERM SELECTOR LIGHT ── */
.incoterm-card {
    background: #f8fafc;
}
.incoterm-card h3 { color: var(--text-main) !important; }
.incoterm-card p  { color: var(--text-muted) !important; }
.incoterm-list li { color: var(--text-muted) !important; }
.incoterm-divider { background: var(--border-glass); }
.incoterm-divider span { background: #f8fafc; color: var(--text-muted); }

/* ── HERO / MÓDULOS LIGHT ── */
.hero { background: var(--bg-app); }
.module-card {
    background: #ffffff !important;
    border: 1.5px solid var(--border-glass) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.module-card:hover {
    background: #f0f7ff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 16px rgba(26,86,196,0.12) !important;
}
.module-info h3 { color: var(--text-main) !important; }
.module-info p  { color: var(--text-muted) !important; }
.module-arrow  { color: #94a3b8 !important; }
.module-card:hover .module-arrow { color: var(--primary) !important; }
.module-soon { color: var(--text-muted) !important; background: #f0f4f8 !important; }
.hero-title { color: var(--text-main) !important; }
.hero-subtitle { color: var(--text-muted) !important; }
.hero-badge { background: rgba(26,86,196,0.08) !important; border-color: rgba(26,86,196,0.2) !important; color: var(--primary) !important; }
