/* =============================================================
   MAPAS DE RUTA (guías descargables) — sección #mapas + modal
   ============================================================= */
.maps { background: var(--navy-950); color: #fff; }
.maps .eyebrow { color: var(--sky-l); }
.maps h2 em { color: var(--sky-l); }
.maps__head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.maps__lead { margin-top: 20px; color: rgba(255,255,255,.82); font-size: clamp(17px, 1.5vw, 19px); max-width: 62ch; }
.maps__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 18px; }
.map-card { display: flex; flex-direction: column; gap: 10px; }
.map-card__poster { position: relative; display: block; width: 100%; aspect-ratio: 3/4; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; background: var(--navy); color: #fff; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.map-card__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.map-card__poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,58,111,.60) 0%, rgba(30,58,111,.12) 34%, rgba(30,58,111,.94) 100%); }
.map-card__poster:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -24px rgba(0,0,0,.75); }
.map-card__poster:hover img { transform: scale(1.05); }
.map-card__num { position: absolute; top: 12px; left: 14px; font-family: var(--display); font-size: 40px; line-height: 1; }
.map-card__dolor { position: absolute; top: 14px; right: 12px; max-width: 60%; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); line-height: 1.2; text-align: right; }
.map-card__title { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--display); text-transform: uppercase; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.1; letter-spacing: .01em; }
.map-card__sub { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.8); }
.map-card__meta { font-size: 12.5px; font-weight: 600; color: var(--sky-l); letter-spacing: .04em; }
.map-card__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.38); background: transparent; color: #fff; font-weight: 600; font-size: 14px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.map-card__cta svg { width: 17px; height: 17px; }
.map-card__cta:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.maps__note { margin-top: clamp(40px, 5vw, 64px); font-size: 18px; color: rgba(255,255,255,.86); }
.maps__note .link-arrow { color: #fff; margin-left: 6px; }
.maps__extra { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid rgba(255,255,255,.18); }
.maps__extra-title { font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-l); margin-bottom: 24px; }
.maps__extra .resource-card { color: var(--ink); }

.guia-modal { border: 0; border-radius: 22px; padding: 36px 32px 32px; width: calc(100% - 32px); max-width: 460px; color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.guia-modal::backdrop { background: rgba(30,58,111,.72); backdrop-filter: blur(4px); }
.guia-modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.guia-modal__close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.guia-modal__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; transition: background .2s; }
.guia-modal__close:hover { background: var(--line); }
.guia-modal__close svg { width: 18px; height: 18px; }
.guia-modal__title { font-weight: 700; font-size: 22px; line-height: 1.25; margin: 0 0 22px; padding-right: 24px; }
.guia-form { display: grid; gap: 16px; }
.guia-form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--mut); line-height: 1.45; }
.guia-form__check input { margin-top: 3px; flex: none; }
.guia-form__check a { color: var(--navy); text-decoration: underline; }
.guia-form .btn { width: 100%; }
.guia-form__status { min-height: 1.3em; font-size: 14px; font-weight: 600; text-align: center; color: #B91C1C; }
.guia-ok { display: grid; gap: 16px; justify-items: start; }
.guia-ok[hidden], .guia-form[hidden] { display: none; }

@media (max-width: 1100px) { .maps__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) {
  .maps__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .map-card__num { font-size: 32px; }
  .map-card__dolor { font-size: 9.5px; }
  .map-card__title { font-size: 16px; left: 10px; right: 10px; bottom: 10px; }
  .map-card__sub { font-size: 13px; }
}

/* =============================================================
   HOME — teaser "Mapas de ruta" con carrusel en movimiento
   ============================================================= */
.tz { overflow: hidden; }
.tz__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.tz__head .maps__lead { margin-top: 18px; }
.tz__cta { display: grid; gap: 12px; justify-items: start; }
.tz__note { font-size: 14px; color: rgba(255,255,255,.72); }
.tz__rail { margin-top: clamp(36px, 5vw, 60px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.tz__track { display: flex; gap: 16px; width: max-content; padding-right: 16px; animation: tz-scroll 80s linear infinite; }
.tz__rail:hover .tz__track, .tz__rail:focus-within .tz__track { animation-play-state: paused; }
@keyframes tz-scroll { to { transform: translateX(-50%); } }
.tz-card { position: relative; flex: none; width: clamp(180px, 17vw, 240px); aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; color: #fff; isolation: isolate; background: var(--navy); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tz-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.tz-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,58,111,.55) 0%, rgba(30,58,111,.10) 34%, rgba(30,58,111,.94) 100%); }
.tz-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -24px rgba(0,0,0,.75); }
.tz-card:hover img { transform: scale(1.06); }
.tz-card__num { position: absolute; top: 12px; left: 14px; font-family: var(--display); font-size: 38px; line-height: 1; }
.tz-card__title { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--display); text-transform: uppercase; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.1; letter-spacing: .01em; }
@media (prefers-reduced-motion: reduce) {
  .tz__rail { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tz__track { animation: none; width: max-content; }
  .tz-card[aria-hidden="true"] { display: none; }
}

/* =============================================================
   LANDING — mapas-de-ruta.html
   ============================================================= */
.mapx-hero { position: relative; background: var(--navy-950); color: #fff; padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.mapx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 480px at 85% 40%, rgba(59,130,246,.35), transparent 62%), radial-gradient(600px 400px at 0% 100%, rgba(59,130,246,.25), transparent 60%); }
.mapx-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(620px, 74svh); }
.mapx-hero .eyebrow { color: var(--sky-l); }
.mapx-hero h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1; }
.mapx-hero__lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19.5px); color: rgba(255,255,255,.84); max-width: 54ch; }
.mapx-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; color: rgba(255,255,255,.84); font-size: 15px; }
.mapx-hero__facts b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--sky-l); margin-right: 6px; letter-spacing: .01em; }

.mapx-mosaic { position: relative; height: min(600px, 70svh); overflow: hidden; border-radius: 22px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.mosaic__in { position: absolute; inset: -10% -8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(7deg); }
.mosaic__col { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; animation: mosaic-up 70s linear infinite; }
.mosaic__col:nth-child(2) { animation-direction: reverse; animation-duration: 88s; }
.mosaic__col:nth-child(3) { animation-duration: 78s; }
.mosaic__col img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
@keyframes mosaic-up { to { transform: translateY(-50%); } }

.mapx-catalog { background: #fff; color: var(--ink); }
.mapx-catalog__head { margin-bottom: 22px; }
.mapx-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.mapx-filters button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid #C5D0E2; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.mapx-filters button span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg2); color: var(--mut); }
.mapx-filters button:hover { border-color: var(--navy); transform: translateY(-1px); }
.mapx-filters button.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.mapx-filters button.is-on span { background: rgba(255,255,255,.2); color: #fff; }
.map-card.is-hidden { display: none; }
.map-card:target .map-card__poster { box-shadow: 0 0 0 3px var(--sky), 0 28px 50px -24px rgba(0,0,0,.6); }
.map-card { scroll-margin-top: calc(var(--header-h) + 24px); }
.mapx-empty { margin-top: 24px; color: var(--mut); }
.mapx-empty[hidden] { display: none; }
.maps--light .map-card__sub { color: var(--mut); }
.maps--light .map-card__meta { color: var(--navy); }
.maps--light .map-card__cta { color: var(--navy); border-color: #C5D0E2; }
.maps--light .map-card__cta:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

@media (max-width: 960px) {
  .mapx-hero__inner { grid-template-columns: 1fr; }
  .mapx-mosaic { height: 340px; }
}
@media (prefers-reduced-motion: reduce) { .mosaic__col { animation: none; } }

.mapx-hero .btn--amber, .tz .btn--amber { background: #fff; color: var(--navy); }
.mapx-hero .btn--amber:hover, .tz .btn--amber:hover { background: var(--bg2); color: var(--navy); }
.mapx-hero .link-arrow { color: #fff; }

.mapx-aviso { margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid var(--sky); background: var(--bg2, #F8F9FB); border-radius: 0 8px 8px 0; color: var(--mut, #525252); font-size: 14.5px; line-height: 1.55; max-width: 78ch; }
.mapx-aviso strong { color: var(--navy); }

/* Exportar servicios: 6 tarjetas, separadas del catálogo de productos */
.mapx-servicios { background: var(--bg2, #F8F9FB); }
.mapx-servicios .mapx-aviso { background: #fff; }
.mapx-grid--seis { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
@media (max-width: 780px) { .mapx-grid--seis { grid-template-columns: repeat(2, 1fr); } }

/* Portada: dos puertas (servicios y productos), mismo tamaño y colores contrastados */
.puertas { background: var(--bg2, #F8F9FB); color: var(--navy); }
.puertas__head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.puertas__head .eyebrow { justify-content: center; }
.puertas__head h2 em { color: #3B82F6; }
.puertas__par { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.puerta { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(30,58,111,.55); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.puerta:hover { transform: translateY(-6px); box-shadow: 0 44px 70px -34px rgba(30,58,111,.65); }
.puerta__escena { position: relative; display: block; aspect-ratio: 5/4; overflow: hidden; background: var(--navy); }
.puerta__escena img { width: 100%; height: 100%; object-fit: cover; transform-origin: 40% 70%; animation: puerta-camara 18s ease-in-out infinite alternate; }
.puerta--productos .puerta__escena img { transform-origin: 62% 45%; animation-delay: -9s; }
@keyframes puerta-camara { from { transform: scale(1.02); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.puerta__escena::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%); transform: translateX(-100%); animation: puerta-luz 9s ease-in-out infinite; }
.puerta--productos .puerta__escena::after { animation-delay: -4.5s; }
@keyframes puerta-luz { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.puerta__dato { position: absolute; z-index: 1; top: 18px; left: 18px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--navy); }
.puerta__pie { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 1; padding: clamp(24px, 3vw, 40px); }
.puerta__titulo { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.02; }
.puerta__texto { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.5; }
.puerta__boton { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 15.5px; }
.puerta__boton svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.puerta:hover .puerta__boton svg { transform: translateX(5px); }
.puerta--servicios .puerta__pie { background: #fff; color: var(--navy); }
.puerta--servicios .puerta__boton { background: var(--navy); color: #fff; }
.puerta--productos .puerta__pie { background: var(--navy); color: #fff; }
.puerta--productos .puerta__titulo { color: #fff; }
.puerta--productos .puerta__boton { background: #fff; color: var(--navy); }
.puerta:focus-visible { outline: 3px solid #3B82F6; outline-offset: 4px; }
@media (max-width: 780px) { .puertas__par { grid-template-columns: 1fr; } .puerta__escena { aspect-ratio: 4/3; } }
@media (prefers-reduced-motion: reduce) { .puerta__escena img, .puerta__escena::after { animation: none; } .puerta__escena::after { display: none; } }
