/* =========================================================
   DOT Truck Services — estilos
   Para cambiar colores, edita las variables de :root
   ========================================================= */
:root {
    --navy: #0b2b52;
    --navy-2: #123d70;
    --blue: #1d6fd8;
    --blue-dark: #165bb4;
    --blue-soft: #e8f0fb;
    --ink: #14243b;
    --muted: #5f6f86;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-head: #eef3fa;
    --line: #d8e2ef;
    --accent: #e8a317;       /* toque de color propio (ámbar) */
    --green: #1e8a4f;
    --green-soft: #e4f4ea;
    --red: #c8322b;
    --red-soft: #fbe8e6;
    --amber-soft: #fdf3dc;
    --radius: 10px;
    --font-title: "Archivo", "Arial Narrow", Inter, system-ui, sans-serif;
}

html { font-size: 15px; scroll-padding-top: 96px; } /* que el encabezado fijo no tape lo enfocado */
body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}
h1, h2, h3, .title { font-family: var(--font-title); font-weight: 800; letter-spacing: -.005em; color: var(--navy); }
a { color: var(--blue-dark); }
.text-muted, .muted { color: var(--muted) !important; }
.ico { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -4px; }
.ico-sm { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 8px; }
.btn-blue { background: var(--blue); color: #fff; border: 0; }
.btn-blue:hover, .btn-blue:focus { background: var(--blue-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border: 0; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
/* Nombres usados por el panel */
.btn-signal { background: var(--blue); color: #fff; border: 0; }
.btn-signal:hover, .btn-signal:focus { background: var(--blue-dark); color: #fff; }
.btn-ink { background: var(--navy); color: #fff; border: 0; }
.btn-ink:hover { background: var(--navy-2); color: #fff; }

/* ---------- Franja de aviso y encabezado ---------- */
.private-strip { background: var(--navy); color: rgba(255,255,255,.82); font-size: .78rem; padding: 6px 0; text-align: center; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
.nav-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo-mark svg { width: 40px; height: 40px; display: block; }
.brand-name { display: block; font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; line-height: 1.05; color: var(--navy); letter-spacing: .01em; }
.brand-sub { display: block; font-size: .74rem; color: var(--muted); }

.nav-collapse { flex-basis: auto; }
@media (min-width: 992px) {
    .nav-collapse { display: flex !important; align-items: center; gap: 24px; }
    .nav-toggle { display: none !important; }
}
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav-link-a, .nav-link-btn {
    display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none;
    font-weight: 600; font-size: .93rem; background: none; border: 0;
}
.nav-link-a:hover, .nav-link-btn:hover, .nav-link-btn[aria-expanded=true] { background: var(--blue-soft); color: var(--blue-dark); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 5px 10px; font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang-switch a.on { background: var(--navy); color: #fff; }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; display: flex; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); display: block; }
@media (max-width: 991.98px) {
    .nav-collapse { width: 100%; padding-bottom: 14px; }
    .nav-links { flex-direction: column; align-items: stretch; }
    .nav-links > li > .nav-link-a, .nav-links > li > .nav-link-btn { width: 100%; text-align: left; }
    .nav-right { margin-top: 8px; justify-content: space-between; }
    .dropdown-menu.mega { position: static !important; transform: none !important; box-shadow: none !important; width: 100% !important; }
}

/* Menú grande de servicios */
.dropdown-menu.mega {
    padding: 18px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(11,43,82,.14);
    width: 560px; display: none; gap: 18px; margin-top: 8px !important;
}
.dropdown-menu.mega.show { display: flex; flex-wrap: wrap; }
.mega-col { flex: 1 1 300px; display: flex; flex-direction: column; }
.mega-side { flex: 0 1 180px; border-left: 1px solid var(--line); padding-left: 18px; }
@media (max-width: 991.98px) { .mega-side { border-left: 0; padding-left: 0; } }
.mega-title { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mega-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.mega-item:hover { background: var(--blue-soft); color: var(--blue-dark); }
.mega-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; }
.mega-all { margin-top: 8px; padding: 6px 8px; font-weight: 600; font-size: .88rem; text-decoration: none; }

/* ---------- Portada ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.04; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { color: var(--muted); max-width: 560px; font-size: 1.1rem; }
.dot-box {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
    box-shadow: 0 14px 34px rgba(11,43,82,.10);
}
.dot-box .label { font-weight: 600; font-size: .9rem; margin-bottom: 10px; color: var(--ink); }
.dot-form { display: flex; gap: 8px; }
.dot-form .form-control { font-size: 1.05rem; padding: 10px 14px; }
.dot-form .btn { padding-left: 20px; padding-right: 20px; white-space: nowrap; }
.dot-box .small { color: var(--muted); }

.section { padding: 56px 0; }
.section-title { font-size: 1.9rem; margin-bottom: 6px; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }

.step-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 6px; }

.strip-cta { background: var(--navy); color: #fff; border-radius: 14px; padding: 28px; }
.strip-cta h2 { color: #fff; font-size: 1.6rem; }

/* ---------- Tarjetas de servicio ---------- */
.cat-title { font-size: 1.35rem; margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.svc {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; height: 100%; display: flex; flex-direction: column; gap: 8px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.svc:hover { border-color: var(--blue); box-shadow: 0 10px 24px rgba(11,43,82,.08); transform: translateY(-1px); }
.svc h3 { font-family: Inter; font-weight: 700; font-size: 1rem; margin: 0; color: var(--ink); }
.svc .price { font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--navy); }
.svc .price-note { font-size: .78rem; color: var(--muted); }
.svc p { font-size: .88rem; color: #3d4a5c; margin: 0; }
.svc .mt-auto { padding-top: 6px; }
.svc .go { font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Página de servicio ---------- */
.svc-hero { background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.svc-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.svc-hero .price-big { font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: var(--navy); }
.info-block { margin-bottom: 26px; }
.info-block h2 { font-size: 1.3rem; margin-bottom: 10px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; padding: 6px 0; }
.check-list li .ico { color: var(--green); margin-top: 3px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 7px 0; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; font-size: .85rem; }

/* Tablas de tarifas */
.fee-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.fee-table table { width: 100%; margin: 0; }
.fee-table th { background: var(--navy); color: #fff; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; }
.fee-table td { padding: 10px 16px; border-top: 1px solid var(--line); }
.fee-table tr:nth-child(even) td { background: #f8fafd; }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; font-weight: 600; }

/* ---------- Formularios ---------- */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-card h2 { font-size: 1.25rem; margin: 6px 0 14px; }
.form-label { font-weight: 600; font-size: .86rem; color: #2b3a50; }
.form-control, .form-select { border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(29,111,216,.15); }
.field-validation-error, .validation-summary-errors { color: var(--red); font-size: .85rem; }
.summary-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.summary-box .price { font-family: var(--font-title); font-size: 2.1rem; font-weight: 800; color: #fff; }
.notice { background: var(--amber-soft); border: 1px solid #f0d48c; border-radius: var(--radius); padding: 14px 16px; font-size: .88rem; }
.found { background: var(--green-soft); border: 1px solid #b9e0c8; border-radius: var(--radius); padding: 12px 16px; font-size: .9rem; }

/* ---------- Perfil de compañía (Consulta DOT) ---------- */
.profile-head { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; padding: 26px; }
.profile-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0; }
.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 22px; margin: 18px 0; }
.meta .k { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.meta .v { font-weight: 700; font-size: .98rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tile .n { font-family: var(--font-title); font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.tile .l { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-list .k { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.action {
    display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 8px;
    background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.action:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.action.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.action.primary:hover { background: var(--blue-dark); }
.action.danger { color: var(--red); }
.action.danger:hover { background: var(--red-soft); border-color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--green-soft); color: var(--green); }
.pill-bad { background: var(--red-soft); color: var(--red); }
.pill-warn { background: var(--amber-soft); color: #9a6a00; }
.pill-plain::before { display: none; }

.jump-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 26px 0 18px; }
.jump-tabs a { padding: 10px 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.jump-tabs a:hover { color: var(--navy); border-bottom-color: var(--accent); }

.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; height: 100%; scroll-margin-top: 100px; }
.box-h { padding: 13px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.box-h h2 { margin: 0; font-family: Inter; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.box-h .dotmark { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.box-b { padding: 6px 20px 14px; }
.kv-row { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1f7; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); font-size: .86rem; font-weight: 500; }
.kv-row .v { font-weight: 600; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: .82rem; font-weight: 600; }
.mini-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; padding: 14px 0; }

/* Estados de pedido */
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.st-received { background: #e7eefa; color: #24508f; }
.st-missing { background: var(--amber-soft); color: #9a6a00; }
.st-progress { background: #efe7fb; color: #6b3fb3; }
.st-filed { background: #e0f2f4; color: #1d6f7a; }
.st-done { background: var(--green-soft); color: var(--green); }
.st-cancelled { background: #eeeeee; color: #666; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 18px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; }

/* Contacto */
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; height: 100%; }
.contact-card .ico-wrap { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 12px; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 44px 0 20px; margin-top: 40px; font-size: .9rem; }
.site-footer .brand-name { color: #fff; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-title { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.foot-link { display: block; padding: 3px 0; }
.foot-line { padding: 2px 0; }
.disclaimer { font-size: .8rem; color: rgba(255,255,255,.68); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: .8rem; color: rgba(255,255,255,.55); }

/* =========================================================
   PANEL DE ADMINISTRACIÓN
   ========================================================= */
body.admin { background: #f3f5f9; }
body.admin .brand-name { color: #fff; }
body.admin .brand-sub { color: rgba(255,255,255,.7); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 8px; background: var(--accent); color: var(--navy);
    display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem;
}
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 230px; flex-shrink: 0; background: var(--navy); color: #fff; padding: 20px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { color: rgba(255,255,255,.8); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: var(--blue); color: #fff; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.admin-side-foot a, .admin-side-foot .btn-link { color: rgba(255,255,255,.75); text-decoration: none; font-size: .85rem; }
.admin-side-foot a:hover, .admin-side-foot .btn-link:hover { color: var(--accent); }
.admin-main { flex: 1; padding: 28px 32px; min-width: 0; }
.admin-main h1 { font-size: 2rem; margin-bottom: 18px; }
.panel { background: #fff; border: 1px solid #e1e6ee; border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 12px; }
.stat { background: #fff; border: 1px solid #e1e6ee; border-radius: var(--radius); padding: 16px 18px; }
.stat .n { font-family: var(--font-title); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--navy); }
.stat .l { color: var(--muted); font-size: .85rem; }
.stat.hl { border-left: 4px solid var(--blue); }
.table { font-size: .9rem; margin-bottom: 0; }
.table thead th { font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; border-bottom-width: 1px; }
.table td { vertical-align: middle; }
.row-link { cursor: pointer; }
.row-link:hover td { background: #fafbfd; }
.overdue { color: var(--red); font-weight: 600; }
.soon { color: #9a6a00; font-weight: 600; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 500; }

@media (max-width: 860px) {
    .admin-shell { flex-direction: column; }
    .admin-side { width: 100%; height: auto; position: static; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-side-foot { flex-direction: row; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
    .admin-main { padding: 18px 16px; }
}
@media (max-width: 576px) {
    .stat-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tile { padding: 10px; }
    .tile .n { font-size: 1.4rem; }
    .dot-form { flex-direction: column; }
    .kv { grid-template-columns: 1fr; }
}

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 16px; }
.login-card { background: #fff; border-radius: 14px; padding: 32px; width: 100%; max-width: 380px; border-top: 5px solid var(--blue); }
.login-card .brand-name { color: var(--navy); }

/* =========================================================
   FORMULARIO POR PASOS (MCS-150 y siguientes)
   ========================================================= */
.wz-progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 24px; counter-reset: none; }
.wz-progress li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .84rem; font-weight: 600; min-width: 0; }
.wz-progress li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); flex-shrink: 0; font-size: .8rem; }
.wz-progress li .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-progress li.on { border-color: var(--blue); color: var(--navy); }
.wz-progress li.on .n { background: var(--blue); border-color: var(--blue); color: #fff; }
.wz-progress li.done { color: var(--green); }
.wz-progress li.done .n { background: var(--green-soft); border-color: #b9e0c8; color: var(--green); }
@media (max-width: 767.98px) {
    .wz-progress li { padding: 8px; justify-content: center; }
    .wz-progress li .t { display: none; }
    .wz-progress li.on .t { display: inline; }
    .wz-progress li.on { flex: 3; }
}
.wz-step { margin-bottom: 28px; }
.wz-step h2 { font-size: 1.35rem; }
.wz-js .wz-step { display: none; margin-bottom: 0; }
.wz-js .wz-step.on { display: block; }
.wz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.wz-nav .btn { min-width: 130px; }
form:not(.wz-js) #wzBack, form:not(.wz-js) #wzNext { display: none; }

.carrier-card { background: var(--navy); color: #fff; border-radius: 12px; padding: 20px; }
.carrier-card .k { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.carrier-card .v { font-weight: 600; }
.carrier-card a { color: #9cc4ff; }

.upd-block { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fbfcfe; }
.upd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.upd-body { margin-top: 12px; }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.check-chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: .88rem; }
.check-chip:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.check-chip input { accent-color: var(--blue); }

.choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; height: 100%; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue) inset; }
.choice input { margin-top: 4px; accent-color: var(--blue); }
.choice strong { display: block; font-size: 1.05rem; }
.choice small { color: var(--muted); }

/* Comparación en el panel */
.cmp td.changed { background: var(--amber-soft); font-weight: 600; }
.cmp th { white-space: nowrap; }

/* ===================== PASO FINAL (pago) ===================== */
.steps-bar { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; font-weight: 600; }
.steps-bar span { padding: 6px 12px; border-radius: 999px; background: #e9eef5; color: #5b6b80; }
.steps-bar span.done { background: var(--green-soft); color: var(--green); }
.steps-bar span.on { background: var(--blue); color: #fff; }
.upsell { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #e6ebf2; }
.upsell:first-of-type { border-top: 0; }
.ack-box { max-height: 220px; overflow-y: auto; border: 1px solid #dfe5ee; border-radius: 10px; padding: 12px 16px; background: #f8fafc; font-size: .9rem; }
.ack-box ul { padding-left: 1.1rem; margin-bottom: 0; }
.ack-box li { margin-bottom: 6px; }
.sig-wrap { position: relative; border: 2px dashed #b9c6d8; border-radius: 10px; background: #fff; }
.sig-wrap canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.sig-wrap #sigClear { position: absolute; top: 4px; right: 8px; }
.summary-card { background: #fff; border: 1px solid #e1e6ee; border-radius: var(--radius); padding: 20px; position: sticky; top: 16px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f7; }
.sum-total { display: flex; justify-content: space-between; font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; padding-top: 12px; color: var(--navy); }
@media (max-width: 991px) { .summary-card { position: static; } }
.legal h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.legal p, .legal li { line-height: 1.6; }

/* ===== Tabla de flota (MCS-150): 3 columnas como el formulario oficial ===== */
.fleet-table { border: 1px solid #e1e6ee; border-radius: 10px; overflow: hidden; }
.ft-head, .ft-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 10px; padding: 10px 12px; align-items: start; }
.ft-head { background: #f3f6fa; font-size: .78rem; font-weight: 700; color: #4a5a70; text-transform: uppercase; letter-spacing: .03em; }
.ft-row + .ft-row { border-top: 1px solid #eef2f7; }
.ft-label { font-weight: 600; padding-top: 8px; }
.ft-reg { display: block; font-size: .75rem; color: #6b7a8f; margin-top: 2px; }
.ft-mobile { display: none; }
@media (max-width: 575px) {
    .ft-head { display: none; }
    .ft-row { grid-template-columns: 1fr 1fr 1fr; }
    .ft-label { grid-column: 1 / -1; padding-top: 0; }
    .ft-mobile { display: block; font-size: .72rem; color: #4a5a70; margin-bottom: 2px; }
}

/* ---------- Información extra del servicio (abajo) ---------- */
.guide { background: var(--bg); border-top: 1px solid var(--line); padding: 48px 0 56px; }
.guide h2 { font-size: 1.35rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; height: 100%; }
.guide-card ul { margin: 0; padding-left: 18px; }
.guide-card li { padding: 4px 0; }
.guide-card.risk { border-left: 4px solid var(--red); }
.guide-card.risk h2 .ico { color: var(--red); }
.dash-list { list-style: none; padding: 0 !important; }
.dash-list li { display: flex; gap: 10px; }
.dash-list li .ico { color: var(--muted); margin-top: 4px; flex-shrink: 0; }
.guide-block { margin-top: 40px; }
.state-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.state-chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--muted); }
.state-chips b { color: var(--navy); margin-right: 4px; }
.opt-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue);
    border-radius: 12px; padding: 20px; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.opt-card:hover { box-shadow: 0 10px 26px rgba(11,43,82,.12); transform: translateY(-2px); color: var(--ink); }
.opt-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.opt-card p { color: var(--muted); font-size: .92rem; flex: 1; margin-bottom: 12px; }
.opt-card .go { color: var(--blue-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .15s; flex-shrink: 0; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 18px 14px; margin: 0; color: var(--muted); }

/* ---------- Vista previa del reporte gratis (panel) ---------- */
.report-preview { background: #f4f7fb; border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-height: 720px; overflow: auto; }

/* ---------- Suscripción en el pie ---------- */
.foot-sub { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; padding: 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.foot-sub-text { flex: 1 1 260px; }
.foot-sub .form-control { flex: 1 1 200px; max-width: 280px; }
.foot-sub .foot-sub-dot { flex: 0 1 170px; }
@media (max-width: 575px) { .foot-sub .form-control, .foot-sub .foot-sub-dot, .foot-sub .btn { max-width: none; flex: 1 1 100%; } }

/* ---------- Servicios gratis ---------- */
.free-band { background: var(--green-soft); border-bottom: 1px solid #cfe8d8; }
.free-band .eyebrow { color: var(--green); }
.svc-free { border-color: #9fd3b3 !important; position: relative; }
.free-tag { display: inline-block; background: var(--green); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.svc-free .free-tag { position: absolute; top: 14px; right: 14px; }
.mega-free { background: var(--green-soft); }
.mega-free:hover { background: #d4eedd; }
.nav-free { color: var(--green) !important; font-weight: 700; }

/* ---------- Portada con ilustración (carretera y camión) ---------- */
.hero-dark { position: relative; overflow: hidden; background: #071e3d; border-bottom: 0; padding: 72px 0 210px; }
.hero-dark .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-dark > .container { position: relative; z-index: 1; }
.hero-dark h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-dark h1 em { color: #f3b33d; }
.hero-dark .lead { color: rgba(255,255,255,.86); }
.hero-dark .eyebrow { color: #9fc0e6; }
.hero-dark .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.hero-dark .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.hero-dark .dot-box { box-shadow: 0 22px 50px rgba(0,0,0,.35); border-color: transparent; }
@media (max-width: 991px) { .hero-dark { padding: 48px 0 170px; } }
@media (max-width: 575px) { .hero-dark { padding: 36px 0 140px; } }

/* ---------- Formulario: el DOT va primero y llena los datos solo ---------- */
.dot-first { background: #eef5ff; border: 2px solid #1d6fd8; border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; }
.dot-first .form-label { font-weight: 700; font-size: 1.05rem; }
.dot-first-row { display: flex; gap: 10px; }
.dot-first-row .form-control { flex: 1; min-width: 0; }
.dot-first .dot-hit { color: #1e8a4f; font-weight: 600; }
.dot-first .dot-miss { color: #9a6700; font-weight: 600; }

/* ---------- Corrección UCR: cálculo de la diferencia ---------- */
.ucr-calc { background: #f3f6fa; border-left: 4px solid #8aa0bb; border-radius: 8px; padding: 12px 14px; }
.ucr-calc.up { background: #fff7e6; border-left-color: #e8a317; }

/* ---------- Calculadora ---------- */
.calc-result { background: #f3f6fa; border-radius: 10px; padding: 14px 16px; margin-top: 16px; min-height: 84px; }
.calc-result .calc-big { font-size: 2rem; font-weight: 800; color: #0b2b52; line-height: 1.1; }
