/* Espacio informativo vehicular — estilos */
:root {
  --petroleo: #0B3C49;
  --petroleo-90: rgba(11, 60, 73, .86);
  --turquesa: #14B8A6;
  --turquesa-texto: #0B6E63;   /* turquesa oscurecido para texto AA sobre crema */
  --ambar: #F59E0B;
  --ambar-suave: #FDE7BF;
  --coral: #FB7185;
  --coral-suave: #FFE1E5;
  --crema: #FFF7E8;
  --crema-2: #F8ECD4;
  --papel: #FFFCF5;
  --grafito: #1F2933;
  --grafito-2: #4A5663;
  --linea: #E9DCC3;

  --f-titulo: "Sora", "Poppins", ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", system-ui, sans-serif;
  --f-texto: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif;

  --e-1: .5rem; --e-2: 1rem; --e-3: 1.5rem; --e-4: 2.5rem; --e-5: 4rem; --e-6: 6.5rem;
  --r-s: 12px; --r-m: 20px; --r-l: 32px;
  --sombra: 0 1px 2px rgba(11,60,73,.06), 0 10px 30px -12px rgba(11,60,73,.22);
  --sombra-alta: 0 2px 4px rgba(11,60,73,.08), 0 24px 50px -20px rgba(11,60,73,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--crema); color: var(--grafito); font-family: var(--f-texto); font-size: 1.0625rem; line-height: 1.65; min-height: 100dvh; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.15; letter-spacing: -.02em; color: var(--petroleo); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--turquesa-texto); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--petroleo); }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ambar); color: var(--grafito); padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }

/* ---------- Cabecera píldora ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.pill { pointer-events: auto; display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem .45rem 1rem; border-radius: 999px;
  background: var(--petroleo-90); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 40px -12px rgba(11,60,73,.55), inset 0 0 0 1px rgba(255,247,232,.12); color: var(--crema);
  transition: transform .35s var(--ease), padding .35s var(--ease); transform-origin: top center; max-width: calc(100% - 1.5rem); }
.scrolled .pill { transform: scale(.92); padding-block: .3rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--crema); text-decoration: none; font-family: var(--f-titulo); font-weight: 700; font-size: .95rem; line-height: 1.1; letter-spacing: -.01em; }
.brand:hover { color: var(--crema); }
.brand em { font-style: normal; color: var(--turquesa); }
.logo { width: 34px; height: 34px; flex: none; }
.brand-text { max-width: 9.5rem; }
.nav-list { display: none; list-style: none; margin: 0 0 0 .75rem; padding: 0; gap: .15rem; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-radius: 999px; color: var(--crema); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s; }
.nav-link:hover { background: rgba(255,247,232,.1); color: #fff; }
.nav-link .ico { color: var(--turquesa); }
.nav-link[data-active="true"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .18rem; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--ambar) 0 8px, transparent 8px 14px); background-size: 28px 3px; animation: carril 1.2s linear infinite; }
@keyframes carril { to { background-position: 28px 0; } }
.has-sub .nav-link { padding-right: .3rem; }
.sub-toggle { background: none; border: 0; color: var(--crema); padding: .4rem .35rem; border-radius: 999px; cursor: pointer; display: inline-flex; }
.sub-toggle:hover { background: rgba(255,247,232,.1); }
.sub-toggle .ico { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + 14px); left: 50%; width: 560px; padding: .75rem; border-radius: var(--r-m);
  background: var(--papel); box-shadow: var(--sombra-alta); border: 1px solid var(--linea);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.submenu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-sub.open .submenu, .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.submenu a { display: block; padding: .9rem 1rem; border-radius: var(--r-s); text-decoration: none; color: var(--grafito); background: var(--crema); border: 1px solid transparent; transition: border-color .2s, transform .2s var(--ease); height: 100%; }
.submenu a:hover, .submenu a:focus-visible { border-color: var(--turquesa); transform: translateY(-2px); }
.submenu a[aria-current="page"] { border-color: var(--ambar); }
.submenu strong { display: block; font-family: var(--f-titulo); color: var(--petroleo); font-size: .98rem; margin-bottom: .2rem; }
.submenu span { font-size: .88rem; color: var(--grafito-2); line-height: 1.4; display: block; }
.menu-btn, .menu-close { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ambar); color: var(--grafito); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); }
.menu-btn:hover, .menu-close:hover { transform: rotate(-8deg) scale(1.05); }
.menu-btn .ico, .menu-close .ico { width: 22px; height: 22px; }
.mobile-panel { pointer-events: auto; position: fixed; inset: 0; z-index: 60; background: var(--petroleo); color: var(--crema); padding: 1.1rem 1.25rem 3rem; overflow-y: auto; }
.mobile-panel:not([hidden]) { animation: panel .35s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(-12px); } }
.mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-list, .mobile-list ul { list-style: none; margin: 0; padding: 0; }
.mobile-list > li { border-bottom: 1px dashed rgba(255,247,232,.2); padding: .5rem 0; }
.mobile-list > li > a { display: flex; align-items: center; gap: .8rem; color: var(--crema); text-decoration: none; font-family: var(--f-titulo); font-size: 1.6rem; font-weight: 700; padding: .5rem 0; }
.mobile-list > li > a .ico { color: var(--turquesa); width: 1.4rem; height: 1.4rem; }
.mobile-list > li > a[data-active="true"] span { text-decoration: underline dashed var(--ambar) 3px; text-underline-offset: 8px; }
.mobile-list ul { padding: 0 0 .5rem 2.2rem; display: grid; gap: .2rem; }
.mobile-list ul a { color: #CDEFEA; text-decoration: none; font-size: 1.05rem; display: block; padding: .3rem 0; }
.mobile-list a:hover { color: var(--ambar); }
body.menu-open { overflow: hidden; }

@media (min-width: 1040px) {
  .nav-list { display: flex; }
  .menu-btn { display: none; }
  .brand-text { max-width: none; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; background: var(--ambar); color: var(--grafito); font-weight: 700; text-decoration: none; border: 2px solid var(--ambar); font-family: var(--f-titulo); font-size: .98rem; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 8px 20px -10px rgba(245,158,11,.8); }
.btn:hover { color: var(--grafito); transform: translateY(-2px); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--crema); border-color: rgba(255,247,232,.5); box-shadow: none; }
.btn.ghost:hover { border-color: var(--crema); color: var(--crema); }
.btn.ghost-dark { background: transparent; color: var(--petroleo); border-color: var(--petroleo); box-shadow: none; }
.btn.dark { background: var(--petroleo); color: var(--crema); border-color: var(--petroleo); box-shadow: none; }
.btn.dark:hover { color: var(--crema); }
.btn.small { padding: .5rem 1rem; font-size: .88rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Héroe horizonte ---------- */
.horizon, .page-hero { position: relative; color: var(--crema); background: linear-gradient(165deg, var(--petroleo) 0%, #0E5761 48%, #12907F 100%); overflow: hidden; }
.horizon { padding: 8.5rem 0 7rem; }
.horizon::after, .page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 30%, rgba(245,158,11,.22), transparent 70%); pointer-events: none; }
.horizon-grid { position: relative; z-index: 1; display: grid; gap: var(--e-4); align-items: center; }
.horizon h1 { color: var(--crema); max-width: 12ch; }
.horizon h1 span { display: block; color: var(--ambar); }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-titulo); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.kicker.light, .page-hero .kicker { color: #A7F0E6; }
.lead { font-size: 1.2rem; max-width: 40rem; }
.lead.light, .page-hero .lead { color: #E6F4F1; }
.horizon-art { position: relative; }
.hero-art { display: block; width: 100%; height: auto; border-radius: var(--r-l); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); transform: rotate(1.5deg); }
.road-dash { animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -60; } }
.needle { transform-origin: 62px 66px; animation: needle 4s var(--ease) infinite alternate; }
@keyframes needle { from { transform: rotate(-35deg); } to { transform: rotate(8deg); } }
.dash { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; max-width: 34rem; }
.dash li { background: rgba(255,247,232,.08); border: 1px solid rgba(255,247,232,.16); border-radius: var(--r-s); padding: .7rem .9rem; }
.dash strong { display: block; font-family: var(--f-titulo); font-size: 1.7rem; color: var(--crema); line-height: 1.1; }
.dash span { font-size: .85rem; color: #CDEFEA; }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; z-index: 2; }
@media (min-width: 900px) {
  .horizon-grid { grid-template-columns: 1.05fr .95fr; }
  .dash { grid-template-columns: repeat(4, 1fr); }
}

.page-hero { padding: 7.5rem 0 5.5rem; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--crema); max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1.5rem; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: rgba(255,247,232,.5); }
.crumbs a { color: #CDEFEA; }
.crumbs a:hover { color: var(--crema); }
.crumbs [aria-current] { color: var(--crema); opacity: .85; }

/* ---------- Secciones ---------- */
.section { padding: var(--e-6) 0; }
.section.tight { padding: var(--e-5) 0 var(--e-6); }
.eyebrow { font-family: var(--f-titulo); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #B4235A; margin-bottom: .8rem; }
.eyebrow.light { color: var(--ambar); }
.section-head { max-width: 44rem; margin-bottom: var(--e-4); }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.section-head p:last-child { color: var(--grafito-2); }
.more { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-family: var(--f-titulo); }
.big { font-size: 1.25rem; line-height: 1.6; color: var(--grafito); }

.promesa-grid { display: grid; gap: var(--e-4); }
.senales { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.senales li { display: flex; gap: 1.1rem; align-items: start; padding: 1.4rem; background: var(--papel); border-radius: var(--r-m); box-shadow: var(--sombra); }
.senales li:nth-child(2) { margin-left: clamp(0rem, 4vw, 3rem); }
.senales li:nth-child(3) { margin-left: clamp(0rem, 8vw, 6rem); }
.senales h3 { margin-bottom: .3rem; }
.senales p { margin: 0; color: var(--grafito-2); }
.senal { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 800; font-size: 1.2rem; color: var(--grafito); }
.s1 { background: var(--ambar); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.s2 { background: var(--coral); border-radius: 50%; }
.s3 { background: var(--turquesa); border-radius: 12px; }
@media (min-width: 900px) { .promesa-grid { grid-template-columns: 1fr 1.1fr; align-items: center; } }

/* Trayecto de rutas */
.trayecto { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 1.2rem; }
.trayecto::before { content: ""; position: absolute; top: 0; bottom: 0; left: 26px; width: 4px; background: repeating-linear-gradient(180deg, var(--ambar) 0 12px, transparent 12px 22px); }
.parada { position: relative; padding-left: 64px; }
.parada::before { content: ""; position: absolute; left: 14px; top: 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--petroleo); border: 5px solid var(--crema); box-shadow: 0 0 0 3px var(--turquesa); }
.parada a { display: block; padding: 1.5rem 1.6rem; border-radius: var(--r-m); background: var(--papel); text-decoration: none; color: var(--grafito); box-shadow: var(--sombra); transition: transform .25s var(--ease), box-shadow .25s; border-top: 5px solid var(--c, var(--turquesa)); }
.parada a:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); color: var(--grafito); }
.parada h3, .parada h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.parada p { color: var(--grafito-2); }
.p1 { --c: var(--turquesa); } .p2 { --c: var(--ambar); } .p3 { --c: var(--coral); } .p4 { --c: var(--petroleo); }
.km { display: inline-block; font-family: var(--f-titulo); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--petroleo); color: var(--crema); padding: .25rem .7rem; border-radius: 6px; margin-bottom: .8rem; }
.parada-meta { display: flex; gap: 1rem; align-items: center; font-size: .9rem; color: var(--grafito-2); }
@media (min-width: 900px) {
  .trayecto { grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
  .trayecto::before { left: 50%; transform: translateX(-50%); }
  .parada { padding-left: 0; }
  .parada::before { left: auto; right: -46px; }
  .parada:nth-child(even) { margin-top: 4.5rem; }
  .parada:nth-child(even)::before { right: auto; left: -46px; }
}

/* Tarjetas */
.card-grid { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid:not(.two) { grid-template-columns: repeat(3, 1fr); } }
.card-grid.two { margin-top: 1.2rem; }
.card { position: relative; background: var(--papel); border-radius: var(--r-m); padding: 1.5rem; box-shadow: var(--sombra); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.card h3 { font-size: 1.15rem; margin: .9rem 0 .5rem; }
.card h3 a { color: var(--petroleo); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--grafito-2); font-size: .98rem; }
.card-top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.card-meta { margin-top: auto; margin-bottom: 0; display: flex; align-items: center; gap: .4rem; font-size: .88rem !important; color: var(--grafito-2); }
.card.compact p:not(.card-meta) { display: none; }
.card.feature { background: var(--petroleo); color: var(--crema); padding: 2.2rem; justify-content: end; min-height: 22rem;
  background-image: radial-gradient(80% 60% at 100% 0%, rgba(20,184,166,.45), transparent 60%), repeating-linear-gradient(115deg, transparent 0 46px, rgba(245,158,11,.12) 46px 50px); }
.card.feature h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.card.feature h3 a, .card.feature p, .card.feature .card-meta { color: var(--crema); }
.card.feature .nivel { color: var(--crema); }
.feature-grid { display: grid; gap: 1.2rem; }
.card-stack { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 1.2fr 1fr; } }
.tag { display: inline-block; background: var(--coral); color: var(--grafito); font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; text-decoration: none; font-family: var(--f-titulo); letter-spacing: .01em; position: relative; z-index: 2; }
.tag:hover { color: var(--grafito); background: #FDA4AF; }
.nivel { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--grafito-2); }
.nivel-bars { display: inline-flex; gap: 2px; align-items: end; }
.nivel-bars i { width: 4px; border-radius: 2px; background: currentColor; opacity: .25; }
.nivel-bars i:nth-child(1) { height: 6px; } .nivel-bars i:nth-child(2) { height: 9px; } .nivel-bars i:nth-child(3) { height: 12px; }
.nivel[data-n="1"] i:nth-child(1), .nivel[data-n="2"] i:nth-child(-n+2), .nivel[data-n="3"] i { opacity: 1; background: var(--turquesa); }

/* Tablero */
.tablero { background: var(--petroleo); color: #E6F4F1; border-radius: var(--r-l); width: min(1280px, 100% - 1.5rem); margin-inline: auto; }
.tablero h2 { color: var(--crema); }
.tablero-grid { display: grid; gap: var(--e-4); align-items: center; }
@media (min-width: 900px) { .tablero-grid { grid-template-columns: 1fr 1fr; } }
.instrumentos { margin: 0; background: rgba(255,247,232,.06); border: 1px solid rgba(255,247,232,.14); border-radius: var(--r-m); padding: 1.6rem; }
.barra { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: rgba(255,247,232,.1); }
.barra span { width: var(--w); transform-origin: left; animation: grow 1.4s var(--ease) both; }
.b-cap { background: var(--turquesa); } .b-int { background: var(--ambar); animation-delay: .3s !important; }
@keyframes grow { from { transform: scaleX(0); } }
.lectura { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0 1rem; }
.lectura div { border-left: 3px solid var(--turquesa); padding-left: .8rem; }
.lectura div:nth-child(2) { border-color: var(--ambar); }
.lectura dt { font-size: .85rem; color: #CDEFEA; }
.lectura dd { margin: 0; font-family: var(--f-titulo); font-size: 1.6rem; font-weight: 700; color: var(--crema); }
.instrumentos figcaption { font-size: .85rem; color: #CDEFEA; }

/* Categorías */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.cat-list a { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; padding: 1.3rem 1.4rem; background: var(--papel); border-radius: var(--r-m); text-decoration: none; color: var(--grafito); box-shadow: var(--sombra); border: 2px solid transparent; transition: border-color .2s, transform .25s var(--ease); }
.cat-list a:hover { border-color: var(--turquesa); transform: translateX(4px); color: var(--grafito); }
.cat-sign { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--petroleo); color: var(--ambar); font-family: var(--f-titulo); font-weight: 800; font-size: 1.3rem; border: 3px solid var(--ambar); }
.cat-sign .ico { width: 26px; height: 26px; }
.cat-txt strong { display: block; font-family: var(--f-titulo); font-size: 1.15rem; color: var(--petroleo); }
.cat-txt span { color: var(--grafito-2); font-size: .97rem; }
.cat-n { grid-column: 2; font-size: .85rem; font-weight: 700; color: #B4235A; }
@media (min-width: 760px) { .cat-list a { grid-template-columns: auto 1fr auto; } .cat-n { grid-column: auto; } }

/* Mini glosario */
.glos-grid { display: grid; gap: var(--e-4); }
@media (min-width: 900px) { .glos-grid { grid-template-columns: .8fr 1.2fr; } .glos-grid > div:first-child { position: sticky; top: 120px; align-self: start; } }
.mini-glos { margin: 0; display: grid; gap: 0; }
.mini-glos div { padding: 1.1rem 0; border-bottom: 2px dashed var(--linea); }
.mini-glos dt a { font-family: var(--f-titulo); font-size: 1.2rem; font-weight: 700; color: var(--petroleo); }
.mini-glos dd { margin: .3rem 0 0; color: var(--grafito-2); }

/* Pausa */
.pausa { padding-top: 0; }
.pausa-inner { display: grid; gap: 1.5rem; justify-items: center; text-align: center; padding: var(--e-5) var(--e-3); background: var(--ambar-suave); border-radius: var(--r-l); }
.pausa-sign { width: 96px; height: 96px; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-4deg); } }
.pausa blockquote { margin: 0; max-width: 40rem; }
.pausa blockquote p { font-family: var(--f-titulo); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; color: var(--petroleo); line-height: 1.35; }
.pausa blockquote footer { color: var(--grafito-2); }

/* ---------- Artículos ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 70; background: rgba(11,60,73,.12); }
.progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: repeating-linear-gradient(90deg, var(--ambar) 0 18px, var(--turquesa) 18px 24px); }
.article-layout { display: grid; gap: var(--e-4); padding: var(--e-5) 0 var(--e-6); }
@media (min-width: 1040px) { .article-layout { grid-template-columns: 270px minmax(0, 1fr); gap: var(--e-5); } }
.toc { align-self: start; background: var(--papel); border-radius: var(--r-m); padding: 1.3rem; box-shadow: var(--sombra); }
@media (min-width: 1040px) { .toc { position: sticky; top: 110px; max-height: calc(100dvh - 130px); overflow: auto; } }
.toc-t { font-family: var(--f-titulo); font-weight: 700; color: var(--petroleo); display: flex; align-items: center; gap: .5rem; }
.toc ol { list-style: none; margin: 0 0 1rem; padding: 0 0 0 .9rem; border-left: 3px dashed var(--linea); counter-reset: t; }
.toc li a { display: block; padding: .35rem .5rem; margin-left: -.9rem; padding-left: .9rem; border-left: 3px solid transparent; margin-left: calc(-.9rem - 3px); color: var(--grafito-2); text-decoration: none; font-size: .93rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc li a:hover { color: var(--petroleo); }
.toc li a.is-active { border-left-color: var(--ambar); color: var(--petroleo); font-weight: 700; }
.toc-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .85rem; color: var(--grafito-2); }
.prose { max-width: 46rem; min-width: 0; }
.prose.narrow, .narrow-wrap { max-width: 50rem; margin-inline: auto; }
.prose.wide { max-width: 64rem; }
.prose h2 { margin-top: 2.4em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; color: #13525F; }
.prose > p:first-child { font-size: 1.2rem; }
.lista, .key-list { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.lista li, .key-list li { position: relative; padding-left: 1.8rem; margin-bottom: .55em; }
.lista li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 6px; border-radius: 3px; background: var(--turquesa); }
ol.lista { counter-reset: n; }
ol.lista li::before { counter-increment: n; content: counter(n); width: 1.3rem; height: 1.3rem; top: .2em; border-radius: 50%; background: var(--petroleo); color: var(--crema); font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
.key-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: 1rem; background: var(--ambar); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.callout { margin: 2rem 0; padding: 1.3rem 1.5rem; border-radius: var(--r-m); position: relative; }
.callout p:last-child { margin-bottom: 0; }
.callout-t { font-family: var(--f-titulo); font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem !important; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.callout.idea { background: #DDF5F1; border-left: 6px solid var(--turquesa); }
.callout.idea .callout-t { color: var(--turquesa-texto); }
.callout.ojo { background: var(--ambar-suave); border-left: 6px solid var(--ambar); }
.callout.ojo .callout-t { color: #8A4B00; }
.ideas-clave { margin-top: 3rem; background: var(--petroleo); color: #E6F4F1; padding: 1.8rem; border-radius: var(--r-l); }
.ideas-clave h2 { color: var(--crema); margin-top: 0; display: flex; gap: .6rem; align-items: center; }
.ideas-clave h2 .ico { color: var(--ambar); }
.ideas-clave .key-list li { color: #F1FAF8; }
.tabla { margin: 1.8rem 0; }
.tabla-scroll { overflow-x: auto; border-radius: var(--r-m); box-shadow: var(--sombra); background: var(--papel); }
.tabla table { width: 100%; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
.tabla caption { text-align: left; padding: 1rem 1.1rem 0; font-family: var(--f-titulo); font-weight: 700; color: var(--petroleo); }
.tabla th, .tabla td { padding: .75rem 1.1rem; text-align: left; border-bottom: 1px solid var(--linea); }
.tabla td { text-align: right; white-space: nowrap; }
.tabla thead th { background: var(--petroleo); color: var(--crema); font-family: var(--f-titulo); font-weight: 600; font-size: .85rem; letter-spacing: .02em; white-space: nowrap; }
.tabla thead th:not(:first-child) { text-align: right; }
.tabla tbody th { font-weight: 600; color: var(--grafito); }
.tabla tbody tr:nth-child(even) { background: #FBF2E0; }
.tabla tbody tr:last-child th, .tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tfoot th, .tabla tfoot td { background: var(--ambar-suave); font-weight: 700; }
.tabla figcaption { font-size: .85rem; color: var(--grafito-2); padding: .6rem .3rem 0; }
.related { margin-top: 3.5rem; }
.related .card-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .related .card-grid { grid-template-columns: repeat(3, 1fr); } }
.nota { font-size: .92rem; color: var(--grafito-2); border-top: 2px dashed var(--linea); padding-top: 1rem; margin-top: 2.5rem; }

/* Filtros */
.filtros ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 2rem; }
.filtros a { display: inline-flex; gap: .5rem; align-items: center; padding: .55rem 1rem; border-radius: 999px; background: var(--papel); border: 2px solid var(--linea); text-decoration: none; color: var(--petroleo); font-weight: 700; font-family: var(--f-titulo); font-size: .92rem; }
.filtros a span { background: var(--coral-suave); color: #9F1239; border-radius: 999px; padding: 0 .5rem; font-size: .8rem; }
.filtros a:hover { border-color: var(--turquesa); }
.filtros a[aria-current="page"] { background: var(--petroleo); border-color: var(--petroleo); color: var(--crema); }

/* Aprende */
.trayecto.big { margin-bottom: var(--e-5); }
.paradas { list-style: none; padding: 0; margin: 0 0 2rem; }
.paradas li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.2rem 0; border-bottom: 2px dashed var(--linea); }
.paradas .num { font-family: var(--f-titulo); font-size: 1.6rem; font-weight: 800; color: var(--ambar); -webkit-text-stroke: 1px #B45309; }
.paradas h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.paradas p { margin: 0 0 .3rem; color: var(--grafito-2); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager a { display: block; padding: 1rem 1.2rem; border-radius: var(--r-m); background: var(--papel); box-shadow: var(--sombra); text-decoration: none; font-family: var(--f-titulo); font-weight: 700; color: var(--petroleo); }
.pager a span { display: block; font-size: .8rem; color: var(--grafito-2); font-weight: 600; }
.pager .next { text-align: right; }

/* Glosario */
.glos { margin: 0; }
.glos div { padding: 1.1rem 1.2rem; border-radius: var(--r-s); margin-bottom: .6rem; background: var(--papel); border-left: 4px solid var(--turquesa); }
.glos div:target { border-left-color: var(--ambar); box-shadow: 0 0 0 3px var(--ambar-suave); }
.glos dt { font-family: var(--f-titulo); font-weight: 700; color: var(--petroleo); font-size: 1.1rem; }
.glos dd { margin: .2rem 0 0; color: var(--grafito-2); }
.abc ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 auto 2rem; max-width: 50rem; }
.abc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--petroleo); color: var(--crema); text-decoration: none; font-family: var(--f-titulo); font-weight: 700; }
.abc a:hover { background: var(--ambar); color: var(--grafito); }
.split-links { display: grid; gap: 1rem; margin-bottom: var(--e-5); }
@media (min-width: 760px) { .split-links { grid-template-columns: 1fr 1fr; } }
.split-links a { display: grid; gap: .5rem; padding: 1.8rem; border-radius: var(--r-l); background: var(--petroleo); color: #E6F4F1; text-decoration: none; transition: transform .25s var(--ease); }
.split-links a:hover { transform: translateY(-4px); color: #E6F4F1; }
.split-links strong { font-family: var(--f-titulo); font-size: 1.4rem; color: var(--crema); }

/* Recursos */
.checklists { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .checklists { grid-template-columns: 1fr 1fr; } .checklist:first-child { grid-row: span 2; } }
.checklist { background: var(--papel); border-radius: var(--r-m); padding: 1.6rem; box-shadow: var(--sombra); }
.checklist h2 { font-size: 1.3rem; display: flex; gap: .8rem; align-items: center; }
.checklist .num { font-size: .9rem; background: var(--ambar); color: var(--grafito); border-radius: 8px; padding: .2rem .5rem; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: .55rem 0 .55rem 2.2rem; border-bottom: 1px dashed var(--linea); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .7rem; width: 1.25rem; height: 1.25rem; border: 2.5px solid var(--turquesa); border-radius: 6px; }
.faq-tools { display: flex; justify-content: end; margin-bottom: 1rem; }
.faq details { background: var(--papel); border-radius: var(--r-m); margin-bottom: .7rem; box-shadow: var(--sombra); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; font-family: var(--f-titulo); font-weight: 700; color: var(--petroleo); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .25s var(--ease); color: var(--turquesa-texto); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 2px dashed var(--linea); }
.faq-a { padding: 1rem 1.4rem .4rem; }

/* Institucional */
.two-col { display: grid; gap: var(--e-4); }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 380px; align-items: start; } .side-card { position: sticky; top: 110px; } }
.side-card { background: var(--petroleo); color: #E6F4F1; padding: 1.8rem; border-radius: var(--r-l); }
.side-card h2 { color: var(--crema); font-size: 1.3rem; }
.side-card a { color: var(--ambar); }
.admin-card { margin: 0 0 1rem; display: grid; gap: 1rem; }
.admin-card dt { font-size: .85rem; display: flex; gap: .4rem; align-items: center; font-weight: 600; opacity: .9; }
.admin-card dd { margin: .2rem 0 0; font-family: var(--f-titulo); font-weight: 700; overflow-wrap: anywhere; }
.prose .admin-card { background: var(--papel); padding: 1.3rem; border-radius: var(--r-m); }
.prose .admin-card dt { color: var(--grafito-2); }
.prose .admin-card dd { color: var(--petroleo); }
.origen { font-style: italic; }
.map-grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .map-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .map-grid { grid-template-columns: repeat(3, 1fr); } }
.map-sec { background: var(--papel); border-radius: var(--r-m); padding: 1.4rem; box-shadow: var(--sombra); }
.map-sec h2 { font-size: 1.15rem; }
.map-sec ul { margin: 0; padding-left: 1.1rem; }
.map-sec li { margin-bottom: .35rem; }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--petroleo); color: #D7EEEA; padding: 4.5rem 0 2rem; margin-top: var(--e-5); }
.footer-road { position: absolute; top: 0; left: 0; width: 100%; height: 60px; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-claim { margin: 1rem 0 1.5rem; max-width: 30rem; }
.site-footer h2 { color: var(--crema); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #A7F0E6; }
.site-footer a:hover { color: var(--ambar); }
.admin { margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.admin div { display: flex; flex-wrap: wrap; gap: .35rem; }
.admin dt { font-weight: 700; color: var(--crema); }
.admin dd { margin: 0; overflow-wrap: anywhere; }
.aviso { margin: 2.5rem 0 1rem; padding: 1.2rem 1.4rem; border: 1.5px dashed rgba(245,158,11,.6); border-radius: var(--r-m); color: #F1FAF8; font-size: .95rem; }
.copy { font-size: .85rem; opacity: .85; margin: 0; }

/* ---------- Movimiento ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .progress, .toc, body::before { display: none; }
  .page-hero, .horizon { background: none; color: var(--grafito); padding-top: 1rem; }
  .page-hero h1 { color: var(--grafito); }
}
