/* ==========================================================================
   TLM Courier Internacional — Design system
   ========================================================================== */
:root {
  --bg: #f6f8fb;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --border: #dde4ee;
  --text: #0b1f35;
  --text-2: #4a5b70;
  --text-3: #7a8aa0;
  --brand: #0b2a4a;        /* navy */
  --brand-2: #123d68;
  --accent: #f26b1d;       /* naranja conversión */
  --accent-hover: #d95a10;
  --accent-soft: #fff1e8;
  --teal: #0f8a8a;
  --teal-soft: #e3f4f3;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #b45309;
  --warn-soft: #fff6e0;
  --danger: #dc2626;
  --wa: #25d366;
  --shadow-sm: 0 1px 2px rgba(11,31,53,.06), 0 1px 3px rgba(11,31,53,.08);
  --shadow: 0 8px 24px rgba(11,31,53,.08);
  --shadow-lg: 0 20px 50px rgba(11,31,53,.14);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07121f; --bg-alt: #0a1828; --surface: #0e1e31; --surface-2: #12253b;
    --border: #1f3550; --text: #e8eef6; --text-2: #a9b8cb; --text-3: #7488a2;
    --brand: #8cc4ff; --brand-2: #b5d8ff; --accent: #ff7a2e; --accent-hover: #ff8f4f;
    --accent-soft: #2a1a10; --teal: #3cc7c0; --teal-soft: #0d2a2c; --ok-soft: #0e2a1a;
    --warn: #fbbf24; --warn-soft: #2a2110;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07121f; --bg-alt: #0a1828; --surface: #0e1e31; --surface-2: #12253b;
  --border: #1f3550; --text: #e8eef6; --text-2: #a9b8cb; --text-3: #7488a2;
  --brand: #8cc4ff; --brand-2: #b5d8ff; --accent: #ff7a2e; --accent-hover: #ff8f4f;
  --accent-soft: #2a1a10; --teal: #3cc7c0; --teal-soft: #0d2a2c; --ok-soft: #0e2a1a;
  --warn: #fbbf24; --warn-soft: #2a2110;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  color-scheme: dark;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #0b2a4a; color: #e8eef6; }
.section-dark .lead, .section-dark p { color: #b9c9dc; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-3); font-size: .9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before { content: "//"; opacity: .6; }
.section-head { margin-bottom: 44px; }
.hl { color: var(--accent); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; text-decoration: none;
  cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(242,107,29,.35); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: #0b2a4a; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-light { background: #fff; color: #0b2a4a; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.topbar { background: #0b2a4a; color: #cfe0f3; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .tb-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg,#0b2a4a,#1a4f85); display: grid; place-items: center; color: #fff; font-size: 1rem; letter-spacing: -.04em; position: relative; overflow: hidden; }
.logo-mark::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; }
.logo-txt { line-height: 1.05; font-size: 1.05rem; }
.logo-txt small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 9px 13px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .nav { position: fixed; inset: 70px 0 auto 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s; z-index: 40; }
  .nav.open { transform: none; }
  .nav a { padding: 13px 10px; font-size: 1.02rem; }
  .menu-btn { display: grid; }
  .header-actions .btn-cta { display: none; }
  .topbar .tb-right { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 60px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 .hl { background: linear-gradient(90deg, var(--accent), #ff9a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--text-2); font-size: .9rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--ok); flex: none; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Quick quote card (hero) ---------- */
.quick {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px;
}
.quick h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 12px; margin-bottom: 18px; }
.tab { flex: 1; border: 0; background: transparent; padding: 10px 8px; border-radius: 9px; font-weight: 600; font-family: var(--font-head); color: var(--text-2); cursor: pointer; font-size: .92rem; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.quick-result { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border); }
.quick-result .big { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1; }
.quick-result .row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--text-2); padding: 3px 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: .78rem; color: var(--text-3); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.input-group { position: relative; }
.input-group .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .82rem; color: var(--text-3); pointer-events: none; font-family: var(--font-mono); }
.input-group .input { padding-right: 48px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card { text-decoration: none; display: block; }
a.card:hover, .card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ico.teal { background: var(--teal-soft); color: var(--teal); }
.card p { color: var(--text-2); font-size: .96rem; }
.card .more { font-weight: 700; color: var(--accent); font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.seg-card { position: relative; padding: 30px; }
.seg-card .tag { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); }
.seg-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.seg-card li { display: flex; gap: 8px; font-size: .93rem; color: var(--text-2); padding: 4px 0; }
.seg-card li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: .85rem; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .9rem; color: var(--text-2); margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Corridors / hubs ---------- */
.hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.hub { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.hub .code { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.hub .flag { font-size: 1.4rem; }
.hub .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hub .city { font-weight: 700; }
.hub .modes { font-size: .85rem; color: var(--text-2); }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; margin-top: 12px; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.on { color: var(--ok); background: var(--ok-soft); }
.status.soon { color: var(--warn); background: var(--warn-soft); }

/* ---------- Group import widget ---------- */
.container-viz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.cv-bar { height: 54px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 22px, var(--border) 22px 24px); border: 2px solid var(--border); overflow: hidden; position: relative; margin: 14px 0 10px; }
.cv-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 60%, var(--accent))); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.cv-legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .82rem; color: var(--text-2); }

/* ---------- Pricing anchor ---------- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.price { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.price .from { font-size: .8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.price .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.price .amount small { font-size: 1rem; color: var(--text-2); font-weight: 600; }
.price.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -12px; left: 20px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid; }
.notice svg { flex: none; margin-top: 2px; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--text); }
.notice.info { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 30%, transparent); color: var(--text); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; font-family: var(--font-head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: var(--text-2); }
.faq .ans p:last-child { margin: 0; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.chip { border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--text-2); }
.chip[aria-pressed="true"] { background: #0b2a4a; color: #fff; border-color: #0b2a4a; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #0b2a4a, #123d68 60%, #1a4f85); color: #fff; border-radius: var(--radius-lg); padding: 50px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(242,107,29,.55), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6d6e8; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 34px 24px; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Page header ---------- */
.page-head { padding: 56px 0 36px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.breadcrumb { font-size: .85rem; color: var(--text-3); margin-bottom: 12px; }
.breadcrumb a { text-decoration: none; color: var(--text-2); }

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1.35fr .9fr; gap: 26px; align-items: start; }
@media (max-width: 980px) { .calc-layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.panel-title .n { width: 28px; height: 28px; border-radius: 8px; background: #0b2a4a; color: #fff; display: grid; place-items: center; font-size: .85rem; font-family: var(--font-mono); }
.seg-control { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt label { display: block; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; height: 100%; }
.seg-opt label strong { display: block; font-family: var(--font-head); }
.seg-opt label span { font-size: .8rem; color: var(--text-3); }
.seg-opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.seg-opt input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg-opt input:disabled + label { opacity: .5; cursor: not-allowed; }
.item { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: var(--surface-2); position: relative; }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.item-head strong { font-family: var(--font-head); }
.item-remove { border: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: .85rem; font-weight: 600; }
.item-remove:hover { color: var(--danger); }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.summary { position: sticky; top: 90px; }
.summary .total { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; margin: 6px 0 2px; }
.summary .total-ars { color: var(--text-2); font-weight: 600; margin-bottom: 16px; }
.breakdown { width: 100%; border-collapse: collapse; font-size: .93rem; }
.breakdown td { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.breakdown td:last-child { text-align: right; font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.breakdown tr.sub td { color: var(--text-3); font-size: .84rem; padding: 4px 0 4px 12px; border-bottom: 0; }
.breakdown tr.tot td { border-bottom: 0; border-top: 2px solid var(--text); font-weight: 800; padding-top: 12px; font-size: 1.02rem; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-family: var(--font-mono); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.alerts > * { margin-top: 10px; }

/* ---------- Tracking ---------- */
.track-box { max-width: 720px; margin: 0 auto; }
.track-form { display: flex; gap: 10px; }
.track-form .input { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .03em; }
@media (max-width: 560px) { .track-form { flex-direction: column; } }
.carrier-result { margin-top: 20px; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: -6px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 3px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); }
.timeline li.done::after { background: var(--ok); border-color: var(--ok); }
.timeline li.now::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline strong { display: block; font-family: var(--font-head); }
.timeline span { font-size: .88rem; color: var(--text-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--surface-2); font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
table.data tr:last-child td { border-bottom: 0; }
.src { font-size: .78rem; color: var(--text-3); }
.src a { color: var(--text-2); }

/* ---------- Prose ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-2); }
.prose li { margin-bottom: .4em; }
.prose p { color: var(--text-2); }
.toc { position: sticky; top: 90px; font-size: .9rem; }
.toc a { display: block; text-decoration: none; color: var(--text-2); padding: 6px 10px; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--accent); border-color: var(--accent); }
.with-toc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; display: none; } }

/* ---------- Footer ---------- */
.footer { background: #071a2e; color: #a8bad0; padding: 64px 0 28px; margin-top: 0; font-size: .93rem; }
.footer a { color: #d8e4f2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .logo-txt small { color: #7f93ab; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #16304d; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: #7f93ab; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #06331a; text-decoration: none; font-weight: 700; padding: 14px; border-radius: 999px; box-shadow: 0 10px 28px rgba(37,211,102,.45); font-family: var(--font-head); }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s, margin .3s; }
.wa-float:hover span { max-width: 200px; margin-right: 4px; }
.to-top { position: fixed; right: 26px; bottom: 90px; z-index: 59; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: #0b2a4a; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 80; transition: transform .3s; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .gap-2 { gap: 12px; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .items-center { align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Print (cotización en PDF) ---------- */
@media print {
  .topbar, .header, .footer, .wa-float, .to-top, .no-print, .page-head .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; }
  .calc-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .panel { box-shadow: none; border-color: #ccc; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------- Ajustes mobile ---------- */
.with-toc > *, .split > *, .calc-layout > *, .hero-grid > * { min-width: 0; }
.prose, .src, .notice { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
  .section { padding: 60px 0; }
  .quick, .panel { padding: 20px; }
  .summary .total { font-size: 2.2rem; }
}
.mobile-total { display: none; }
@media (max-width: 980px) {
  .mobile-total { display: flex; flex-direction: column; position: fixed; left: 12px; right: 90px; bottom: 16px; z-index: 58; background: #0b2a4a; color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); line-height: 1.2; }
  .mobile-total span { font-size: .72rem; color: #a9c1db; text-transform: uppercase; letter-spacing: .06em; }
  .mobile-total strong { font-family: var(--font-head); font-size: 1.25rem; }
  .mobile-total em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .8rem; color: #ffb27f; font-weight: 600; }
}
