/* ============================================================
   NEXAGO - Sistema de Diseño Global
   Colores oficiales de marca:
     Verde:  #aeca4b (RGB 175 202 75)
     Negro:  #201f1f (RGB 29 31 31)
   ============================================================ */

/* ── Google Fonts: Prompt ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap');

/* ── Variables de marca ───────────────────────────────────── */
:root {
    --nexago-dark:      #201f1f;
    --nexago-dark-soft: #2a2a2a;
    --nexago-charcoal:  #333333;
    --nexago-green:     #aeca4b;
    --nexago-green-dark:#8fab2e;
    --nexago-white:     #ffffff;
    --nexago-light:     #f5f5f5;
    --nexago-gray:      #6c757d;
    --nexago-gray-light:#e8e8e8;
    --nexago-font:      'Prompt', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-py: 72px;
    --section-py-sm: 48px;

    /* Transitions */
    --transition-base: 0.25s ease;
    --transition-slow: 0.45s ease;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--nexago-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--nexago-dark);
    background: var(--nexago-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nexago-font);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; transition: color var(--transition-base); }

img { max-width: 100%; height: auto; }

/* ── Utilidades globales ──────────────────────────────────── */
.text-nexago-green  { color: var(--nexago-green) !important; }
.text-nexago-dark   { color: var(--nexago-dark) !important; }
.bg-nexago-dark     { background-color: var(--nexago-dark) !important; }
.bg-nexago-green    { background-color: var(--nexago-green) !important; }
.bg-nexago-light    { background-color: var(--nexago-light) !important; }

.btn-nexago {
    background-color: var(--nexago-green);
    color: var(--nexago-dark);
    font-family: var(--nexago-font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.6rem;
    border: 2px solid var(--nexago-green);
    border-radius: 4px;
    letter-spacing: 0.01em;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
    white-space: nowrap;
}
.btn-nexago:hover, .btn-nexago:focus {
    background-color: var(--nexago-green-dark);
    border-color: var(--nexago-green-dark);
    color: var(--nexago-white);
}

.btn-nexago-outline {
    background-color: transparent;
    color: var(--nexago-green);
    font-family: var(--nexago-font);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 1.2rem;
    border: 1.5px solid var(--nexago-green);
    border-radius: 4px;
    transition: background-color var(--transition-base), color var(--transition-base);
}
.btn-nexago-outline:hover {
    background-color: var(--nexago-green);
    color: var(--nexago-dark);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--nexago-gray);
    margin-bottom: 0;
}

/* Separador verde pequeño debajo del título de sección */
.section-title-bar {
    width: 48px;
    height: 4px;
    background: var(--nexago-green);
    border-radius: 2px;
    margin: 12px auto 0;
}
.section-title-bar.left { margin-left: 0; }

/* ── TOPBAR ───────────────────────────────────────────────── */
.nexago-topbar {
    background-color: var(--nexago-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.01em;
}
.nexago-topbar a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-base);
}
.nexago-topbar a:hover { color: var(--nexago-green); }

.topbar-contact {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.topbar-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.topbar-contact-item svg { opacity: 0.7; }

.topbar-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.topbar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    transition: all var(--transition-base);
}
.topbar-social a:hover {
    border-color: var(--nexago-green);
    color: var(--nexago-green);
    background: rgba(174,202,75,0.08);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.nexago-navbar {
    background: var(--nexago-white);
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    transition: box-shadow var(--transition-slow);
}
.nexago-navbar .container {
    padding-top: 12px;
    padding-bottom: 12px;
}

.nexago-navbar .navbar-brand img {
    height: 38px;
    width: auto;
    display: block;
}

.nexago-navbar .navbar-nav .nav-link {
    font-family: var(--nexago-font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--nexago-dark);
    padding: 6px 14px;
    position: relative;
    letter-spacing: 0.01em;
    transition: color var(--transition-base);
}
.nexago-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--nexago-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
    border-radius: 1px;
}
.nexago-navbar .navbar-nav .nav-link:hover,
.nexago-navbar .navbar-nav .nav-link.active {
    color: var(--nexago-green);
}
.nexago-navbar .navbar-nav .nav-link:hover::after,
.nexago-navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.nexago-navbar .navbar-toggler {
    border: 1.5px solid var(--nexago-gray-light);
    border-radius: 4px;
    padding: 6px 10px;
}
.nexago-navbar .navbar-toggler:focus { box-shadow: none; }
.nexago-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23201f1f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── HERO ─────────────────────────────────────────────────── */
.nexago-hero {
    background-color: var(--nexago-dark);
    background-image: linear-gradient(135deg, #1a1a1a 0%, #282828 60%, #201f1f 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 70px;
    min-height: 560px;
    display: flex;
    align-items: center;
}

/* Elemento diagonal decorativo */
.nexago-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -60px;
    width: 680px;
    height: 680px;
    background: rgba(174,202,75,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nexago-green);
    margin-bottom: 12px;
    display: block;
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--nexago-white);
    margin-bottom: 0;
}
.hero-headline .highlight {
    color: var(--nexago-green);
    display: block;
}

.hero-subtext {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    margin-top: 18px;
    max-width: 440px;
    line-height: 1.7;
}

/* Buscador Hero */
.hero-search-wrap {
    margin-top: 32px;
    max-width: 520px;
}
.hero-search-box {
    display: flex;
    background: var(--nexago-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
.hero-search-icon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--nexago-gray);
    background: var(--nexago-white);
    flex-shrink: 0;
}
.hero-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 8px;
    font-family: var(--nexago-font);
    font-size: 0.95rem;
    color: var(--nexago-dark);
    background: transparent;
    min-width: 0;
}
.hero-search-box input::placeholder { color: #aaa; }
.hero-search-btn {
    background: var(--nexago-green);
    color: var(--nexago-dark);
    border: none;
    padding: 0 24px;
    font-family: var(--nexago-font);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background-color var(--transition-base);
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-search-btn:hover { background-color: var(--nexago-green-dark); }

/* Pills de beneficios debajo del buscador */
.hero-pills {
    display: flex;
    gap: 1.2rem;
    margin-top: 22px;
    flex-wrap: wrap;
}
.hero-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}
.hero-pill svg { color: var(--nexago-green); flex-shrink: 0; }

/* Imagen derecha del Hero */
.hero-image-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-img {
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    position: relative;
    z-index: 2;
}
.hero-n-symbol {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 260px;
    opacity: 0.07;
    z-index: 1;
    pointer-events: none;
}

/* ── CÓMO FUNCIONA ────────────────────────────────────────── */
.nexago-como-funciona {
    padding: var(--section-py) 0;
    background: var(--nexago-white);
}
.nexago-como-funciona .text-center {
    margin-bottom: 36px !important;
}

/* Grid de los 4 pasos: siempre 4 columnas en desktop, 2 en tablet */
.como-steps-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.como-step {
    position: relative;
    text-align: left;
    padding: 22px 20px;
    border-radius: 8px;
    background: var(--nexago-white);
    border: 1px solid var(--nexago-gray-light);
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.como-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.como-step-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nexago-green);
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.como-step-icon {
    width: 40px;
    height: 40px;
    background: rgba(174,202,75,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--nexago-green);
}
.como-step-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--nexago-dark);
}
.como-step-text {
    font-size: 0.84rem;
    color: var(--nexago-gray);
    line-height: 1.6;
    margin: 0;
}

/* Conector flecha entre pasos */
.como-connector {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 56px;   /* alinea con el centro de la card */
    color: var(--nexago-green);
    opacity: 0.45;
    width: 32px;
    flex-shrink: 0;
}

/* ── SERVICIOS ────────────────────────────────────────────── */
.nexago-servicios {
    padding: var(--section-py) 0;
    background: var(--nexago-dark);
    position: relative;
    overflow: hidden;
}
.nexago-servicios::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--nexago-green);
}

.servicio-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}
.servicio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(174,202,75,0.3);
    background: rgba(255,255,255,0.06);
}

.servicio-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    opacity: 0.6;
    transition: opacity var(--transition-slow);
}
.servicio-card:hover .servicio-card-img { opacity: 0.75; }

.servicio-card-body {
    padding: 24px;
}
.servicio-card-icon {
    width: 42px;
    height: 42px;
    background: rgba(174,202,75,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--nexago-green);
}
.servicio-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nexago-white);
    margin-bottom: 8px;
}
.servicio-card-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    margin-bottom: 16px;
}
.servicio-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nexago-green);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition-base);
}
.servicio-card-link:hover { gap: 9px; color: var(--nexago-green); }

/* ── NOSOTROS ─────────────────────────────────────────────── */
.nexago-nosotros {
    padding: 64px 0;
    background: var(--nexago-white);
}
.nosotros-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nexago-green);
    margin-bottom: 10px;
    display: block;
}
.nosotros-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--nexago-dark);
    line-height: 1.1;
    margin-bottom: 18px;
}
.nosotros-text {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 28px;
}
.nosotros-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.nosotros-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nexago-dark);
}
.nosotros-badge svg { color: var(--nexago-green); }

.nosotros-img-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.14);
    height: 100%;
    min-height: 340px;
}
.nosotros-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.nexago-faq {
    padding: var(--section-py) 0;
    background: var(--nexago-light);
}

.nexago-accordion .accordion-item {
    border: 1px solid var(--nexago-gray-light);
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--nexago-white);
}
.nexago-accordion .accordion-button {
    font-family: var(--nexago-font);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--nexago-dark);
    background: var(--nexago-white);
    padding: 18px 24px;
    border-radius: 8px !important;
    box-shadow: none;
}
.nexago-accordion .accordion-button:not(.collapsed) {
    color: var(--nexago-green-dark);
    background: var(--nexago-white);
    box-shadow: none;
}
.nexago-accordion .accordion-button::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23aeca4b' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.nexago-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23aeca4b' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.nexago-accordion .accordion-body {
    font-size: 0.9rem;
    color: #555;
    padding: 0 24px 20px;
    line-height: 1.7;
}
.nexago-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(174,202,75,0.2);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.nexago-footer {
    background: var(--nexago-dark);
    color: rgba(255,255,255,0.55);
    padding: 60px 0 0;
}
.footer-logo img {
    height: 36px;
    width: auto;
    margin-bottom: 18px;
    display: block;
}
.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    max-width: 220px;
}
.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-base);
}
.footer-links a:hover { color: var(--nexago-green); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}
.footer-contact-item svg { color: var(--nexago-green); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-base);
}
.footer-contact-item a:hover { color: var(--nexago-green); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: all var(--transition-base);
}
.footer-social a:hover {
    border-color: var(--nexago-green);
    color: var(--nexago-green);
    background: rgba(174,202,75,0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    margin-top: 48px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-base);
}
.footer-bottom a:hover { color: var(--nexago-green); }

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* Tablet: 2 columnas para los pasos */
@media (max-width: 991.98px) {
    :root {
        --section-py: 56px;
    }
    .nexago-hero {
        padding: 60px 0 56px;
        min-height: auto;
        text-align: center;
    }
    .hero-subtext { max-width: 100%; }
    .hero-search-wrap { max-width: 100%; }
    .hero-pills { justify-content: center; }
    .hero-image-col { margin-top: 40px; }
    .hero-img { max-height: 280px; }
    .nosotros-img-wrap { min-height: 260px; margin-top: 32px; }
    .nosotros-badges { gap: 16px; }
    .nexago-navbar .container { padding-top: 10px; padding-bottom: 10px; }

    /* Paso a grid 2x2 en tablet */
    .como-steps-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .como-connector { display: none; }
}

@media (max-width: 767.98px) {
    .nexago-topbar { display: none; }
    .hero-headline { font-size: clamp(1.9rem, 8vw, 2.8rem); }
    .hero-search-box { flex-wrap: wrap; border-radius: 6px; }
    .hero-search-icon { display: none; }
    .hero-search-box input {
        width: 100%;
        padding: 14px 16px;
        border-bottom: 1px solid var(--nexago-gray-light);
    }
    .hero-search-btn {
        width: 100%;
        justify-content: center;
        padding: 13px;
        font-size: 0.95rem;
    }
    .footer-bottom .text-end { text-align: left !important; margin-top: 8px; }

    /* 1 columna en móvil */
    .como-steps-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .como-connector { display: none; }
}

@media (max-width: 575.98px) {
    .nexago-hero { padding: 50px 0 48px; }
    .como-step { padding: 18px 16px; }
    .servicio-card-body { padding: 18px; }
    .footer-logo img { height: 30px; }
}
/* -- MODAL TRACKING (GLOBAL FASTER LEGACY) ----------------------------- */
.tracking-modal-modern .modal-content {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    border: none;
    padding: 20px;
}
.tracking-modal-modern .tracking-status-main {
    background-color: #f1f8f5;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.tracking-modal-modern .tracking-status-main-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    color: #28a745;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.tracking-modal-modern .tracking-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border: 1px solid #f1f1f1;
}
.tracking-modal-modern .tracking-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #28a745;
    font-size: 20px;
}
.tracking-modal-modern .tracking-card-content p { margin: 0; }
.tracking-modal-modern .tracking-card-title { font-size: 12px; color: #6c757d; }
.tracking-modal-modern .tracking-card-value { font-weight: bold; font-size: 16px; color: #333; }

/* Timeline */
.tracking-modal-modern .tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0 20px;
}
.tracking-modal-modern .tracking-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: #e9ecef;
    z-index: 1;
}
.tracking-modal-modern .tracking-timeline.full-timeline::before {
    left: 10%;
    right: 10%;
}
.tracking-modal-modern .timeline-line-completed {
    position: absolute;
    top: 20px;
    left: 5%;
    height: 4px;
    background-color: #28a745;
    z-index: 1;
}
.tracking-modal-modern .tracking-timeline.full-timeline .timeline-line-completed {
    left: 10%;
}
.tracking-modal-modern .timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.tracking-modal-modern .timeline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    font-size: 18px;
    border: 4px solid #fff;
}
.tracking-modal-modern .timeline-step.completed .timeline-icon {
    background-color: #28a745;
    color: #fff;
}
.tracking-modal-modern .timeline-step.active .timeline-icon {
    background-color: #28a745;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}
.tracking-modal-modern .timeline-title { font-size: 12px; font-weight: bold; color: #333; margin-bottom: 5px; }
.tracking-modal-modern .timeline-date { font-size: 11px; color: #6c757d; }
.tracking-modal-modern .timeline-step.pending .timeline-title { color: #6c757d; font-weight: normal; }

/* Info box */
.tracking-modal-modern .tracking-info-box {
    background-color: #f1f8f5;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
}
.tracking-modal-modern .tracking-info-icon {
    color: #28a745;
    font-size: 24px;
    margin-right: 15px;
}
.tracking-modal-modern .tracking-info-text p { margin: 0; font-size: 13px; color: #333; line-height: 1.5;}
.tracking-modal-modern .tracking-info-text h6 { margin-bottom: 5px; font-weight: bold; color: #333; }

/* ================================================
   CSS - Vista de Divisiones del Paquete
   ================================================ */
.tracking-modal-modern .div-header-card {
    background: #fff;
    border: 1px solid #e8f5e9;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.tracking-modal-modern .div-tracking-label {
    font-size: 11px;
    font-weight: 700;
    color: #28a745;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.tracking-modal-modern .div-tracking-number {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    word-break: break-all;
}
.tracking-modal-modern .div-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}
.tracking-modal-modern .div-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tracking-modal-modern .div-meta-item i { color: #6c757d; font-size: 15px; }
.tracking-modal-modern .div-meta-label { font-size: 10px; color: #6c757d; text-transform: uppercase; margin: 0; }
.tracking-modal-modern .div-meta-value { font-size: 13px; font-weight: 600; color: #222; margin: 0; }

.tracking-modal-modern .div-status-badge {
    display: flex;
    align-items: center;
    background: #e8f5e9;
    border-radius: 10px;
    padding: 10px 16px;
    gap: 12px;
}
.tracking-modal-modern .div-status-icon {
    width: 38px; height: 38px;
    background: #28a745;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    flex-shrink: 0;
}
.tracking-modal-modern .div-status-text { font-size: 15px; font-weight: 700; color: #1e7e34; margin: 0; }
.tracking-modal-modern .div-status-sub  { font-size: 11px; color: #6c757d; margin: 0; }

.tracking-modal-modern .div-count-panel {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    background: #fafafa;
    height: 100%;
}
.tracking-modal-modern .div-count-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 6px; }
.tracking-modal-modern .div-count-number { font-size: 42px; font-weight: 900; color: #28a745; line-height: 1; }
.tracking-modal-modern .div-count-desc { font-size: 11px; color: #888; margin-top: 4px; }

.tracking-modal-modern .div-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 6px;
}
.tracking-modal-modern .div-section-title { font-size: 14px; font-weight: 700; color: #1a1a1a; margin: 0; }

.tracking-modal-modern .div-guia-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.tracking-modal-modern .div-guia-number {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #fff;
    flex-shrink: 0;
}
.tracking-modal-modern .div-guia-icon-box {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #f0f8f0;
    display: flex; align-items: center; justify-content: center;
    color: #28a745; font-size: 18px;
    flex-shrink: 0;
}
.tracking-modal-modern .div-guia-info { min-width: 110px; }
.tracking-modal-modern .div-guia-label { font-size: 10px; color: #999; text-transform: uppercase; margin: 0; }
.tracking-modal-modern .div-guia-value { font-size: 14px; font-weight: 700; color: #1a1a1a; margin: 0; }
.tracking-modal-modern .div-guia-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: auto;
    align-items: center;
}
.tracking-modal-modern .div-guia-field-item { text-align: left; }
.tracking-modal-modern .div-guia-field-label { font-size: 10px; color: #999; text-transform: uppercase; margin: 0; white-space: nowrap; }
.tracking-modal-modern .div-guia-field-value { font-size: 13px; font-weight: 600; color: #333; margin: 0; }

.tracking-modal-modern .div-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    white-space: nowrap;
}
.div-badge-transito    { background: #e8f5e9; color: #28a745; }
.div-badge-embarcado   { background: #e3f2fd; color: #1565c0; }
.div-badge-clasificado { background: #fff3e0; color: #e65100; }
.div-badge-recibido    { background: #f3e5f5; color: #6a1b9a; }
.div-badge-consolidado { background: #e0f7fa; color: #00695c; }
.div-badge-pendiente   { background: #fff8e1; color: #f57f17; }

.div-info-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #e8f5e9;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 18px;
}
.div-info-footer-icon {
    width: 40px; height: 40px;
    background: #28a745;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; flex-shrink: 0;
}
.div-info-footer-title { font-size: 13px; font-weight: 700; color: #1e7e34; margin: 0 0 2px; }
.div-info-footer-text  { font-size: 12px; color: #555; margin: 0; }
