/* ///////////////// MAPA RECORRIDO DEL PAPA (integrado desde animacion.html) ///////////////// */
.mapa-papa {
--primario: #a50e27;
--primario-oscuro: #860a1f;
--primario-suave: #fbeef0;
--texto: #1f1f1f;
--texto-suave: #6b665d;
--borde: #e2ddd3;
--panel: #ffffff;
--fondo: #f6f4ef;
--mar: #dfeaf2;
--rojo: var(--primario);
--borde-papel: 3px;
--color-papel: #fcfaf5;
font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
color: var(--texto);
-webkit-tap-highlight-color: transparent;
width: 100%;
max-width: 1200px;
--mapa-margen: clamp(16px, 3vh, 36px);
margin: var(--mapa-margen) auto;
padding: 0 24px;
display: grid;
grid-template-columns: 320px 1fr;
gap: 20px;
/* svh: en movil no cuenta la barra del navegador que aparece y desaparece. */
height: calc(100vh - var(--alto-nav, 72px) - 2 * var(--mapa-margen));
height: calc(100svh - var(--alto-nav, 72px) - 2 * var(--mapa-margen));
min-height: 520px;
max-height: 960px;
}
.mapa-papa, .mapa-papa *, .mapa-papa *::before, .mapa-papa *::after { box-sizing: border-box; }
.mapa-papa aside {
background: var(--panel);
border: 1px solid var(--borde);
border-radius: 16px;
overflow-y: auto;
padding: 16px;
height: 100%;
min-height: 0;
}
#mapa {
position: relative;
overflow: hidden;
width: 100%;
height: 100%;
min-height: 0;
border: 1px solid var(--borde);
border-radius: 16px;
background: var(--mar);
}
.mapa-papa .btn {
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
min-height: 44px;
padding: 0 14px;
border: 1px solid var(--borde);
border-radius: 10px;
background: #fff;
color: var(--texto);
font: 600 .88rem "Segoe UI", system-ui, -apple-system, sans-serif;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
transition: background-color .15s, border-color .15s, transform .1s;
}
.mapa-papa .btn:hover { background: #f7f5f1; border-color: #d3cdc1; }
.mapa-papa .btn:active { transform: scale(.98); }
.mapa-papa .btn:focus-visible { outline: 2px solid var(--primario); outline-offset: 2px; }
.mapa-papa .btn:disabled { opacity: .5; cursor: default; transform: none; }
.mapa-papa .btn svg { width: 18px; height: 18px; flex: none; }
.mapa-papa .btn-primario { background: var(--primario); border-color: var(--primario); color: #fff; }
.mapa-papa .btn-primario:hover { background: var(--primario-oscuro); border-color: var(--primario-oscuro); }
.mapa-papa .btn-icono { padding: 0; width: 44px; }
.mapa-papa .controles { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 18px; }
.mapa-papa .titulo-seccion {
margin: 0 0 8px;
font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
color: var(--texto-suave);
}
.mapa-papa .selector-transporte { margin-bottom: 8px; }
.mapa-papa .selector-transporte .opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mapa-papa .selector-transporte label {
position: relative;
display: flex; flex-direction: column; align-items: center; gap: 2px;
padding: 8px 6px;
border: 1px solid var(--borde);
border-radius: 12px;
cursor: pointer;
font-size: .85rem; font-weight: 600;
transition: border-color .15s, background-color .15s;
}
.mapa-papa .selector-transporte label img { width: 60px; height: 56px; object-fit: contain; }
.mapa-papa .selector-transporte input { position: absolute; opacity: 0; pointer-events: none; }
.mapa-papa .selector-transporte label:has(input:checked) {
border-color: var(--primario); background: var(--primario-suave);
box-shadow: inset 0 0 0 1px var(--primario);
}
.mapa-papa .selector-transporte label:has(input:focus-visible) { outline: 2px solid var(--primario); outline-offset: 2px; }
.mapa-papa .selector-mapa {
display: none;
position: absolute; top: 10px; left: 10px; z-index: 5;
gap: 2px; padding: 3px;
background: #fff;
border: 1px solid var(--borde);
border-radius: 12px;
box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.mapa-papa .selector-mapa button {
display: flex; align-items: center; gap: 4px;
min-height: 40px; padding: 0 10px 0 2px;
border: 0; border-radius: 9px;
background: transparent;
font: 600 .8rem "Segoe UI", system-ui, -apple-system, sans-serif;
color: var(--texto-suave);
cursor: pointer;
}
.mapa-papa .selector-mapa button img { width: 34px; height: 34px; object-fit: contain; }
.mapa-papa .selector-mapa button.activo { background: var(--primario-suave); color: var(--primario); box-shadow: inset 0 0 0 1px var(--primario); }
.mapa-papa .opcion-camara {
position: relative;
display: flex; align-items: center; justify-content: space-between; gap: 12px;
min-height: 48px;
margin-bottom: 14px;
font-size: .9rem;
cursor: pointer;
}
.mapa-papa .opcion-camara input { position: absolute; opacity: 0; pointer-events: none; }
.mapa-papa .interruptor {
position: relative; flex: none;
width: 44px; height: 26px;
border-radius: 999px;
background: #cfc9bd;
transition: background-color .2s;
}
.mapa-papa .interruptor::after {
content: ""; position: absolute; top: 3px; left: 3px;
width: 20px; height: 20px; border-radius: 50%;
background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
transition: transform .2s;
}
.mapa-papa .opcion-camara input:checked + .interruptor { background: var(--primario); }
.mapa-papa .opcion-camara input:checked + .interruptor::after { transform: translateX(18px); }
.mapa-papa .opcion-camara input:focus-visible + .interruptor { outline: 2px solid var(--primario); outline-offset: 2px; }
.mapa-papa ol.itinerario { list-style: none; margin: 0; padding: 0; }
.mapa-papa ol.itinerario li {
display: flex; align-items: flex-start;
gap: 10px;
padding: 10px;
border-radius: 10px;
cursor: pointer;
border: 1px solid transparent;
}
.mapa-papa ol.itinerario li:hover { background: #f7f5f1; }
.mapa-papa ol.itinerario li.activo { background: var(--primario-suave); border-color: #efc9cf; }
.mapa-papa .num {
flex: 0 0 26px; height: 26px;
border-radius: 50%;
border: 1px solid var(--borde);
background: #fff; color: var(--texto-suave);
display: grid; place-items: center;
font-weight: 700; font-size: .8rem;
}
.mapa-papa ol.itinerario li.visitado .num { background: var(--texto); border-color: var(--texto); color: #fff; }
.mapa-papa ol.itinerario li.activo .num { background: var(--primario); border-color: var(--primario); color: #fff; }
.mapa-papa .info { flex: 1; min-width: 0; }
.mapa-papa .info small { line-height: 1.3; }
/* Sin la linea y el margen que site.css da a <strong>. */
.mapa-papa .info strong { display: block; margin: 0; font-size: .92rem; line-height: 1.25; }
.mapa-papa .info strong small { color: var(--texto-suave); font-weight: 600; font-size: .72rem; letter-spacing: .03em; }
.mapa-papa .info > small { color: var(--texto-suave); font-size: .8rem; }
.mapa-papa .papa-icon { pointer-events: none; z-index: 3; }
.mapa-papa .papa-icon img {
display: block;
object-fit: contain;
filter: drop-shadow(0 8px 6px rgba(0,0,0,.35));
transition: transform .2s, filter .4s;
}
.mapa-papa .papa-icon.izquierda img { transform: scaleX(-1); }
.mapa-papa .papa-icon.papel img {
filter:
drop-shadow(var(--borde-papel) 0 0 var(--color-papel)) drop-shadow(calc(-1 * var(--borde-papel)) 0 0 var(--color-papel))
drop-shadow(0 var(--borde-papel) 0 var(--color-papel)) drop-shadow(0 calc(-1 * var(--borde-papel)) 0 var(--color-papel))
drop-shadow(0 12px 9px rgba(50,30,10,.5));
}
.mapa-papa .info-parada {
position: absolute; left: 12px; bottom: 12px; z-index: 5;
width: 290px; max-width: calc(100% - 24px);
background: #fff;
border-radius: 14px;
box-shadow: 0 8px 24px rgba(0,0,0,.2);
overflow: hidden;
font-size: .82rem;
}
.mapa-papa .info-parada.cambio .info-cabecera { animation: mapaPapaAparecer .4s ease-out; }
@keyframes mapaPapaAparecer { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.mapa-papa .info-plegable { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.mapa-papa .info-plegable > div { overflow: hidden; min-height: 0; }
.mapa-papa .info-parada.minimizada .info-plegable { grid-template-rows: 0fr; }
.mapa-papa .info-asa { display: none; }
.mapa-papa .info-foto { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.mapa-papa .info-cuerpo { padding: 10px 12px 12px; }
.mapa-papa .info-cabecera { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.mapa-papa .info-cabecera > div { flex: 1; min-width: 0; }
.mapa-papa .info-estado {
display: flex; align-items: center; gap: 6px;
font-size: .7rem; font-weight: 600; color: var(--texto-suave);
white-space: nowrap;
}
.mapa-papa .info-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--texto); flex: none; }
.mapa-papa .info-estado:empty { display: none; }
.mapa-papa .info-estado.en-camino::before { background: var(--primario); animation: mapaPapaLatido 1s ease-in-out infinite; }
.mapa-papa .info-estado.pausado::before { background: #b9b2a5; animation: none; }
@keyframes mapaPapaLatido { 50% { opacity: .3; } }
.mapa-papa .info-parada h3 { margin: 1px 0 0; font-size: .95rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapa-papa .info-min {
flex: none;
width: 32px; height: 32px;
display: grid; place-items: center;
border: 1px solid var(--borde); border-radius: 50%;
background: #fff; color: var(--texto);
cursor: pointer;
}
.mapa-papa .info-min svg { width: 18px; height: 18px; transition: transform .25s; }
.mapa-papa .info-parada.minimizada .info-min svg { transform: rotate(180deg); }
.mapa-papa .info-detalles { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid #efebe4; }
.mapa-papa .info-detalles li { display: flex; gap: 8px; align-items: flex-start; padding: 2px 0; color: var(--texto-suave); }
.mapa-papa .info-detalles svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--texto-suave); }
.mapa-papa .info-detalles .info-actividad { color: var(--texto); font-weight: 600; }
.mapa-papa .info-coord { display: block; font-size: .7rem; color: #9a948a; }
.mapa-papa .info-botones { display: grid; grid-template-columns: 1fr 1fr 38px; gap: 6px; margin-top: 10px; }
.mapa-papa .info-botones .btn { min-height: 38px; padding: 0 6px; font-size: .8rem; border-radius: 9px; }
.mapa-papa .info-botones .btn svg { width: 16px; height: 16px; }
.mapa-papa .info-botones .btn-icono { width: 38px; }
.mapa-papa .info-botones .btn-gmaps { background: #fff; border-color: #dadce0; color: #1a73e8; }
.mapa-papa .info-botones .btn-gmaps:hover { background: #f1f6fe; border-color: #c6dafc; }
.mapa-papa .info-botones .btn-waze { background: #33ccff; border-color: #33ccff; color: #0a2540; }
.mapa-papa .info-botones .btn-waze:hover { background: #1fc2f7; border-color: #1fc2f7; }
.mapa-papa .info-botones .icono-app { width: 18px; height: 18px; }
.mapa-papa .info-ruta {
display: inline-flex; align-items: center; gap: 4px;
margin-top: 6px; padding: 2px 0;
font-size: .76rem; font-weight: 600; color: var(--texto-suave); text-decoration: none;
}
.mapa-papa .info-ruta:hover { color: var(--texto); text-decoration: underline; }
.mapa-papa .info-ruta svg { width: 14px; height: 14px; }
.mapa-papa .info-aviso { margin: 8px 0 0; font-size: .78rem; color: var(--texto); }
.mapa-papa .info-aviso:empty { display: none; }
.mapa-papa .btn-mapa {
width: 44px !important; height: 44px !important;
display: grid !important; place-items: center;
font: 700 .9rem "Segoe UI", system-ui, sans-serif;
color: var(--texto);
}
.mapa-papa .btn-mapa svg { width: 18px; height: 18px; }
.mapa-papa .btn-mapa.activo { color: var(--primario); }
.mapa-papa .maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: 0 1px 6px rgba(0,0,0,.15) !important; }
.mapa-papa .capa-fotos {
position: absolute; inset: 0;
width: 100%; height: 100%;
pointer-events: none;
}
.mapa-papa .capa-fotos .foto { transition: opacity .6s; }
.mapa-papa .papercraft {
pointer-events: none; z-index: 1;
--b: calc(var(--borde-papel) / var(--pc-escala, 1)); --c: var(--color-papel);
}
.mapa-papa .pc-escena {
position: relative;
width: 300px; height: 220px;
perspective: 700px;
transform: scale(var(--pc-escala, 1));
transform-origin: 50% 100%;
transition: transform .3s;
}
.mapa-papa .pc-escena::after {
content: ""; position: absolute; left: 6%; right: 6%; bottom: -4px; height: 14px;
border-radius: 50%;
background: radial-gradient(closest-side, rgba(40,25,10,.28), transparent);
opacity: 0; transition: opacity .4s;
}
.mapa-papa .papercraft.arriba .pc-escena::after { opacity: 1; }
.mapa-papa .pc-capa {
position: absolute; inset: 0;
transform-origin: 50% 100%;
transform: rotateX(-90deg);
opacity: 0;
transition: transform .55s cubic-bezier(.5, 0, .75, 0), opacity .2s .35s;
}
.mapa-papa .pc-capa svg { width: 100%; height: 100%; overflow: visible; }
.mapa-papa .pc-capa img {
position: absolute; left: 50%; transform: translateX(-50%); user-select: none;
--corte: drop-shadow(var(--b) 0 0 var(--c)) drop-shadow(calc(-1 * var(--b)) 0 0 var(--c))
drop-shadow(0 var(--b) 0 var(--c)) drop-shadow(0 calc(-1 * var(--b)) 0 var(--c));
}
.mapa-papa .pc-capa:nth-child(1) img { filter: var(--corte) drop-shadow(0 4px 3px rgba(60,40,20,.3)) saturate(.85) brightness(.97); }
.mapa-papa .pc-capa:nth-child(2) img { filter: var(--corte) drop-shadow(0 14px 10px rgba(50,30,10,.5)) drop-shadow(0 2px 1px rgba(50,30,10,.35)); }
.mapa-papa .pc-capa:nth-child(3) svg { filter: drop-shadow(0 -6px 8px rgba(50,30,10,.35)); }
.mapa-papa .pc-capa img.pc-adorno { bottom: 14px; width: auto; transform: none; filter: var(--corte) drop-shadow(0 6px 5px rgba(50,30,10,.45)); }
.mapa-papa .pc-foto-fondo { bottom: 20px; width: 330px; max-height: 200px; object-fit: contain; object-position: bottom; }
.mapa-papa .pc-capa .pc-foto-fondo {
opacity: 0; transform: translateX(-50%) translateY(14px) scale(.97);
transition: opacity .7s, transform .9s cubic-bezier(.2, 1.4, .4, 1);
}
.mapa-papa .pc-capa .pc-foto-fondo.activo { opacity: 1; transform: translateX(-50%); }
.mapa-papa .pc-capa .pc-foto-frente:not(.activo) { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.97); }
.mapa-papa .pc-capa .pc-foto-frente { transition: opacity .7s, transform .9s cubic-bezier(.2, 1.4, .4, 1); }
.mapa-papa .pc-capa .pc-fondo-alt { width: 470px !important; }
.mapa-papa .pc-foto-frente { bottom: 8px; width: 270px; max-height: 175px; object-fit: contain; object-position: bottom; }
.mapa-papa .papercraft[data-escena="UCAYALI"] .pc-foto-fondo { width: 430px; max-height: 150px; bottom: 56px; }
.mapa-papa .papercraft[data-escena="UCAYALI"] .pc-foto-frente { width: 240px; max-height: 165px; }
.mapa-papa .papercraft[data-escena="CUSCO"] .pc-foto-fondo { width: 440px; max-height: 150px; bottom: 58px; }
.mapa-papa .papercraft[data-escena="CUSCO"] .pc-foto-frente { width: 220px; max-height: 158px; }
.mapa-papa .papercraft[data-escena="LAMBAYEQUE"] .pc-foto-fondo { width: 430px; max-height: 120px; bottom: 60px; }
.mapa-papa .papercraft[data-escena="LAMBAYEQUE"] .pc-foto-frente { width: 230px; max-height: 165px; }
.mapa-papa .papercraft[data-escena="LIMA"] .pc-foto-fondo { width: 430px; max-height: 150px; bottom: 56px; }
.mapa-papa .papercraft[data-escena="LIMA"] .pc-foto-frente { width: 280px; max-height: 145px; }
.mapa-papa .papercraft[data-escena="LIMA_2"] .pc-foto-fondo { width: 440px; max-height: 150px; bottom: 50px; }
.mapa-papa .papercraft[data-escena="LIMA_2"] .pc-foto-frente { width: 255px; max-height: 175px; }
.mapa-papa .papercraft[data-escena="CAJAMARCA"] .pc-foto-fondo { width: 430px; max-height: 150px; bottom: 56px; }
.mapa-papa .papercraft[data-escena="CAJAMARCA"] .pc-foto-frente { width: 235px; max-height: 165px; }
.mapa-papa .pc-capa:nth-child(1) { --pc-y: -34px; --pc-z: .9; }
.mapa-papa .pc-capa:nth-child(2) { --pc-y: -14px; --pc-z: .97; }
.mapa-papa .pc-capa:nth-child(3) { --pc-y: 0px;   --pc-z: 1; }
.mapa-papa .papercraft.arriba .pc-capa {
transform: translateY(var(--pc-y)) scale(var(--pc-z));
opacity: 1;
transition: transform .8s cubic-bezier(.2, 1.6, .4, 1), opacity .15s;
}
.mapa-papa .papercraft.arriba .pc-capa:nth-child(2) { transition-delay: .15s; }
.mapa-papa .papercraft.arriba .pc-capa:nth-child(3) { transition-delay: .3s; }
.mapa-papa .papercraft:not(.arriba) .pc-capa:nth-child(1) { transition-delay: .2s, .55s; }
.mapa-papa .papercraft:not(.arriba) .pc-capa:nth-child(2) { transition-delay: .1s, .45s; }
.mapa-papa .etiqueta-dep {
z-index: 0;
padding: 3px 9px;
border-radius: 999px;
background: rgba(40, 28, 10, .78);
color: #fff;
font-weight: 700;
font-size: .7rem;
letter-spacing: .06em;
box-shadow: 0 2px 6px rgba(0,0,0,.3);
pointer-events: none;
white-space: nowrap;
}
.mapa-papa .etiqueta-dep.actual {
background: var(--primario); z-index: 4;
box-shadow: 0 0 0 var(--borde-papel) var(--color-papel), 0 4px 8px rgba(50,30,10,.4);
}
.mapa-papa .escena-arriba .etiqueta-dep:not(.actual) { visibility: hidden; }
.mapa-papa .etiqueta-dep .btn-escena { display: none; }
.mapa-papa .escena-arriba .etiqueta-dep.actual {
display: inline-flex; align-items: center; gap: 6px;
padding-right: 3px;
}
.mapa-papa .escena-arriba .etiqueta-dep.actual .btn-escena {
display: grid; place-items: center;
width: 24px; height: 24px; padding: 0;
border: 0; border-radius: 50%;
background: #fff; color: var(--primario);
cursor: pointer; pointer-events: auto;
box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.mapa-papa .etiqueta-dep .btn-escena svg { width: 13px; height: 13px; }
.mapa-papa .etiqueta-dep .btn-escena:hover { background: var(--primario-suave); }
.mapa-papa .etiqueta-dep .btn-escena:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mapa-papa .etiqueta-dep .btn-escena[aria-expanded="true"] { background: var(--primario-suave); }
.mapa-papa .menu-escena {
position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
display: flex; gap: 6px; padding: 6px;
border-radius: 999px; background: #fff;
box-shadow: 0 6px 18px rgba(0,0,0,.25);
pointer-events: auto;
animation: mapaPapaAparecer .2s ease-out;
}
.mapa-papa .menu-escena[hidden],
.mapa-papa .etiqueta-dep:not(.actual) .menu-escena,
.mapa-papa #mapa:not(.escena-arriba) .menu-escena { display: none; }
.mapa-papa .menu-escena > * {
display: grid; place-items: center;
width: 36px; height: 36px; padding: 0;
border: 0; border-radius: 50%;
color: #fff; font-size: 17px; text-decoration: none;
cursor: pointer;
transition: transform .15s, filter .15s;
}
.mapa-papa .menu-escena > [hidden] { display: none; }
.mapa-papa .menu-escena > *:hover { transform: translateY(-2px); filter: brightness(1.08); }
.mapa-papa .menu-escena > *:focus-visible { outline: 2px solid var(--primario); outline-offset: 2px; }
.mapa-papa .menu-escena .red-nativo { background: var(--primario); }
.mapa-papa .menu-escena .red-whatsapp { background: #25d366; }
.mapa-papa .menu-escena .red-facebook { background: #1877f2; }
.mapa-papa .menu-escena .red-x { background: #000; }
.mapa-papa .menu-escena .red-correo { background: #6b665d; }
.mapa-papa .menu-escena .red-descargar { background: #fff; color: var(--texto); box-shadow: inset 0 0 0 1px var(--borde); }
.mapa-papa .menu-escena .cargando i { animation: mapaPapaLatido 1s ease-in-out infinite; }
.mapa-papa .aviso-escena {
position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
width: max-content; max-width: 240px; margin: 0; padding: 8px 12px;
border-radius: 10px; background: #fff; color: var(--texto);
font-size: .74rem; font-weight: 600; letter-spacing: 0; line-height: 1.35;
white-space: normal; text-align: center;
box-shadow: 0 6px 18px rgba(0,0,0,.25);
animation: mapaPapaAparecer .2s ease-out;
}
.mapa-papa .aviso-escena[hidden],
.mapa-papa #mapa:not(.escena-arriba) .aviso-escena { display: none; }
.mapa-papa.estampa-medida {
position: fixed !important; left: -10000px; top: 0;
display: block; width: 1200px; height: 1000px; max-width: none;
margin: 0; padding: 0; visibility: hidden; pointer-events: none;
}
.mapa-papa.estampa-medida * { transition: none !important; animation: none !important; }
.mapa-papa .etiqueta-dep.visitada { background: rgba(110,105,98,.75); }
#agenda .mapa-papa { position: relative; z-index: 3; }
/* Relleno y no margen: el margen escaparia de la seccion (colapso de margenes). */
#agenda .mapa-papa { margin-bottom: 0; }
/* Contenido y no padding: la foto es sticky y no baja mas alla del contenido. */
#agenda > .scrollytelling::after {
  content: "";
  display: block;
  height: clamp(56px, 10vh, 110px);
}

/* ---- Panel del recorrido: sin los estilos de <button> de site.css ---- */
.mapa-papa button { box-shadow: none; text-transform: none; letter-spacing: normal; }
.mapa-papa button:hover,
.mapa-papa button:active { filter: none; }
.mapa-papa .info-min { padding: 0; }
.mapa-papa .maplibregl-ctrl-group button { border-radius: 0; }
.mapa-papa .btn-mapa { padding: 0; }

.mapa-papa aside {
padding: 18px;
box-shadow: 0 10px 30px rgba(40, 28, 16, .08);
}

.mapa-papa .controles { gap: 10px; margin-bottom: 20px; }
.mapa-papa .btn-primario {
border-radius: 12px;
font-size: .92rem;
box-shadow: 0 6px 16px rgba(165, 14, 39, .22);
}
.mapa-papa .btn-primario:hover { box-shadow: 0 8px 22px rgba(165, 14, 39, .3); }
.mapa-papa .controles .btn-icono { border-radius: 12px; color: var(--texto-suave); }
.mapa-papa .controles .btn-icono:hover { color: var(--primario); border-color: var(--primario); background: var(--primario-suave); }

.mapa-papa .titulo-seccion {
display: flex; align-items: center; gap: 10px;
margin: 0 0 10px;
font-size: .68rem; letter-spacing: .1em;
}
.mapa-papa .titulo-seccion::after { content: ""; flex: 1; height: 1px; background: var(--borde); }

.mapa-papa .selector-transporte { margin-bottom: 14px; }
.mapa-papa .selector-transporte .opciones { gap: 10px; }
.mapa-papa .selector-transporte label {
padding: 10px 8px 8px;
border-radius: 14px;
background: #fff;
color: var(--texto-suave);
transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}
.mapa-papa .selector-transporte label:hover { border-color: #d3cdc1; background: #fbfaf7; color: var(--texto); }
.mapa-papa .selector-transporte label:has(input:checked) { color: var(--primario); }
.mapa-papa .selector-transporte label:has(input:checked)::after {
content: "";
position: absolute; top: 7px; right: 7px;
width: 18px; height: 18px; border-radius: 50%;
background: var(--primario) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.mapa-papa aside .opcion-camara {
min-height: 0;
margin-bottom: 18px;
padding: 10px 12px;
border: 1px solid var(--borde);
border-radius: 12px;
background: #faf8f4;
font-size: .86rem; font-weight: 600;
}

.mapa-papa ol.itinerario li {
position: relative;
align-items: center;
padding: 8px 10px;
border-radius: 12px;
transition: background-color .15s, border-color .15s;
}
.mapa-papa ol.itinerario li:not(:first-child)::before,
.mapa-papa ol.itinerario li:not(:last-child)::after {
content: "";
position: absolute; left: 22px;
width: 2px; background: var(--borde);
}
.mapa-papa ol.itinerario li:not(:first-child)::before { top: 0; height: calc(50% - 13px); }
.mapa-papa ol.itinerario li:not(:last-child)::after { bottom: 0; height: calc(50% - 13px); }
.mapa-papa ol.itinerario li.visitado:not(:last-child)::after,
.mapa-papa ol.itinerario li.visitado + li::before { background: var(--texto); }
.mapa-papa ol.itinerario .num { position: relative; z-index: 1; }
.mapa-papa ol.itinerario li.activo .num { box-shadow: 0 0 0 4px rgba(165, 14, 39, .16); }
.mapa-papa ol.itinerario li.activo .info strong { color: var(--primario); }
.mapa-papa .info > small { display: block; margin-top: 1px; }

/* ---- Escritorio con poco alto: panel compacto ---- */
@media (min-width:761px) and (max-height:900px) {
.mapa-papa aside { padding: 12px; }
.mapa-papa .controles { margin-bottom: 10px; }
.mapa-papa .titulo-seccion { margin-bottom: 6px; }
.mapa-papa .selector-transporte label { padding: 4px 6px; flex-direction: row; justify-content: center; gap: 6px; }
.mapa-papa .selector-transporte label img { width: 40px; height: 36px; }
.mapa-papa .opcion-camara { min-height: 38px; margin-bottom: 6px; }
.mapa-papa ol.itinerario li { padding: 6px 8px; }
}
@media (min-width:761px) and (max-height:760px) {
.mapa-papa aside .selector-transporte { display: none; }
.mapa-papa .selector-mapa { display: flex; }
}

/* ---- Adaptaciones por pantalla y movimiento ---- */
@media (max-width:760px) {
.mapa-papa aside {
  height: auto;
}
.mapa-papa {
  display: flex; flex-direction: column;
  gap: 0; height: auto; min-height: 0; max-height: none;
  margin: 20px auto; padding: 0 16px;
}
.mapa-papa > * {
  min-width: 0;
}
#mapa {
  border-radius: 0;
}
#mapa {
  flex: none; height: clamp(360px, 62svh, 560px); min-height: 0;
}
.mapa-papa .btn-mapa {
  width: 29px !important; height: 29px !important; font-size: .7rem;
}
.mapa-papa .btn-mapa svg {
  width: 14px; height: 14px;
}
.mapa-papa .maplibregl-ctrl-bottom-right {
  bottom: calc(var(--alto-tarjeta, 0px) + 4px); transition: bottom .3s;
}
.mapa-papa .selector-mapa {
  display: flex;
}
.mapa-papa .pc-foto-fondo {
  width: 350px; max-height: 245px;
}
.mapa-papa .pc-foto-frente {
  width: 305px; max-height: 215px;
}
.mapa-papa .papercraft[data-escena="CUSCO"] .pc-foto-fondo {
  width: 420px; max-height: 145px; bottom: 60px;
}
.mapa-papa .papercraft[data-escena="CUSCO"] .pc-foto-frente {
  width: 235px; max-height: 172px;
}
.mapa-papa .papercraft[data-escena="LAMBAYEQUE"] .pc-foto-fondo {
  width: 410px; max-height: 115px; bottom: 62px;
}
.mapa-papa .papercraft[data-escena="LAMBAYEQUE"] .pc-foto-frente {
  width: 245px; max-height: 178px;
}
.mapa-papa .papercraft[data-escena="LIMA"] .pc-foto-fondo {
  width: 410px; max-height: 145px; bottom: 58px;
}
.mapa-papa .papercraft[data-escena="LIMA"] .pc-foto-frente {
  width: 290px; max-height: 155px;
}
.mapa-papa .papercraft[data-escena="LIMA_2"] .pc-foto-fondo {
  width: 420px; max-height: 145px; bottom: 52px;
}
.mapa-papa .papercraft[data-escena="LIMA_2"] .pc-foto-frente {
  width: 270px; max-height: 185px;
}
.mapa-papa .papercraft[data-escena="CAJAMARCA"] .pc-foto-fondo {
  width: 410px; max-height: 145px; bottom: 58px;
}
.mapa-papa .papercraft[data-escena="CAJAMARCA"] .pc-foto-frente {
  width: 250px; max-height: 178px;
}
.mapa-papa .papercraft[data-escena="UCAYALI"] .pc-foto-fondo {
  width: 410px; max-height: 145px; bottom: 58px;
}
.mapa-papa .papercraft[data-escena="UCAYALI"] .pc-foto-frente {
  width: 255px; max-height: 178px;
}
.mapa-papa .selector-transporte {
  display: none;
}
/* Fila flexible y no rejilla: con "1fr" la lista de rutas (que se desliza de
   lado) ensanchaba la columna hasta su largo entero y empujaba rutas y
   camara fuera del contenedor. Aqui nada pasa del ancho; si la camara no
   cabe junto a los controles, baja a la linea siguiente. */
.mapa-papa aside {
  order: 2; flex: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 10px;
  min-width: 0; max-width: 100%; box-sizing: border-box;
  overflow: hidden;
  padding: 10px 16px;
  border: 0; border-top: 1px solid var(--borde); border-radius: 0;
}
.mapa-papa aside .titulo-seccion {
  display: none;
}
.mapa-papa ol.itinerario {
  order: 1;
  /* Toda la fila, de borde a borde del aside (los -16px de margen). */
  flex: 0 0 calc(100% + 32px); min-width: 0; max-width: none; box-sizing: border-box;
  display: flex; gap: 6px;
  overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -16px; padding: 2px 16px;
  scrollbar-width: none;
}
.mapa-papa ol.itinerario::-webkit-scrollbar {
  display: none;
}
.mapa-papa ol.itinerario li {
  flex: none; align-items: center; gap: 6px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--borde); border-radius: 999px;
  scroll-snap-align: center;
}
.mapa-papa ol.itinerario li::before,
.mapa-papa ol.itinerario li::after {
  display: none;
}
.mapa-papa ol.itinerario li .info > small,
.mapa-papa .info strong small {
  display: none;
}
.mapa-papa .info strong {
  font-size: .82rem; white-space: nowrap;
}
.mapa-papa .num {
  flex-basis: 24px; height: 24px; font-size: .75rem;
}
.mapa-papa .controles {
  order: 2; margin: 0; flex: none;
}
.mapa-papa .txt-todo {
  display: none;
}
/* La camara toma lo que dejan los controles (base 0: nunca baja de linea)
   y es su texto el que se parte en dos lineas, no la fila. */
.mapa-papa .opcion-camara,
.mapa-papa aside .opcion-camara {
  order: 3; min-height: 44px; margin: 0; padding: 6px 8px; gap: 6px; font-size: .7rem; line-height: 1.15;
  flex: 1 1 0; min-width: 0; box-sizing: border-box;
}
.mapa-papa .txt-camara {
  flex: 1 1 auto; min-width: 0; max-width: none; color: var(--texto-suave);
}
.mapa-papa .controles .btn-primario {
  padding: 0 12px;
}
.mapa-papa .interruptor {
  width: 36px; height: 22px;
}
.mapa-papa .interruptor::after {
  width: 16px; height: 16px;
}
.mapa-papa .opcion-camara input:checked + .interruptor::after {
  transform: translateX(14px);
}
.mapa-papa .info-cabecera .info-min {
  width: 34px; height: 34px;
}
.mapa-papa .info-cabecera {
  gap: 8px;
}
.mapa-papa .info-foto {
  width: 42px !important; height: 42px !important;
}
.mapa-papa .info-parada h3 {
  font-size: .9rem !important; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.mapa-papa .info-parada {
  left: 0; right: 0; bottom: 0;
  width: auto; max-width: none;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
  max-height: 75%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mapa-papa .info-asa {
  display: block;
  width: 100%; height: 22px;
  border: 0; background: transparent;
  cursor: pointer;
  touch-action: none;
}
.mapa-papa .info-asa::before {
  content: ""; display: block; margin: 8px auto 0;
  width: 40px; height: 5px; border-radius: 999px; background: #d6d0c4;
}
.mapa-papa .info-cuerpo {
  padding: 2px 16px 16px;
}
.mapa-papa .info-parada {
  font-size: .86rem;
}
.mapa-papa .info-foto {
  width: 48px; height: 48px;
}
.mapa-papa .info-parada h3 {
  font-size: 1rem;
}
.mapa-papa .info-cabecera {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  column-gap: 8px; row-gap: 8px;
}
.mapa-papa .info-cabecera .info-foto { grid-column: 1; grid-row: 1; }
.mapa-papa .info-cabecera > div { grid-column: 2; grid-row: 1; }
.mapa-papa .info-cabecera .info-min { grid-column: 3; grid-row: 1; justify-self: end; }
.mapa-papa .info-cabecera .info-botones {
  grid-column: 1 / -1; grid-row: 2; justify-self: end;
  display: flex; gap: 6px; margin: 0;
}
.mapa-papa .info-botones .txt-app { display: none; }
.mapa-papa .info-botones .btn,
.mapa-papa .info-botones .btn-icono {
  width: 38px; min-height: 38px; height: 38px; padding: 0; justify-content: center;
}
.mapa-papa .info-botones .icono-app { width: 20px; height: 20px; }
}
