/* CNB Logística — estilos globales (Dirección A: azul acero) */
:root {
  --navy: #0B1F3A;
  --navy-deep: #071629;
  --navy-line: #1B3355;
  --graphite: #2B2F36;
  --steel: #5B6470;
  --signal: #1F6FC5;
  --signal-dark: #175AA3;
  --signal-light: #5AA2F0;
  --mist: #F4F6F8;
  --line: #D5DCE5;
  --line-strong: #A9B6C8;
  --white: #FFFFFF;
  --ok-bg: #E3F4EA;
  --ok-fg: #15603A;
  --font-display: Manrope, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--graphite); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--signal); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal-light); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 6px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px; font: 600 15px/1.2 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--signal); color: var(--white); }
.btn-primary:hover { background: var(--signal-dark); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--graphite); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Encabezado */
.site-header { background: var(--navy); border-bottom: 1px solid var(--navy-line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-word { font: 800 22px/1 var(--font-display); letter-spacing: .04em; }
.logo-word small { font-weight: 600; font-size: 11px; letter-spacing: .36em; color: var(--line); margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--line); text-decoration: none; font-size: 15px; padding: 8px 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--white); box-shadow: inset 0 -2px 0 var(--signal-light); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--navy-line); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--navy-line); }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.hero-inner { position: relative; padding-top: 112px; padding-bottom: 120px; }
.hero h1 { color: var(--white); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 820px; line-height: 1.08; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 640px; }
.hero .lead, .page-hero .lead { color: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.eyebrow { font: 500 13px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin: 0 0 12px; }
.eyebrow-light { color: var(--signal-light); }

.page-hero { background: var(--navy); padding: 80px 0 72px; }
.page-hero-sm { padding: 56px 0 48px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); max-width: 820px; }

/* Franja de confianza */
.trust { background: var(--mist); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.trust-grid div { display: flex; flex-direction: column; gap: 4px; }
.trust-grid strong { font: 700 17px/1.3 var(--font-display); color: var(--navy); }
.trust-grid span { font-size: 14px; color: var(--steel); }

/* Secciones */
.section { padding: 96px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head h2, .split h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; }
.card p:last-child { margin-bottom: 0; }
.service p { color: var(--steel); font-size: 15px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; }
.badge-ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge-soon { background: #E2E7EE; color: var(--graphite); }
.more { margin-top: 28px; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.steps .num { font: 500 15px var(--font-mono); color: var(--signal); }
.steps strong { font: 700 19px var(--font-display); color: var(--navy); }
.steps span:last-child { font-size: 15px; color: var(--steel); }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > div:first-child { flex: 1 1 420px; }
.map-panel { flex: 1 1 360px; background: var(--navy); border-radius: 16px; padding: 24px; }

.service-list { display: grid; gap: 20px; margin-bottom: 56px; }
.service-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.service-row.soon { border-style: dashed; border-color: var(--line-strong); background: var(--mist); }
.service-row h3 { font-size: 22px; }
.list-title { font-size: 24px; margin-bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal); transform: rotate(-45deg); }

.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.mv-grid .card p:not(.eyebrow) { font: 600 20px/1.5 var(--font-display); color: var(--navy); }

.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.center { text-align: center; margin: 0 auto; }
.legal { font-size: 16px; }
.note { background: #FFF6DB; border: 1px solid #E9D18A; padding: 12px 16px; border-radius: 8px; color: #5C4A0F; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 1em; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--mist); color: var(--navy); }

/* CTA */
.cta { background: var(--navy); padding: 80px 0; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { color: var(--white); font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
.cta p { color: var(--line); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Formularios */
.form-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.form { flex: 2 1 560px; padding: 32px; }
.aside { flex: 1 1 260px; }
.aside h2 { font-size: 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font: 700 17px var(--font-display); color: var(--navy); margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.span-2 { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy); }
.form input:not([type="checkbox"]), .form select, .form textarea { font: 400 16px var(--font-body); color: var(--graphite); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; min-height: 46px; background: var(--white); width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--signal); outline: 2px solid rgba(31,111,197,.25); }
.form [aria-invalid="true"] { border-color: #B42318; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--graphite); margin: 8px 0 16px; }
.form label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: 15px; }
.form-status.error { color: #B42318; }
.form-status.ok { color: var(--ok-fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-bottom: 16px; }

/* Pie */
.site-footer { background: var(--navy-deep); color: var(--line-strong); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font: 600 15px var(--font-body); color: var(--white); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer a { color: var(--line); }
.site-footer a:hover { color: var(--white); }
.footer-brand p { font-size: 14px; margin: 12px 0 0; }
.footer-bottom { border-top: 1px solid var(--navy-line); margin-top: 40px; padding-top: 20px; padding-bottom: 28px; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .section { padding: 64px 0; } .hero-inner { padding-top: 72px; padding-bottom: 80px; } .form { padding: 20px; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1A7F4B; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(7,22,41,.3); }
.wa-float:hover { background: #136B3E; color: var(--white); }

/* Banner de cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(7,22,41,.18); padding: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
