/* Portada de Nexus · capa de marca y movimiento (se carga después de los estilos base de index.html).
   Marino #1b2a3a + lima #c8f03c. Todo el movimiento usa transform, opacity o clip-path y se apaga con «reducir movimiento». */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-latin-wdth.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Onest"; src: url(../fonts/onest-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --deep: #0f1923; --navy-800: #243648; --navy-700: #33485e; --lima-fuerte: #d6f95a; --paper-200: #e4dfd2;
  --solape: clamp(22px, 3vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-rapida: 180ms; --dur-normal: 700ms;
}
::selection { background: var(--signal); color: var(--ink); }
html { scroll-padding-top: 84px; }
body { overflow-x: clip; }
h1, h2, h3 { font-stretch: 118%; letter-spacing: -.035em; }
p { text-wrap: pretty; }

/* Rótulos estrechos, como de etiqueta de envío */
.kicker, .kicker-claro, legend { font-family: var(--font-display); font-stretch: 80%; font-weight: 600; letter-spacing: .18em; font-size: 14px; }
.kicker::before, .kicker-claro::before { width: 12px; height: 12px; border-radius: 0; }
.kicker-claro::before { background: var(--ink); }

/* Foco visible también sobre papel: marino con anillo lima */
.servicios > .cab :focus-visible, .flota :focus-visible, .aviso-comercios :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--signal); }
.opcion input:hover + label { border-color: var(--ink); }

/* Botones: la flecha avanza y el botón se asienta al pulsar */
.btn { position: relative; transition: transform var(--dur-rapida) var(--ease-out), box-shadow var(--dur-rapida), background var(--dur-rapida); }
.btn span[aria-hidden] { display: inline-block; transition: transform var(--dur-rapida) var(--ease-out); }
.btn:hover { box-shadow: 0 10px 0 -4px #0f192399, 0 0 0 1px var(--signal); }
.btn:hover span[aria-hidden] { transform: translateX(5px); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn.ghost:hover { border-color: var(--signal); }

/* Cabecera con barra de avance de lectura */
header.top { background: #1b2a3ae6; border-bottom-color: #ffffff1a; }
header.top nav a[aria-current="true"] { opacity: 1; border-color: var(--signal); }
.avance { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .avance { animation: avance linear both; animation-timeline: scroll(root); }
  @keyframes avance { to { transform: scaleX(1); } }
}

/* ───── Portada ───── */
.hero { isolation: isolate; background: var(--deep); padding-bottom: calc(40px + var(--solape)); }
.hero::before { inset: -6% 0; opacity: .62; filter: saturate(.55) contrast(1.08); animation: pilar-entra 1.8s var(--ease-out) both; }
.hero::after { background: linear-gradient(180deg, #0f1923d9 0%, #1b2a3a8c 40%, #0f1923e0 82%, var(--deep) 100%), radial-gradient(60% 50% at 50% 42%, #c8f03c14, transparent 70%); }
.hero-grano { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); }
.hero-logo { animation: logo-entra 1s .1s var(--ease-out) both; filter: drop-shadow(0 18px 40px #0f1923cc); }
.hero p.sub { font-family: var(--font-display); font-stretch: 100%; font-weight: 700; letter-spacing: -.02em; animation: sube .9s .45s var(--ease-out) both; }
.hero p.sub em { font-style: normal; color: var(--signal); }
.hero .acciones { animation: sube .9s .6s var(--ease-out) both; }
.hero .franjas { animation: sube .9s .75s var(--ease-out) both; }
.chip { border-color: #ffffff38; background: #0f192380; font-weight: 600; }
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--signal); margin-right: 9px; transform: translateY(-1px); }
.baja { position: absolute; left: 50%; bottom: calc(var(--solape) + 14px); z-index: 1; width: 2px; height: 46px; margin-left: -1px; background: #ffffff33; overflow: hidden; }
.baja::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: translateY(-100%); animation: baja 2.2s 1.6s var(--ease-out) infinite; }
@keyframes pilar-entra { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1); opacity: .62; } }
@keyframes logo-entra { from { clip-path: inset(0 100% 0 0); transform: translateY(18px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes sube { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes baja { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
@supports (animation-timeline: scroll()) {
  /* Al bajar, el logo se aleja y el Pilar se queda atrás: la portada tiene fondo */
  .hero-capa { animation: hero-sale linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes hero-sale { to { transform: translateY(-9vh) scale(.94); opacity: .15; } }
}
.hero-capa { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; }

/* Aviso para comercios: banda lima que monta sobre la portada */
.aviso-comercios { background: var(--signal); color: var(--ink); margin: calc(var(--solape) * -1) var(--gutter) 0; border-radius: 6px; padding: 20px clamp(18px, 3vw, 36px); box-shadow: 0 18px 40px #0f192366; z-index: 3; }
.aviso-comercios .btn { background: var(--ink); color: var(--white); }
.aviso-comercios .btn:hover { background: var(--navy-800); box-shadow: 0 10px 0 -4px #1b2a3a55; }
.aviso-envoltura { background: linear-gradient(var(--deep) 50%, var(--paper) 50%); position: relative; z-index: 3; }

/* ───── Secciones como hojas que se montan unas sobre otras ───── */
.nacional, .flota, .internacional, .pedir-sec { border-radius: var(--solape) var(--solape) 0 0; margin-top: calc(var(--solape) * -1); position: relative; z-index: 2; }
.servicios, .nacional, .flota, .confianza { padding-bottom: calc(clamp(56px, 8vw, 110px) + var(--solape)); }
.confianza { padding-bottom: calc(30px + var(--solape)); }
.dia { padding-top: 1px; }

/* Un día de reparto */
.dia-caja { border-radius: 10px; box-shadow: 16px 16px 0 var(--ink), 0 30px 60px #0f192340; }
.dia-texto h2 { font-size: clamp(34px, 5.4vw, 84px); }
.dia-texto h2 em { color: var(--ink); background: linear-gradient(var(--signal), var(--signal)) 0 88% / 100% .22em no-repeat; }
.dia-enlace { border-bottom-color: var(--ink); color: var(--ink); }

/* Servicios: tarjetas escalonadas con inclinación al pasar el ratón */
.servicios h2, .nacional h2, .internacional h2 { font-size: clamp(36px, 6.2vw, 100px); }
.tarjetas { perspective: 1400px; }
.card { border-radius: 10px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--sube, 0px)); transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .3s; box-shadow: 0 2px 0 var(--ink); will-change: auto; }
.card:hover { --sube: -8px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--sube)); box-shadow: 14px 22px 0 -4px var(--signal), 0 30px 50px #0f192340; }
.card .foto { height: 260px; }
.card .foto img { transition: transform 1.2s var(--ease-out); }
.card:hover .foto img { transform: scale(1.06); }
.card .num { border-radius: 0; font-stretch: 80%; letter-spacing: .14em; padding: 8px 12px; }
.card li::before { width: 10px; height: 10px; top: .5em; border-radius: 0; }
@media (min-width: 961px) {
  .tarjetas { align-items: start; }
  .card:nth-child(2) { margin-top: 56px; }
  .card:nth-child(3) { margin-top: 112px; }
}


/* Nacional / internacional */
.nacional { background: radial-gradient(900px 600px at 18% 40%, #3a587666, transparent 70%), linear-gradient(135deg, var(--navy-800), var(--ink) 70%); }
.internacional { background: radial-gradient(900px 600px at 80% 50%, #33485e88, transparent 70%), var(--deep); }
.mapa-caja { border-radius: 10px; box-shadow: 16px 16px 0 var(--deep); }
.nacional li::before, .internacional li::before { width: 10px; height: 10px; top: .5em; border-radius: 0; }

/* Local */
.local-foto { border-radius: 10px; box-shadow: 16px 16px 0 var(--signal); overflow: hidden; }
.local-texto h2 { font-size: clamp(40px, 6vw, 96px); }

/* Cómo funciona: columna fija con la app y pasos con línea de avance */
.como { background: var(--deep); }
.como h2 { position: static; font-size: clamp(34px, 5.4vw, 84px); }
.como-lado { position: sticky; top: 100px; display: grid; gap: 28px; justify-items: start; }
.movil { margin: 0; width: min(100%, 250px); }
.movil video { display: block; width: 100%; height: auto; aspect-ratio: 432 / 936; border-radius: 28px; border: 6px solid var(--navy-700); background: var(--ink); box-shadow: 14px 14px 0 var(--signal); object-fit: cover; }
.movil figcaption { color: var(--fog); font-size: 14px; margin-top: 22px; max-width: 30ch; }
.pasos li { position: relative; transition: background .3s; }
.pasos li::before { font-size: clamp(48px, 6vw, 84px); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--signal); transition: color .4s var(--ease-out); }
.pasos li.in::before, .pasos li:hover::before { color: var(--signal); }
.pasos li { grid-template-columns: clamp(74px, 9vw, 120px) 1fr; }

/* Colaboradores */
.confianza { background: var(--navy-800); }
.logos-colab span { border-radius: 0; border-color: var(--signal); padding: 10px 20px; font-size: 18px; font-stretch: 80%; letter-spacing: .14em; }

/* Formulario y seguimiento */
.opcion label, .campo input, .campo textarea, .campo select, .seguir input { border-radius: 6px; }
.opcion input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--white); }
.opcion input:checked + label::after { border-color: var(--signal); background: radial-gradient(var(--signal) 0 45%, var(--ink) 48%); }
.form-caja .lado .tel { border-bottom-width: 5px; font-size: clamp(28px, 3.4vw, 44px); }
.gracias { border-radius: 6px; border-color: var(--ink); box-shadow: 10px 10px 0 var(--signal); }
.extras { border-radius: 6px; }
.seguir { background: var(--ink); padding-bottom: clamp(48px, 7vw, 90px); }
footer { background: var(--deep); }

/* ───── Revelado al entrar en pantalla (lo activa js/portada.js) ───── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }
.rv-titulo { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path .9s var(--ease-out), transform .9s var(--ease-out); }
.rv-titulo.in { clip-path: inset(-10% -5% -15% -5%); transform: none; }
.rv-foto { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-out); }
.rv-foto.in { clip-path: inset(0 0 0 0); }
/* Las tarjetas conservan su propia transformación 3D: solo se desvanecen */
.card.rv { transform: translateY(40px); }
.card.rv.in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--sube, 0px)); }

/* Profundidad al hacer scroll, solo donde el navegador lo hace sin JavaScript */
@supports (animation-timeline: view()) {
  .card .foto img, .local-foto img { animation: foto-fondo linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes foto-fondo { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
  .card:hover .foto img { animation: none; transform: scale(1.14); }
  .globo-caja, .mapa-caja { animation: flota linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes flota { from { transform: translateY(36px); } to { transform: translateY(-36px); } }
}

@media (max-width: 960px) {
  .como-lado { position: static; }
  .movil { width: 200px; }
  .aviso-comercios { margin-inline: clamp(12px, 4vw, 40px); }
  .dia-caja, .mapa-caja { box-shadow: 8px 8px 0 var(--ink); }
  .mapa-caja { box-shadow: 8px 8px 0 var(--deep); }
  .local-foto { box-shadow: 8px 8px 0 var(--signal); }
  .baja { display: none; }
}
@media (max-width: 520px) {
  .aviso-comercios .btn { width: 100%; }
  .chip { font-size: 13px; padding: 6px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero::before { opacity: .62; }
      .rv, .rv-titulo, .rv-foto { opacity: 1; transform: none; clip-path: none; }
  .baja { display: none; }
}

/* ───── Un día de reparto: escenario oscuro con capítulos que siguen al vídeo ───── */
.aviso-envoltura { background: var(--deep); }
.dia { background: var(--deep); color: var(--white); padding-top: clamp(40px, 5vw, 72px); padding-bottom: calc(clamp(48px, 6vw, 96px) + var(--solape)); }
.dia::after { display: none; }
.dia-in { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; }
.dia-fig { margin-top: 0; }
.dia-texto { padding-top: 0; }
.dia .kicker-claro { color: var(--fog); }
.dia .kicker-claro::before { background: var(--signal); }
.dia-texto h2 em { color: var(--signal); background: none; }
.dia-lead, .dia-pie { color: var(--fog); }
.dia-enlace { color: var(--white); border-bottom-color: var(--signal); }
.dia-enlace:hover { color: var(--signal); }
.dia-caja { box-shadow: 16px 16px 0 var(--signal), 0 40px 80px #000a; background: var(--ink); }
.dia-ctl { background: #0f1923e6; border: 2px solid #ffffff55; }
.dia-capitulos { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; counter-reset: cap; }
.dia-capitulos li { counter-increment: cap; font: 600 13px/1.2 var(--font-display); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); transition: color .3s; }
.dia-capitulos li span::before { content: counter(cap, decimal-leading-zero) " "; color: var(--signal); }
.dia-capitulos i { display: block; height: 4px; margin-top: 10px; background: #ffffff26; position: relative; overflow: hidden; }
.dia-capitulos i::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform .28s linear; }
.dia-capitulos li.activo { color: var(--white); }
.servicios { border-radius: var(--solape) var(--solape) 0 0; margin-top: calc(var(--solape) * -1); position: relative; z-index: 2; }
.dia + .servicios { padding-top: clamp(56px, 8vw, 110px); }
@media (max-width: 960px) {
  .dia-in { grid-template-columns: minmax(0, 1fr); }
  .dia-caja { box-shadow: 8px 8px 0 var(--signal); }
}

/* ═════ Portada v2: titular gigante sobre una red de rutas viva ═════ */
.hero { text-align: left; align-items: stretch; justify-content: flex-end; min-height: calc(100svh - 62px); padding: clamp(28px, 5vw, 64px) var(--gutter) calc(var(--solape) + 28px); background: var(--deep); }
.hero::before { inset: 0 0 0 38%; opacity: .34; background-position: 60% 60%; filter: grayscale(1) contrast(1.15); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); animation: none; mix-blend-mode: luminosity; }
.hero::after { background: linear-gradient(180deg, #0f192399 0%, transparent 30%, #0f1923cc 78%, var(--deep) 100%); }
.hero-red { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.04); transition: transform .6s var(--ease-out); }
.hero-capa { align-items: flex-start; animation: none; }
.hero-rotulo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: clamp(18px, 3vw, 36px); font: 600 13px/1 var(--font-display); font-stretch: 80%; letter-spacing: .18em; text-transform: uppercase; color: var(--fog); animation: sube .8s .05s var(--ease-out) both; }
.hero-rotulo img { width: clamp(96px, 9vw, 130px); height: auto; margin-right: 6px; }
.hero-rotulo span { padding-left: 18px; border-left: 2px solid var(--signal); }
.hero .hero-titulo { font-size: clamp(2rem, 10.2vw, 9rem); font-weight: 900; font-stretch: 125%; line-height: .88; letter-spacing: -.045em; max-width: none; text-wrap: nowrap; }
.hero-titulo .ln { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.hero-titulo .ln > span { display: block; animation: linea-sube 1s var(--ease-out) both; }
.hero-titulo .ln:nth-child(2) > span { animation-delay: .1s; }
.hero-titulo .ln:nth-child(3) > span { animation-delay: .2s; }
.hero-titulo em { font-style: normal; color: var(--signal); }
.hero-titulo .ln:nth-child(2) { color: transparent; -webkit-text-stroke: clamp(1px, .18vw, 2.5px) var(--white); }
@keyframes linea-sube { from { transform: translateY(105%); } to { transform: none; } }
.hero p.sub { font: 500 clamp(17px, 1.6vw, 22px)/1.45 var(--font-body); letter-spacing: 0; max-width: 46ch; margin: clamp(18px, 2.4vw, 30px) 0; color: #e3e9ef; text-wrap: pretty; }
.hero .acciones { justify-content: flex-start; }
.hero .franjas { display: none; } /* los servicios van en el rótulo de arriba; se conservan en el HTML para quien navega sin estilos */
.hero-datos { position: relative; z-index: 1; list-style: none; padding: clamp(18px, 2.4vw, 28px) 0 0; margin: clamp(26px, 4vw, 54px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px clamp(16px, 3vw, 48px); border-top: 1px solid #ffffff33; animation: sube .9s .7s var(--ease-out) both; }
.hero-datos li { display: flex; align-items: baseline; gap: 12px; color: var(--fog); font-size: 14px; line-height: 1.3; }
.hero-datos b { flex: none; min-width: 1.1ch; font: 900 clamp(34px, 4.4vw, 68px)/.85 var(--font-display); font-stretch: 125%; letter-spacing: -.04em; color: var(--signal); font-variant-numeric: tabular-nums; }
@supports (animation-timeline: scroll()) {
  .hero-capa { animation: none; }
  .hero-titulo { animation: titulo-sale linear both; animation-timeline: scroll(root); animation-range: 0 80vh; transform-origin: 0 50%; }
  @keyframes titulo-sale { to { transform: translateX(-4vw) scale(.92); opacity: .25; } }
  .hero-red { animation: red-sale linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes red-sale { to { transform: translateY(12vh) scale(1.12); } }
}

/* Vídeo protagonista: las tres palabras gigantes se montan sobre el vídeo y se encienden con él */
.dia { overflow: clip; }
.dia-in { max-width: 1360px; grid-template-columns: minmax(0, 1fr) minmax(0, min(46vw, 600px)); }
.dia-texto { position: relative; z-index: 3; }
.dia-texto h2 { font-size: clamp(2.5rem, 8.6vw, 8.6rem); font-weight: 900; font-stretch: 125%; line-height: .9; letter-spacing: -.045em; width: max-content; max-width: 96vw; text-wrap: nowrap; pointer-events: none; text-shadow: 0 6px 30px #0f1923; }
.dia-texto h2 span, .dia-texto h2 em { display: block; transition: color .35s, -webkit-text-stroke-color .35s, transform .5s var(--ease-out); }
.dia-texto h2 em { color: var(--signal); }
.dia.reproduciendo .dia-texto h2 > * { color: transparent; -webkit-text-stroke: clamp(1px, .16vw, 2.5px) #ffffff8c; text-shadow: none; }
.dia.reproduciendo .dia-texto h2 > .activo { color: var(--signal); -webkit-text-stroke-color: var(--signal); transform: translateX(clamp(8px, 1.5vw, 28px)); }
.dia-lead { margin-top: clamp(22px, 3vw, 40px); }
.dia-caja { border-radius: 4px; }

/* Palabras de fondo que cruzan la sección al bajar */
.nacional, .internacional { overflow: clip; }
.fondo-palabra { position: absolute; left: -2vw; top: clamp(8px, 2vw, 30px); z-index: 0; font: 900 clamp(90px, 24vw, 420px)/.8 var(--font-display); font-stretch: 125%; letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px #ffffff1f; pointer-events: none; user-select: none; }
.fondo-palabra--inv { left: auto; right: -2vw; }
.nacional > *:not(.fondo-palabra), .internacional > *:not(.fondo-palabra) { position: relative; z-index: 1; }
@supports (animation-timeline: view()) {
  .fondo-palabra { animation: palabra-cruza linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes palabra-cruza { from { transform: translateX(14%); } to { transform: translateX(-14%); } }
  .fondo-palabra--inv { animation-name: palabra-cruza-inv; }
  @keyframes palabra-cruza-inv { from { transform: translateX(-14%); } to { transform: translateX(14%); } }
}
@media (min-width: 961px) {
  /* El globo se sale de la página: se ve medio planeta, grande */
  .internacional .globo-caja { max-width: none; width: 128%; justify-self: start; }
}

/* Cierre: bloque lima con la flecha del logo */
.cierre { position: relative; z-index: 2; overflow: clip; background: var(--signal); color: var(--ink); padding: clamp(64px, 10vw, 160px) var(--gutter); border-radius: var(--solape) var(--solape) 0 0; margin-top: calc(var(--solape) * -1); }
.seguir { padding-bottom: calc(clamp(48px, 7vw, 90px) + var(--solape)); }
.cierre h2 { font-size: clamp(2.6rem, 11vw, 11rem); font-weight: 900; font-stretch: 125%; line-height: .86; letter-spacing: -.05em; position: relative; }
.cierre h2 span { display: block; color: transparent; -webkit-text-stroke: clamp(1.5px, .2vw, 3px) var(--ink); }
.cierre-texto { font-size: clamp(17px, 1.8vw, 22px); max-width: 40ch; margin: clamp(20px, 3vw, 36px) 0; position: relative; font-weight: 500; }
.cierre-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; position: relative; }
.cierre .btn { background: var(--ink); color: var(--white); min-height: 60px; padding-inline: 34px; font-size: 19px; }
.cierre .btn:hover { background: var(--deep); box-shadow: 0 10px 0 -4px #1b2a3a66; }
.cierre-tel { font: 900 clamp(28px, 4vw, 56px)/1 var(--font-display); font-stretch: 125%; letter-spacing: -.03em; text-decoration: none; border-bottom: 5px solid var(--ink); padding-bottom: 4px; }
.cierre-enlace { flex-basis: 100%; font-weight: 700; padding: 12px 0; text-underline-offset: 4px; width: fit-content; }
.cierre :focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 7px var(--white); }
.cierre-flecha { position: absolute; right: -4%; top: 50%; width: min(58vw, 720px); height: auto; color: #1b2a3a14; transform: translateY(-50%); pointer-events: none; }
@supports (animation-timeline: view()) {
  .cierre-flecha { animation: flecha-sube linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes flecha-sube { from { transform: translate(-22%, -20%) scale(.7); } to { transform: translate(0, -50%) scale(1); } }
}
footer { position: relative; z-index: 2; }

/* Menú con ocho enlaces: se aprieta antes de esconderse */
@media (min-width: 961px) and (max-width: 1360px) {
  header.top nav { gap: 16px; font-size: 14.5px; }
  .head-right .tel { display: none; }
}
@media (min-width: 961px) and (max-width: 1120px) { header.top nav a[href="#seguimiento"], header.top nav a[href="#internacional"] { display: none; } }
@media (max-width: 960px) {
  .hero::before { inset: 0; opacity: .22; -webkit-mask-image: none; mask-image: none; }
  .hero-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-rotulo span { display: none; }
  .dia-fig { order: 0; }
  .dia-texto h2 { margin-bottom: -.5em; }
  .dia-texto { order: -1; }
  .dia-lead, .dia-capitulos, .dia-enlace { display: none; }
  .cierre-flecha { width: 90vw; right: -30%; }
}
@media (max-width: 420px) { .hero-datos li { flex-direction: column; gap: 6px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-red { transform: none; }
  .hero-titulo .ln > span { transform: none; }
}

/* Ajustes tras revisar capturas: el menú no parte línea y la red no compite con el texto en móvil */
header.top nav a, header.top .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1560px) { header.top nav { gap: 18px; font-size: 15px; } .head-right .tel { display: none; } }
@media (min-width: 961px) and (max-width: 1240px) { header.top nav { gap: 13px; font-size: 14px; } header.top nav a[href="#seguimiento"], header.top nav a[href="#internacional"] { display: none; } }
@media (max-width: 960px) { .hero-red { opacity: .5; } }

/* ───── Vídeos 3D nuevos ─────
   «Un día de reparto»: las palabras gigantes ya no se montan sobre el vídeo (lleva sus propios rótulos) y en móvil el vídeo es vertical. */
.dia-in { grid-template-columns: minmax(0, 1fr) minmax(0, min(40vw, 520px)); }
.dia-texto h2 { width: auto; max-width: none; font-size: clamp(2.3rem, 5.9vw, 6.4rem); text-shadow: none; pointer-events: auto; }
.dia-caja picture { display: contents; }
@media (max-width: 960px) {
  .dia-texto h2 { margin-bottom: 0; font-size: clamp(2.3rem, 11.5vw, 5rem); }
  .dia-lead, .dia-capitulos { display: block; }
  .dia-capitulos { display: grid; }
}
@media (max-width: 767px) {
  .dia-caja { aspect-ratio: 9 / 16; width: min(100%, calc(74svh * .5625)); }
  .dia-pie { width: min(100%, calc(74svh * .5625)); }
}
/* El hub por dentro, en la sección del local */
.hub-dentro { max-width: 1280px; margin: clamp(48px, 7vw, 110px) auto 0; padding-top: clamp(40px, 6vw, 90px); border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 380px); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hub-dentro-fig { margin: 0; order: 2; box-shadow: 16px 16px 0 var(--ink); background: var(--ink); }
.hub-dentro-fig video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; background: var(--ink); }
.hub-dentro-texto h3 { font-size: clamp(34px, 5vw, 76px); font-weight: 900; font-stretch: 125%; letter-spacing: -.04em; line-height: .92; }
.hub-dentro-nota { color: var(--slate); font-size: 14px; }
@media (max-width: 960px) {
  .hub-dentro { grid-template-columns: minmax(0, 1fr); }
  .hub-dentro-fig { order: 0; max-width: 340px; box-shadow: 8px 8px 0 var(--ink); }
}
@media (max-width: 960px) {
  .dia-in { grid-template-columns: minmax(0, 1fr); }
  .dia-capitulos { margin: 18px 0 0; }
  .dia-capitulos li { font-size: 11px; letter-spacing: .06em; }
}

/* ───── Revisión de diseño y de código ───── */
/* Titular: la red se atenúa detrás del texto y el contorno de la segunda línea pesa más */
.hero::after { background: linear-gradient(90deg, #0f1923e6 0%, #0f1923b3 38%, transparent 72%), linear-gradient(180deg, #0f192399 0%, transparent 30%, #0f1923cc 78%, var(--deep) 100%); }
.hero-titulo .ln:nth-child(2) { -webkit-text-stroke: clamp(2px, .22vw, 3.5px) #ffffffd9; }
.hero-tel { font-weight: 700; padding: 12px 4px; text-underline-offset: 4px; text-decoration-color: var(--signal); }
/* Menú con jerarquía: el enlace para comercios destaca */
header.top nav a.nav-comercios { opacity: 1; font-weight: 700; }
header.top nav a.nav-comercios::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--signal); margin-right: 8px; transform: translateY(-1px); }
@media (max-width: 960px) {
  /* En móvil la red se queda en la franja de arriba: ningún nodo ni ruta pasa por encima del texto */
  .hero-red { opacity: .7; -webkit-mask-image: linear-gradient(#000 0, #000 13%, transparent 24%); mask-image: linear-gradient(#000 0, #000 13%, transparent 24%); }
  .hero::after { background: linear-gradient(180deg, transparent 0%, #0f1923d9 26%, #0f1923e6 80%, var(--deep) 100%); }
  .hero-datos li:nth-child(n+3) { display: none; } /* en móvil, dos datos en vez de cuatro */
  .hero .acciones { flex-direction: column; align-items: stretch; }
  .hero-tel { text-align: center; }
  .cierre { padding-block: 44px 48px; }
  .cierre h2 { font-size: clamp(2.2rem, 11vw, 4rem); }
  .cierre-texto { margin-block: 14px 18px; }
  .cierre-flecha { display: none; }
  .cierre-tel { font-size: 26px; }
}
@media (min-width: 961px) { .internacional .globo-caja { width: 112%; } } /* menos hueco vacío bajo el globo (visto en la captura con scroll real) */
