/* ==========================================================================
   MAP Logística — Páginas interiores (legales, 404)
   Se carga después de styles.css
   ========================================================================== */
.page-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.page-head .nav { padding-block: 12px; }
.page-head .brand { color: var(--navy-800); }
.page-head .logo-slot { width: 46px; height: 46px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy-800); padding: 10px 16px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.back-link:hover { box-shadow: 0 0 0 1.5px var(--navy-700); }
.back-link svg { width: 16px; height: 16px; }

.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: var(--white); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(25,180,216,.35), transparent 65%); }
.page-hero .kicker { color: var(--cyan-2); }
.page-hero h1 { position: relative; font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.page-hero p { position: relative; margin-top: 14px; color: rgba(255,255,255,.7); font-size: 15px; }

.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-block: clamp(40px, 6vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: 14px; }
.toc strong { font: 700 12px "Montserrat", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { padding: 8px 12px; border-radius: 10px; color: var(--muted); transition: background .3s, color .3s; }
.toc a:hover { background: var(--soft); color: var(--navy-800); }
.prose { max-width: 740px; color: var(--ink); font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 22px; font-weight: 700; color: var(--navy-800); margin: 40px 0 12px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 14px; color: #33415c; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .box { padding: 18px 20px; border-radius: 16px; background: var(--soft); border-left: 4px solid var(--cyan); margin: 20px 0; }

.page-foot { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 28px 0; font-size: 13px; }
.page-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-foot a:hover { color: var(--cyan-2); }

.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; background: radial-gradient(900px 500px at 50% 0%, #16346f, transparent 70%), var(--navy-950); color: var(--white); }
.not-found .code { font: 800 clamp(96px, 20vw, 180px)/1 "Montserrat", sans-serif; letter-spacing: -.05em; background: linear-gradient(90deg, var(--cyan-2), #7fb6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found h1 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0; }
.not-found p { color: rgba(255,255,255,.7); max-width: 440px; margin: 0 auto 28px; line-height: 1.6; }
.not-found .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; display: flex; flex-wrap: wrap; }
  .toc strong { width: 100%; }
}
