/* ===== Deliverland UI v5 — full width edge-to-edge ===== */
:root {
    --dl-blue: #1e3a8a;
    --dl-blue-dark: #0f172a;
    --dl-blue-header: linear-gradient(135deg, #1e3a8a 0%, #0f172a 55%, #020617 100%);
    --dl-orange: #f97316;
    --dl-orange-dark: #ea580c;
    --dl-bg: #f4f6f9;
    --dl-surface: #ffffff;
    --dl-border: #e2e8f0;
    --dl-text: #1e293b;
    --dl-muted: #64748b;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--dl-surface);
    color: var(--dl-text);
    line-height: 1.5;
}

/* ── HEADER full width ── */
.dl-header {
    background: var(--dl-blue-header);
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    box-shadow: 0 2px 16px rgba(2, 6, 23, 0.4);
}

.dl-header::before { display: none !important; }

.dl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 1rem;
    gap: 0.75rem;
}

body.page-home .dl-header {
    position: fixed;
    left: 0; right: 0;
}

.logo-svg { height: 44px; width: auto; }
.logo-link { display: flex; flex-shrink: 0; text-decoration: none; }

.dl-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.dl-nav { display: flex; align-items: center; gap: 0.15rem; }

.dl-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: none !important;
    outline: none !important;
}

.dl-nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.12); }

.dl-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-left: 0.65rem;
    border-left: 1px solid rgba(255,255,255,0.18);
}

.dl-user {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── MAIN sin márgenes laterales ── */
.dl-main {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.dl-main .container,
.dl-main .container-fluid,
.dl-main .container-sm,
.dl-main .container-md,
.dl-main .container-lg,
.dl-main .container-xl,
.dl-main .container-xxl {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.main-home { padding: 0; max-width: 100%; }

/* ── PANELES edge-to-edge ── */
.dl-panel {
    width: 100%;
    max-width: 100%;
    background: var(--dl-surface);
    border: none !important;
    border-bottom: 1px solid var(--dl-border);
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1.25rem 1rem;
    margin: 0;
    outline: none !important;
}

.dl-panel--cotiza-individual,
.dl-panel--cotiza-multiple {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
}

.cotiza-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.25rem 1rem;
    background: var(--dl-bg);
    gap: 0;
}

.cotiza-card::before,
.cotiza-card::after,
.cotiza-page::before,
.cotiza-page::after,
.dl-panel::before,
.dl-panel::after {
    display: none !important;
    content: none !important;
}

.cotiza-card {
    width: 100%;
    background: var(--dl-surface);
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
    padding: 0;
    margin: 0 0 1.25rem;
    outline: none !important;
    overflow: hidden;
}

.cotiza-card:last-child { margin-bottom: 0; }

.cotiza-card__head {
    background: linear-gradient(135deg, var(--dl-blue-dark) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 1rem 1.5rem;
}

.cotiza-card__head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cotiza-card__head p {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    opacity: 0.85;
}

.cotiza-card__body {
    padding: 1.5rem;
}

.cotiza-section { margin: 0; }

.cotiza-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dl-blue-dark);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.cotiza-section-title i { color: var(--dl-blue); }

.cotiza-route-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: end;
    max-width: 720px;
    margin: 0 auto 1.25rem;
}

.cotiza-route-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #eff6ff;
    border-radius: 50%;
    color: var(--dl-blue);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.cotiza-route-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dl-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
    display: block;
}

.cotiza-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.cotiza-upload-zone {
    flex: 1;
    min-width: 260px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.15s, background 0.15s;
}

.cotiza-upload-zone:hover,
.cotiza-upload-zone:focus-within {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.cotiza-upload-zone .upload-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dl-blue-dark);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cotiza-upload-zone .form-control[type="file"] {
    background: #fff;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.cotiza-upload-zone .upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-dl-outline {
    background: #fff !important;
    border: 1px solid var(--dl-border) !important;
    color: var(--dl-blue-dark) !important;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    box-shadow: none !important;
}

.btn-dl-outline:hover {
    background: #f8fafc !important;
    border-color: #93c5fd !important;
    color: var(--dl-blue) !important;
}

.cotiza-divider {
    border: 0;
    height: 0;
    border-top: 2px solid #cbd5e1;
    margin: 2rem 0;
    opacity: 1;
    background: none;
}

.cotiza-help {
    font-size: 0.875rem;
    color: var(--dl-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.cotiza-upload-box {
    background: #fafbfc;
    border: 1px solid var(--dl-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.cotiza-upload-box .form-control[type="file"] {
    background: #fff;
    margin-bottom: 0.75rem;
}

.cotiza-packages-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dl-blue-dark);
    margin: 0 0 0.75rem;
    text-align: center;
}

.cotiza-packages {
    max-width: 900px;
    margin: 0 auto;
}

.cotiza-btn-wrap {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dl-border);
}

.cotiza-btn-calc {
    margin-top: 0;
    padding: 0.65rem 2.5rem;
    font-size: 0.95rem;
}

.dl-panel--cotiza-individual,
.dl-panel--cotiza-multiple {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
}

.dl-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--dl-border);
}

.dl-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dl-blue-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dl-panel-title i { color: var(--dl-blue); }

.dl-panel-subtitle {
    font-size: 0.84rem;
    color: var(--dl-muted);
    margin: -0.25rem 0 1rem;
    line-height: 1.5;
}

.dl-panel-divider {
    border: 0;
    border-top: 1px solid var(--dl-border);
    margin: 1.25rem 0;
}

/* Stats */
.dl-stat {
    background: var(--dl-bg);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--dl-border);
}

.dl-stat-val { font-size: 1.15rem; font-weight: 700; color: var(--dl-orange); }
.dl-stat-lbl { font-size: 0.72rem; color: var(--dl-muted); }

/* ── Sin contornos naranja decorativos ── */
.dl-header::before,
.dl-header::after,
.login-card::before,
.login-card::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    height: 0 !important;
}

.dl-panel,
.dl-panel--cotiza-individual,
.dl-panel--cotiza-multiple,
.cotiza-card,
.cotiza-page,
.cotiza-section,
.dl-panel .dl-stat,
.dl-main,
main.dl-main {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    outline: none !important;
}

.dl-panel,
.dl-panel .dl-stat {
    border-bottom: 1px solid var(--dl-border) !important;
}

.cotiza-card {
    border: none !important;
}

.dl-panel .dl-stat {
    border: 1px solid var(--dl-border) !important;
    border-left: none !important;
}

.btn:focus,
.btn:focus-visible,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-dl-action:focus,
.btn-dl-action:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

/* ── BOTONES naranja (solo fondo, sin borde naranja) ── */
.btn-dl-action,
.btn-primary,
.btn-success,
.btn-carrito,
.btn-pagar,
.btn-dark,
.dl-panel .btn:not(.btn-dl-logout):not(.btn-dl-ghost),
.cotiza-card .btn:not(.btn-dl-logout):not(.btn-dl-ghost),
.dl-card-pro .btn:not(.btn-dl-logout):not(.btn-dl-ghost) {
    background: var(--dl-orange) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px !important;
    box-shadow: none !important;
    outline: none !important;
}

.btn-dl-action:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-carrito:hover,
.btn-pagar:hover,
.dl-panel .btn:not(.btn-dl-logout):not(.btn-dl-ghost):hover,
.cotiza-card .btn:not(.btn-dl-logout):not(.btn-dl-ghost):hover,
.dl-card-pro .btn:not(.btn-dl-logout):not(.btn-dl-ghost):hover {
    background: var(--dl-orange-dark) !important;
    color: #fff !important;
}

.btn-dl-logout {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-dl-ghost,
.btn-outline-secondary {
    background: transparent !important;
    border: 1px solid var(--dl-border) !important;
    color: var(--dl-text) !important;
    box-shadow: none !important;
}

.btn-dl-ghost:hover,
.btn-outline-secondary:hover {
    border-color: var(--dl-blue) !important;
    color: var(--dl-blue) !important;
    background: var(--dl-bg) !important;
}

.text-accent { color: var(--dl-orange) !important; font-weight: 700; }

/* Formularios — focus azul, no naranja */
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--dl-blue-dark); margin-bottom: 0.2rem; }
.form-control, .form-select {
    border: 1px solid var(--dl-border);
    border-radius: 8px;
    font-size: 0.875rem;
}
.form-control:focus, .form-select:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12) !important;
    outline: none !important;
}
.form-check-input:checked {
    background-color: var(--dl-blue);
    border-color: var(--dl-blue);
}

/* ── Paquetes ── */
.cotiza-packages .package-card {
    display: block;
    height: 100%;
    border: 1px solid var(--dl-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    margin: 0;
    outline: none !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cotiza-packages .package-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.cotiza-packages .package-card input[type="radio"] { display: none; }
.cotiza-packages .card-content { padding: 14px 10px; text-align: center; }

.cotiza-packages .pkg-img-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}

.cotiza-packages .pkg-img-box img {
    max-height: 64px !important;
    max-width: 80% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.cotiza-packages .package-card input[type="radio"]:checked + .card-content {
    background: var(--dl-blue-dark);
    color: #fff;
}

.cotiza-packages .package-card:has(input:checked) {
    border-color: var(--dl-blue-dark) !important;
}

.cotiza-packages .pkg-name { font-size: 0.85rem; font-weight: 700; display: block; cursor: pointer; color: var(--dl-blue-dark); }
.cotiza-packages .pkg-meta { font-size: 0.75rem; color: var(--dl-muted); margin: 0; line-height: 1.35; }
.cotiza-packages .package-card input[type="radio"]:checked + .card-content .pkg-name,
.cotiza-packages .package-card input[type="radio"]:checked + .card-content .pkg-meta { color: rgba(255,255,255,0.9); }

.carrito-bar {
    background: var(--dl-blue-dark);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 0;
    margin-top: 0;
    font-size: 0.875rem;
}

/* ── Página con tarjeta profesional ── */
.dl-page-wrap {
    width: 100%;
    padding: 1.25rem 1rem;
    background: var(--dl-bg);
}

.dl-card-pro {
    width: 100%;
    background: var(--dl-surface);
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1) !important;
    overflow: hidden;
    outline: none !important;
}

.dl-card-pro__header {
    background: var(--dl-blue-dark);
    color: #fff;
    padding: 1.25rem 1.5rem;
}

.dl-card-pro__header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dl-card-pro__header p {
    margin: 0.35rem 0 0;
    opacity: 0.82;
    font-size: 0.875rem;
}

.dl-card-pro__body {
    padding: 1.5rem;
}

/* Resultados cotización múltiple */
.dl-results-box {
    border: 1px solid var(--dl-border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: hidden;
    background: #f8fafc;
    margin-top: 1.5rem;
}

.dl-results-box__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--dl-blue-dark);
    color: #fff;
    border-bottom: none;
}

.dl-results-box__head h6 {
    margin: 0;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.dl-results-box__head .text-accent {
    color: #fdba74 !important;
    font-size: 1rem !important;
}

.dl-results-box__toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--dl-border);
    font-size: 0.82rem;
}

.dl-results-box__toolbar label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-weight: 500;
    color: var(--dl-blue-dark);
    cursor: pointer;
}

.cotiza-results-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
}

.cotiza-result-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dl-border);
    transition: background 0.12s;
}

.cotiza-result-item:last-child { border-bottom: none; }

.cotiza-result-item:hover { background: #f8fafc; }

.cotiza-result-item.is-selected {
    background: #eff6ff;
    border-left: 3px solid var(--dl-blue);
    padding-left: calc(1.25rem - 3px);
}

.cotiza-result-item__check {
    display: flex;
    align-items: center;
    padding-top: 0.15rem;
}

.cotiza-result-item__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.cotiza-result-item__id {
    font-weight: 700;
    color: var(--dl-blue-dark);
    font-size: 0.9rem;
}

.cotiza-result-item__status {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #e2e8f0 !important;
    color: #475569 !important;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.cotiza-result-item__route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.cotiza-result-item__route .bi-arrow-right {
    color: var(--dl-blue);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.cotiza-result-item__route .route-cp {
    font-weight: 700;
    color: var(--dl-blue-dark);
}

.cotiza-result-item__route .route-place {
    color: var(--dl-muted);
    font-size: 0.78rem;
}

.cotiza-result-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.78rem;
    color: var(--dl-muted);
}

.cotiza-result-item__meta span:not(.desc) {
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    color: #475569;
}

.cotiza-result-item__meta .desc {
    flex: 1 1 100%;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.cotiza-result-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 90px;
}

.cotiza-result-item__cost {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dl-orange);
    white-space: nowrap;
}

.cotiza-result-item__side .btn-print {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    font-size: 0.85rem;
}

.dl-results-box .carrito-bar {
    border-radius: 0;
    padding: 1rem 1.25rem;
}

.dl-results-box .carrito-bar .btn-carrito {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Cotización individual — resultado y formulario */
.cotiza-quote-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--dl-border);
}

.cotiza-quote-summary__main { flex: 1; min-width: 220px; }

.cotiza-quote-summary__id .label,
.cotiza-quote-summary__cost .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dl-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.cotiza-quote-summary__id strong {
    font-size: 1.15rem;
    color: var(--dl-blue-dark);
}

.cotiza-quote-summary__cost { text-align: right; }

.cotiza-quote-summary__cost .amount {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--dl-orange);
    line-height: 1.1;
}

.cotiza-quote-summary .cotiza-result-item__meta { margin-top: 0.65rem; }

.cotiza-detail-box {
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.cotiza-detail-box__head {
    padding: 0.75rem 1rem;
    background: var(--dl-blue-dark);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.cotiza-detail-box__body { padding: 1rem; }

.cotiza-detail-box iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 8px;
    display: block;
}

.cotiza-pkg-selected {
    text-align: center;
    padding: 0.5rem;
}

.cotiza-pkg-selected .pkg-img-box {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.cotiza-pkg-selected .pkg-img-box img {
    max-height: 72px;
    max-width: 75%;
    object-fit: contain;
}

.cotiza-pkg-selected .pkg-name {
    font-weight: 700;
    color: var(--dl-blue-dark);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.35rem;
}

.cotiza-pkg-selected .pkg-meta {
    font-size: 0.8rem;
    color: var(--dl-muted);
    margin: 0;
}

.cotiza-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dl-border);
}

.cotiza-form-section { margin-bottom: 1.75rem; }

.cotiza-form-section:last-child { margin-bottom: 0; }

.cotiza-form-section__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dl-blue-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eff6ff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cotiza-form-section__title i { color: var(--dl-blue); }

.cotiza-form-block {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--dl-border);
}

.cotiza-form-block:last-child { margin-bottom: 0; }

.cotiza-form-block__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dl-muted);
    margin-bottom: 0.75rem;
}

.cotiza-form-block .form-control[readonly] {
    background: #e2e8f0;
    color: #475569;
    cursor: default;
}

.cotiza-form-submit {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dl-border);
}

.cotiza-form-submit .btn { padding: 0.65rem 2rem; font-size: 0.95rem; }

.dl-results-box .table {
    margin: 0;
    font-size: 0.84rem;
}

.dl-results-box .table thead th {
    background: var(--dl-blue-dark) !important;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none !important;
    padding: 0.55rem 0.6rem;
    white-space: nowrap;
}

.dl-results-box .table tbody td {
    padding: 0.5rem 0.6rem;
    vertical-align: middle;
}

.dl-results-box .table-bordered {
    border: none !important;
}

.dl-results-box .table-bordered > :not(caption) > * > * {
    border-color: var(--dl-border);
}

/* Checkout */
.checkout-summary-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.checkout-summary-head .badge-count {
    background: var(--dl-blue);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.checkout-total { text-align: right; }

.checkout-total .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dl-muted);
}

.checkout-total .amount {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--dl-orange);
    line-height: 1.1;
}

.dl-card-pro .orders-table { margin: 0; font-size: 0.875rem; border-radius: 10px; overflow: hidden; }

.dl-card-pro .orders-table thead th {
    background: var(--dl-blue-dark) !important;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none !important;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.dl-card-pro .orders-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--dl-border);
}

.dl-card-pro .orders-table tbody tr:hover { background: #f8fafc; }

.dl-card-pro .orders-table tfoot td {
    background: var(--dl-blue-dark);
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border: none;
}

.dl-card-pro .orders-table .pedido-id { font-weight: 600; color: var(--dl-blue-dark); }
.dl-card-pro .orders-table .cot-ref { font-size: 0.78rem; color: var(--dl-muted); }
.dl-card-pro .orders-table .route-arrow { color: var(--dl-blue); }
.dl-card-pro .orders-table .route-city { font-size: 0.78rem; color: var(--dl-muted); }
.dl-card-pro .orders-table .pkg-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.dl-card-pro .pay-tabs {
    border-bottom: 2px solid var(--dl-border);
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.dl-card-pro .pay-tabs .nav-link {
    color: var(--dl-muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
}

.dl-card-pro .pay-tabs .nav-link.active {
    color: var(--dl-blue) !important;
    border-bottom-color: var(--dl-blue) !important;
    background: transparent !important;
}

.dl-card-pro .pay-panel {
    border: none;
    padding: 1.25rem 0 0;
    background: transparent;
}

.dl-card-pro .pay-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dl-blue-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dl-card-pro .mp-checkout-box {
    background: #f8fafc;
    border: 1px dashed var(--dl-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.dl-card-pro .mp-checkout-box i { font-size: 2.25rem; color: #009ee3; }

.dl-card-pro .pay-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dl-border);
}

.dl-card-pro .pay-secure {
    font-size: 0.82rem;
    color: var(--dl-muted);
    line-height: 1.5;
}

.dl-card-pro .pay-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dl-blue-dark);
    margin-bottom: 0.35rem;
}

.dl-card-pro .pay-input {
    border: 1px solid var(--dl-border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    width: 100%;
    font-size: 0.9rem;
}

.dl-card-pro .spei-box {
    background: #f8fafc;
    border: 1px dashed var(--dl-border);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.dl-card-pro .spei-box code { color: var(--dl-blue); font-weight: 600; }

.dl-card-pro .orders-table .row-num { color: #94a3b8; font-weight: 600; width: 36px; }
.dl-card-pro .orders-table .cost-cell { font-weight: 700; color: var(--dl-blue-dark); white-space: nowrap; text-align: right; }
.dl-card-pro .orders-table .route-line { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.dl-card-pro .orders-table .route-cp { font-weight: 600; color: #334155; }
.dl-card-pro .orders-table .dest-name { font-weight: 500; color: #1e293b; }
.dl-card-pro .orders-table tfoot .total-label { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em; opacity: 0.85; }
.dl-card-pro .orders-table tfoot .total-amount { font-size: 1.15rem; text-align: right; }

.dl-card-pro .spei-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--dl-border); }
.dl-card-pro .spei-row:last-child { border-bottom: none; }
.dl-card-pro .spei-row .spei-key { color: var(--dl-muted); font-size: 0.88rem; }
.dl-card-pro .spei-row .spei-val { font-weight: 600; color: #1e293b; }

@media (max-width: 768px) {
    .dl-card-pro .orders-table .route-line { flex-direction: column; align-items: flex-start; gap: 2px; }
    .checkout-total { text-align: left; width: 100%; }
    .dl-card-pro__body { padding: 1rem; }
}

/* Tablas */
.dl-panel .table,
.cotiza-card .table { font-size: 0.84rem; margin-bottom: 0; }
.dl-panel .table thead th,
.cotiza-card .table thead th {
    background: var(--dl-blue-dark) !important;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none !important;
    padding: 0.55rem 0.6rem;
}
.dl-panel .table tbody td,
.cotiza-card .table tbody td { padding: 0.5rem 0.6rem; vertical-align: middle; }

/* Tabs — azul activo */
.nav-tabs .nav-link.active {
    color: var(--dl-blue) !important;
    border-bottom: 2px solid var(--dl-blue) !important;
}

/* Pagos */
.payment-header,
.card-form-header,
.spei-header {
    background: var(--dl-blue-dark) !important;
    color: #fff;
    padding: 1rem 1.25rem;
    margin: -1.25rem -1rem 1rem;
    width: calc(100% + 2rem);
}
.payment-header h4,
.spei-header h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.payment-header p,
.spei-header p { margin: 0.25rem 0 0; opacity: 0.75; font-size: 0.85rem; }

.payment-card,
.spei-card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.payment-body { padding: 0; background: transparent; }

@media (min-width: 769px) {
    .payment-header,
    .card-form-header,
    .spei-header {
        margin: -1.5rem -1.25rem 1rem;
        width: calc(100% + 2.5rem);
    }
}

@media (min-width: 1200px) {
    .payment-header,
    .card-form-header,
    .spei-header {
        margin: -1.5rem -1.5rem 1rem;
        width: calc(100% + 3rem);
    }
}

.page-item.active .page-link {
    background: var(--dl-orange) !important;
    border-color: var(--dl-orange) !important;
}

/* Timeline envíos — azul */
.dl-timeline { border-left: 3px solid var(--dl-blue); padding-left: 16px; }
.dl-timeline-item::before { background: var(--dl-blue) !important; }

@media (max-width: 768px) {
    .dl-header-inner { padding: 0.5rem 0.75rem; }
    .dl-nav-link span { display: none; }
    .dl-user { display: none; }
    .dl-panel { padding: 1rem 0.75rem; }
    .cotiza-page { padding: 0.75rem; }
    .cotiza-card { border-radius: 10px !important; }
    .cotiza-card__body { padding: 1rem; }
    .cotiza-route-grid { grid-template-columns: 1fr; max-width: 100%; }
    .cotiza-route-arrow { transform: rotate(90deg); margin: 0 auto; }
    .cotiza-result-item { grid-template-columns: auto 1fr; }
    .cotiza-result-item__side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-left: 2rem;
    }
    .cotiza-quote-summary__cost { text-align: left; width: 100%; }
    .cotiza-quote-actions { justify-content: stretch; }
    .cotiza-quote-actions .btn { flex: 1 1 auto; }
}

@media (min-width: 769px) {
    .dl-header-inner { padding: 0.55rem 1rem; }
    .dl-panel { padding: 1.5rem 1rem; }
    .dl-nav-link span { display: inline; }
}

@media (min-width: 1200px) {
    .dl-header-inner,
    .dl-panel { padding-left: 1rem; padding-right: 1rem; }
}

/* Landing — sin contornos naranja/laterales */
body.page-home,
body.page-home .main-home,
body.page-home main,
body.page-home .dl-header,
body.page-home .dl-hero,
body.page-home .dl-stats,
body.page-home .dl-section {
    border: none !important;
    outline: none !important;
}

body.page-home .dl-header::before,
body.page-home .dl-header::after {
    display: none !important;
    content: none !important;
}

body.page-home .dl-stats-inner {
    border-radius: 20px !important;
    border: none !important;
    overflow: hidden !important;
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.14) !important;
}

body.page-home .dl-stats .dl-stat {
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: 1px solid var(--dl-border) !important;
}

/* ── Registro / verificación cliente ── */
.dl-registro-page {
    min-height: calc(100vh - 72px);
    padding: 2.5rem 1rem 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30, 58, 138, 0.08), transparent),
        linear-gradient(180deg, #f8fafc 0%, var(--dl-bg) 100%);
}

.dl-registro-container {
    max-width: 100%;
    width: 100%;
}

.dl-registro-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.dl-registro-brand img {
    height: 44px;
    width: auto;
    margin-bottom: 1rem;
}

.dl-registro-steps {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dl-muted);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.dl-registro-steps .step {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dl-registro-steps .step-num {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
}

.dl-registro-steps .step.is-active .step-num {
    background: var(--dl-blue);
    color: #fff;
}

.dl-registro-steps .step.is-active {
    color: var(--dl-blue-dark);
}

.dl-registro-steps .step-divider {
    color: #cbd5e1;
    font-size: 0.65rem;
}

.dl-registro-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.dl-registro-card__hero {
    padding: 1.75rem 2rem 1.5rem;
    background: var(--dl-blue-header);
    color: #fff;
    position: relative;
}

.dl-registro-card__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.15), transparent 55%);
    pointer-events: none;
}

.dl-registro-card__hero > * {
    position: relative;
    z-index: 1;
}

.dl-registro-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.dl-registro-card__hero h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dl-registro-card__hero p {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    opacity: 0.88;
    max-width: 36rem;
    line-height: 1.55;
}

.dl-registro-card__body {
    padding: 1.75rem 2rem 2rem;
}

.dl-registro-notice {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.95rem 1.1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #1e40af;
    line-height: 1.5;
}

.dl-registro-notice i {
    font-size: 1.15rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.dl-registro-section {
    margin-bottom: 1.5rem;
}

.dl-registro-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dl-muted);
}

.dl-registro-section__title i {
    color: var(--dl-blue);
    font-size: 0.95rem;
}

.dl-registro-field {
    position: relative;
    margin-bottom: 0;
}

.dl-registro-field .field-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.dl-registro-input-wrap {
    position: relative;
}

.dl-registro-input-wrap .field-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.dl-registro-input-wrap .form-control {
    padding-left: 2.5rem;
    padding-right: 2.75rem;
}

.dl-registro-input-wrap .field-toggle-pwd {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.25rem 0.45rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.dl-registro-input-wrap .field-toggle-pwd:hover {
    color: var(--dl-blue);
}

.dl-registro-field #passwordMismatchMsg {
    display: none;
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

.dl-registro-field #passwordMismatchMsg.d-block.is-visible {
    display: block !important;
}

.dl-registro-field .form-control {
    padding-left: 2.5rem;
    border-radius: 10px;
    border-color: #e2e8f0;
    font-size: 0.9rem;
    min-height: 44px;
}

.dl-registro-field .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.dl-registro-verify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.dl-registro-verify-option {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.dl-registro-verify-option input[type="radio"] {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    pointer-events: none !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
}

.dl-registro-verify-option__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
    padding: 1rem 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dl-registro-verify-option__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--dl-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0;
}

.dl-registro-verify-option__body {
    flex: 1;
    min-width: 0;
}

.dl-registro-verify-option__title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 0.15rem;
}

.dl-registro-verify-option__desc {
    display: block;
    font-size: 0.78rem;
    color: var(--dl-muted);
    line-height: 1.4;
}

.dl-registro-verify-option input:checked + .dl-registro-verify-option__inner {
    border-color: var(--dl-blue);
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.dl-registro-verify-option input:checked + .dl-registro-verify-option__inner .dl-registro-verify-option__icon {
    background: rgba(30, 58, 138, 0.1);
}

.dl-registro-verify-option:hover:not(.is-disabled) .dl-registro-verify-option__inner {
    border-color: #cbd5e1;
}

.dl-registro-verify-option.is-disabled {
    cursor: not-allowed;
}

.dl-registro-verify-option.is-disabled .dl-registro-verify-option__inner {
    background: #f8fafc;
    opacity: 0.75;
}

.dl-registro-verify-option.is-disabled .dl-registro-verify-option__icon {
    background: #e2e8f0;
    color: #94a3b8;
}

.dl-registro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--dl-border);
}

.dl-registro-actions .btn-pagar {
    min-width: 220px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.92rem;
}

.dl-registro-actions .btn-back {
    color: #64748b;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0;
}

.dl-registro-actions .btn-back:hover {
    color: var(--dl-blue);
}

.dl-registro-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--dl-muted);
}

.dl-registro-footer a {
    color: var(--dl-blue);
    font-weight: 600;
    text-decoration: none;
}

.dl-registro-footer a:hover {
    text-decoration: underline;
}

.dl-registro-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.dl-registro-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Layout: formularios 70%, reportes ancho completo */
.dl-content-full,
.dl-panel.dl-content-full {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 992px) {
    .cotiza-page,
    .dl-page-wrap,
    .dl-registro-page,
    .mi-cuenta-page,
    .dl-panel:not(.dl-content-full) {
        width: 94% !important;
        max-width: 94% !important;
    }
}

@media (max-width: 575.98px) {
    .dl-registro-card__hero,
    .dl-registro-card__body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .dl-registro-verify-grid {
        grid-template-columns: 1fr;
    }

    .dl-registro-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .dl-registro-actions .btn-pagar {
        width: 100%;
        min-width: 0;
    }
}

/* ── Mi cuenta — panel cliente ── */
.mi-cuenta-page {
    padding: 1.75rem 1.25rem 2.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, var(--dl-bg) 100%);
}

.mi-cuenta-page--wide {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.mi-table-wrap--wide {
    overflow-x: visible;
}

.mi-table--wide {
    width: 100% !important;
    table-layout: fixed;
    font-size: 0.78rem;
}

.mi-table--wide thead th,
.mi-table--wide tbody td {
    padding: 0.6rem 0.55rem;
    white-space: normal;
    word-break: break-word;
    vertical-align: middle;
}

.mi-table--wide thead th {
    font-size: 0.68rem;
    line-height: 1.25;
}

.mi-table--wide .mi-col-actions {
    width: 6.5rem;
}

.mi-cuenta-page--wide .dataTables_wrapper {
    overflow-x: visible;
}

.mi-cuenta-page--wide .dataTables_scroll,
.mi-cuenta-page--wide .dataTables_scrollBody {
    overflow-x: visible !important;
}

@media (max-width: 992px) {
    .mi-cuenta-page--wide {
        width: 96%;
        max-width: 96%;
    }
}

.mi-cuenta-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 55%, #020617 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
}

.mi-cuenta-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.12), transparent 50%);
    pointer-events: none;
}

.mi-cuenta-hero > * { position: relative; z-index: 1; }

.mi-cuenta-hero__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mi-cuenta-hero__avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mi-cuenta-hero__eyebrow {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 0.2rem;
}

.mi-cuenta-hero__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mi-cuenta-hero__sub {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    opacity: 0.88;
}

.mi-cuenta-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mi-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.mi-btn--primary {
    background: linear-gradient(160deg, #fb923c 0%, #f97316 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.mi-btn--primary:hover {
    background: linear-gradient(160deg, #fff 0%, #f1f5f9 100%);
    color: #0f172a;
    transform: translateY(-1px);
}

.mi-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.14);
}

.mi-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.mi-btn--outline {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
}

.mi-btn--outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.mi-btn--sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.mi-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.mi-stat-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--dl-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mi-stat-card__val {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.mi-stat-card__lbl {
    font-size: 0.78rem;
    color: var(--dl-muted);
    margin-top: 0.15rem;
}

.mi-panel {
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.mi-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.mi-panel__head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mi-panel__head h2 i { color: var(--dl-blue); }

.mi-panel__head p {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--dl-muted);
}

.mi-panel__body {
    padding: 1.25rem 1.35rem;
}

.mi-panel--accent .mi-panel__head {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 55%, #f0f9ff 100%);
    border-bottom-color: #dbeafe;
}

.mi-panel--accent .mi-panel__head h2 i {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: linear-gradient(160deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mi-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dl-blue);
    text-decoration: none;
    white-space: nowrap;
}

.mi-link:hover { text-decoration: underline; }

.mi-table {
    width: 100%;
    font-size: 0.84rem;
}

.mi-table thead th {
    padding: 0.75rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid var(--dl-border);
}

.mi-table tbody td {
    padding: 0.9rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.mi-table tbody tr:last-child td { border-bottom: none; }

.mi-table tbody tr:hover { background: #fafbfc; }

.mi-id {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.82rem;
}

.mi-route {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
}

.mi-route i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.mi-cost {
    font-weight: 600;
    color: #0f172a;
}

.mi-route--stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #475569;
}

.mi-route__label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.mi-location {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #475569;
}

.mi-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mi-badge--blue  { background: #dbeafe; color: #1e40af; }
.mi-badge--amber { background: #fef3c7; color: #b45309; }
.mi-badge--green { background: #dcfce7; color: #166534; }
.mi-badge--gray  { background: #f1f5f9; color: #64748b; }

.mi-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--dl-muted);
}

.mi-empty i {
    font-size: 2rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.75rem;
}

.mi-empty p { margin-bottom: 1rem; }

.mi-hub-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mi-hub-card:hover {
    transform: translateY(-2px);
}

.mi-hub-card:hover .mi-panel {
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.mi-hub-card__body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
}

.mi-hub-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.mi-hub-card__icon--blue {
    background: #eff6ff;
    color: #1e40af;
}

.mi-hub-card__icon--green {
    background: #ecfdf5;
    color: #047857;
}

.mi-hub-card__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.mi-hub-card__desc {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.mi-hub-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Subpáginas Mi Cuenta (detalle, seguimiento) */
.mi-subhead {
    margin-bottom: 1.5rem;
}

.mi-subhead__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dl-blue);
    text-decoration: none;
    margin-bottom: 1rem;
}

.mi-subhead__back:hover { text-decoration: underline; }

.mi-subhead__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 55%, #020617 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    position: relative;
    overflow: hidden;
}

.mi-subhead__row::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.1), transparent 50%);
    pointer-events: none;
}

.mi-subhead__row > * { position: relative; z-index: 1; }

.mi-subhead__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mi-subhead__text { flex: 1; min-width: 0; }

.mi-subhead__eyebrow {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 0.15rem;
}

.mi-subhead__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mi-subhead__meta {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    opacity: 0.85;
}

.mi-subhead__status {
    flex-shrink: 0;
}

.mi-subhead__action {
    flex-shrink: 0;
    margin-left: auto;
}

.mi-filters {
    padding: 1.15rem 1.35rem;
}

.mi-filters__lbl {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.mi-table-wrap {
    padding: 0 0 0.5rem;
}

.mi-contact__name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.82rem;
}

.mi-contact__phone {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.mi-ref {
    font-size: 0.75rem;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mi-dropdown .dropdown-item {
    font-size: 0.84rem;
}

.mi-cuenta-page .dataTables_wrapper {
    padding: 0.85rem 1.25rem 0.5rem;
}

.mi-cuenta-page .dataTables_length,
.mi-cuenta-page .dataTables_filter {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.mi-cuenta-page .dataTables_length select,
.mi-cuenta-page .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    margin: 0 0.35rem;
}

.mi-cuenta-page .dataTables_info {
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 0.65rem;
}

.mi-cuenta-page .dataTables_paginate {
    padding-top: 0.65rem;
}

.mi-cuenta-page .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.78rem !important;
    padding: 0.25rem 0.65rem !important;
    margin-left: 0.25rem !important;
    background: #fff !important;
    color: #334155 !important;
}

.mi-cuenta-page .dataTables_paginate .paginate_button.current {
    background: linear-gradient(160deg, #fb923c 0%, #f97316 100%) !important;
    border-color: #f97316 !important;
    color: #fff !important;
}

.mi-cuenta-page .dataTables_paginate .paginate_button:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.mi-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.mi-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.25rem 1.5rem;
    border-right: 1px solid #f1f5f9;
}

.mi-summary-item:last-child { border-right: none; }

.mi-summary-item__lbl {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.mi-summary-item__val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.mi-summary-item__val small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.mi-summary-item__val--muted {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.mi-address-card__body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.mi-address-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.mi-address-card__street {
    font-size: 0.86rem;
    color: #334155;
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

.mi-address-card__location {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.mi-address-card__location i {
    color: var(--dl-blue);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.mi-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mi-timeline {
    padding: 1.35rem 1.5rem 1.5rem;
}

.mi-timeline__step {
    display: flex;
    gap: 1rem;
    min-height: 3.5rem;
}

.mi-timeline__track {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 2rem;
    flex-shrink: 0;
}

.mi-timeline__dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.mi-timeline__dot--done {
    background: linear-gradient(160deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.mi-timeline__dot--pending {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.mi-timeline__line {
    flex: 1;
    width: 2px;
    min-height: 1.25rem;
    background: #e2e8f0;
    margin: 0.25rem 0;
}

.mi-timeline__line--done { background: #86efac; }

.mi-timeline__content {
    padding-bottom: 1.25rem;
    flex: 1;
}

.mi-timeline__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.mi-timeline__date {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .mi-summary-grid {
        grid-template-columns: 1fr;
    }

    .mi-summary-item {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .mi-summary-item:last-child { border-bottom: none; }

    .mi-subhead__status {
        width: 100%;
    }

    .mi-subhead__action {
        width: 100%;
        justify-content: center;
    }

    .mi-cuenta-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .mi-cuenta-hero__actions {
        width: 100%;
    }

    .mi-cuenta-hero__actions .mi-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ── Seguimiento de envíos ── */
.sg-track { padding: 0.25rem 0; }

.sg-progress {
    position: relative;
    height: 0.55rem;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.sg-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #1e40af 0%, #22c55e 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.sg-progress__lbl {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sg-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.sg-summary__item {
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
}

.sg-summary__lbl {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.sg-summary__val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.sg-summary__val--sm {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.sg-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.86rem;
}

.sg-alert i { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }

.sg-alert--alerta {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.sg-alert--alerta i { color: #d97706; }

.sg-timeline {
    padding: 0.75rem 0.5rem 0.25rem 1rem;
}

.sg-timeline__step {
    display: flex;
    gap: 1rem;
    min-height: 3.75rem;
}

.sg-timeline__track {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 2.25rem;
    flex-shrink: 0;
}

.sg-timeline__dot {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.sg-timeline__line {
    flex: 1;
    width: 2px;
    min-height: 1.5rem;
    background: #e2e8f0;
    margin: 0.3rem 0;
}

.sg-timeline__step--done .sg-timeline__dot {
    background: linear-gradient(160deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.sg-timeline__step--done .sg-timeline__line { background: #86efac; }

.sg-timeline__step--current .sg-timeline__dot {
    background: linear-gradient(160deg, #3b82f6 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.sg-timeline__step--alert .sg-timeline__dot,
.sg-timeline__step--incidencia .sg-timeline__dot {
    background: linear-gradient(160deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.sg-timeline__step--incidencia .sg-timeline__dot {
    background: linear-gradient(160deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.sg-timeline__step--pending .sg-timeline__dot {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.sg-timeline__content { flex: 1; padding-bottom: 1.25rem; }

.sg-timeline__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sg-timeline__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.sg-timeline__date {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.sg-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sg-pill--current {
    background: #dbeafe;
    color: #1e40af;
}

.sg-note {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin-top: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.sg-note i { flex-shrink: 0; margin-top: 0.1rem; }

.sg-note--info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.sg-note--alerta {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.sg-note--incidencia {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.sg-note--inline { display: inline-flex; }

.sg-history__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sg-history__list {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.sg-history__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

.sg-history__item:last-child { border-bottom: none; }

.sg-history__when {
    font-size: 0.75rem;
    color: #64748b;
}

.sg-history__by {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

@media (max-width: 576px) {
    .sg-history__item { grid-template-columns: 1fr; }
}

/* Evidencias fotográficas (seguimiento) */
.sg-evidencias {
    margin-top: 1.5rem;
}

.sg-evidencias__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sg-evidencias__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-start;
}

.sg-evidencias__card {
    flex: 0 0 auto;
    width: 100px;
    max-width: 100px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.sg-evidencias__thumb-link {
    display: block;
    line-height: 0;
    overflow: hidden;
    background: #e2e8f0;
}

.sg-evidencias__thumb,
.sg-evidencias__card img {
    width: 100px !important;
    height: 68px !important;
    max-width: 100px !important;
    max-height: 68px !important;
    object-fit: cover !important;
    display: block !important;
}

.sg-evidencias__card:hover {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.sg-evidencias__info {
    padding: 0.35rem 0.45rem;
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.sg-evidencias__info strong {
    font-size: 0.65rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-evidencias__open {
    font-size: 0.6rem;
    color: #2563eb;
    margin-top: 0.15rem;
    text-decoration: none;
}

.sg-evidencias__open:hover {
    text-decoration: underline;
}

.sg-evidencias__open .bi {
    font-size: 0.55rem;
}

.sg-evidencias__by {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Formularios admin seguimiento */
.sg-admin-form .sg-form__group {
    margin-bottom: 1rem;
}

.sg-admin-form .sg-form__group:last-of-type {
    margin-bottom: 1.25rem;
}

.sg-admin-form .sg-form__lbl {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.sg-admin-form .sg-form__control {
    width: 100%;
    padding: 0.62rem 0.85rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sg-admin-form .sg-form__control:hover {
    border-color: #cbd5e1;
}

.sg-admin-form .sg-form__control:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.sg-admin-form .sg-form__control::placeholder {
    color: #94a3b8;
}

.sg-admin-form select.sg-form__control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}

.sg-admin-form textarea.sg-form__control {
    resize: vertical;
    min-height: 4.5rem;
    line-height: 1.45;
}

.sg-admin-form .sg-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 480px) {
    .sg-admin-form .sg-form__row {
        grid-template-columns: 1fr;
    }
}

.mi-btn--action {
    background: linear-gradient(160deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.72rem 1rem;
}

.mi-btn--action:hover {
    background: linear-gradient(160deg, #1d4ed8 0%, #3b82f6 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.mi-btn--action:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Cola de asignación repartidor (seguimiento admin) */
.mi-panel--queue {
    border-color: #e2e8f0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
}

.mi-panel__head--queue {
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 48%, #eff6ff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
}

.mi-queue-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
    min-width: 220px;
}

.mi-queue-head__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(30, 41, 59, 0.25);
}

.mi-panel__head--queue h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mi-panel__head--queue p {
    font-size: 0.8rem;
    max-width: 36rem;
    line-height: 1.45;
}

.mi-queue-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mi-queue-stat {
    min-width: 5.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.mi-queue-stat__val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.mi-queue-stat__lbl {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-top: 0.15rem;
}

.mi-queue-stat--warn {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.mi-queue-stat--warn .mi-queue-stat__val { color: #b45309; }

.mi-queue-stat--ok {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.mi-queue-stat--ok .mi-queue-stat__val { color: #15803d; }

.mi-queue-scroll {
    max-height: 340px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.mi-queue-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.mi-queue-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.mi-queue-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 0 1px 0 #f1f5f9;
}

.mi-queue-date {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.mi-route--compact {
    font-size: 0.76rem;
    max-width: 11rem;
}

.mi-queue-row--active {
    background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%) !important;
}

.mi-queue-row--active td:first-child {
    box-shadow: inset 4px 0 0 #2563eb;
}

.mi-queue-row--pending {
    background: #fffdf7;
}

.mi-queue-row--pending:hover {
    background: #fffbeb !important;
}

.mi-queue-row:hover {
    background: #fafbfc;
}

.mi-queue-rep {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mi-queue-rep__avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.mi-queue-rep__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #166534;
}

.mi-queue-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.mi-queue-pill--warn {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.mi-queue-pill--active {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.mi-badge i {
    font-size: 0.68rem;
    opacity: 0.9;
}

@media (max-width: 991.98px) {
    .mi-panel__head--queue {
        flex-direction: column;
        align-items: stretch;
    }

    .mi-queue-stats {
        justify-content: flex-start;
    }
}

/* Repartidores admin */
.mi-stat-card--green {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.mi-stat-card--green .mi-stat-card__icon {
    background: #dcfce7;
    color: #15803d;
}

.mi-stat-card--muted {
    background: #fafbfc;
}

.mi-stat-card--muted .mi-stat-card__icon {
    background: #f1f5f9;
    color: #64748b;
}

.mi-rep-table tbody td {
    vertical-align: middle;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.mi-rep-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mi-rep-user__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e293b 0%, #475569 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.mi-rep-user__name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
}

.mi-rep-row--off {
    opacity: 0.72;
}

.mi-rep-row--off .mi-rep-user__avatar {
    background: linear-gradient(145deg, #94a3b8 0%, #cbd5e1 100%);
}

.mi-rep-email,
.mi-rep-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #475569;
}

.mi-rep-email i,
.mi-rep-phone i {
    color: #94a3b8;
    font-size: 0.78rem;
}

.mi-rep-empty {
    text-align: center;
    padding: 2.5rem 1.5rem !important;
}

.mi-rep-empty__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.mi-rep-empty p {
    color: #64748b;
    margin-bottom: 1rem;
}

.mi-tip-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

.mi-tip-box__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(145deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.mi-tip-box strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.mi-tip-box p {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
}

.mi-tip-box a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.mi-tip-box a:hover {
    text-decoration: underline;
}

.mi-rep-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.mi-rep-toggle__input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: #2563eb;
}

.mi-rep-toggle__label {
    cursor: pointer;
    margin: 0;
}

.mi-rep-toggle__title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
}

.mi-rep-toggle__desc {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* ── Tabla de pedidos (admin / mi cuenta) ── */
.mi-table--pedidos {
    font-size: 0.8rem;
}

.mi-table--pedidos thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.75rem 0.65rem;
}

.mi-table--pedidos tbody td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.mi-table--pedidos tbody tr:hover {
    background: #f8fafc;
}

.mi-table--pedidos .mi-badge {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.2;
    padding: 0.35rem 0.7rem;
}

.mi-badge--cash {
    background: #fef9c3;
    color: #a16207;
    border: 1px solid #fde047;
}

.mi-badge--spei {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.mi-metodo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.mi-metodo i {
    font-size: 0.85rem;
    opacity: 0.85;
}

.mi-metodo--card i { color: #2563eb; }
.mi-metodo--spei i { color: #1d4ed8; }
.mi-metodo--cash i { color: #ca8a04; }
.mi-metodo--none { color: #94a3b8; font-weight: 500; }

.mi-route--inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: #475569;
    line-height: 1.3;
    max-width: 100%;
}

.mi-route--inline .bi-arrow-right {
    font-size: 0.65rem;
    color: #cbd5e1;
    flex-shrink: 0;
}

.mi-route--inline .mi-route__from,
.mi-route--inline .mi-route__to {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 5.5rem;
}

.mi-cell-date {
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.35;
}

.mi-cell-date__time {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.mi-cell-cot {
    font-size: 0.72rem;
    color: #64748b;
}

.mi-ref--truncate {
    display: inline-block;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    cursor: help;
}

.mi-pkg {
    font-size: 0.76rem;
    color: #475569;
    white-space: nowrap;
}

.mi-pkg__size {
    font-weight: 600;
    color: #334155;
}

.mi-table--pedidos .mi-col-actions {
    width: 5.5rem;
}

.mi-table--pedidos .mi-btn--icon-only {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.mi-table--pedidos .mi-btn--icon-only.dropdown-toggle::after {
    display: none;
}

.mi-cuenta-page .dataTables_wrapper .dataTables_length,
.mi-cuenta-page .dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mi-cuenta-page .dataTables_wrapper .row:first-child {
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 1200px) {
    .mi-table-wrap--wide {
        overflow-x: auto;
    }

    .mi-table--pedidos {
        min-width: 980px;
    }
}
