/* Portada Distribuidora Jocaval — v2 (2026-09-27)
   Sin recursos externos: fuentes e imagenes propias, servidas desde /assets.
   Compatible con CSP estricta: nada de style="" en el HTML; lo dinamico se
   escribe con element.style.setProperty desde app.js. */

@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/baloo2.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito.woff2) format('woff2'); }

:root {
  --amarillo: #FFB612;
  --amarillo-hover: #F5A800;
  --morado: #5C2D87;
  --morado-suave: #7B4BA8;
  --morado-profundo: #3A1D5E;
  --noche: #1E0F33;
  --tinta: #2B2140;
  --texto-2: #5D5470;
  --fondo: #FFFDF8;
  --fondo-alt: #F4EDFB;
  --tarjeta: #FFFFFF;
  --borde: #E8E0F2;
  --acento-texto: #5C2D87;
  --header-bg: rgba(255, 253, 248, 0.86);
  --sombra: 0 14px 40px rgba(58, 29, 94, 0.12);
  --tierra-a: #EFE6F8;
  --tierra-b: #E2D3F2;
  --verde-wa: #1FA855;
  --display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  --cuerpo: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --logo-claro: block;
  --logo-oscuro: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --morado: #7B4BA8; --morado-suave: #9A6FC7; --morado-profundo: #211433;
    --tinta: #F0EAF8; --texto-2: #B8AECB; --fondo: #140D1F; --fondo-alt: #1D1430;
    --tarjeta: #231938; --borde: #3A2D52; --acento-texto: #C9ADEB;
    --header-bg: rgba(20, 13, 31, 0.86); --sombra: 0 14px 40px rgba(0, 0, 0, 0.4);
    --tierra-a: #2C2045; --tierra-b: #251A3B;
    --logo-claro: none; --logo-oscuro: block;
  }
}
:root[data-theme="dark"] {
  --morado: #7B4BA8; --morado-suave: #9A6FC7; --morado-profundo: #211433;
  --tinta: #F0EAF8; --texto-2: #B8AECB; --fondo: #140D1F; --fondo-alt: #1D1430;
  --tarjeta: #231938; --borde: #3A2D52; --acento-texto: #C9ADEB;
  --header-bg: rgba(20, 13, 31, 0.86); --sombra: 0 14px 40px rgba(0, 0, 0, 0.4);
  --tierra-a: #2C2045; --tierra-b: #251A3B;
  --logo-claro: none; --logo-oscuro: block;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--cuerpo); background: var(--fondo); color: var(--tinta); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; }
.contenedor { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--amarillo); color: var(--noche); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 800; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }

.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--acento-texto); margin-bottom: 14px; }
.eyebrow-claro { color: var(--amarillo); }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1rem; text-decoration: none; padding: 11px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.boton:hover { transform: translateY(-2px); }
.boton-primario { background: var(--amarillo); color: var(--noche); box-shadow: 0 8px 24px rgba(255, 182, 18, .35); }
.boton-primario:hover { background: var(--amarillo-hover); box-shadow: 0 12px 28px rgba(255, 182, 18, .45); }
.boton-fantasma { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.boton-fantasma:hover { border-color: var(--amarillo); color: var(--amarillo); }
.boton-secundario { background: transparent; color: var(--acento-texto); border-color: var(--morado-suave); }
.boton-oscuro { background: var(--noche); color: var(--amarillo); }
.boton-whatsapp { background: var(--verde-wa); color: #fff; }
.boton-whatsapp:hover { background: #178F47; }
.boton-grande { padding: 15px 30px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.header.solido { background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--borde); }
.header-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.logo-link { margin-right: auto; display: flex; }
.logo { height: 46px; width: auto; }
.logo-claro { display: none; }
.logo-oscuro { display: block; }
.header.solido .logo-claro { display: var(--logo-claro); }
.header.solido .logo-oscuro { display: var(--logo-oscuro); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font-weight: 800; font-size: .94rem; color: rgba(255, 255, 255, .82); transition: color .15s; }
.nav a:hover { color: var(--amarillo); }
.header.solido .nav a { color: var(--texto-2); }
.header.solido .nav a:hover { color: var(--acento-texto); }
.nav .nav-portal { border: 1.5px solid currentColor; padding: 5px 14px; border-radius: 999px; }
.menu-btn { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }
.header.solido .menu-btn { color: var(--tinta); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 80% 10%, #4B2474 0%, var(--noche) 62%); color: #fff; padding: 150px 0 120px; }
.hero-fondo { position: absolute; inset: 0; pointer-events: none; }
.orbe { position: absolute; border-radius: 50%; filter: blur(10px); }
.orbe-1 { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(255, 182, 18, .28), transparent 65%); animation: flotar 14s ease-in-out infinite alternate; }
.orbe-2 { width: 460px; height: 460px; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(154, 111, 199, .35), transparent 65%); animation: flotar 18s ease-in-out infinite alternate-reverse; }
.grilla { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
@keyframes flotar { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 22px; color: #fff; }
.hero h1 .resalte { background: linear-gradient(90deg, var(--amarillo), #FFD66B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bajada { font-size: 1.16rem; color: rgba(255, 255, 255, .78); max-width: 33em; margin-bottom: 32px; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-nota { margin-top: 26px; font-size: .92rem; font-weight: 700; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 10px; }
.punto-vivo { width: 9px; height: 9px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 0 rgba(255, 182, 18, .6); animation: latido 2s infinite; flex: none; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgba(255, 182, 18, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 182, 18, 0); } }

/* Entrada del texto del hero */
.hero-texto > * { animation: subir .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-texto > :nth-child(2) { animation-delay: .08s; }
.hero-texto > :nth-child(3) { animation-delay: .16s; }
.hero-texto > :nth-child(4) { animation-delay: .24s; }
.hero-texto > :nth-child(5) { animation-delay: .32s; }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Escena 3D del pallet ---------- */
.escena-marco { position: relative; height: 470px; perspective: 1500px; }
.escena { position: absolute; inset: 0; transform-style: preserve-3d; display: grid; place-items: center; animation: balanceo 9s ease-in-out infinite alternate; }
@keyframes balanceo { from { transform: rotateY(-7deg); } to { transform: rotateY(7deg); } }
.pallet { --rx: 0deg; --rz: 0deg; scale: 1.4; position: relative; width: 222px; height: 148px; transform-style: preserve-3d; transform: translateY(30px) rotateX(calc(58deg + var(--rx))) rotateZ(calc(-38deg + var(--rz))); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.pallet::before { content: ""; position: absolute; inset: -30px; border-radius: 30px; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); transform: translateZ(-2px); }
.base { position: absolute; inset: 0; transform-style: preserve-3d; }
.base::before { content: ""; position: absolute; inset: 0; background: #A8743F; transform: translateZ(14px); background-image: repeating-linear-gradient(90deg, #B98549 0 40px, #8E5F31 40px 46px); }
.tabla { position: absolute; left: 0; width: 100%; height: 14px; background: #7A4F27; transform-origin: top; top: 100%; transform: rotateX(90deg); }
.tabla.t2 { top: 50%; background: #6B4422; }
.tabla.t3 { width: 14px; height: 148px; top: 0; left: 0; transform-origin: left; transform: rotateY(-90deg); background: #8A5A2E; }

.caja { --x: 0; --y: 0; --z: 0; --i: 0; position: absolute; left: 2px; top: 2px; width: 70px; height: 70px; transform-style: preserve-3d; transform: translate3d(calc(var(--x) * 74px), calc(var(--y) * 74px), calc(14px + var(--z) * 60px)); animation: caer .9s cubic-bezier(.25, 1.25, .45, 1) both; animation-delay: calc(.35s + var(--i) * 110ms); }
@keyframes caer { from { translate: 0 0 320px; } to { translate: 0 0 0; } }
.cara { position: absolute; display: block; }
.sup { inset: 0; transform: translateZ(60px); background: #E6BC80; background-image: linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, .35) 44% 56%, transparent 56%); }
.fre { left: 0; top: 70px; width: 70px; height: 60px; transform-origin: top; transform: rotateX(90deg); background: #CE9A55; background-image: linear-gradient(0deg, rgba(0, 0, 0, .08), transparent 40%); }
.lat { left: 0; top: 0; width: 60px; height: 70px; transform-origin: left; transform: rotateY(-90deg); background: #B38040; }
.marca .sup { background-color: #8A57BB; background-image: linear-gradient(90deg, transparent 42%, #FFB612 42% 58%, transparent 58%); }
.marca .fre { background: #5C2D87; display: grid; place-items: center; }
.marca .fre::after { content: "JOCAVAL"; font-family: var(--display); font-weight: 800; font-size: 13px; color: #FFB612; letter-spacing: .04em; transform: scaleY(-1); }
.marca .lat { background: #46216A; }
.c1 { --x: 0; --y: 0; --z: 0; --i: 0; } .c2 { --x: 1; --y: 0; --z: 0; --i: 1; } .c3 { --x: 2; --y: 0; --z: 0; --i: 2; }
.c4 { --x: 0; --y: 1; --z: 0; --i: 3; } .c5 { --x: 1; --y: 1; --z: 0; --i: 4; } .c6 { --x: 2; --y: 1; --z: 0; --i: 5; }
.c7 { --x: .5; --y: 0; --z: 1; --i: 6; } .c8 { --x: 1.5; --y: 0; --z: 1; --i: 7; }
.c9 { --x: .5; --y: 1; --z: 1; --i: 8; } .c10 { --x: 1.5; --y: 1; --z: 1; --i: 9; }
.c11 { --x: 1; --y: .5; --z: 2; --i: 10; }

.etiqueta-flot { position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: rgba(255, 255, 255, .85); border-radius: 14px; padding: 10px 14px; font-size: .84rem; line-height: 1.3; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: aparecer .6s ease both, deriva 6s ease-in-out infinite alternate; }
.etiqueta-flot strong { display: block; color: var(--amarillo); font-family: var(--display); font-size: 1.05rem; }
.e1 { top: 30px; left: 0; animation-delay: 1.6s, 1.6s; }
.e2 { top: 120px; right: -6px; animation-delay: 1.9s, 2.4s; }
.e3 { bottom: 20px; left: 30px; animation-delay: 2.2s, 3s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(12px) scale(.95); } }
@keyframes deriva { to { translate: 0 -10px; } }

/* ---------- Cifras ---------- */
.cifras { position: relative; z-index: 2; margin-top: -58px; }
.cifras-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 24px; box-shadow: var(--sombra); overflow: hidden; }
.cifra { padding: 28px 26px; border-right: 1px solid var(--borde); }
.cifra:last-child { border-right: none; }
.cifra .num { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: var(--acento-texto); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.cifra .lbl { font-size: .92rem; color: var(--texto-2); font-weight: 700; }

/* ---------- Marcas: cinta de logos que cruza la pagina ---------- */
.marcas { padding: 64px 0 28px; overflow: hidden; }
.marcas-titulo { text-align: center; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-2); margin-bottom: 24px; }
.marcas-nota { text-align: center; font-size: .74rem; color: var(--texto-2); opacity: .7; margin-top: 14px; }
.cinta { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding: 12px 0 18px; }
.cinta-pista { display: flex; width: max-content; animation: cinta 55s linear infinite; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
.cinta-grupo { display: flex; gap: 18px; padding-right: 18px; list-style: none; align-items: center; }
/* Tarjeta siempre clara: varios logos traen letras oscuras y no se leen sobre fondo oscuro */
.cinta-grupo li { flex: none; display: grid; place-items: center; height: 92px; padding: 0 30px; background: #FFFFFF; border: 1px solid var(--borde); border-radius: 20px; box-shadow: 0 6px 18px rgba(58, 29, 94, .08); transition: transform .25s ease, box-shadow .25s ease; }
.cinta-grupo li:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 30px rgba(58, 29, 94, .16); }
.cinta-grupo img { height: 48px; width: auto; max-width: 170px; object-fit: contain; }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .cinta-grupo li { height: 72px; padding: 0 20px; border-radius: 16px; }
  .cinta-grupo img { height: 38px; max-width: 130px; }
  .cinta-pista { animation-duration: 40s; }
}

/* ---------- Secciones ---------- */
.seccion { padding: 96px 0; }
.seccion-cabecera { max-width: 660px; margin-bottom: 46px; }
.seccion-cabecera.centrada { margin-left: auto; margin-right: auto; text-align: center; }
.seccion-cabecera h2, .titulo-seccion { font-size: clamp(1.8rem, 3.3vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.seccion-cabecera p { color: var(--texto-2); font-size: 1.05rem; }

/* Tarjetas con inclinacion 3D (JS escribe --tx, --ty, --gx, --gy) */
.tilt { --tx: 0deg; --ty: 0deg; --gx: 50%; --gy: 50%; transform: perspective(900px) rotateX(var(--ty)) rotateY(var(--tx)); transition: transform .25s ease, box-shadow .25s ease; transform-style: preserve-3d; position: relative; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .35), transparent 45%); opacity: 0; transition: opacity .25s; }
.tilt:hover::after { opacity: 1; }
.tilt.activa { transition: transform .08s linear, box-shadow .25s ease; }

/* Lineas */
.lineas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.linea { display: flex; flex-direction: column; text-decoration: none; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 22px; padding: 26px 24px; overflow: hidden; }
.linea:hover { box-shadow: var(--sombra); }
.linea::before { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 182, 18, .22), transparent 70%); }
.linea-icono { width: 54px; height: 54px; border-radius: 16px; background: var(--fondo-alt); color: var(--acento-texto); display: grid; place-items: center; margin-bottom: 18px; transform: translateZ(30px); }
.linea-cant { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acento-texto); margin-bottom: 4px; }
.linea h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; transform: translateZ(20px); }
.linea p { font-size: .94rem; color: var(--texto-2); margin-bottom: 14px; }
.linea-marcas { font-size: .84rem; font-weight: 700; color: var(--tinta); opacity: .75; margin-bottom: 18px; }
.linea-ir { margin-top: auto; font-family: var(--display); font-weight: 800; color: var(--acento-texto); }
.linea:hover .linea-ir span { display: inline-block; transform: translateX(4px); transition: transform .2s; }

/* ---------- Cobertura ---------- */
.cobertura { background: var(--fondo-alt); }
.cobertura-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.transito { list-style: none; display: grid; gap: 14px; }
.transito li { display: flex; gap: 18px; align-items: center; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 18px; padding: 16px 20px; color: var(--texto-2); font-size: .96rem; }
.transito strong { color: var(--tinta); }
.dias { flex: none; width: 84px; text-align: center; font-weight: 800; color: var(--acento-texto); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.dias b { display: block; font-family: var(--display); font-size: 2.3rem; line-height: 1; color: var(--tinta); letter-spacing: 0; }
.nota-chica { margin-top: 18px; font-size: .88rem; color: var(--texto-2); }

.mapa { justify-self: center; width: 100%; max-width: 330px; }
@media (max-width: 640px) { .mapa { max-width: 230px; } }
.mapa svg { width: 100%; height: auto; max-height: 720px; overflow: visible; }
.tierra-a { stop-color: var(--tierra-a); } .tierra-b { stop-color: var(--tierra-b); }
.tierra { fill: url(#gTierra); stroke: var(--morado-suave); stroke-opacity: .35; stroke-width: 1.2; }
.mar-linea { fill: none; stroke: var(--morado-suave); stroke-opacity: .12; stroke-width: 26; stroke-linecap: round; }
.ruta-base { fill: none; stroke: var(--morado-suave); stroke-opacity: .18; stroke-width: 4; stroke-linejoin: round; }
.ruta { fill: none; stroke: var(--amarillo); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: var(--largo, 1100); stroke-dashoffset: var(--largo, 1100); transition: stroke-dashoffset 2.6s cubic-bezier(.4, 0, .2, 1); }
.mapa.visible .ruta { stroke-dashoffset: 0; }
.ciudades circle { fill: var(--tarjeta); stroke: var(--morado); stroke-width: 2; }
.bodega { fill: var(--morado); stroke: var(--amarillo); stroke-width: 2.5; }
.pulso { fill: none; stroke: var(--amarillo); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulso 2.4s ease-out infinite; }
.pulso.p2 { animation-delay: .8s; } .pulso.p3 { animation-delay: 1.6s; }
@keyframes pulso { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.rotulos text { font-family: var(--cuerpo); font-size: 12.5px; font-weight: 700; fill: var(--texto-2); }
.rotulos .fuerte { font-family: var(--display); font-size: 15px; font-weight: 800; fill: var(--tinta); }
.rotulos .sub { font-size: 10.5px; }
.rotulos .izq { text-anchor: end; font-size: 11px; }
.ramales path { fill: none; stroke: var(--morado-suave); stroke-opacity: .55; stroke-width: 2; stroke-dasharray: 4 4; stroke-linecap: round; }
.camion rect { fill: var(--amarillo); stroke: var(--noche); stroke-width: 1.2; }
.camion .cabina { fill: var(--morado); }
.camion.chico rect { fill: var(--tarjeta); stroke: var(--morado); }
.camion.chico .cabina { fill: var(--amarillo); stroke: var(--noche); }
.carga-txt { font-family: var(--cuerpo); font-size: 9.5px; font-weight: 800; fill: var(--texto-2); text-anchor: end; letter-spacing: .04em; }
.carga-fondo { fill: var(--morado-suave); fill-opacity: .25; }
.carga-barra { fill: var(--amarillo); }
.carga[hidden] { display: none; }
.mapa figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: .82rem; color: var(--texto-2); font-weight: 700; }
.ley { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -8px; vertical-align: -1px; }
.ley-bodega { background: var(--morado); border: 2px solid var(--amarillo); }
.ley-ciudad { background: var(--tarjeta); border: 2px solid var(--morado); }
.ley-ruta { width: 18px; height: 4px; border-radius: 2px; background: var(--amarillo); }
.ley-ramal { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed var(--morado-suave); }

/* ---------- Operacion ---------- */
.operacion-grid.solo-tiempo { display: block; }
.solo-tiempo .linea-tiempo { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.solo-tiempo .linea-tiempo::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 3px; background: linear-gradient(90deg, var(--amarillo), var(--morado-suave)); }
.solo-tiempo .linea-tiempo li { flex-direction: column; gap: 10px; }
@media (max-width: 860px) {
  .solo-tiempo .linea-tiempo { grid-template-columns: 1fr; }
  .solo-tiempo .linea-tiempo::before { left: 21px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: linear-gradient(var(--amarillo), var(--morado-suave)); }
  .solo-tiempo .linea-tiempo li { flex-direction: row; }
}
.region-mapa rect { fill: var(--amarillo); }
.region-mapa text { font-family: var(--display); font-size: 11.5px; font-weight: 800; fill: var(--noche); text-anchor: middle; }
.operacion-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.video-marco { border-radius: 26px; padding: 10px; background: linear-gradient(135deg, var(--amarillo), var(--morado-suave)); box-shadow: var(--sombra); }
.video-hueco { aspect-ratio: 16 / 10; border-radius: 18px; background: radial-gradient(circle at 30% 20%, #4B2474, var(--noche)); color: rgba(255, 255, 255, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px; }
.video-hueco svg { color: var(--amarillo); }
.video-hueco strong { font-family: var(--display); font-size: 1.3rem; color: #fff; }
.video-hueco span { font-size: .92rem; max-width: 30em; }
.linea-tiempo { list-style: none; position: relative; display: grid; gap: 22px; }
.linea-tiempo::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: linear-gradient(var(--amarillo), var(--morado-suave)); }
.linea-tiempo li { display: flex; gap: 18px; position: relative; }
.lt-num { flex: none; width: 45px; height: 45px; border-radius: 50%; background: var(--tarjeta); border: 3px solid var(--amarillo); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--acento-texto); z-index: 1; }
.linea-tiempo h3 { font-size: 1.12rem; font-weight: 800; margin: 8px 0 2px; }
.linea-tiempo p { font-size: .94rem; color: var(--texto-2); }

/* ---------- Para quien ---------- */
.para-quien { background: var(--fondo-alt); }
.publicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.publico { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 22px; padding: 30px 26px; text-align: center; }
.pub-icono { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--amarillo), #FFD66B); color: var(--noche); display: grid; place-items: center; transform: translateZ(30px); }
.publico h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.publico p { font-size: .94rem; color: var(--texto-2); }

/* ---------- Pasos ---------- */
.pasos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
.paso { position: relative; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 22px; padding: 30px 26px; overflow: hidden; }
.paso-num { position: absolute; right: 14px; top: -10px; font-family: var(--display); font-weight: 800; font-size: 5.5rem; color: var(--morado-suave); opacity: .12; line-height: 1; }
.paso h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.paso p { color: var(--texto-2); font-size: .95rem; }

/* ---------- Banda ---------- */
.banda { background: linear-gradient(100deg, var(--amarillo), #FFCB4D); padding: 60px 0; }
.banda-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.banda h2 { color: var(--noche); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; max-width: 22em; }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.contacto-intro { color: var(--texto-2); margin-bottom: 24px; }
.formulario { display: grid; gap: 16px; }
.campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 800; font-size: .9rem; }
.opcional { font-weight: 400; color: var(--texto-2); }
.campo input, .campo select, .campo textarea { font-family: var(--cuerpo); font-size: 1rem; background: var(--tarjeta); color: var(--tinta); border: 1.5px solid var(--borde); border-radius: 12px; padding: 12px 14px; width: 100%; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--morado-suave); box-shadow: 0 0 0 3px rgba(123, 75, 168, .2); }
.campo .invalido { border-color: #D14343; }
.form-error { color: #D14343; font-weight: 700; font-size: .92rem; }
.form-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.contacto-datos { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 24px; padding: 10px 26px 26px; box-shadow: var(--sombra); }
.dato { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--borde); }
.dato-icono { color: var(--acento-texto); flex: none; margin-top: 2px; }
.dato strong { display: block; font-size: .95rem; }
.dato span, .dato a { color: var(--texto-2); font-size: .93rem; }
.dato a { color: var(--acento-texto); font-weight: 800; text-decoration: none; word-break: break-word; }
.portal-caja { margin-top: 20px; background: var(--fondo-alt); border-radius: 18px; padding: 20px; }
.portal-caja p { font-size: .92rem; color: var(--texto-2); margin: 4px 0 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--noche); color: #E9E0F5; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.logo-footer { width: 170px; height: auto; margin-bottom: 16px; }
.footer p { font-size: .92rem; color: #C4B4DE; max-width: 30em; }
.footer h3 { color: var(--amarillo); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { color: #E9E0F5; text-decoration: none; font-size: .94rem; word-break: break-word; }
.footer ul a:hover { color: var(--amarillo); }
.footer-legal { border-top: 1px solid rgba(233, 224, 245, .16); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: #B9A6D8; }

/* Marca de dato pendiente: solo existe en la maqueta; el deploy se niega a publicar con PENDIENTE */
.pend { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; background: #FFE9A8; color: #6B4A00; border: 1px dashed #C99400; border-radius: 6px; padding: 1px 7px; margin-top: 6px; }

/* ---------- Aparicion al hacer scroll ---------- */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.revelar.visible { opacity: 1; transform: none; }
.tilt.revelar.visible { transform: perspective(900px) rotateX(var(--ty)) rotateY(var(--tx)); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 120px 0 100px; }
  .hero-inner, .cobertura-grid, .operacion-grid, .contacto-grid { grid-template-columns: 1fr; }
  .escena-marco { height: 380px; }
  .cifras-grid { grid-template-columns: repeat(2, 1fr); }
  .cifra:nth-child(2) { border-right: none; }
  .cifra:nth-child(-n+2) { border-bottom: 1px solid var(--borde); }
  .lineas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .boton-header { display: none; }
  .nav { position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 18px; box-shadow: var(--sombra); padding: 8px; display: none; }
  .nav.abierto { display: flex; }
  .nav a, .header.solido .nav a { color: var(--tinta); padding: 12px 14px; border-radius: 12px; }
  .nav .nav-portal { border: none; background: var(--fondo-alt); margin-top: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .contenedor { padding: 0 16px; }
  .seccion { padding: 70px 0; }
  .escena-marco { height: 320px; }
  .pallet { scale: 1; }
  .etiqueta-flot { font-size: .76rem; padding: 8px 11px; }
  .e2 { right: 0; top: 96px; }
  .lineas-grid, .publicos, .pasos-grid, .campos-2 { grid-template-columns: 1fr; }
  .cifra { padding: 20px 16px; }
  .hero-acciones .boton { width: 100%; justify-content: center; }
  .transito li { gap: 12px; padding: 14px; }
  .dias { width: 58px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
  .ruta { stroke-dashoffset: 0; }
}

/* Aviso de evento en el hero (Congreso Limari 2026, 2026-11-13). Se retira solo con data-hasta (app.js). */
.aviso-evento { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; margin: 0 0 22px; padding: 8px 8px 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 182, 18, .55); color: #fff; text-decoration: none; font-size: .92rem; line-height: 1.35; transition: background .2s ease, border-color .2s ease; }
.aviso-evento:hover { background: rgba(255, 255, 255, .14); border-color: var(--amarillo); color: #fff; }
.aviso-evento-estrella { color: var(--amarillo); font-size: 1.15rem; }
.aviso-evento-txt { flex: 1 1 220px; min-width: 0; }
.aviso-evento-txt b { display: block; color: var(--amarillo); }
.aviso-evento-cta { background: var(--amarillo); color: var(--noche); font-weight: 800; border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
@media (max-width: 560px) { .aviso-evento { border-radius: 14px; } .aviso-evento-cta { width: 100%; text-align: center; } }
