/* ════════════════════════════════════════════════════════
   ARMA TU ITINERARIO · Qué hacer (3-oct-2026)
   Hoja propia de la sección #arma-itinerario (la pinta
   arma-itinerario-20261003.js). Usa los tokens de estilos.css.
   Leaflet trae su hoja DESPUÉS de esta: por eso las reglas del
   mapa llevan un selector más largo que las suyas.
   6-oct-2026: lugares de temporada, Compartir (WhatsApp / Copiar) e
   Historia para Instagram.
   ════════════════════════════════════════════════════════ */
.arma-sec{background:var(--crema);border-top:1px solid var(--linea);text-align:left}
.arma-cab{max-width:760px}
.arma-elegir,.arma-ruta-col{min-width:0}
.arma-cab .lead{max-width:62ch}

.arma-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);gap:32px;margin-top:34px;align-items:start}

.arma-paso{display:flex;align-items:center;gap:10px;margin:0 0 14px;
  font-family:'Oswald';font-weight:600;letter-spacing:.12em;text-transform:uppercase;font-size:13px;color:var(--tinta)}
.arma-paso b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--tinta);color:#fff;
  font-size:14px;letter-spacing:0}

/* Sin JavaScript: solo el aviso */
.arma-sin-js{margin:0;padding:16px 18px;border-radius:14px;background:#fff;border:1px solid var(--linea);color:var(--soft)}
.arma-sec.listo .arma-sin-js{display:none}
.arma-sec:not(.listo) .arma-filtros,
.arma-sec:not(.listo) .arma-ruta-col{display:none}

/* ───── Filtros ───── */
.arma-filtros{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.arma-filtro{min-height:40px;padding:0 16px;border-radius:999px;border:1.5px solid var(--linea);background:#fff;color:var(--tinta);
  font:600 14px/1 'Figtree',system-ui,sans-serif;cursor:pointer;transition:background .18s,border-color .18s,color .18s;touch-action:manipulation}
.arma-filtro:hover{border-color:var(--tinta)}
.arma-filtro[aria-pressed="true"]{background:var(--tinta);border-color:var(--tinta);color:#fff}
.arma-filtro:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:2px}

/* ───── Lista de lugares ───── */
.arma-lista{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:14px}
.arma-item{display:flex}
.arma-lugar{position:relative;display:flex;flex-direction:column;width:100%;padding:0;text-align:left;cursor:pointer;
  background:#fff;border:1.5px solid var(--linea);border-radius:16px;overflow:hidden;color:var(--tinta);font:inherit;
  box-shadow:0 12px 26px -22px rgba(42,28,68,.5);transition:border-color .18s,transform .18s,box-shadow .18s;touch-action:manipulation}
.arma-lugar:hover{transform:translateY(-2px);border-color:var(--c,var(--rosa))}
.arma-lugar:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:3px}
.arma-lugar[aria-pressed="true"]{border-color:var(--c,var(--rosa));box-shadow:0 0 0 2px var(--c,var(--rosa)),0 12px 26px -20px rgba(42,28,68,.55)}

.arma-foto{display:block;position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--c,var(--rosa))}
.arma-foto img{display:block;width:100%;height:100%}
.arma-foto-img{object-fit:cover}
.arma-foto-esfera{object-fit:contain;padding:18%;filter:drop-shadow(0 8px 12px rgba(0,0,0,.25))}
.arma-foto::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(30,21,48,.28))}

.arma-lugar-tx{display:flex;flex-direction:column;gap:6px;padding:11px 13px 13px;flex:1}
.arma-lugar-n{font-weight:700;font-size:15px;line-height:1.25}
.arma-lugar-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12.5px;color:var(--soft)}
.arma-cat{font-family:'Oswald';font-weight:500;letter-spacing:.1em;text-transform:uppercase;font-size:11px;color:var(--c-txt,var(--soft))}
.c-purpura .arma-cat{color:var(--purpura)}

/* ───── Lugares de temporada ───── */
.arma-temp{position:absolute;left:10px;top:10px;z-index:1;padding:5px 9px 4px;border-radius:999px;background:var(--tinta);color:#fff;
  font:600 10.5px/1 'Oswald',sans-serif;letter-spacing:.12em;text-transform:uppercase;box-shadow:0 4px 12px rgba(30,21,48,.3)}
/* 7-oct: nunca debajo del botón «+» de la esquina (34 px + 10 px de orilla + 4 de aire) */
.arma-temp{max-width:calc(100% - 58px);letter-spacing:.1em}
.arma-temp::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--amarillo);vertical-align:1px}
.arma-temp-f{font-size:12.5px;line-height:1.35;font-weight:700;color:var(--purpura)}
.arma-temp-f2{font-size:12px;line-height:1.35;color:var(--soft)}
.arma-fuera .arma-temp-f{color:var(--tinta)}
.arma-fuera .arma-foto{background:#4a4160}
.arma-fuera .arma-foto img{filter:grayscale(.75) brightness(.9);opacity:.6}
.arma-fuera .arma-temp::before{background:#b0a7c0}
.arma-fuera .arma-lugar-n{color:var(--soft)}
.arma-fuera[aria-pressed="true"] .arma-foto img{opacity:.8}
.arma-parada-temp{font-size:12px;line-height:1.35;font-weight:600;color:var(--purpura)}
.arma-parada-temp.fuera{color:var(--rojo-txt)}

/* ───── Avisos: «Por evento» y «Con visita guiada» (7-oct-2026) ───── */
.arma-temp-evento::before{background:var(--rosa)}
.arma-temp-guiada::before{background:var(--verde)}
/* La liga al calendario va fuera del botón de la tarjeta (no se anidan
   controles): se monta encima de su parte de abajo, que deja el hueco. */
.arma-item.con-cal{position:relative}
.arma-aviso-evento .arma-lugar-tx{padding-bottom:44px}
.arma-cal{color:var(--rosa-txt);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.arma-cal:hover{color:var(--tinta)}
.arma-cal:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:2px;border-radius:4px}
.con-cal > .arma-cal{position:absolute;left:14px;bottom:13px;z-index:2;display:inline-flex;align-items:center;min-height:28px;font-size:12.5px;line-height:1.2}
.arma-parada-temp .arma-cal{font-size:12px}

.arma-marca{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;
  background:rgba(255,255,255,.94);color:var(--tinta);box-shadow:0 4px 12px rgba(30,21,48,.3)}
.arma-marca svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.arma-lugar[aria-pressed="true"] .arma-marca{background:var(--c,var(--rosa));color:#fff}
.arma-lugar[aria-pressed="true"].c-amarillo .arma-marca{color:var(--tinta)}
.arma-marca i{position:absolute;bottom:-6px;left:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:var(--tinta);color:#fff;
  font:600 11.5px/20px 'Oswald',sans-serif;font-style:normal;text-align:center}

/* Celular: atajo a la ruta mientras eliges */
.arma-ir{display:none}

/* ───── Columna de la ruta ───── */
.arma-ruta-col{position:sticky;top:92px}
.arma-ruta-caja{background:#fff;border:1px solid var(--linea);border-radius:22px;padding:24px 22px 20px;
  box-shadow:0 24px 46px -30px rgba(42,28,68,.5)}
.arma-ruta-caja:focus{outline:none}
#armaRutaCaja{scroll-margin-top:84px}   /* «Ver mi ruta» (#armaRutaCaja): que el encabezado no tape el inicio */
.arma-imp-tit{display:none}

.arma-resumen{display:grid;gap:2px;margin:0 0 14px}
.arma-resumen:empty{display:none}
.arma-resumen b{font-family:'Oswald';font-weight:600;letter-spacing:.08em;text-transform:uppercase;font-size:12.5px;color:var(--rosa-txt)}
.arma-resumen span{font-family:'Fraunces';font-weight:900;font-size:24px;line-height:1.15;color:var(--tinta)}
.arma-resumen small{font-size:13px;color:var(--soft)}

.arma-vacio{margin:0 0 14px;padding:16px;border-radius:14px;border:1.5px dashed var(--linea);color:var(--soft);font-size:14.5px;line-height:1.55}
.arma-vacio[hidden],.arma-ruta[hidden]{display:none}

.arma-ruta{list-style:none;margin:0 0 16px;padding:0;max-height:420px;overflow:auto;overscroll-behavior:contain}
/* 7-oct: la columna fija no puede medir más que la ventana: «Compartir», «Historia» e «Imprimir» quedaban
   debajo del borde desde 3 paradas (con avisos «Por evento») y había que bajar toda la lista para verlos.
   La lista cede alto según la ventana (sigue con su propio scroll) y, en pantallas bajas, la columna se recorre sola. */
@media (min-width:1021px){
  .arma-ruta-col{max-height:calc(100vh - 104px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .arma-ruta{max-height:clamp(180px,calc(100vh - 690px),420px)}
}
.arma-parada{position:relative;border-radius:14px}
.arma-fila{display:grid;grid-template-columns:18px 30px minmax(0,1fr) auto;align-items:center;gap:8px;
  padding:8px 6px 8px 4px;border-radius:14px;background:var(--papel);border:1px solid var(--linea)}
.arma-asa{display:grid;place-items:center;color:#b0a7c0;cursor:grab}
.arma-asa svg{width:16px;height:16px;fill:currentColor}
.arma-num{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--c,var(--rosa));color:#fff;
  font:600 14px/1 'Oswald',sans-serif;box-shadow:0 0 0 2px #fff}
.c-amarillo .arma-num{color:var(--tinta)}
.arma-parada-tx{min-width:0;display:grid;gap:2px}
.arma-parada-tx b{font-size:14.5px;line-height:1.25;overflow-wrap:anywhere}
.arma-parada-meta{font-size:12.5px;color:var(--soft)}
.arma-bots{display:flex;gap:2px}
.arma-mini{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--tinta);
  cursor:pointer;touch-action:manipulation}
.arma-mini svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.arma-mini:hover{background:var(--crema)}
.arma-mini:disabled{opacity:.28;cursor:default;background:transparent}
.arma-mini:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:1px}
.arma-quitar{color:var(--rojo-txt)}

.arma-tramo{display:flex;align-items:center;gap:8px;margin:0;padding:6px 0 6px 42px;font-size:12.5px;color:var(--soft);position:relative}
.arma-tramo::before{content:"";position:absolute;left:24px;top:2px;bottom:2px;border-left:3px dotted #8d84a0}
.arma-tramo-auto::before{border-left-style:dashed}
.arma-tramo span:first-child{font-weight:700;color:var(--tinta)}
.arma-tramo-dist::before{content:"·";margin-right:8px;color:#b0a7c0}

/* Arrastrar */
.arma-parada.arrastrando{opacity:.45}
.arma-parada.sobre-arriba .arma-fila{box-shadow:0 -3px 0 var(--rosa)}
.arma-parada.sobre-abajo .arma-fila{box-shadow:0 3px 0 var(--rosa)}

/* ───── Mapa ───── */
.arma-mapa{position:relative;height:300px;border-radius:16px;overflow:hidden;border:1px solid var(--linea);
  background-color:#F3EDE3;
  background-image:linear-gradient(rgba(36,29,56,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(36,29,56,.05) 1px,transparent 1px);
  background-size:40px 40px}
.arma-mapa.leaflet-container{font-family:'Figtree',system-ui,sans-serif;background-color:#F3EDE3}
.arma-mapa-estado{position:absolute;inset:0;display:grid;place-content:center;margin:0;padding:24px;text-align:center;
  font-family:'Oswald',sans-serif;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--soft)}
.arma-mapa-error{font-family:inherit;letter-spacing:0;text-transform:none;font-size:15px;line-height:1.5;color:var(--tinta)}
.arma-sec .arma-mapa .leaflet-control-zoom{border:0;box-shadow:0 6px 18px rgba(36,29,56,.18);border-radius:12px;overflow:hidden}
.arma-sec .arma-mapa .leaflet-control-zoom a{width:38px;height:38px;line-height:36px;font-size:20px;color:var(--tinta);border-bottom-color:var(--linea)}
.arma-sec .arma-mapa .leaflet-control-zoom a:hover{background:var(--crema)}
.arma-sec .arma-mapa .leaflet-control-attribution{font-size:11px;background:rgba(255,253,248,.86);color:var(--soft)}
.arma-sec .arma-mapa .leaflet-control-attribution a{color:var(--soft)}
.arma-sec .arma-mapa .arma-pin-ico{background:none;border:0;display:grid;place-items:center}
.arma-pin{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--c,var(--rosa));color:#fff;
  font:600 15px/1 'Oswald',sans-serif;box-shadow:0 0 0 3px #fff,0 6px 14px rgba(36,29,56,.34)}
.arma-pin.c-amarillo{color:var(--tinta)}
.arma-sec .arma-mapa path.arma-l-halo{stroke:#fff}
.arma-sec .arma-mapa path.arma-l{stroke:#4a4160}

/* ───── Acciones ───── */
.arma-acciones{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.arma-acciones .btn{flex:1 1 200px;justify-content:center;min-height:48px}
.arma-acciones svg{flex:0 0 auto}
.arma-btn2{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:999px;
  border:2px solid var(--tinta);background:transparent;color:var(--tinta);cursor:pointer;
  font-family:'Oswald';font-weight:600;letter-spacing:.05em;text-transform:uppercase;font-size:13px;transition:background .18s,color .18s;touch-action:manipulation}
.arma-btn2:hover{background:var(--tinta);color:#fff}
.arma-vaciar{border-color:transparent;text-decoration:underline;text-underline-offset:4px}
.arma-vaciar:hover{background:transparent;color:var(--rojo-txt)}
.arma-acciones button:disabled{opacity:.4;cursor:not-allowed;transform:none}
.arma-acciones button:disabled:hover{background:transparent;color:var(--tinta)}
.arma-acciones .btn:disabled:hover{background:var(--rosa-btn);color:#fff}
.arma-acciones button:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:3px}

/* ───── Compartir sin hoja del sistema: WhatsApp y Copiar enlace ───── */
.arma-otros{margin-top:14px;padding:14px;border-radius:16px;background:var(--crema);border:1px solid var(--linea)}
.arma-otros[hidden]{display:none}
.arma-otros p{margin:0 0 10px;font-size:14px;line-height:1.45;color:var(--tinta)}
.arma-otros-fila{display:flex;flex-wrap:wrap;gap:10px}
.arma-otros-fila>*{flex:1 1 180px}
.arma-wa{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:999px;
  background:#128C4A;color:#fff;font-family:'Oswald';font-weight:600;letter-spacing:.05em;text-transform:uppercase;font-size:13px;text-decoration:none}
.arma-wa svg{width:20px;height:20px}
.arma-wa:hover{filter:brightness(1.08)}
.arma-wa:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:3px}

/* ───── Historia para Instagram ───── */
.arma-historia{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:18px;align-items:start;margin-top:16px;padding:16px;
  border-radius:18px;background:#1e1530;color:#fff}
.arma-historia[hidden]{display:none}
.arma-lienzo{display:block;width:100%;height:auto;aspect-ratio:9/16;border-radius:12px;background:#2a1c44;box-shadow:0 14px 30px -14px rgba(0,0,0,.7)}
.arma-historia-tit{margin:2px 0 6px;font-family:'Fraunces';font-weight:900;font-size:21px;line-height:1.2}
.arma-historia .arma-nota{margin:0 0 14px;color:#d3c9e2}
.arma-historia-bots{display:flex;flex-wrap:wrap;gap:8px}
.arma-historia-bots .btn{flex:1 1 100%;justify-content:center;min-height:48px}
.arma-historia-bots .arma-btn2{flex:1 1 auto;border-color:#fff;color:#fff}
.arma-historia-bots .arma-btn2:hover{background:#fff;color:var(--tinta)}
.arma-historia-bots .arma-vaciar{border-color:transparent}
.arma-historia-bots .arma-vaciar:hover{background:transparent;color:#fff}
/* 7-oct: en el celular «Descargar» es «Guardar en Fotos» (lo descargado en el iPhone se va a Archivos) */
.arma-solo-cel,.arma-cel .arma-solo-pc{display:none}
.arma-cel .arma-solo-cel{display:inline}
.arma-historia button:focus-visible{outline:3px solid var(--amarillo);outline-offset:3px}

.arma-aviso{margin:10px 0 0;font-size:13.5px;line-height:1.5;color:var(--tinta);overflow-wrap:anywhere}
.arma-aviso:empty{display:none}
.arma-aviso:not(.visible){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.arma-aviso.visible{padding:10px 12px;border-radius:12px;background:var(--crema)}
.arma-nota{margin:14px 0 0;font-size:12.5px;line-height:1.5;color:var(--soft)}

@media (prefers-reduced-motion:reduce){
  .arma-lugar,.arma-filtro,.arma-btn2{transition:none}
  .arma-lugar:hover{transform:none}
}

/* ───── Tableta ───── */
@media (max-width:1020px){
  .arma-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .arma-ruta-col{position:static}
  .arma-ruta{max-height:none}
}

/* ───── Celular ───── */
@media (max-width:720px){
  .arma-grid{margin-top:24px}
  .arma-filtros{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px 14px;padding:2px 16px 6px;scrollbar-width:none}
  .arma-filtros::-webkit-scrollbar{display:none}
  .arma-filtro{flex:0 0 auto}
  .arma-lista{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .arma-lugar-tx{padding:9px 10px 11px}
  .arma-lugar-n{font-size:14px}
  .arma-marca{width:32px;height:32px;top:8px;right:8px}
  .arma-ruta-caja{padding:20px 14px 16px;border-radius:18px}
  .arma-fila{grid-template-columns:30px minmax(0,1fr) auto;padding-left:8px}
  .arma-asa{display:none}
  .arma-mini{width:40px;height:40px}
  .arma-tramo{padding-left:38px}
  .arma-tramo::before{left:21px}
  .arma-mapa{height:260px}
  .arma-acciones .btn,.arma-btn2{flex:1 1 100%}
  .arma-historia{grid-template-columns:minmax(0,1fr);padding:14px}
  .arma-lienzo{max-width:240px;margin:0 auto}
  .arma-temp{left:8px;top:8px;font-size:9.5px;padding:4px 7px 3px;letter-spacing:.06em;max-width:calc(100% - 50px)}
  /* Atajo flotante a la ruta mientras eliges */
  .arma-ir{position:sticky;bottom:14px;z-index:5;display:flex;align-items:center;justify-content:center;gap:10px;
    width:max-content;margin:16px auto 0;min-height:48px;padding:0 22px;border-radius:999px;background:var(--tinta);color:#fff;
    font-family:'Oswald';font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-size:13.5px;
    box-shadow:0 12px 26px -10px rgba(30,21,48,.6)}
  .arma-ir[hidden]{display:none}
  .arma-ir b{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:99px;background:var(--rosa-btn);font-size:13px}
  .arma-ir:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:3px}
}

/* ───── Imprimir: solo la ruta, con su mapa ───── */
@media print{
  html.arma-imprimiendo body>:not(#arma-itinerario){display:none!important}
  html.arma-imprimiendo body{background:#fff}
  html.arma-imprimiendo .arma-sec{padding:0;border:0;background:#fff}
  html.arma-imprimiendo .arma-cab,
  html.arma-imprimiendo .arma-elegir,
  html.arma-imprimiendo .arma-paso,
  html.arma-imprimiendo .arma-acciones,
  html.arma-imprimiendo .arma-aviso,
  html.arma-imprimiendo .arma-otros,
  html.arma-imprimiendo .arma-historia,
  html.arma-imprimiendo .arma-bots,
  html.arma-imprimiendo .arma-asa,
  html.arma-imprimiendo .leaflet-control-zoom{display:none!important}
  html.arma-imprimiendo .arma-grid{display:block;margin:0}
  html.arma-imprimiendo .arma-ruta-col{position:static}
  html.arma-imprimiendo .arma-ruta-caja{border:0;box-shadow:none;padding:0}
  html.arma-imprimiendo .arma-imp-tit{display:block;margin:0 0 6px;font-family:'Fraunces';font-weight:900;font-size:26px;color:#000}
  html.arma-imprimiendo .arma-ruta{max-height:none;overflow:visible}
  html.arma-imprimiendo .arma-parada{break-inside:avoid}
  html.arma-imprimiendo .arma-fila{grid-template-columns:30px minmax(0,1fr);padding:6px 10px}
  html.arma-imprimiendo .arma-mapa{height:380px;break-inside:avoid;margin-top:8px}
  html.arma-imprimiendo *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ════════════════════════════════════════════════════════
   8-oct-2026 · Guardado solo, Ver en el mapa, Cómo llegar y modo viaje
   (mi-ruta-20261008.js, arma-viaje-20261008.js)
   ════════════════════════════════════════════════════════ */
/* «Cómo llegar» de cada parada (Google Maps, solo esa parada) */
.arma-como-uno{display:inline-flex;align-items:center;gap:5px;width:max-content;min-height:30px;margin-top:2px;
  font-size:12.5px;font-weight:700;color:var(--rosa-txt);text-decoration:underline;text-underline-offset:2px}
.arma-como-uno svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round}
.arma-como-uno:hover{color:var(--tinta)}
.arma-como-uno:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:2px;border-radius:4px}

/* Ver en el mapa · Cómo llegar · Empezar mi recorrido */
.arma-llevar{margin-top:14px;display:grid;gap:10px}
.arma-llevar[hidden]{display:none}
.arma-llevar-fila{display:flex;flex-wrap:wrap;gap:10px}
.arma-llevar-fila>*{flex:1 1 160px}
.arma-llevar .arma-btn2{text-decoration:none}
.arma-llevar svg,.arma-viaje .arma-btn2 svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.arma-llevar .arma-nota{margin:0}
.arma-llevar .arma-btn2:focus-visible,.arma-viaje a:focus-visible,.arma-viaje button:focus-visible,.arma-pregunta button:focus-visible{outline:3px solid var(--rosa-txt);outline-offset:3px}
.arma-tramos{display:grid;gap:8px;padding:12px 14px;border-radius:16px;background:var(--crema);border:1px solid var(--linea)}
.arma-tramos .arma-nota{margin:0}
.arma-tramos-t{margin:0;font-family:'Oswald';font-weight:600;letter-spacing:.1em;text-transform:uppercase;font-size:12.5px;color:var(--tinta)}
.arma-tramo-btn{justify-content:flex-start;text-transform:none;letter-spacing:.02em;font-size:14px;background:#fff}
.arma-empezar{justify-content:center;min-height:52px;width:100%}
.arma-empezar-nota{padding:10px 12px;border-radius:12px;border:1.5px dashed var(--linea)}

/* «¿Abrir la ruta que te mandaron o seguir con la tuya?» */
.arma-pregunta{margin:0 0 16px;padding:16px;border-radius:16px;background:var(--crema);border:2px solid var(--rosa)}
.arma-pregunta[hidden]{display:none}
.arma-pregunta-t{margin:0 0 4px;font-family:'Fraunces';font-weight:900;font-size:19px;line-height:1.25;color:var(--tinta)}
.arma-pregunta-n{margin:0 0 12px;font-size:13.5px;color:var(--soft)}
.arma-pregunta-bots{display:flex;flex-wrap:wrap;gap:10px}
.arma-pregunta-bots>*{flex:1 1 180px;justify-content:center;min-height:48px}

/* «Tu ruta se guarda solo en este teléfono» */
.arma-guardada{display:flex;align-items:center;gap:6px;margin:12px 0 0;font-size:12.5px;color:var(--soft)}
.arma-guardada[hidden]{display:none}
/* un teléfono chiquito, dibujado con bordes */
.arma-guardada::before{content:"";flex:0 0 auto;width:9px;height:15px;border-radius:3px;border:1.6px solid currentColor;border-bottom-width:3.5px;opacity:.8}

/* ───── Modo viaje ───── */
.arma-viaje{scroll-margin-top:96px;margin:0 0 18px;padding:18px 16px 16px;border-radius:18px;background:#1e1530;color:#fff}
.arma-viaje[hidden]{display:none}
.arma-viaje .arma-nota{color:#d3c9e2}
.arma-v-cab{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:4px 12px;margin-bottom:14px}
.arma-v-tit{margin:0;font-family:'Fraunces';font-weight:900;font-size:22px;line-height:1.2}
.arma-v-tit:focus{outline:none}
.arma-v-avance{margin:0;font-family:'Oswald';font-weight:600;letter-spacing:.08em;font-size:15px;color:var(--amarillo)}
.arma-v-barra{grid-column:1/-1;width:100%;height:8px;border:0;border-radius:99px;overflow:hidden;background:rgba(255,255,255,.16);-webkit-appearance:none;appearance:none}
.arma-v-barra::-webkit-progress-bar{background:rgba(255,255,255,.16);border-radius:99px}
.arma-v-barra::-webkit-progress-value{background:var(--amarillo);border-radius:99px}
.arma-v-barra::-moz-progress-bar{background:var(--amarillo);border-radius:99px}
.arma-v-sig{padding:14px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14)}
.arma-v-k{margin:0 0 8px;font-family:'Oswald';font-weight:500;letter-spacing:.14em;text-transform:uppercase;font-size:11.5px;color:#d3c9e2}
.arma-v-sig-fila{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.arma-v-sig-fila .arma-num{flex:0 0 auto;box-shadow:0 0 0 2px #1e1530}
.arma-v-nombre{font-size:18px;line-height:1.25}
.arma-v-bots{display:flex;flex-wrap:wrap;gap:10px}
.arma-v-bots>*{flex:1 1 150px;justify-content:center;min-height:48px}
.arma-viaje .arma-btn2{border-color:#fff;color:#fff;text-decoration:none}
.arma-viaje .arma-btn2:hover{background:#fff;color:var(--tinta)}
.arma-viaje .arma-vaciar{border-color:transparent;text-decoration:underline}
.arma-viaje .arma-vaciar:hover{background:transparent;color:var(--amarillo)}
.arma-v-llegue{font-size:16px}
.arma-v-llegue:disabled{opacity:.7;cursor:progress;transform:none}
.arma-v-estado{margin-top:12px}
.arma-v-estado:empty{display:none}
.arma-v-estado>p{margin:0 0 8px;font-size:14.5px;line-height:1.5}
.arma-v-estado.ok,.arma-v-estado.lejos,.arma-v-estado.error{padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.08)}
.arma-v-estado.ok{border-left:4px solid var(--verde)}
.arma-v-estado.lejos{border-left:4px solid var(--amarillo)}
.arma-v-estado.error{border-left:4px solid var(--rosa)}
.arma-v-estado-t{font-weight:700}
.arma-v-estado .arma-nota{margin:10px 0 0}
.arma-v-lista{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}
.arma-v-p{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.04)}
.arma-v-n{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid rgba(255,255,255,.35);font:600 13px/1 'Oswald',sans-serif}
.arma-v-n svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.arma-v-p.hecha .arma-v-n{border-color:var(--c,var(--rosa));background:var(--c,var(--rosa));color:#fff}
.arma-v-p.hecha.c-amarillo .arma-v-n{color:var(--tinta)}
.arma-v-p.sin-ok .arma-v-n{border-style:dashed}
.arma-v-p-tx{display:grid;gap:2px;min-width:0}
.arma-v-p-tx b{font-size:14.5px;line-height:1.3;overflow-wrap:anywhere}
.arma-v-p-e{font-size:12.5px;color:#d3c9e2}
.arma-v-p.hecha .arma-v-p-e{color:#b9e59a}
.arma-v-mini{justify-self:start;min-height:32px;margin-top:2px;padding:0;border:0;background:none;color:var(--amarillo);
  font:700 12.5px/1.3 'Figtree',system-ui,sans-serif;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.arma-v-priv{margin-top:12px}
.arma-v-priv .arma-nota{margin:4px 0 0}
.arma-v-pie{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:12px}
.arma-v-pie .arma-nota{margin:0}
.arma-v-pie .arma-btn2{min-height:44px;padding:0 4px}
.arma-v-fin{padding:14px;border-radius:14px;background:rgba(255,255,255,.07)}
.arma-v-fin-t{margin:0 0 6px;font-family:'Fraunces';font-weight:900;font-size:19px}
.arma-v-fin .arma-nota{margin:0}

/* El premio */
.arma-v-premio{position:relative;padding:22px 16px 16px;border-radius:16px;background:linear-gradient(180deg,#2a1c44,#1e1530);
  border:1px solid rgba(251,178,0,.45);text-align:center;overflow:hidden}
.arma-v-franja{position:absolute;left:0;right:0;top:0;display:flex;height:6px}
.arma-v-franja i{flex:1}
.arma-v-franja i:nth-child(1){background:#EC0A82}.arma-v-franja i:nth-child(2){background:#F0183A}
.arma-v-franja i:nth-child(3){background:#F7941D}.arma-v-franja i:nth-child(4){background:#FBB200}
.arma-v-franja i:nth-child(5){background:#5FB924}.arma-v-franja i:nth-child(6){background:#00A6C8}
.arma-v-franja i:nth-child(7){background:#7C2D8E}
.arma-v-medalla{display:grid;place-items:center;width:96px;height:96px;margin:4px auto 10px;border-radius:50%;background:#2a1c44;
  box-shadow:0 0 0 6px var(--amarillo),0 14px 30px -10px rgba(0,0,0,.7)}
.arma-v-medalla img{width:60px;height:60px}
.arma-v-premio-tit{margin:0 0 6px;font-family:'Fraunces';font-weight:900;font-size:24px;line-height:1.15;color:#fff}
.arma-v-premio-tit:focus{outline:none}
.arma-v-premio-n{margin:0 0 4px;font-family:'Oswald';font-weight:600;letter-spacing:.06em;color:var(--amarillo)}
.arma-v-premio-g{margin:0 auto 16px;max-width:42ch;font-size:14px;line-height:1.5;color:#d3c9e2}
.arma-v-img{display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr);gap:16px;align-items:start;text-align:left}
.arma-v-lienzo{display:block;width:100%;height:auto;aspect-ratio:9/16;border-radius:10px;background:#2a1c44;box-shadow:0 14px 30px -14px rgba(0,0,0,.7)}
.arma-v-lienzo.cuadrada{aspect-ratio:1/1}
.arma-v-img-t{margin:0 0 10px;font-family:'Oswald';font-weight:600;letter-spacing:.1em;text-transform:uppercase;font-size:13px}
.arma-v-formatos{display:flex;gap:8px;margin-bottom:10px}
.arma-v-fmt{flex:1;min-height:40px;border-radius:999px;border:1.5px solid rgba(255,255,255,.4);background:transparent;color:#fff;cursor:pointer;
  font:600 13px/1 'Figtree',system-ui,sans-serif}
.arma-v-fmt small{opacity:.7}
.arma-v-fmt[aria-pressed="true"]{background:#fff;color:var(--tinta);border-color:#fff}
.arma-v-img-bots{display:flex;flex-wrap:wrap;gap:8px}
.arma-v-img-bots>*{flex:1 1 140px;justify-content:center;min-height:46px}
.arma-v-img-bots .btn{flex-basis:100%}
.arma-v-img-aviso{margin:8px 0 0;font-size:13px;color:#d3c9e2}
.arma-v-img-aviso:empty{display:none}
/* Celebración sobria: la franja corre, la medalla aparece (sin movimiento si se pidió menos) */
.arma-v-premio.fiesta .arma-v-franja i{animation:arma-franja .7s cubic-bezier(.2,.8,.2,1) both}
.arma-v-premio.fiesta .arma-v-franja i:nth-child(2){animation-delay:.05s}.arma-v-premio.fiesta .arma-v-franja i:nth-child(3){animation-delay:.1s}
.arma-v-premio.fiesta .arma-v-franja i:nth-child(4){animation-delay:.15s}.arma-v-premio.fiesta .arma-v-franja i:nth-child(5){animation-delay:.2s}
.arma-v-premio.fiesta .arma-v-franja i:nth-child(6){animation-delay:.25s}.arma-v-premio.fiesta .arma-v-franja i:nth-child(7){animation-delay:.3s}
.arma-v-premio.fiesta .arma-v-medalla{animation:arma-medalla .8s .25s cubic-bezier(.2,1.4,.4,1) both}
@keyframes arma-franja{from{transform:scaleY(0);transform-origin:top}to{transform:scaleY(1);transform-origin:top}}
@keyframes arma-medalla{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){
  .arma-v-premio.fiesta .arma-v-franja i,.arma-v-premio.fiesta .arma-v-medalla{animation:none}
}
@media (max-width:720px){
  .arma-viaje{padding:16px 12px 14px}
  .arma-v-img{grid-template-columns:minmax(0,1fr)}
  .arma-v-lienzo{max-width:220px;margin:0 auto}
  .arma-v-lienzo.cuadrada{max-width:280px}
}
@media print{
  html.arma-imprimiendo .arma-llevar,
  html.arma-imprimiendo .arma-viaje,
  html.arma-imprimiendo .arma-pregunta,
  html.arma-imprimiendo .arma-guardada,
  html.arma-imprimiendo .arma-como-uno{display:none!important}
}
