/* =============================================================
   0. Tipografía propia de TJXPERIENCE — ITC Avant Garde Gothic Pro
   (geométrica, bold, uppercase wordmark, ver brand-identity memory).
   Jost fue placeholder hasta bajar el archivo real; ya no hace falta.
   ============================================================= */
@font-face { font-family: "ITC Avant Garde Gothic Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ITCAvantGardeStd-Bk.ttf") format("truetype"); }
@font-face { font-family: "ITC Avant Garde Gothic Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ITCAvantGardeStd-Md.ttf") format("truetype"); }
@font-face { font-family: "ITC Avant Garde Gothic Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/ITCAvantGardeStd-Demi.ttf") format("truetype"); }

/* =============================================================
   1. Tokens — identidad propia de TJXPERIENCE (paleta original)
   ============================================================= */
:root {
  --tjx-blue:   #5A81FF;
  --tjx-sky:    #88D5FF;
  --tjx-amber:  #FFB636;
  --tjx-amber-text: #B9790A; /* --tjx-amber darkened for legible text-on-white use */
  --tjx-orange: #E0623C;
  --tjx-red:    #E5232E;
  --tjx-red-dark: #A80F1B;
  --tjx-black:  #000000;

  --bg:      #ffffff;
  --bg-soft: #f6f7fb;
  --ink:     #0a0a0a;
  --ink-soft:#4b4b52;
  --ink-mute:#83838c;
  --line:    rgba(10,10,10,0.10);

  --display: "ITC Avant Garde Gothic Pro", "Jost", "Segoe UI", sans-serif; /* tipografía de marca TJXPERIENCE */
  --sans:    "Inter", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

::selection { background: var(--tjx-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--tjx-blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Nav ancla
   ============================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-nav { background: rgba(255,255,255,0.96); }
}
.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(10,10,20,0.06);
}
.nav-logo { height: 26px; width: auto; }
.nav-links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav-links a {
  font-weight: 700; font-size: .95rem; color: var(--ink-soft);
  position: relative; padding: .3rem 0;
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: currentColor; transition: right .3s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
.nav-links a[data-elevador="garitas"]:hover { color: var(--tjx-blue); }
.nav-links a[data-elevador="eventos"]:hover { color: var(--tjx-amber-text); }
.nav-links a[data-elevador="mapa"]:hover    { color: var(--tjx-orange); }
.nav-links a[data-elevador="garitas"] { color: var(--tjx-blue); }
.nav-links a[data-elevador="eventos"] { color: var(--tjx-amber-text); }
.nav-links a[data-elevador="mapa"]    { color: var(--tjx-orange); }

/* =============================================================
   4. Hero
   ============================================================= */
.hero {
  position: relative; overflow-x: clip;
  padding: calc(var(--nav-h) + 4.5rem) clamp(1.25rem, 6vw, 5rem) 3rem;
  max-width: 1280px; margin-inline: auto;
}
.hero-inner { max-width: 46rem; }
.kicker {
  font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tjx-blue); margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 700;
  max-width: 16ch;
}
.hero-title em { font-style: normal; color: var(--tjx-orange); }
.hero-sub {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft); max-width: 42ch;
}

.hero-bento {
  margin-top: 4.5rem;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  isolation: isolate; /* las piezas que salen de la tarjeta no se mezclan con el resto de la página */
}

/* ---- Tarjeta con foto: velo de color de la paleta + el objeto de la foto «sale» del cuadro al pasar el cursor ---- */
.bento-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  justify-content: flex-end;
  color: #fff;
  box-shadow: 0 14px 30px rgba(10,10,30,0.14);
}
.bc--garitas { --v: 46,84,230; --vd: 10,24,120; }
.bc--eventos { --v: 255,168,38; --vd: 140,52,6; }
.bc--mapa    { --v: 240,40,52;  --vd: 125,5,20; }

.bc-base { position: absolute; inset: 0; z-index: 0; border-radius: var(--radius); overflow: hidden; background: #222; }
.bc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--v), .34) 0%, rgba(var(--v), .5) 42%, rgba(var(--vd), .9) 100%); }
.bc-dots {
  position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.5px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 60%); mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
}

.bento-icon, .bento-label, .bento-desc { position: relative; z-index: 5; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.bento-icon { width: 40px; height: 40px; color: #fff; margin-bottom: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.bento-label { font-family: var(--display); font-weight: 700; font-size: 1.45rem; }
.bento-desc { font-size: .92rem; color: rgba(255,255,255,.9); }

/* Tarjeta del mapa: mapa de Tijuana bajo el velo rojo y el collage de íconos saliendo por arriba */
.bc-collage { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bs { position: absolute; display: block; height: auto;
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 14px 18px rgba(70,0,10,.45)); }
.bs-rio     { right: 5%;  top: 4%;  height: 40%; width: auto; transform: rotate(8deg); }
.bs-cecut   { right: 33%; top: 6%;  width: 21%;               transform: rotate(-10deg); }
.bs-costco  { right: 3%;  top: 29%; width: 19%;               transform: rotate(8deg); }
.bs-tijeras { right: 31%; top: 22%; height: 21%; width: auto; transform: rotate(-8deg); }
.bs-pin { width: 20px; right: 56%; top: 22%; filter: drop-shadow(0 6px 8px rgba(70,0,10,.45)); transform: rotate(14deg); }
.bs-note { right: 60%; top: 8%; color: #FFD166; font: 700 1.8rem/1 var(--display); text-shadow: 0 3px 0 rgba(90,0,8,.4); transform: rotate(-14deg); filter: none; }

@media (max-width: 900px) {
  .hero-bento { grid-template-columns: 1fr; }
  .bento-card { aspect-ratio: 16 / 11; max-width: 520px; margin-inline: auto; width: 100%; }
}

/* =============================================================
   5. Transition strips — logo morph + word loop
   ============================================================= */
.transition-strip {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 3vw, 2.75rem);
  padding: clamp(2.75rem, 6vw, 4.5rem) 1rem;
}
.transition-strip--dark {
  background: var(--ink);
  border-color: var(--ink);
}
.transition-strip--dark .transition-word { color: #fff; }
.transition-icon {
  position: relative;
  width: clamp(72px, 9vw, 128px); height: clamp(72px, 9vw, 128px);
  flex: 0 0 auto;
}
.transition-icon .t-frame {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(.68) rotate(-10deg);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.transition-icon .t-frame.is-active {
  opacity: 1; transform: scale(1) rotate(0deg);
}
.transition-icon .t-frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(10,10,20,0.12)); }
.transition-icon .t-frame svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 24px rgba(10,10,20,0.10)); }

.transition-word {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: .005em;
  min-width: 7ch;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.transition-word.is-swapping { opacity: 0; transform: translateY(6px); }
.transition-word-logo { height: clamp(1.8rem, 4.2vw, 2.8rem); width: auto; display: block; }
.transition-word--blue   { color: var(--tjx-blue); }
.transition-word--amber  { color: var(--tjx-amber-text); }
.transition-word--orange { color: var(--tjx-orange); }

/* =============================================================
   6. Section shell
   ============================================================= */
.section {
  position: relative;
  padding: 5rem clamp(1.25rem, 6vw, 5rem);
  max-width: 1280px; margin-inline: auto;
}
.section-head { max-width: 42rem; margin-bottom: 2.75rem; }
.section-kicker {
  font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tjx-orange); margin-bottom: .6rem;
}
.section-title { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; }
.section-sub { margin-top: .85rem; color: var(--ink-soft); font-size: 1.05rem; }

/* =============================================================
   7. Garitas
   ============================================================= */
.garitas-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 1rem;
}
.domain-tabs { display: inline-flex; padding: 4px; background: var(--bg-soft); border-radius: 999px; gap: 2px; }
.domain-tab {
  padding: .55rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  color: var(--ink-mute); transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.domain-tab.is-active { background: var(--ink); color: #fff; }
.garitas-updated { font-size: .85rem; color: var(--ink-mute); }

.data-note {
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: 12px; padding: .9rem 1.1rem; font-size: .85rem; color: var(--ink-soft);
  margin-bottom: 2rem;
}
.data-note code { background: rgba(10,10,10,0.06); padding: .1rem .4rem; border-radius: 4px; }

.garitas-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.crossing-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; background: var(--bg);
  display: flex; flex-direction: column; gap: 1rem;
}
.crossing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.crossing-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.crossing-sub { font-size: .85rem; color: var(--ink-mute); margin-top: .15rem; }
.crossing-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; white-space: nowrap;
}
.crossing-badge--open { background: rgba(90,129,255,0.12); color: var(--tjx-blue); }
.crossing-badge--closed { background: rgba(224,98,60,0.12); color: var(--tjx-orange); }

.lane-list { display: flex; flex-direction: column; gap: .55rem; }
.lane-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem .8rem; border-radius: 10px; background: var(--bg-soft);
  font-size: .88rem;
}
.lane-label { font-weight: 600; }
.lane-status { display: flex; align-items: center; gap: .5rem; color: var(--ink-mute); }
.lane-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-mute); flex: 0 0 auto; }
.lane-dot--open { background: #2fae63; }
.lane-dot--closed { background: var(--ink-mute); }
.lane-wait { font-weight: 700; color: var(--ink); }

.crossing-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-mute);
}
.camera-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--ink-mute);
  padding: .35rem .7rem; border-radius: 999px; background: var(--bg-soft);
  cursor: not-allowed;
}
.camera-btn svg { width: 15px; height: 15px; }

/* =============================================================
   8. Eventos
   ============================================================= */
.eventos-track {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.evento-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.evento-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(10,10,30,0.10); }
.evento-img { aspect-ratio: 16/10; background: var(--bg-soft) center/cover no-repeat; }
.evento-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.evento-meta { font-size: .78rem; font-weight: 600; color: var(--tjx-blue); text-transform: uppercase; letter-spacing: .04em; }
.evento-title { font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.evento-extracto { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.evento-foot { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--ink-mute); margin-top: .3rem; }
.evento-link { font-weight: 700; color: var(--tjx-orange); }

/* =============================================================
   9. Mapa Interactivo — hub intro (single clickable zone)
   Tarjeta ROJA: texto + persona con el celular a la izquierda; a la derecha
   un collage: mapa de Tijuana bajo una capa roja translúcida, con los íconos
   ilustrados pegados encima como calcomanías.
   ============================================================= */
.mapa-hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr auto; align-items: stretch;
  border-radius: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #F23A44 0%, var(--tjx-red) 40%, var(--tjx-red-dark) 100%);
  color: #fff;
  min-height: 520px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.mapa-hero:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(168,15,27,0.38); }
.mapa-hero-text { grid-column: 1; grid-row: 1; padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem) 1rem; display: flex; flex-direction: column; gap: 1.1rem; justify-content: center; position: relative; z-index: 3; }
.section-kicker--onblue { color: #FFD166; }
.mapa-hero-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 700; text-shadow: 0 2px 0 rgba(120,0,10,.25); }
.mapa-hero-copy { color: rgba(255,255,255,0.9); max-width: 40ch; }
.mapa-hero-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.mapa-hero-pills li {
  font-size: .78rem; font-weight: 600; padding: .35rem .75rem;
  border-radius: 999px; background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.32);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .mapa-hero-pills li {
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-top-color: rgba(255,255,255,0.5);
  }
}
.mapa-hero-cta {
  margin-top: .5rem; font-weight: 700; font-family: var(--display);
  display: inline-flex; align-items: center; gap: .4rem; width: fit-content;
  padding: .8rem 1.4rem; border-radius: 999px; background: #fff; color: var(--tjx-red);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(90,0,8,0.32);
  transition: transform .3s var(--ease-out);
}
.mapa-hero:hover .mapa-hero-cta { transform: translateX(4px); }

/* persona con el celular (debajo del texto, pegada al borde inferior de la tarjeta) */
.mapa-hero-person {
  grid-column: 1; grid-row: 2; align-self: end; justify-self: start;
  margin: 0 0 0 clamp(1.5rem, 4vw, 3.5rem); line-height: 0; position: relative; z-index: 3;
}
.mapa-hero-person[hidden] { display: none; }
.mapa-hero-person img {
  display: block; height: clamp(220px, 24vw, 330px); width: auto; max-width: 100%;
  filter: drop-shadow(0 18px 26px rgba(90,0,8,.4));
}

/* collage a la derecha: ocupa TODO el lado, con borde diagonal */
.mapa-hero-visual {
  grid-column: 2; grid-row: 1 / span 2;
  position: relative; overflow: hidden; margin-left: -8%; z-index: 1;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
  min-height: 420px; background: var(--tjx-red-dark);
}
.collage-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; filter: saturate(.85) contrast(1.08); }
.collage-red {
  position: absolute; inset: 0; mix-blend-mode: multiply;
  background: linear-gradient(160deg, rgba(246,52,64,.86) 0%, rgba(215,24,38,.8) 55%, rgba(150,8,22,.88) 100%);
}
.collage-red::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.34), transparent 55%);
  mix-blend-mode: screen;
}
.collage-dots {
  position: absolute; inset: 0; opacity: .28; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.3px, transparent 1.6px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%); mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}
.collage-route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; overflow: visible; }
.collage-route path { animation: routeFlow 3.4s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -28; } }

/* calcomanías: contorno blanco grueso + sombra, como stickers pegados */
.stk, .cpin { position: absolute; display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.stk {
  --o: 3px;
  filter: drop-shadow(var(--o) 0 0 #fff) drop-shadow(calc(var(--o) * -1) 0 0 #fff) drop-shadow(0 var(--o) 0 #fff) drop-shadow(0 calc(var(--o) * -1) 0 #fff)
          drop-shadow(0 16px 20px rgba(80,0,10,.45));
  transition: transform .5s var(--ease-out);
}
.stk-rio     { right: 7%;  top: 7%;     width: auto; height: 58%; transform: rotate(7deg);  z-index: 3; animation: floaty 6.5s ease-in-out infinite; }
.stk-cecut   { left: 15%;  top: 9%;     width: 44%;               transform: rotate(-8deg); z-index: 4; animation: floaty 7.5s ease-in-out -2s infinite; }
.stk-costco  { left: 17%;  bottom: 7%;  width: 40%;               transform: rotate(4deg);  z-index: 5; animation: floaty 8s ease-in-out -4s infinite; }
.stk-tijeras { right: 20%; bottom: 5%;  width: auto; height: 40%; transform: rotate(-6deg); z-index: 4; animation: floaty 7s ease-in-out -1s infinite; }
.mapa-hero:hover .stk-cecut   { transform: rotate(-11deg) scale(1.05); }
.mapa-hero:hover .stk-rio     { transform: rotate(10deg) scale(1.05); }
.mapa-hero:hover .stk-costco  { transform: rotate(7deg) scale(1.05); }
.mapa-hero:hover .stk-tijeras { transform: rotate(-9deg) scale(1.06); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

.cpin { width: 26px; z-index: 6; filter: drop-shadow(0 6px 8px rgba(80,0,10,.4)); animation: floaty 5s ease-in-out infinite; }
.cpin-1 { left: 44%; top: 6%;   transform: rotate(-14deg); animation-delay: -1s; }
.cpin-2 { right: 6%; top: 66%;  transform: rotate(12deg);  animation-delay: -2.5s; width: 30px; }
.cpin-3 { left: 9%;  top: 50%;  transform: rotate(-8deg);  animation-delay: -.5s;  width: 24px; }
.cpin-4 { left: 56%; bottom: 25%; transform: rotate(10deg); animation-delay: -3s; width: 22px; }
.cnote { position: absolute; z-index: 6; color: #FFD166; font: 700 2.1rem/1 var(--display); text-shadow: 0 3px 0 rgba(90,0,8,.35); animation: floaty 4.6s ease-in-out infinite; }
.cnote-1 { left: 7%;  top: 30%; transform: rotate(-12deg); }
.cnote-2 { right: 34%; top: 3%; transform: rotate(10deg); animation-delay: -1.5s; font-size: 2.6rem; }
.cnote-3 { right: 5%; bottom: 36%; transform: rotate(-6deg); animation-delay: -2.8s; }
.collage-eq { position: absolute; z-index: 6; right: 8%; bottom: 7%; display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.collage-eq span { width: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.4); animation: eqBounce 1s ease-in-out infinite; animation-delay: var(--d); height: 100%; transform-origin: bottom; }
.collage-eq span:nth-child(even) { background: #FFD166; }
@keyframes eqBounce { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.collage-chip {
  position: absolute; z-index: 7; left: 18%; bottom: 3.5%;
  background: #fff; color: var(--tjx-red-dark); font: 700 .74rem/1 var(--display); letter-spacing: .02em;
  padding: .5rem .85rem; border-radius: 999px; transform: rotate(-3deg);
  box-shadow: 0 8px 18px rgba(80,0,10,.35);
}
@media (prefers-reduced-motion: reduce) {
  .stk, .cpin, .cnote, .collage-eq span, .collage-route path { animation: none !important; }
}

@media (max-width: 860px) {
  .mapa-hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .mapa-hero-text { padding-bottom: .5rem; }
  .mapa-hero-person { grid-row: 2; justify-self: center; margin: 0; }
  .mapa-hero-visual { grid-column: 1; grid-row: 3; margin-left: 0; clip-path: none; min-height: 380px; }
}

/* =============================================================
   9b. Rutas de taxi y camión — tarjeta azul, más pequeña y en espejo de la del mapa:
   la foto va a la IZQUIERDA bajo un velo azul (igual que el mapa bajo el velo rojo) con la
   calcomanía de los vehículos encima; el texto queda a la derecha. Lleva a mapa-interactivo.html#rutas.
   ============================================================= */
.mapa-hero + .rutas-hero { margin-top: 1.75rem; }
.rutas-hero {
  position: relative; display: grid; grid-template-columns: 1.65fr 1fr; align-items: stretch;
  border-radius: 28px; overflow: hidden; isolation: isolate; min-height: 340px;
  background: linear-gradient(225deg, #4C79FF 0%, #2A55E6 42%, #1B38B0 100%); color: #fff;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.rutas-hero:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(27, 56, 176, .4); }
.rutas-hero-visual {
  grid-column: 1; grid-row: 1; position: relative; overflow: hidden; margin-right: -8%; z-index: 1;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); min-height: 300px; background: #1B38B0;
}
.rutas-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 55%; filter: saturate(1) contrast(1.05); }
.rutas-blue {
  position: absolute; inset: 0; mix-blend-mode: multiply;
  background: linear-gradient(200deg, rgba(76,121,255,.78) 0%, rgba(42,85,230,.68) 55%, rgba(18,40,150,.8) 100%);
}
.rutas-blue::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 15% 0%, rgba(255,255,255,.3), transparent 55%); mix-blend-mode: screen; }
.rutas-hero .collage-route { opacity: .3; }
.rutas-hero .collage-dots { -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 55%); mask-image: linear-gradient(160deg, #000 0%, transparent 55%); }
.rutas-sticker {
  position: absolute; z-index: 4; left: 5%; top: 46%; width: min(68%, 380px); height: auto; translate: 0 -50%; transform: rotate(-4deg);
  filter: drop-shadow(0 18px 20px rgba(8, 20, 90, .5)); user-select: none; -webkit-user-drag: none;
  animation: floaty 7s ease-in-out infinite; transition: transform .5s var(--ease-out);
}
.rutas-sticker[hidden] { display: none; }
.rutas-hero:hover .rutas-sticker { transform: rotate(-1deg) scale(1.05); }
.rutas-chip { left: 8%; right: auto; bottom: 7%; color: #1B38B0; box-shadow: 0 8px 18px rgba(8, 20, 90, .4); z-index: 7; }
.rutas-hero-text { grid-column: 2; grid-row: 1; padding: clamp(1.75rem, 3.6vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 3.6vw, 3rem) clamp(3rem, 7vw, 5.75rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; position: relative; z-index: 3; }
.rutas-hero .mapa-hero-title { font-size: clamp(1.6rem, 2.7vw, 2.25rem); text-shadow: 0 2px 0 rgba(10, 20, 100, .3); }
.rutas-hero .mapa-hero-cta { color: #1B38B0; box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(8, 20, 90, .38); }
.rutas-hero:hover .mapa-hero-cta { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .rutas-sticker { animation: none !important; } }
@media (max-width: 860px) {
  .rutas-hero { grid-template-columns: 1fr; min-height: 0; }
  .rutas-hero-visual { grid-column: 1; grid-row: 1; margin-right: 0; clip-path: none; min-height: 250px; }
  .rutas-hero-text { grid-column: 1; grid-row: 2; padding: 1.5rem 1.5rem 1.9rem; }
  .rutas-sticker { width: min(72%, 320px); }
}

/* =============================================================
   10. Footer
   ============================================================= */
.site-footer {
  padding: 3rem clamp(1.25rem, 6vw, 5rem) 3.5rem;
  text-align: center; color: var(--ink-mute); font-size: .85rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.footer-symbol { width: 28px; height: 28px; opacity: .8; }
.footer-note { font-size: .75rem; opacity: .7; }

/* =============================================================
   11. Scroll reveal — generic [data-reveal] system
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   12. Assembling logo halves — the two diagonal pieces of the TJX
   symbol (sky+blue checkmark, amber+orange flipped checkmark) drift
   across the page as the user scrolls and converge into the full mark
   by the time they reach the Mapa section. Driven by --assemble
   (0 → 1), set from main.js on scroll. z-index:-1 so real content —
   which is normal in-flow, non-positioned — always paints above them.
   ============================================================= */
.assemble-shape {
  position: fixed; z-index: -1; pointer-events: none;
  top: 38%;
  width: min(30vw, 380px); height: min(30vw, 380px);
  clip-path: polygon(20% 30%, 45% 0%, 100% 55%, 75% 85%, 48% 58%, 18% 88%, 0% 62%);
  opacity: .17;
  will-change: transform;
}
.assemble-shape--blue {
  left: -8%;
  background: linear-gradient(135deg, var(--tjx-blue), var(--tjx-sky));
  transform:
    translate(calc(var(--assemble, 0) * 44vw), calc((1 - var(--assemble, 0)) * -14vh))
    rotate(calc((1 - var(--assemble, 0)) * -22deg))
    scale(calc(1 - var(--assemble, 0) * 0.22));
}
.assemble-shape--orange {
  right: -8%;
  background: linear-gradient(135deg, var(--tjx-orange), var(--tjx-amber));
  transform:
    translate(calc(var(--assemble, 0) * -44vw), calc((1 - var(--assemble, 0)) * 14vh))
    rotate(calc((1 - var(--assemble, 0)) * 22deg))
    scale(calc(1 - var(--assemble, 0) * 0.22));
}

/* Continuously-moving chevron train — a small "always something is
   moving" accent, subtle and slow so it never feels intrusive. */
.deco-arrows {
  position: absolute; z-index: -1; pointer-events: none;
  top: 120px; left: -40px;
  width: 140px; height: 28px;
  display: flex; align-items: center; gap: .4rem;
  color: var(--tjx-sky);
  opacity: .55;
  overflow: hidden;
}
.deco-arrows svg { width: 22px; height: 22px; flex: 0 0 auto; animation: arrowDrift 3.2s ease-in-out infinite; }
.deco-arrows svg:nth-child(2) { animation-delay: .3s; }
.deco-arrows svg:nth-child(3) { animation-delay: .6s; }
@keyframes arrowDrift {
  0%, 100% { transform: translateX(0); opacity: .35; }
  50% { transform: translateX(14px); opacity: .9; }
}

/* =============================================================
   13. Mapa Interactivo landing teaser — ambient motion band
   (falling location pins + a small audio-equalizer motif), still on
   white so it reads as a light touch rather than a busy illustration.
   ============================================================= */
.mapa-ambient {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin-inline: auto;
  padding: 0 clamp(1.25rem, 6vw, 5rem) 2.25rem;
}
.ambient-pins { position: relative; height: 64px; display: flex; align-items: flex-start; gap: 1.6rem; }
.ambient-pin {
  width: 13px; height: 13px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--tjx-orange);
  opacity: 0;
  animation: pinFall 3.4s ease-in infinite;
  animation-delay: var(--d, 0s);
}
.ambient-pin:nth-child(2) { background: var(--tjx-blue); }
.ambient-pin:nth-child(3) { background: var(--tjx-amber); }
.ambient-pin:nth-child(4) { background: var(--tjx-sky); }
.ambient-pin:nth-child(5) { background: var(--tjx-orange); }
@keyframes pinFall {
  0%   { transform: translateY(-6px) rotate(-45deg); opacity: 0; }
  18%  { opacity: .85; }
  78%  { opacity: .85; }
  100% { transform: translateY(52px) rotate(-45deg); opacity: 0; }
}

.ambient-eq { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.ambient-eq span {
  width: 6px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--tjx-blue), var(--tjx-sky));
  animation: eqBar 1.15s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.ambient-eq span:nth-child(odd) { background: linear-gradient(180deg, var(--tjx-orange), var(--tjx-amber)); }
@keyframes eqBar {
  0%, 100% { height: 9px; }
  50% { height: 40px; }
}

@media (max-width: 700px) {
  .assemble-shape, .deco-arrows { display: none; } /* revisit in the mobile pass */
  .mapa-ambient { display: none; }
}

/* =============================================================
   14. Reduced motion — only intrusive stuff gates here
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .transition-icon .t-frame { transition-duration: .01s; }
}
