/* Portada: el mapa real del barrio de fondo y una red viva entre tiendas y vecinos. Cabe en una pantalla. */
body.portada-oscura { background: #0A0730; color: #F4F4FF; overflow: hidden; }
.fondo-mapa { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#mapa-fondo { position: absolute; inset: 0; filter: grayscale(1) invert(1) brightness(.55) contrast(1.1) sepia(.25) hue-rotate(195deg) saturate(2.2) blur(1.6px); }
#mapa-fondo .leaflet-control-container { display: none; }
#red { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.velo-mapa { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 7, 48, .5) 0%, rgba(10, 7, 48, .15) 14%, rgba(10, 7, 48, .2) 22%, rgba(10, 7, 48, .88) 34%, #0A0730 60%); }
.portada-app { position: relative; z-index: 1; }
.portada-oscura .barra { border-bottom: 0; }
.portada-oscura .marca { color: #fff; }
.portada-oscura .marca svg rect[fill="#0028AE"], .portada-oscura .marca svg path[fill="#0028AE"] { fill: #fff; }
.portada-oscura .marca svg path[stroke="#fff"] { stroke: #0A0730; }
.portada-oscura .marca svg rect[fill="#fff"] { fill: #0A0730; }
.portada-cuerpo { padding: 4px 16px 0; gap: 10px; justify-content: flex-end; overflow: hidden; }
.kicker { margin: 0; font: 600 .74rem var(--cuerpo); letter-spacing: .1em; text-transform: uppercase; color: #FF8CF4; }
.lema { font-size: clamp(2rem, 9.6vw, 3.4rem); line-height: .98; letter-spacing: -.015em; color: #fff; }
.lema em { font-style: normal; color: #FD01E8; }
.bajada { margin: 0; color: #D7D7F2; font-size: 1rem; line-height: 1.4; max-width: 34ch; }
.latido { margin: 0; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .82rem; line-height: 1.25; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 6px 12px; backdrop-filter: blur(6px); min-height: 32px; }
.latido #latido { transition: opacity .3s; }
.pulso { width: 9px; height: 9px; border-radius: 50%; background: #FD01E8; box-shadow: 0 0 0 0 rgba(253, 1, 232, .7); animation: pulso 1.8s infinite; flex: 0 0 auto; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(253, 1, 232, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 1, 232, 0); } }
.ruta { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.ruta::before { content: ''; position: absolute; top: 6px; left: 6px; right: 16%; height: 2px; background: linear-gradient(90deg, #FD01E8 0 30%, rgba(255, 255, 255, .25) 30%); }
.ruta li { position: relative; padding-top: 18px; display: grid; gap: 1px; font-size: .78rem; color: #B9B9D9; line-height: 1.2; }
.ruta li::before { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #0A0730; border: 2px solid rgba(255, 255, 255, .45); }
.ruta li.hoy::before { background: #FD01E8; border-color: #FD01E8; }
.ruta li b { color: #fff; font-size: .82rem; }
.puertas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.puerta { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: var(--radio); text-decoration: none; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); min-height: 100px; align-content: center; backdrop-filter: blur(8px); }
.puerta:hover, .puerta:focus-visible { background: rgba(255, 255, 255, .16); }
.puerta .ic { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; margin-bottom: 2px; }
.puerta .ic svg { width: 22px; height: 22px; }
.puerta b { font-size: .92rem; line-height: 1.15; }
.puerta small { font-size: .72rem; color: #C9C9E6; line-height: 1.2; }
.puerta.principal { background: #fff; color: #0A0730; border-color: #fff; }
.puerta.principal .ic { background: #0028AE; }
.puerta.principal small { color: #3A3A55; }
.alianza { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--radio); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.alianza p { margin: 0; font-size: .82rem; color: #D7D7F2; line-height: 1.35; }
.alianza p b { color: #fff; }
.alianza { text-align: center; }
.alianza .logos { display: flex; align-items: center; justify-content: center; gap: 14px; }
.alianza .logos a { display: inline-flex; border-radius: 8px; padding: 4px; transition: background .2s; }
.alianza .logos a:hover, .alianza .logos a:focus-visible { background: rgba(255, 255, 255, .1); }
.alianza p a { color: #fff; text-decoration: underline; text-decoration-color: #FD01E8; text-underline-offset: 3px; }
.alianza .logos img { height: 26px; width: auto; }
.alianza .logos img[alt="Fundación Startin"] { height: 30px; }
.alianza .mas { color: #FD01E8; font: 700 1.2rem var(--titulo); }
.portada-oscura .pie { padding-top: 6px; }
.portada-oscura .firma { background: rgba(10, 7, 48, .6); border-color: rgba(255, 255, 255, .2); color: #C9C9E6; }
.portada-oscura .firma b { color: #fff; }
/* Red viva */
.nodo-tienda { fill: #7F95FF; stroke: #fff; stroke-width: 2; }
.nodo-vecino { fill: #fff; opacity: .85; }
.halo { fill: none; stroke: #FD01E8; stroke-width: 2; opacity: 0; }
.halo.vivo { animation: halo 1.4s ease-out; }
@keyframes halo { 0% { opacity: .9; r: 6; } 100% { opacity: 0; r: 26; } }
.hilo { fill: none; stroke: #FD01E8; stroke-width: 2.2; stroke-linecap: round; opacity: .95; }
.hilo.viejo { stroke: #7F95FF; opacity: .35; stroke-width: 1.4; transition: opacity 2s; }
.etiqueta-red { font: 700 11px 'Exo 2', Arial, sans-serif; fill: #fff; paint-order: stroke; stroke: #0A0730; stroke-width: 3px; }
@media (max-height: 700px) { .bajada { font-size: .9rem; } .puerta { min-height: 86px; } .alianza p { font-size: .76rem; } .lema { font-size: clamp(2rem, 9vw, 3rem); } }
@media (min-width: 700px) { .portada-cuerpo { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .pulso, .halo.vivo { animation: none; } }

.oficio { color: #0028AE; display: inline-block; transition: opacity .25s, transform .25s; }
.oficio.sale { opacity: 0; transform: translateY(-6px); }
