/*
================================================================================
Sistema: Ecovía Comechingones (Smart City & Tourism)
Creador y Desarrollador: Silvio Deandrea
Copyright: © 2026 Silvio Deandrea. Todos los derechos reservados.
Licencia: Propiedad Privada - Producto Protegido por Derechos de Autor.
================================================================================
F85 — Capa premium de la app turística. Sólo aplica bajo `body.ea-app`, así los
archivos compartidos con los portales internos no cambian. Tokens de marca en
/shared/styles/tokens-premium.css (los mismos de la landing).
*/

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/manrope-latin.woff2') format('woff2'); }
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'); size-adjust: 103%; ascent-override: 102%; descent-override: 29%; }

/* ---------- 1. Los tokens del design system F81 pasan a la marca premium ---------- */
body.ea-app {
  --eco-bg: var(--sand-050);
  --eco-bg-warm: var(--sand-050);
  --eco-surface: #FFFFFF;
  --eco-surface-soft: var(--sand-100);
  --eco-surface-2: var(--sand-050);
  --eco-navy: var(--forest-950);
  --eco-navy-2: #0A3B40;
  --eco-navy-3: #0E4A4F;
  --eco-teal: var(--forest-700);
  --eco-teal-2: var(--forest-500);
  --eco-teal-deep: var(--forest-950);
  --eco-green: var(--forest-500);
  --eco-orange: var(--terracotta);
  --eco-orange-2: var(--terracotta-700);
  --eco-ink: var(--ink);
  --eco-ink-2: #22302F;
  --eco-muted: var(--ink-soft);
  --eco-border: rgba(23, 35, 34, .10);
  --eco-border-strong: rgba(23, 35, 34, .18);
  --eco-shadow-sm: 0 1px 2px rgba(6,47,53,.05), 0 6px 18px -10px rgba(6,47,53,.18);
  --eco-shadow-md: 0 14px 34px -16px rgba(6,47,53,.28);
  --eco-shadow-lg: 0 30px 60px -24px rgba(6,47,53,.35);
  --eco-radius-md: 16px;
  --eco-radius-lg: 18px;
  --eco-radius-xl: 24px;
  --eco-font-display: var(--font-display);
  --eco-font-sans: var(--font-ui);
  --eco-fs-base: 0.98rem;
  --eco-topo-opacity: 0;

  --ea-rail: 92px;
  --ea-rail-open: 248px;
  --ea-top: 68px;
  --ea-bnav: 68px;

  margin: 0;
  background: var(--sand-050);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
body.ea-app h1, body.ea-app h2, body.ea-app h3 { font-family: var(--font-display); letter-spacing: -.015em; }
body.ea-app :focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 8px; }
body.ea-no-scroll { overflow: hidden; }
.ea-skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--forest-950); color: #fff; font-weight: 700; text-decoration: none; }
.ea-skip:focus { top: 12px; }
.ea-ico { width: 22px; height: 22px; flex-shrink: 0; }
.ea-logo { width: 38px; height: 26px; flex-shrink: 0; }

/* ---------- 2. Rail de escritorio ---------- */
.ea-rail { display: none; }
@media (min-width: 1024px) {
  .ea-rail {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--ea-rail);
    display: flex; flex-direction: column; gap: 6px; padding: 18px 10px 14px;
    background: var(--forest-950); color: rgba(255,255,255,.78);
    background-image: radial-gradient(120% 60% at 0% 100%, rgba(20,125,104,.28), transparent 60%);
    transition: width var(--t) var(--ease);
    overflow: hidden;
  }
  .ea-rail-open .ea-rail { width: var(--ea-rail-open); }
  .ea-rail__brand { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-bottom: 14px; color: #fff; text-decoration: none; }
  .ea-rail-open .ea-rail__brand { justify-content: flex-start; padding-left: 16px; }
  .ea-rail__name { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: .95; white-space: nowrap; }
  .ea-rail__name small { display: block; font-family: var(--font-ui); font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; margin-top: 3px; opacity: .75; }
  .ea-rail__nav { display: grid; gap: 4px; }
  .ea-rail__item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    min-height: 64px; padding: 8px 4px; border-radius: 14px; border: 0; background: none;
    color: inherit; font: 600 11.5px/1.1 var(--font-ui); text-decoration: none; cursor: pointer; text-align: center;
    transition: background var(--t-fast), color var(--t-fast);
  }
  .ea-rail__item:hover { background: rgba(255,255,255,.07); color: #fff; }
  .ea-rail__item.is-active { background: rgba(255,255,255,.1); color: #fff; }
  .ea-rail__item.is-active::before { content: ""; position: absolute; left: -10px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--terracotta); }
  .ea-rail__item.is-active .ea-ico { color: #FFB48A; }
  .ea-rail-open .ea-rail__item { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 48px; padding: 10px 16px; font-size: 15px; text-align: left; }
  .ea-rail__lbl { white-space: nowrap; }
  .ea-rail__name.ea-rail__lbl { display: none; }
  .ea-rail-open .ea-rail__name.ea-rail__lbl { display: block; }
  .ea-rail__foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
  .ea-rail__item--sub { min-height: 52px; font-size: 10.5px; color: rgba(255,255,255,.6); }
  .ea-rail__item--sub .ea-rail__lbl { white-space: normal; line-height: 1.15; }
  .ea-rail-open .ea-rail__item--sub .ea-rail__lbl { white-space: nowrap; }
  .ea-rail__item--sub .ea-ico { width: 20px; height: 20px; }
  .ea-rail__foot [data-rail-toggle] .ea-rail__lbl { display: none; }
  .ea-rail-open .ea-rail__foot [data-rail-toggle] .ea-rail__lbl { display: inline; }
  .ea-rail__chev { transition: transform var(--t) var(--ease); }
  .ea-rail-open .ea-rail__chev { transform: rotate(180deg); }
}

/* ---------- 3. Barra superior ---------- */
.ea-top {
  position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: 12px;
  height: calc(var(--ea-top) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0;
  background: rgba(250, 248, 242, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(23,35,34,.08);
}
.ea-top__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--forest-950); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.ea-search { display: none; }
.ea-top__ctx { display: none; }
.ea-top__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ea-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(23,35,34,.12); background: #fff; color: var(--forest-950); cursor: pointer; text-decoration: none; transition: background var(--t-fast), border-color var(--t-fast); }
.ea-icon-btn:hover { background: var(--sand-100); border-color: rgba(23,35,34,.2); }
.ea-icon-btn .ea-ico { width: 20px; height: 20px; }
.ea-only-d { display: none !important; }
/* SOS — rojo reservado a la emergencia, siempre visible y a un toque. */
body.ea-app #sos-fab.ea-sos {
  position: static; width: auto; height: auto; overflow: visible; transform: none;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 0; background: var(--danger); color: #fff; font: 800 15px/1 var(--font-ui); letter-spacing: .06em; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(216,44,58,.9);
}
body.ea-app #sos-fab.ea-sos::after { content: none; }
.ea-sos .ea-ico { width: 18px; height: 18px; }
body.ea-app #sos-fab.ea-sos:hover { background: #B8202D; transform: none; }
.ea-sos.animate-pulse { animation: ea-sos-pulso 1.6s ease-in-out infinite; }
@keyframes ea-sos-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(216,44,58,.55); } 50% { box-shadow: 0 0 0 10px rgba(216,44,58,0); } }

@media (min-width: 1024px) {
  .ea-top { margin-left: var(--ea-rail); padding: 0 28px; gap: 16px; transition: margin-left var(--t) var(--ease); }
  .ea-rail-open .ea-top { margin-left: var(--ea-rail-open); }
  .ea-top__brand, .ea-only-m { display: none !important; }
  .ea-only-d { display: inline-flex !important; }
  .ea-search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 520px; height: 46px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(23,35,34,.12); color: var(--ink-soft); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
  .ea-search:focus-within { border-color: var(--forest-500); box-shadow: 0 0 0 4px rgba(20,125,104,.14); }
  .ea-search .ea-ico { width: 19px; height: 19px; }
  .ea-search input { flex: 1; border: 0; outline: 0; background: none; font: 500 15px var(--font-ui); color: var(--ink); min-width: 0; }
  .ea-top__ctx { display: flex; align-items: center; gap: 8px; }
}
.ea-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(23,35,34,.1); color: var(--forest-950); font: 600 13.5px var(--font-ui); text-decoration: none; white-space: nowrap; }
.ea-chip .ea-ico { width: 16px; height: 16px; color: var(--forest-700); }
.ea-chip:hover { border-color: var(--forest-500); }
.ea-chip[hidden] { display: none; }

/* Selector de idioma (conserva .lang-opt: i18n.js le pone clases de Tailwind que acá se neutralizan). */
.ea-lang { align-items: center; height: 40px; padding: 3px; border-radius: 999px; background: var(--sand-100); border: 1px solid rgba(23,35,34,.08); }
.ea-lang .lang-opt { min-width: 38px; height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent !important; color: var(--ink-soft) !important; font: 700 12.5px var(--font-ui); letter-spacing: .04em; cursor: pointer; }
.ea-lang .lang-opt[aria-pressed="true"] { background: var(--forest-950) !important; color: #fff !important; }

/* ---------- 4. Contenido ---------- */
body.ea-app #view.ea-main { display: block; outline: 0; width: 100%; max-width: 1320px; margin: 0 auto; padding: 20px 16px calc(var(--ea-bnav) + 32px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  body.ea-app #view.ea-main { padding: 32px 36px 64px calc(var(--ea-rail) + 36px); max-width: calc(1320px + var(--ea-rail)); margin: 0; transition: padding-left var(--t) var(--ease); }
  body.ea-app.ea-rail-open #view.ea-main { padding-left: calc(var(--ea-rail-open) + 36px); max-width: calc(1320px + var(--ea-rail-open)); }
}

/* ---------- 5. Barra inferior + hoja «Más» (celular/tablet) ---------- */
.ea-bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--ea-bnav) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(23,35,34,.08); box-shadow: 0 -8px 24px -18px rgba(6,47,53,.35);
}
.ea-bnav__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; border: 0; background: none; border-radius: 14px; color: var(--ink-soft); font: 600 11.5px/1 var(--font-ui); text-decoration: none; cursor: pointer; position: relative; }
.ea-bnav__item .ea-ico { width: 23px; height: 23px; }
.ea-bnav__item.is-active { color: var(--forest-950); }
.ea-bnav__item.is-active::before { content: ""; position: absolute; top: 2px; width: 46px; height: 30px; border-radius: 999px; background: rgba(20,125,104,.12); z-index: -1; }
.ea-bnav__item.is-active .ea-ico { color: var(--forest-700); }
@media (min-width: 1024px) { .ea-bnav, .ea-sheet { display: none !important; } }

.ea-sheet { position: fixed; inset: 0; z-index: 65; }
.ea-sheet__scrim { position: absolute; inset: 0; background: rgba(6,47,53,.45); opacity: 0; transition: opacity 220ms var(--ease); }
.ea-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: var(--sand-050); border-radius: 24px 24px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 260ms var(--ease); outline: 0; }
.ea-sheet.is-open .ea-sheet__scrim { opacity: 1; }
.ea-sheet.is-open .ea-sheet__panel { transform: none; }
.ea-sheet__grip { width: 44px; height: 5px; border-radius: 5px; background: rgba(23,35,34,.18); margin: 0 auto 8px; }
.ea-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ea-sheet__head h2 { margin: 0; font-size: 26px; color: var(--forest-950); }
.ea-sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ea-sheet__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 6px; border-radius: 16px; background: #fff; border: 1px solid rgba(23,35,34,.08); color: var(--forest-950); font: 600 13.5px/1.15 var(--font-ui); text-align: center; text-decoration: none; cursor: pointer; }
.ea-sheet__item .ea-ico { width: 26px; height: 26px; color: var(--forest-700); }
.ea-sheet__item.is-active { border-color: var(--forest-500); box-shadow: inset 0 0 0 1px var(--forest-500); }
.ea-sheet__item[data-tab="emergencias"] .ea-ico { color: var(--danger); }
.ea-sheet__lang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(23,35,34,.08); font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.ea-sheet__lang span { width: 100%; }
.ea-sheet__lang button { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid rgba(23,35,34,.14); background: #fff; font: 600 14px var(--font-ui); color: var(--forest-950); cursor: pointer; }
.ea-sheet__lang button[aria-pressed="true"] { background: var(--forest-950); color: #fff; border-color: var(--forest-950); }

/* ---------- 6. Piezas heredadas que el shell nuevo reubica ---------- */
/* El toast y el banner de alertas quedan por encima de la barra inferior. */
body.ea-app #alerta-banner { z-index: 70; }
body.ea-app [data-eco-fab] { display: none !important; }   /* no hay FAB flotantes en la app premium */
@media (max-width: 1023px) { body.ea-app .fixed.bottom-24 { bottom: calc(var(--ea-bnav) + 16px + env(safe-area-inset-bottom)); } }
/* El modal del asistente se abre desde la barra (escritorio) o desde «Más». */
body.ea-app #webchat-modal { z-index: 70; }

@media (prefers-reduced-motion: reduce) {
  body.ea-app *, body.ea-app *::before, body.ea-app *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   F85.2 — Componentes de vista premium (ap-*) · Inicio (in-*) · Atractivos
   ========================================================================== */
.ap-ico { width: 18px; height: 18px; flex-shrink: 0; }
.ap-ico--lg { width: 28px; height: 28px; }
.ap-ico--xl { width: 40px; height: 40px; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-eyebrow { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #F6C7A8; }
.ap-lead { margin: 10px 0 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 56ch; }
.ap-hint { margin: 0; font-size: 14px; color: var(--ink-soft); }
.ap-note { justify-self: start; display: inline-block; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(20,125,104,.1); color: var(--forest-700); font-size: 13px; font-weight: 700; }
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font: 700 15px/1 var(--font-ui); text-decoration: none; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); white-space: nowrap; }
.ap-btn .ap-ico { width: 17px; height: 17px; }
.ap-btn--primary { background: var(--terracotta); color: #fff; }
.ap-btn--primary:hover { background: var(--terracotta-700); }
.ap-btn--outline { background: #fff; color: var(--forest-950); border-color: rgba(6,47,53,.22); }
.ap-btn--outline:hover { border-color: var(--forest-950); }
.ap-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; color: var(--forest-700); font: 700 14.5px var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ap-link .ap-ico { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.ap-link:hover .ap-ico { transform: translateX(3px); }

/* Búsqueda protagonista */
.ap-bigsearch { display: flex; align-items: center; gap: 10px; margin-top: 22px; width: min(100%, 640px); height: 58px; padding: 0 6px 0 18px; border-radius: 999px; background: #fff; box-shadow: 0 16px 40px -18px rgba(0,0,0,.45); color: var(--ink-soft); }
.ap-bigsearch .ap-ico { width: 20px; height: 20px; }
.ap-bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16px var(--font-ui); color: var(--ink); }
.ap-bigsearch input::-webkit-search-cancel-button { cursor: pointer; }
.ap-bigsearch .ap-btn { height: 46px; padding: 0 22px; }
.ap-bigsearch:focus-within { box-shadow: 0 0 0 4px rgba(233,107,44,.35), 0 16px 40px -18px rgba(0,0,0,.45); }
@media (max-width: 480px) { .ap-bigsearch { height: 52px; } .ap-bigsearch .ap-btn { padding: 0 14px; height: 42px; font-size: 14px; } }

/* Encabezado con foto */
.ap-pagehead, .in-hero { position: relative; overflow: hidden; border-radius: 22px; color: #fff; background: var(--forest-950); isolation: isolate; }
.ap-pagehead__bg, .ap-pagehead__bg img, .in-hero__bg, .in-hero__bg picture, .in-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ap-pagehead::after, .in-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,47,53,.88) 0%, rgba(6,47,53,.55) 55%, rgba(6,47,53,.25) 100%), linear-gradient(0deg, rgba(6,47,53,.5), transparent 60%); }
.ap-pagehead__in, .in-hero__in { width: 100%; min-width: 0; box-sizing: border-box; padding: clamp(24px, 4vw, 48px); }
.ap-pagehead h1, .in-hero h1 { margin: 10px 0 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; color: #fff; }
.in-hero { min-height: clamp(300px, 40vh, 420px); display: flex; align-items: flex-end; }
@media (max-width: 1023px) { .ap-pagehead, .in-hero { border-radius: 18px; margin-inline: -4px; } }

/* Filtros */
.ap-filters { margin: 18px 0 16px; display: grid; gap: 12px; }
.ap-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.ap-chips::-webkit-scrollbar { display: none; }
.ap-chip { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(23,35,34,.12); background: #fff; color: var(--forest-950); font: 600 14.5px var(--font-ui); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.ap-chip .ap-ico { color: var(--forest-700); }
.ap-chip:hover { border-color: var(--forest-500); }
.ap-chip[aria-pressed="true"] { background: var(--forest-950); border-color: var(--forest-950); color: #fff; }
.ap-chip[aria-pressed="true"] .ap-ico { color: #9EDBC9; }
.ap-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ap-select { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(23,35,34,.14); background: #fff; color: var(--forest-700); }
.ap-select select { border: 0; outline: 0; background: none; font: 600 14.5px var(--font-ui); color: var(--forest-950); padding: 8px 4px; cursor: pointer; }
.ap-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(23,35,34,.14); background: #fff; color: var(--forest-950); font: 600 14.5px var(--font-ui); cursor: pointer; }
.ap-toggle .ap-ico { color: var(--forest-700); }
.ap-toggle b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; }
.ap-toggle b:empty { display: none; }
.ap-toggle[aria-pressed="true"] { background: rgba(20,125,104,.1); border-color: var(--forest-500); }
.ap-toggle[disabled] { opacity: .6; cursor: progress; }
.ap-count { margin: 0 0 0 auto; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.ap-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--sand-100); border: 1px solid rgba(23,35,34,.08); }
.ap-seg__opt { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 9px; color: var(--ink-soft); font: 600 14px var(--font-ui); text-decoration: none; }
.ap-seg__opt.is-on { background: var(--forest-950); color: #fff; }
@media (max-width: 640px) { .ap-count { width: 100%; margin: 0; order: 9; } .ap-seg { margin-left: auto; } }

/* Tarjetas */
.ap-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ap-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid rgba(23,35,34,.08); box-shadow: var(--eco-shadow-sm); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.ap-card:hover { transform: translateY(-2px); box-shadow: var(--eco-shadow-md); }
.ap-card--sk { min-height: 320px; background: linear-gradient(100deg, #efece4 30%, #f7f5ef 50%, #efece4 70%) 0 0 / 300% 100%; animation: ap-sk 1.4s linear infinite; }
@keyframes ap-sk { to { background-position: -150% 0; } }
.ap-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--sand-100); overflow: hidden; }
.ap-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.ap-card:hover .ap-card__media img { transform: scale(1.04); }
.ap-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(6,47,53,.35); background: radial-gradient(circle at 30% 20%, #E9E2D2, #F4F0E6); }
.ap-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(6,47,53,.82); color: #fff; font: 700 12.5px var(--font-ui); backdrop-filter: blur(6px); }
.ap-badge .ap-ico { width: 14px; height: 14px; }
.ap-badge--soft { position: static; background: rgba(20,125,104,.1); color: var(--forest-700); backdrop-filter: none; }
.ap-ilus { position: absolute; left: 12px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600; }
.ap-fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--forest-950); cursor: pointer; box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); }
.ap-fav .ap-ico { width: 21px; height: 21px; }
.ap-fav[aria-pressed="true"] { color: var(--terracotta); }
.ap-fav[aria-pressed="true"] .ap-ico, .ap-btn[data-fav][aria-pressed="true"] .ap-ico { fill: currentColor; }
.ap-btn[data-fav][aria-pressed="true"] { color: var(--terracotta-700); border-color: var(--terracotta); }
.ap-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 12px; flex: 1; }
.ap-card__body h3 { margin: 0; font-size: 20px; line-height: 1.15; color: var(--forest-950); }
.ap-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; font-size: 14px; color: var(--ink-soft); }
.ap-meta .ap-ico { width: 15px; height: 15px; color: var(--forest-700); }
.ap-dot { opacity: .5; }
.ap-desc { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-card__foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: flex-end; }
.ap-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 16px; border-radius: 18px; background: #fff; border: 1px dashed rgba(23,35,34,.18); }
.ap-empty h2 { margin: 0; font-size: 24px; color: var(--forest-950); }
.ap-empty p { margin: 0; max-width: 46ch; color: var(--ink-soft); }
.ap-empty__ico { color: var(--forest-500); }
.ap-footnote { margin: 18px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* Ficha (diálogo) */
.ap-dialog { position: fixed; inset: 0; z-index: 72; display: grid; place-items: end center; }
@media (min-width: 768px) { .ap-dialog { place-items: center; } }
.ap-dialog__scrim { position: absolute; inset: 0; background: rgba(6,47,53,.5); opacity: 0; transition: opacity 200ms var(--ease); }
.ap-dialog__panel { position: relative; width: min(100%, 560px); max-height: 92vh; overflow-y: auto; background: var(--sand-050); border-radius: 24px 24px 0 0; outline: 0; transform: translateY(24px); opacity: 0; transition: transform 240ms var(--ease), opacity 240ms var(--ease); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 768px) { .ap-dialog__panel { border-radius: 24px; } }
.ap-dialog.is-open .ap-dialog__scrim { opacity: 1; }
.ap-dialog.is-open .ap-dialog__panel { transform: none; opacity: 1; }
.ap-dialog__media { position: relative; aspect-ratio: 16 / 9; background: var(--sand-100); }
.ap-dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.ap-dialog__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--forest-950); display: grid; place-items: center; cursor: pointer; }
.ap-dialog__body { display: grid; gap: 10px; padding: 20px 22px 24px; }
.ap-dialog__body h2 { margin: 0; font-size: 30px; line-height: 1.08; color: var(--forest-950); }
.ap-dialog__body .ap-badge--soft { justify-self: start; }
.ap-dialog__desc { margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.ap-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* Inicio */
.in-quick { display: grid; gap: 10px; margin: 16px 0 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .in-quick { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .in-quick { grid-template-columns: repeat(6, 1fr); } }
.in-quick__item { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(23,35,34,.08); color: var(--forest-950); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast); }
.in-quick__item:hover { border-color: var(--forest-500); transform: translateY(-1px); }
.in-quick__ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(20,125,104,.1); color: var(--forest-700); }
.in-quick__ico .ap-ico { width: 23px; height: 23px; }
.in-quick__item--alert .in-quick__ico { background: rgba(216,44,58,.1); color: var(--danger); }
.in-quick__txt { display: grid; gap: 2px; min-width: 0; }
.in-quick__txt strong { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.15; }
.in-quick__txt span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.25; }
.in-quick__chev { margin-left: auto; color: rgba(23,35,34,.35); }
@media (max-width: 560px) { .in-quick__chev { display: none; } .in-quick__item { padding: 10px; gap: 10px; } .in-quick__ico { width: 38px; height: 38px; } }
@media (min-width: 1280px) { .in-quick__item { flex-direction: column; align-items: flex-start; } .in-quick__chev { display: none; } }
.in-sec { margin-top: 28px; }
.in-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.in-sec__head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); color: var(--forest-950); }
.in-towns { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.in-towns::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .in-towns { grid-auto-columns: 36%; } }
@media (min-width: 1100px) { .in-towns { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.in-town { position: relative; display: flex; align-items: flex-end; aspect-ratio: 8 / 7; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; scroll-snap-align: start; isolation: isolate; background: var(--forest-950); }
.in-town picture, .in-town img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--t-slow) var(--ease); }
.in-town::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,47,53,.88), rgba(6,47,53,0) 60%); }
.in-town:hover img { transform: scale(1.05); }
.in-town__txt { display: grid; gap: 2px; padding: 14px; }
.in-town__txt strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.in-town__txt span { font-size: 13.5px; opacity: .9; }
.in-cols { display: grid; gap: 8px 24px; }
@media (min-width: 1100px) { .in-cols { grid-template-columns: minmax(0, 1fr) 340px; } }
.in-places { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.in-place { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(23,35,34,.08); color: var(--forest-950); text-decoration: none; transition: box-shadow var(--t), transform var(--t); }
.in-place:hover { box-shadow: var(--eco-shadow-md); transform: translateY(-2px); }
.in-place__media { position: relative; aspect-ratio: 16 / 10; background: var(--sand-100); }
.in-place__media img { width: 100%; height: 100%; object-fit: cover; }
.in-place__txt { display: grid; gap: 2px; padding: 12px 14px 14px; }
.in-place__txt strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.15; }
.in-place__txt span { font-size: 13.5px; color: var(--ink-soft); }
.in-rail { display: grid; gap: 16px; align-content: start; margin-top: 28px; }
.in-panel { display: block; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.08); color: inherit; text-decoration: none; }
.in-panel .in-sec__head { margin-bottom: 10px; }
.in-panel .in-sec__head h2, .in-panel > h2 { margin: 0; font-size: 21px; color: var(--forest-950); }
.in-panel--help { background: var(--sand-100); }
.in-panel--help p { margin: 8px 0 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.in-empty { display: grid; gap: 8px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.in-empty .ap-ico { color: var(--forest-500); }
.in-empty p { margin: 0; }
.in-empty strong { color: var(--forest-950); }
.in-evs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.in-ev { display: flex; gap: 12px; align-items: center; }
.in-ev__date { width: 50px; height: 54px; border-radius: 12px; background: var(--sand-100); display: grid; place-items: center; align-content: center; font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.in-ev__date b { font-family: var(--font-display); font-size: 20px; color: var(--forest-950); line-height: 1; }
.in-ev__txt { display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-soft); }
.in-ev__txt strong { font-size: 15px; color: var(--forest-950); }
.in-ad { display: grid; gap: 6px; }
.in-ad img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.in-ad__tag { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--sand-100); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.in-ad strong { font-family: var(--font-display); font-size: 18px; color: var(--forest-950); }
.in-ad span:last-child { font-size: 14px; color: var(--ink-soft); }

/* ==========================================================================
   F85.5–F85.7 — Clima (cl-*), Emergencias (em-*), Pasaporte (pp-*), SOS hold
   ========================================================================== */
.ap-eyebrow--ink { color: var(--terracotta-700); }
.ap-eyebrow--danger { color: var(--danger); }
.ap-link--light { color: #F6C7A8; }
.ap-btn--danger { background: var(--danger); color: #fff; }
.ap-btn--danger:hover { background: #B8202D; }

/* Clima */
.cl-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.cl-head h1 { margin: 6px 0 0; font-size: clamp(28px, 3.4vw, 44px); color: var(--forest-950); }
.cl-towns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
@media (max-width: 720px) { .cl-towns { grid-auto-flow: column; grid-auto-columns: 34%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; } .cl-towns::-webkit-scrollbar { display: none; } }
.cl-town { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 8; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; scroll-snap-align: start; outline-offset: 3px; }
.cl-town img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.7) brightness(.85); transition: filter var(--t), transform var(--t-slow) var(--ease); }
.cl-town::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,47,53,.85), rgba(6,47,53,.1)); }
.cl-town span { padding: 10px 12px; font: 600 15px var(--font-ui); }
.cl-town[aria-selected="true"] { box-shadow: 0 0 0 3px var(--terracotta); }
.cl-town[aria-selected="true"] img, .cl-town:hover img { filter: none; transform: scale(1.04); }
.cl-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .cl-grid { grid-template-columns: 1.4fr 1fr; } .cl-card--wide { grid-column: 1 / -1; } }
.cl-sk { min-height: 240px; border-radius: 22px; background: linear-gradient(100deg, #efece4 30%, #f7f5ef 50%, #efece4 70%) 0 0 / 300% 100%; animation: ap-sk 1.4s linear infinite; }
.cl-now { position: relative; border-radius: 22px; padding: 24px 26px; color: #fff; background: radial-gradient(120% 100% at 100% 0%, #147D68 0%, var(--forest-950) 60%); overflow: hidden; isolation: isolate; }
.cl-now--noche { background: radial-gradient(120% 100% at 100% 0%, #1E3A5F 0%, #071A2B 60%); }
.cl-now::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/assets/img/topo.svg') 0 0 / 520px; opacity: .1; }
.cl-now__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-now__top h2 { margin: 0; font-size: 20px; }
.cl-upd { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .8; }
.cl-upd .ap-ico { width: 15px; height: 15px; }
.cl-now__main { display: flex; align-items: center; gap: 18px; margin: 20px 0 18px; }
.cl-now__ico { width: 72px; height: 72px; color: #FFD2B6; }
.cl-now__temp { font-family: var(--font-display); font-size: clamp(64px, 8vw, 96px); font-weight: 600; line-height: .9; letter-spacing: -.03em; }
.cl-now__desc { font-size: 18px; opacity: .92; max-width: 12ch; line-height: 1.2; }
.cl-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.cl-metrics > div { display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; align-items: center; }
.cl-metrics .ap-ico { grid-row: 1 / 3; color: #9EDBC9; }
.cl-metrics dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cl-metrics dd { margin: 0; font: 700 17px var(--font-ui); }
.cl-metrics dd small { font-size: 12px; font-weight: 600; opacity: .8; }
@media (max-width: 520px) { .cl-metrics { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cl-now__ico { width: 54px; height: 54px; } }
.cl-card { background: #fff; border: 1px solid rgba(23,35,34,.08); border-radius: 22px; padding: 22px 24px; }
.cl-card h2 { margin: 0 0 14px; font-size: 20px; color: var(--forest-950); }
.cl-reco { color: #fff; background: var(--forest-700); border: 0; display: grid; gap: 10px; align-content: start; }
.cl-reco--warn { background: #7A4A12; }
.cl-reco__txt { margin: 0; font: 500 17px/1.45 var(--font-ui); }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-chip { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.16); }
.cl-chip.is-no { background: rgba(0,0,0,.25); text-decoration: line-through; }
.cl-hours { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.cl-hours li { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; text-align: center; color: var(--ink-soft); }
.cl-hours li.is-now { background: var(--sand-100); color: var(--forest-950); }
.cl-hours .ap-ico { width: 24px; height: 24px; color: var(--forest-700); }
.cl-hours__h { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.cl-hours__t { font: 700 16px var(--font-ui); color: var(--forest-950); font-variant-numeric: tabular-nums; }
.cl-hours__bar { width: 6px; height: 46px; border-radius: 3px; background: var(--sand-100); display: flex; align-items: flex-end; overflow: hidden; }
.cl-hours__bar i { display: block; width: 100%; min-height: 4px; border-radius: 3px; background: linear-gradient(0deg, var(--forest-500), var(--terracotta)); }
.cl-hours__pp { font-size: 11.5px; min-height: 14px; color: #2563EB; font-weight: 700; opacity: .6; }
.cl-hours__pp.is-on { opacity: 1; }
.cl-days { list-style: none; margin: 0; padding: 0; display: grid; }
.cl-days li { display: grid; grid-template-columns: 110px 28px 1fr auto auto 90px; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(23,35,34,.08); font-size: 15px; color: var(--ink-soft); }
.cl-days li:first-child { border-top: 0; }
.cl-days .ap-ico { width: 24px; height: 24px; color: var(--forest-700); }
.cl-days__d { font-weight: 700; color: var(--forest-950); text-transform: capitalize; }
.cl-days__pp { display: inline-flex; align-items: center; gap: 4px; color: #2563EB; font-weight: 700; font-size: 13px; }
.cl-days__pp .ap-ico { width: 14px; height: 14px; color: #2563EB; }
.cl-days__uv { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.cl-days__t { text-align: right; font-variant-numeric: tabular-nums; }
.cl-days__t b { color: var(--forest-950); font-size: 17px; }
@media (max-width: 640px) { .cl-days li { grid-template-columns: 80px 24px 1fr 70px; } .cl-days__pp, .cl-days__uv { display: none; } }

/* Emergencias */
.em-head { display: grid; gap: 18px; margin-bottom: 26px; }
@media (min-width: 960px) { .em-head { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 32px; } }
.em-head h1 { margin: 6px 0 8px; font-size: clamp(30px, 3.6vw, 46px); color: var(--forest-950); }
.em-head .ap-hint { max-width: 56ch; font-size: 15px; }
.em-sos-card { border-radius: 20px; padding: 20px 22px; background: var(--forest-950); color: #fff; display: grid; gap: 10px; justify-items: start; }
.em-sos-card p:not(.ap-eyebrow) { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.88); }
.em-h2 { margin: 0 0 12px; font-size: 22px; color: var(--forest-950); }
.em-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: 30px; }
.em-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.08); color: var(--forest-950); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast); }
.em-card:hover { border-color: var(--danger); transform: translateY(-1px); }
.em-card__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(216,44,58,.1); color: var(--danger); }
.em-card--local .em-card__ico { background: rgba(20,125,104,.12); color: var(--forest-700); }
.em-card__ico .ap-ico { width: 24px; height: 24px; }
.em-card__txt { display: grid; gap: 2px; min-width: 0; }
.em-card__txt strong { font-size: 16px; }
.em-card__txt span { font-size: 13px; color: var(--ink-soft); }
.em-card__num { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.em-card--local .em-card__num { font-size: 18px; font-family: var(--font-ui); font-weight: 700; }
.em-loc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.em-loc-head .em-h2 { margin: 0; }
.em-tips { border-radius: 20px; padding: 22px 24px; background: var(--sand-100); }
.em-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.em-tips strong { color: var(--forest-950); }

/* SOS: mantener presionado */
.sos-hold { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
@media (min-width: 640px) { .sos-hold { place-items: center; } }
.sos-hold__scrim { position: absolute; inset: 0; background: rgba(60,8,14,.72); }
.sos-hold__panel { position: relative; width: min(100%, 480px); background: #fff; border-radius: 24px 24px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
@media (min-width: 640px) { .sos-hold__panel { border-radius: 24px; } }
.sos-hold__eyebrow { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--danger); }
.sos-hold__panel h2 { margin: 0; font-size: 28px; color: var(--forest-950); }
.sos-hold__panel p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.sos-hold__btn { position: relative; overflow: hidden; width: 100%; min-height: 76px; border: 0; border-radius: 999px; background: var(--danger); color: #fff; font: 800 18px var(--font-ui); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.sos-hold__fill { position: absolute; inset: 0; width: 0; background: rgba(0,0,0,.28); }
.sos-hold__btn.is-holding .sos-hold__fill { width: 100%; transition: width 3s linear; }
.sos-hold__lbl { position: relative; }
.sos-hold__hint { min-height: 20px; text-align: center; font-size: 13.5px; }
.sos-hold__alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sos-hold__call { color: var(--danger); font-weight: 800; text-decoration: none; padding: 10px 0; }
.sos-hold__cancel { border: 0; background: none; font: 600 15px var(--font-ui); color: var(--ink-soft); padding: 10px; cursor: pointer; }

/* Pasaporte */
.pp-hero { position: relative; display: grid; gap: 24px; border-radius: 22px; padding: clamp(22px, 3.5vw, 40px); color: #fff; background: radial-gradient(120% 100% at 100% 0%, #B85A24 0%, var(--forest-950) 55%); overflow: hidden; isolation: isolate; }
.pp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/assets/img/topo.svg') 0 0 / 560px; opacity: .1; }
@media (min-width: 1000px) { .pp-hero { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.pp-hero h1 { margin: 8px 0 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; }
.pp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.pp-kpis div { display: grid; gap: 2px; }
.pp-kpis b { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; }
.pp-kpis span { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.pp-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pp-stamp { position: relative; aspect-ratio: 1; display: grid; place-items: center; text-align: center; }
.pp-stamp img { position: absolute; inset: 8%; width: 84%; height: 84%; border-radius: 50%; object-fit: cover; filter: grayscale(1) brightness(.55); transition: filter var(--t-slow); }
.pp-stamp__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); }
.pp-stamp.is-on img { filter: none; }
.pp-stamp.is-on .pp-stamp__ring { border: 3px solid var(--terracotta); box-shadow: 0 0 0 4px rgba(233,107,44,.25); }
.pp-stamp__n { position: relative; font: 700 11px var(--font-ui); padding: 3px 7px; border-radius: 999px; background: rgba(6,47,53,.8); }
.pp-stamp__c { position: absolute; top: 0; right: 4%; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); font: 800 12px/22px var(--font-ui); }
@media (max-width: 480px) { .pp-stamp__n { font-size: 9.5px; padding: 2px 5px; } }
.pp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 18px 0 22px; }
.pp-next { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 16px; background: #fff; border: 1px solid rgba(23,35,34,.08); }
.pp-next__e { font-size: 26px; }
.pp-next > span:last-child { display: grid; gap: 1px; font-size: 13px; color: var(--ink-soft); }
.pp-next strong { color: var(--forest-950); font-size: 14.5px; }

/* Componentes heredados (EcoUI) que las vistas restantes siguen usando: acabado premium */
body.ea-app .eco-modhead { border-left: 0; padding-left: 0; }
body.ea-app .eco-modhead__title { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.02em; }
body.ea-app .eco-card, body.ea-app .eco-filtercard, body.ea-app .eco-empty { border-radius: 18px; border-color: rgba(23,35,34,.08); box-shadow: var(--eco-shadow-sm); }
body.ea-app .eco-filtercards { display: flex; flex-wrap: wrap; gap: 8px; }
body.ea-app .eco-filtercard { flex: 0 0 auto; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px; box-shadow: none; }
body.ea-app .eco-filtercard__icon { width: 30px; height: 30px; border-radius: 50%; }
body.ea-app .eco-filtercard__title { font-size: 14px; }
body.ea-app .eco-filtercard__state { display: none; }
body.ea-app .eco-filtercard { opacity: .55; }
body.ea-app .eco-filtercard.is-active, body.ea-app .eco-filtercard[aria-pressed="true"] { opacity: 1; border-color: var(--forest-500); background: #fff; }
body.ea-app .eco-btn { border-radius: 999px; font-weight: 700; }
body.ea-app .eco-btn--primary { background: var(--terracotta); border-color: var(--terracotta); }
body.ea-app .eco-btn--primary:hover { background: var(--terracotta-700); }
body.ea-app .eco-tabs { background: transparent; border: 0; padding: 0; gap: 6px; }
body.ea-app .eco-tab { border-radius: 999px; border: 1px solid rgba(23,35,34,.12); background: #fff; min-height: 42px; }
body.ea-app .eco-tab.is-active, body.ea-app .eco-tab[aria-selected='true'] { background: var(--forest-950); color: #fff; border-color: var(--forest-950); }
body.ea-app .leaflet-container { border-radius: 18px; }
body.ea-app .eco-sectionhead__title { font-size: 24px; }
/* Celular: las tiras horizontales desplazan dentro de su tarjeta, nunca la página */
.cl-grid > *, .cl-card, .ap-pagehead, .in-hero { min-width: 0; }
.cl-hours, .cl-towns, .in-towns, .ap-chips, .tcards { max-width: 100%; }
body.ea-app #view.ea-main { overflow-x: clip; }


/* ==========================================================================
   F85.3 Mapa (mp-*) · F85.4 Agenda (ag-*) · F85.8 Mi cuenta (ac-*)
   ========================================================================== */
.mp-head, .ag-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.mp-head h1, .ag-head h1, .ac-head h1 { margin: 6px 0 0; font-size: clamp(28px, 3.4vw, 44px); color: var(--forest-950); line-height: 1.05; }
.mp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.mp-search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 420px; height: 48px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(23,35,34,.12); color: var(--ink-soft); }
.mp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 15px var(--font-ui); color: var(--ink); }
.mp-search:focus-within { border-color: var(--forest-500); box-shadow: 0 0 0 4px rgba(20,125,104,.14); }
.mp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mp-extra { display: contents; }
.mp-extra[hidden] { display: none; }
body.ea-app .mp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(23,35,34,.12); background: #fff; color: var(--forest-950); opacity: 1; cursor: pointer; font: 600 14.5px var(--font-ui); box-shadow: none; }
body.ea-app .mp-chip .eco-filtercard__title { font-size: 14.5px; }
body.ea-app .mp-chip:not(.is-on) { color: var(--ink-soft); background: transparent; border-style: dashed; }
body.ea-app .mp-chip:not(.is-on) .mp-chip__dot { opacity: .3; }
.mp-chip__dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(23,35,34,.12); }
.mp-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--sand-100); color: var(--forest-950); font: 600 14px var(--font-ui); cursor: pointer; }
.mp-more[aria-expanded="true"] { background: var(--forest-950); color: #fff; }
.mp-layout { display: grid; gap: 16px; }
@media (min-width: 1100px) { .mp-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.mp-mapwrap { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(23,35,34,.1); box-shadow: var(--eco-shadow-md); }
.mp-map { height: clamp(420px, 68vh, 760px); width: 100%; }
body.ea-app .mp-map.leaflet-container { border-radius: 0; font-family: var(--font-ui); }
.mp-route { position: absolute; left: 14px; bottom: 14px; z-index: 500; width: min(320px, calc(100% - 28px)); background: rgba(250,248,242,.96); backdrop-filter: blur(10px); border-radius: 18px; padding: 12px 14px; box-shadow: var(--eco-shadow-md); }
.mp-route__head { display: grid; gap: 2px; }
.mp-route__head strong { font-family: var(--font-display); font-size: 17px; color: var(--forest-950); }
.mp-route__head span { font-size: 13px; color: var(--ink-soft); }
.mp-route__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-height: 180px; overflow-y: auto; }
.mp-route__list li { display: grid; grid-template-columns: 24px 1fr 32px; align-items: center; gap: 8px; font-size: 14px; }
.mp-route__list button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 20px; color: var(--ink-soft); cursor: pointer; }
.mp-route__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-n, .mp-pin { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--terracotta); color: #fff; font: 800 12px var(--font-ui); }
.mp-pin { width: 28px; height: 28px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.mp-route__actions { display: flex; gap: 8px; margin-top: 10px; }
.mp-route__actions .ap-btn { min-height: 40px; flex: 1; }
.mp-route:not(.has-stops) { padding: 10px 14px; }
@media (max-width: 640px) { .mp-route { left: 8px; right: 8px; bottom: 8px; width: auto; } .mp-map { height: 62vh; } }
.mp-pop-actions { display: flex; gap: 6px; margin-top: 10px; }
.mp-pop-actions button, .mp-pop-actions a { flex: 1; display: inline-grid; place-items: center; min-height: 36px; padding: 0 10px; border-radius: 999px; font: 700 12.5px var(--font-ui); text-decoration: none; cursor: pointer; }
.mp-pop-actions button { border: 0; background: var(--terracotta); color: #fff; }
.mp-pop-actions a { border: 1px solid rgba(6,47,53,.2); color: var(--forest-950) !important; background: #fff; }
body.ea-app .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--eco-shadow-md); }
body.ea-app .leaflet-popup-content { margin: 14px 16px; font-family: var(--font-ui); }
.mp-side { display: grid; gap: 14px; align-content: start; }
.mp-circ { margin-top: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.08); }
.mp-circ summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; cursor: pointer; font: 700 15px var(--font-ui); color: var(--forest-950); list-style: none; }
.mp-circ summary::-webkit-details-marker { display: none; }
.mp-circ summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--ink-soft); }
.mp-circ[open] summary::after { content: "–"; }
.mp-circ__body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 18px 16px; }
.mp-circ__body .ap-hint { width: 100%; }

/* Agenda */
.ag-bar { display: grid; gap: 10px; margin-bottom: 18px; }
.ag-date-pick { position: relative; padding: 0 12px; }
.ag-date-pick input { border: 0; background: none; font: 600 14px var(--font-ui); color: var(--forest-950); min-height: 40px; }
.ag-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ag-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid rgba(23,35,34,.08); box-shadow: var(--eco-shadow-sm); }
.ag-card--hero { grid-column: 1 / -1; }
@media (min-width: 900px) { .ag-card--hero { flex-direction: row; } .ag-card--hero .ag-card__media { flex: 0 0 48%; aspect-ratio: auto; min-height: 320px; } }
.ag-card__media { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 20%, #E9E2D2, #F4F0E6); }
.ag-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ag-date { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 58px; padding: 8px 0; border-radius: 14px; background: #fff; color: var(--ink-soft); font: 700 11.5px var(--font-ui); text-transform: uppercase; box-shadow: var(--eco-shadow-sm); }
.ag-date b { font-family: var(--font-display); font-size: 26px; color: var(--forest-950); line-height: 1; }
.ag-flag { position: absolute; right: 14px; top: 14px; padding: 5px 10px; border-radius: 999px; background: var(--terracotta); color: #fff; font: 800 11.5px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.ag-card__body { display: grid; gap: 6px; padding: 16px 18px 18px; align-content: start; }
.ag-card__body h3 { margin: 0; font-size: 22px; line-height: 1.15; color: var(--forest-950); }
.ag-card--hero .ag-card__body { padding: clamp(18px, 3vw, 32px); }
.ag-card--hero .ag-card__body h3 { font-size: clamp(26px, 2.6vw, 36px); }
.ag-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ag-actions .ap-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.ag-save[aria-pressed="true"] { background: var(--forest-950); color: #fff; border-color: var(--forest-950); }
.ag-save[aria-pressed="true"] .ap-ico { fill: currentColor; }
.ag-empty { grid-column: 1 / -1; display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--sand-100); }
.ag-empty h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); color: var(--forest-950); }
.ag-empty p { margin: 6px 0 0; color: var(--ink-soft); max-width: 58ch; }
.ag-perm { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.ag-perm:empty { display: none; }

/* Mi cuenta */
.ac-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.ac-avatar { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--forest-950); color: #FFD2B6; }
.ac-avatar .ap-ico { width: 34px; height: 34px; }
.ac-head h1 { font-size: clamp(24px, 3vw, 36px); word-break: break-word; }
.ac-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .ac-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.ac-col { display: grid; gap: 16px; }
.ac-card { display: grid; gap: 10px; justify-items: start; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(23,35,34,.08); }
.ac-card h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; color: var(--forest-950); }
.ac-card h2 .ap-ico { color: var(--forest-700); width: 20px; height: 20px; }
.ac-favs { display: grid; gap: 8px; width: 100%; }
.ac-fav { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 8px; }
.ac-fav a { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; color: var(--forest-950); text-decoration: none; }
.ac-fav img, .ac-fav a > span { width: 56px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--sand-100); }
.ap-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(23,35,34,.1); background: #fff; display: grid; place-items: center; color: var(--ink-soft); cursor: pointer; }
.ap-seg__opt[aria-pressed] { border: 0; background: none; cursor: pointer; }
.ap-seg__opt.is-on[aria-pressed] { background: var(--forest-950); color: #fff; }
#ac-cuenta .eco-card { margin: 0; }

/* ==========================================================================
   F87 — Check-in con QR firmado y horarios del comercio
   ========================================================================== */
.ck { display: grid; place-items: center; min-height: 60vh; padding-block: 16px; }
.ck-card { width: min(100%, 460px); display: grid; justify-items: center; gap: 10px; padding: clamp(24px, 5vw, 36px); border-radius: 26px; background: #fff; border: 1px solid rgba(23,35,34,.08); box-shadow: var(--shadow, 0 10px 30px -12px rgba(6,47,53,.22)); text-align: center; }
.ck-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--forest-950, #062F35); color: #FFD2B6; }
.ck-eyebrow { margin: 6px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta-700, #A34418); }
.ck-card h1 { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: clamp(30px, 6vw, 40px); line-height: 1.05; color: var(--forest-950, #062F35); }
.ck-txt { margin: 0; max-width: 36ch; color: var(--ink-soft, #4A5654); line-height: 1.5; }
.ck-body { width: 100%; margin-top: 8px; }
.ck-btn { width: 100%; min-height: 54px; font-size: 16px; justify-content: center; }
.ck-wait { margin: 0; color: var(--ink-soft, #4A5654); }
.ck-ok, .ck-err { display: grid; justify-items: center; gap: 8px; padding: 18px; border-radius: 18px; }
.ck-ok { background: rgba(20,125,104,.08); }
.ck-err { background: rgba(216,44,58,.06); color: var(--ink, #172322); }
.ck-err p { margin: 0; line-height: 1.45; }
.ck-ok__ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-500, #147D68); color: #fff; }
.ck-err__ico { color: var(--danger, #D82C3A); }
.ck-ok__t { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: 24px; color: var(--forest-950, #062F35); }
.ck-ok__d { margin: 0 0 4px; color: var(--forest-700, #0E6B5C); font-weight: 700; }
.ck-estado { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: rgba(216,44,58,.08); color: var(--danger, #D82C3A); font-weight: 800; font-size: 13.5px; }
.ck-estado.is-open { background: rgba(20,125,104,.12); color: var(--forest-700, #0E6B5C); }
.ck-semana { display: grid; gap: 4px; margin: 0; }
.ck-semana div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; border-top: 1px solid rgba(23,35,34,.06); }
.ck-semana div:first-child { border-top: 0; }
.ck-semana dt { color: var(--ink-soft, #4A5654); }
.ck-semana dd { margin: 0; font-weight: 700; color: var(--forest-950, #062F35); text-align: right; }
