/* =====================================================================
   Explora Perú · sistema visual (colores del logo)
   Naranja del sol = acción, solo en lo que se puede tocar. Azul petróleo = viaje y
   confianza. Dorado = sellos y logros. Fondo crema como el logo.
   Blanco de base y tema claro por defecto: se lee bien al sol.
   Radios: botones en píldora, tarjetas 18px, campos 12px.
   Capas: tabbar 40, topbar 50, menús 60, avisos 70.
   ===================================================================== */
:root {
    --bg: #fbf8f1;
    --surface: #ffffff;
    --surface-2: #f2ede2;
    --ink: #1d2a2c;
    --muted: #56656a;
    --line: #e4ddcf;
    --brand: #0f6b70;
    --brand-ink: #f4fbfa;
    --accent: #d2451e;
    --accent-hover: #b83a18;
    --accent-ink: #ffffff;
    --accent-soft: #fde9df;
    --ok: #1c7350;
    --ok-soft: #dff2e8;
    --err: #9b1c1c;
    --err-soft: #fbe4e2;
    --shadow: 0 12px 32px -18px rgba(15, 107, 112, .4);
    --gold: #f7a21b;
    --gold-ink: #4a3000;
    --logo-bg: transparent;
    --logo-filtro: none;
    --r-card: 18px;
    --r-field: 12px;
    --topbar-h: 64px;
    --tabbar-h: 0px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
    --on-selected-bg: var(--brand);
    --on-selected-fg: var(--brand-ink);
    --icon-strong: var(--brand);
    --toast-err-fg: #fff;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e1716;
        --surface: #152220;
        --surface-2: #1d2e2b;
        --ink: #eef5f3;
        --muted: #a9bbb7;
        --line: #2a3d39;
        --brand: #0c4a4d;
        --brand-ink: #eef5f3;
        --accent: #ff8a5c;
        --accent-hover: #ffa27c;
        --accent-ink: #2a0d00;
        --accent-soft: #3d2115;
        --ok: #5fcc9c;
        --ok-soft: #173229;
        --err: #ff8a8a;
        --err-soft: #3a1c1e;
        --shadow: 0 14px 34px -18px rgba(0, 0, 0, .8);
        --on-selected-bg: var(--ink);
        --on-selected-fg: var(--bg);
        --icon-strong: var(--ink);
        --logo-bg: transparent;
        --logo-filtro: brightness(1.55) saturate(1.15);
        --toast-err-fg: #220908;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --logo-bg: transparent;
        --logo-filtro: brightness(1.55) saturate(1.15);
    --bg: #0e1716;
    --surface: #152220;
    --surface-2: #1d2e2b;
    --ink: #eef5f3;
    --muted: #a9bbb7;
    --line: #2a3d39;
    --brand: #0c4a4d;
    --brand-ink: #eef5f3;
    --accent: #ff8a5c;
    --accent-hover: #ffa27c;
    --accent-ink: #2a0d00;
    --accent-soft: #3d2115;
    --ok: #5fcc9c;
    --ok-soft: #173229;
    --err: #ff8a8a;
    --err-soft: #3a1c1e;
    --shadow: 0 14px 34px -18px rgba(0, 0, 0, .8);
    --on-selected-bg: var(--ink);
    --on-selected-fg: var(--bg);
    --icon-strong: var(--ink);
    --toast-err-fg: #220908;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.55 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { max-width: 65ch; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.muted { color: var(--muted); }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
    background: none;
    transition: background-color .2s, border-color .2s, transform .2s var(--ease), opacity .2s;
}
.btn i { font-size: 1.25em; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover:not(:disabled) { border-color: var(--muted); }
.btn-photo { background: rgba(6, 28, 34, .45); border-color: rgba(255, 255, 255, .55); color: #f5fbfc; backdrop-filter: blur(6px); }
.btn-photo:hover { background: rgba(6, 28, 34, .7); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-text:hover { text-decoration: underline; }
form.inline { display: contents; }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; width: min(1240px, 100%); height: var(--topbar-h); margin-inline: auto; padding-inline: 20px; }
.logo { font: 700 1.3rem var(--font-display); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.logo { padding: 3px 8px; margin-left: -8px; border-radius: 12px; background: var(--logo-bg); line-height: 0; }
.logo img { display: block; height: 32px; width: auto; filter: var(--logo-filtro); }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
.topnav a:hover { color: var(--ink); }
.topnav a.is-active { color: var(--ink); background: var(--surface-2); }
.topbar-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 40px; }
.menu summary::-webkit-details-marker { display: none; }
.lang-menu summary { padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .92rem; }
.lang-menu summary:hover { border-color: var(--muted); }
.lang-menu summary .ph-globe { font-size: 1.25rem; color: var(--accent); }
.caret { font-size: .8rem; transition: transform .2s var(--ease); }
.menu[open] .caret { transform: rotate(180deg); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; max-height: calc(100dvh - var(--topbar-h) - 24px); overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.menu-label { padding: 10px 12px 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.menu-list a + .menu-label { margin-top: 4px; border-top: 1px solid var(--line); }
.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 6px 6px; }
.theme-row button { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: none; font-size: .86rem; cursor: pointer; }
.theme-row button[aria-pressed="true"] { background: var(--on-selected-bg); border-color: var(--on-selected-bg); color: var(--on-selected-fg); font-weight: 700; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 80; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); }
.skip-link:focus { top: 10px; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.user-menu .menu-list a { justify-content: flex-start; }
.menu-list a:hover { background: var(--surface-2); }
.menu-list a.is-active { font-weight: 600; }
.menu-list a.is-active i { color: var(--accent); }
.menu-head { padding: 8px 12px; font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.avatar-sm { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 520px) {
    .topbar-in { padding-inline: 14px; }
    .logo img { height: 27px; }
    .topbar-end { gap: 6px; }
    .lang-menu summary { padding: 0 8px; }
    .lang-menu .caret { display: none; }
    .topbar-end .btn-sm { padding: 0 12px; font-size: .86rem; }
    .topbar-end > .btn-primary { display: none; } /* el visitante ya ve la invitación en su inicio */
}

/* ---------- Barra inferior (móvil) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
    body:has(.tabbar) { --tabbar-h: 68px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
    .topnav { display: none; }
    .topbar-in { gap: 10px; }
    .tabbar {
        position: fixed; inset: auto 0 0 0; z-index: 40;
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        background: var(--surface); border-top: 1px solid var(--line);
    }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; font-size: .72rem; font-weight: 500; color: var(--muted); text-decoration: none; }
    .tabbar i { font-size: 1.5rem; }
    .tabbar a.is-active { color: var(--ink); font-weight: 600; }
    .tabbar .tab-main i { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.6rem; box-shadow: var(--shadow); }
    .tabbar .tab-main { color: var(--ink); font-weight: 600; }
}

/* ---------- Avisos y mensajes ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px); z-index: 70; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); animation: entra .35s var(--ease); }
.toast.err { background: var(--err); color: var(--toast-err-fg); }
.alert { padding: 12px 16px; border-radius: var(--r-field); font-size: .95rem; }
.alert ul { padding-left: 18px; }
.alert-err { background: var(--err-soft); color: var(--err); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--surface-2); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-size: .86rem; }
.input, .field input, .field select {
    width: 100%; min-height: 50px; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--muted); border-radius: var(--r-field);
    font-size: 16px; /* evita el zoom automático en iOS */
}
.input:focus, .field input:focus, .field select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.field input::placeholder { color: var(--muted); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 50px; }
.pass-eye { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.25rem; }
.meter { height: 6px; border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; transition: width .3s var(--ease), background-color .3s; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--muted); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--on-selected-bg); border-color: var(--on-selected-bg); color: var(--on-selected-fg); }

/* ---------- Superficies ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(18px, 2.4vw, 26px); }

/* ---------- Portada ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(88dvh, 780px); color: #f5fbfc; background: var(--brand); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: asoma 1.4s var(--ease) both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 28, 34, .74) 0%, rgba(6, 28, 34, .32) 48%, rgba(6, 28, 34, 0) 100%), linear-gradient(0deg, rgba(6, 28, 34, .55) 0%, transparent 42%); }
/* Capa: cuatro fotos que se alternan cada 6 s */
.hero-slide { opacity: 0; animation: portada 24s linear infinite; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:only-child { opacity: 1; animation: asoma 1.4s var(--ease) both; }
@keyframes portada { 0% { opacity: 0; transform: scale(1.04); } 5% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.hero-in { position: relative; z-index: 1; width: min(1240px, 100%); margin-inline: auto; padding: 96px 20px clamp(40px, 7vw, 76px); }
.hero-in > * { max-width: 680px; animation: sube .9s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: .1s; }
.hero-in > :nth-child(3) { animation-delay: .2s; }
.hero p { margin-top: 18px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.45; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@keyframes asoma { from { transform: scale(1.05); opacity: .6; } }
@keyframes sube { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 640px) {
    .hero { min-height: calc(100dvh - var(--topbar-h)); }
    .hero::after { background: linear-gradient(0deg, rgba(6, 28, 34, .92) 0%, rgba(6, 28, 34, .55) 55%, rgba(6, 28, 34, .15) 100%); }
    .hero-cta .btn { width: 100%; }
}

.facts { color: #fff; background: linear-gradient(90deg, rgba(10, 74, 78, .86), rgba(15, 107, 112, .74) 60%, rgba(210, 69, 30, .62)), url('https://commons.wikimedia.org/wiki/Special:FilePath/Playa%20Roja%20-%20Paracas%20National%20Reserve%2C%20Ica.jpg?width=1280') center 60% / cover, var(--brand); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; padding-block: 20px; list-style: none; padding-left: 0; }
.facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; line-height: 1.25; }
.facts i { font-size: 1.5rem; flex: none; color: #f7a21b; }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, 1fr); } .facts li { font-size: .92rem; } }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.how-steps { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 24px; }
.how-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.how-steps i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); color: var(--icon-strong); font-size: 1.6rem; }
.how-steps h3 { margin-bottom: 2px; }
.sample { overflow: hidden; padding: 0; box-shadow: var(--shadow); }
.sample img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sample-body { padding: 20px 22px 22px; }
.sample-found { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: .92rem; }
.sample-body h3 { margin: 6px 0 8px; font-size: 1.5rem; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 250px; gap: 14px; margin-top: 32px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 22px; border: 0; border-radius: var(--r-card); overflow: hidden; text-align: left; color: #f5fbfc; background: var(--brand); cursor: pointer; text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 28, 34, .84) 0%, rgba(6, 28, 34, .18) 55%, rgba(6, 28, 34, 0) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile h3 { font-size: 1.45rem; }
.tile p { margin-top: 4px; font-size: .98rem; line-height: 1.4; }
.tile-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; }
.tile-go i { transition: transform .25s var(--ease); }
.tile:hover .tile-go i { transform: translateX(4px); }
.tile-a { grid-column: span 7; grid-row: span 2; }
.tile-a h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tile-b, .tile-c { grid-column: span 5; }
@media (max-width: 760px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .tile-a, .tile-b, .tile-c { grid-column: auto; grid-row: auto; min-height: 220px; }
    .tile-a { min-height: 300px; }
}

.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 14px; margin-top: 26px; padding-bottom: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail-card { scroll-snap-align: start; text-decoration: none; }
.rail-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); background: var(--surface-2); transition: transform .4s var(--ease); }
.rail-card:hover img { transform: translateY(-4px); }
.rail-card h3 { margin-top: 12px; font-size: 1.08rem; }
.rail-card span { color: var(--muted); font-size: .92rem; }

.pass-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stamp { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--line); background: var(--surface-2); }
.stamp img { width: 100%; height: 100%; object-fit: cover; }
.stamp.off img { filter: grayscale(1); opacity: .35; }
.stamp.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(247, 162, 27, .35); }
.stamp:nth-child(odd) { transform: rotate(-4deg); }
.stamp:nth-child(even) { transform: rotate(3deg); }
@media (max-width: 760px) { .pass-teaser { grid-template-columns: 1fr; } }

.band { color: #fff; text-align: left; background: linear-gradient(110deg, rgba(10, 74, 78, .9) 0%, rgba(15, 107, 112, .66) 55%, rgba(210, 69, 30, .5) 100%), url('https://commons.wikimedia.org/wiki/Special:FilePath/Machu_Picchu%2C_2023_(012).jpg?width=1280') center 40% / cover, var(--brand); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.band h2 { max-width: 20ch; }

.footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: .92rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer a { color: inherit; }

/* ---------- Destinos / pasaporte ---------- */
.page-head { padding-block: clamp(28px, 4vw, 48px) 8px; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 1.08rem; }
.progress { display: grid; gap: 8px; margin-top: 18px; max-width: 520px; }
.progress strong { font: 600 1.15rem var(--font-display); }
.progress-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: 5px; background: var(--accent); transition: width .8s var(--ease); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-bottom: 6px; }

.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 18px; margin-top: 18px; padding-bottom: 110px; }
.dest { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.dest-photo { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
@media (max-width: 760px) { .dest-photo { aspect-ratio: 16 / 9; } }
.dest-photo img { width: 100%; height: 100%; object-fit: cover; }
.dest-photo.is-off img { filter: saturate(.75); }
.dest-seal { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.5rem; transform: rotate(-8deg); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.dest-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.dest-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .88rem; }
.dest-meta span { display: inline-flex; align-items: center; gap: 4px; }
.dest-desc { font-size: .96rem; }
.dest-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.dest-credit { font-size: .76rem; color: var(--muted); }
.pick-bar { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 14px; width: min(560px, calc(100% - 24px)); padding: 10px 10px 10px 20px; background: var(--brand); color: var(--brand-ink); border-radius: 999px; box-shadow: var(--shadow); transform: translateX(-50%); animation: entra .35s var(--ease); }
.pick-bar span { flex: 1; font-weight: 600; line-height: 1.2; }

/* ---------- Inicio con sesión ---------- */
.today { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; padding-bottom: 40px; }
.today .tile-a { grid-column: span 7; grid-row: span 2; min-height: 420px; }
.today .tile-b, .today .tile-c { grid-column: span 5; min-height: 200px; }
.today-card { grid-column: span 6; display: flex; flex-direction: column; gap: 10px; }
.mini-stamps { display: flex; margin-top: 4px; }
.mini-stamps img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid var(--surface); margin-right: -10px; }
.next-stop { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.next-stop img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; }
.guest-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; padding: 12px 18px; border-radius: var(--r-card); background: var(--accent-soft); }
@media (max-width: 860px) {
    .today { grid-template-columns: 1fr; }
    .today .tile-a, .today .tile-b, .today .tile-c, .today-card { grid-column: auto; grid-row: auto; }
    .today .tile-a { min-height: 320px; }
    .today .tile-b, .today .tile-c { min-height: 170px; }
}

/* ---------- Cámara y guía ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; padding-block: 20px 28px; align-items: start; }
.viewer { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: #0b1619; color: #e8f1f3; }
.viewer video, .viewer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.viewer-empty i { font-size: 3rem; color: #f7a21b; }
.viewer-empty strong { font: 600 1.25rem var(--font-display); }
.how-mini { display: flex; gap: 6px; list-style: none; padding: 0; margin-top: 6px; counter-reset: paso; }
.how-mini li { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .9rem; font-weight: 600; counter-increment: paso; }
.how-mini li::before { content: counter(paso); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f7a21b; color: #1d0e05; font-size: .78rem; font-weight: 800; }
.how-mini i { display: none; }
.result-listen { margin-top: 12px; }
[data-modo="simple"] .result-listen, [data-modo="aventura"] .result-listen { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 420px) { .how-mini { flex-direction: column; align-items: stretch; } }
.viewer-scan { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(6, 28, 34, .68); font-weight: 600; }
.viewer-scan.on { display: flex; }
.scan-line { width: 60%; height: 3px; border-radius: 2px; background: #f7a21b; animation: barre 1.5s ease-in-out infinite alternate; }
@keyframes barre { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
.cam-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cam-actions .btn { flex: 1 1 180px; }
.result { margin-top: 12px; animation: entra .4s var(--ease); }
.result-title { display: flex; align-items: center; gap: 10px; }
.result-title i { font-size: 1.7rem; }
.result.ok .result-title i { color: var(--ok); }
.result.no .result-title i { color: var(--accent); }
.result-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seal-new { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); animation: sella .55s var(--ease); }
.seal-new i { font-size: 2rem; color: var(--accent); }
@keyframes sella { 0% { transform: scale(1.25) rotate(-3deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 48px); min-height: 480px; padding: 0; overflow: hidden; position: sticky; top: calc(var(--topbar-h) + 16px); }
.chat-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.chat-scroll { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; overflow-y: auto; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 12px; }
.chat-empty i { font-size: 2.4rem; color: var(--accent); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; overflow-wrap: anywhere; animation: entra .3s var(--ease); }
.msg.user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.btn-listen { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .82rem; cursor: pointer; }
.typing { display: flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: late 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes late { 50% { transform: translateY(-5px); opacity: .5; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 10px; }
.chat-suggest .chip { min-height: 38px; padding: 0 12px; font-size: .9rem; text-align: left; height: auto; padding-block: 6px; line-height: 1.25; }
.chat-suggest .chip:nth-child(n+3) { display: none; }
.chat-suggest.is-open .chip:nth-child(n+3), [data-modo="simple"] .chat-suggest .chip:nth-child(n+3) { display: inline-flex; }
.chat-more { min-height: 38px; padding: 0 12px; border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; }
.chat-suggest.is-open .chat-more, [data-modo="simple"] .chat-more { display: none; }
[data-modo="simple"] .chat-suggest .chip { width: 100%; justify-content: flex-start; font-size: 1rem; }
.chat-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--muted); border-radius: 999px; background: var(--surface); font-size: 16px; }
.btn-send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.25rem; cursor: pointer; }
.btn-send:disabled { opacity: .5; }
@media (max-width: 860px) {
    .guide { grid-template-columns: 1fr; }
    .chat { position: static; height: 560px; }
}

/* ---------- Rutas ---------- */
.planner { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 18px; padding-block: 20px 28px; align-items: start; }
.planner-side { display: grid; gap: 14px; }
.has-route .p-result { order: -1; }
.planner-map { position: sticky; top: calc(var(--topbar-h) + 16px); height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 48px); min-height: 420px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); isolation: isolate; z-index: 0; }
#mapa { width: 100%; height: 100%; }
.map-busy { position: absolute; inset: 0; z-index: 800; display: none; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: rgba(6, 28, 34, .6); color: #f5fbfc; font-weight: 600; }
.map-busy.on { display: flex; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #f7a21b; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.form-grid { display: grid; gap: 18px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.metric b { display: block; font: 600 1.5rem var(--font-display); }
.metric span { font-size: .86rem; color: var(--muted); }
.stops { list-style: none; padding: 0; }
.stop { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding-block: 10px; }
.stop + .stop { border-top: 1px solid var(--line); }
.stop-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.stop h4 { font: 600 1rem var(--font-body); letter-spacing: 0; }
.stop small { color: var(--muted); }
.stop-go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--accent); font-size: 1.4rem; text-decoration: none; }
.stop-go:hover { background: var(--accent-soft); }
.route-text { padding: 14px; border-radius: 14px; background: var(--surface-2); }
.route-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.route-acts .btn { flex: 1 1 150px; }
.num-marker { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d2451e; color: #fff; font-weight: 700; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.org-marker { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0f6b70; color: #fff; border: 2px solid #fff; font-size: 1.05rem; }
.leaflet-container { font-family: var(--font-body); }
.pop-go { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 999px; background: #d2451e; color: #fff !important; text-align: center; font-weight: 600; text-decoration: none; }
@media (max-width: 960px) {
    .planner { grid-template-columns: 1fr; }
    .planner-map { position: relative; top: 0; height: 56dvh; order: 2; }
    .planner-side { display: contents; }
    .planner-side .p-form { order: 1; }
    .planner-side .p-result { order: 3; }
    .planner-side .p-history { order: 4; }
    .has-route .planner-map { order: -2; }
    .has-route .planner-side .p-result { order: -1; }
}

/* ---------- Realidad aumentada (siempre oscura) ---------- */
.ra-body { background: #0b1619; color: #e8f1f3; --surface: #122126; --surface-2: #1a2d33; --line: #27393f; --ink: #e8f1f3; --muted: #a2b5bb; --accent: #ff5a66; --accent-hover: #ff7a84; --accent-ink: #1d0e05; }
.ra-stage { position: relative; min-height: calc(100dvh - var(--topbar-h) - var(--tabbar-h)); overflow: hidden; }
#videoRA, #arCanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ra-start { position: relative; z-index: 3; padding-block: clamp(24px, 4vw, 48px) 40px; }
.ra-start.is-hidden { display: none; }
.ra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 22px; }
.ra-option { position: relative; display: block; width: 100%; padding: 0; border: 3px solid transparent; border-radius: var(--r-card); overflow: hidden; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s; }
.ra-option img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
@media (max-width: 760px) { .ra-option img { aspect-ratio: 16 / 7; } }
.ra-option span { display: block; padding: 10px 14px 12px; }
.ra-option b { display: block; font: 600 1.05rem var(--font-display); }
.ra-option small { color: var(--muted); }
.ra-option.is-on { border-color: var(--accent); }
.ra-go { margin-top: 20px; }
.ra-info { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px; max-width: 520px; padding: 16px 18px; border-radius: var(--r-card); background: rgba(13, 23, 20, .86); backdrop-filter: blur(8px); display: none; }
.ra-info.show { display: block; animation: entra .4s var(--ease); }
.ra-info p { margin-block: 6px 12px; font-size: .96rem; }
.ra-hint { position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(13, 23, 20, .72); font-size: .88rem; white-space: nowrap; display: none; }
.ra-hint.show { display: block; }
.ra-busy { position: absolute; inset: 0; z-index: 5; display: none; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: rgba(13, 23, 20, .85); }
.ra-busy.on { display: flex; }

/* ---------- Cuentas ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100dvh - var(--topbar-h)); }
.auth-photo { position: relative; overflow: hidden; background: var(--brand); }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 28, 34, .78), transparent 55%); }
.auth-quote { position: absolute; z-index: 1; left: clamp(20px, 4vw, 48px); right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); color: #f5fbfc; font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--font-display); }
.auth-side { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 56px) 20px; }
.auth-box { width: min(430px, 100%); }
.auth-box h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.auth-box > p { margin-top: 6px; color: var(--muted); }
.auth-form { display: grid; gap: 16px; margin-top: 22px; }
.auth-links { display: grid; gap: 8px; margin-top: 18px; font-size: .96rem; }
.auth-or { display: flex; align-items: center; gap: 12px; margin-block: 16px; color: var(--muted); font-size: .9rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-photo { display: none; } .auth-side { align-items: flex-start; } }

/* ---------- Perfil ---------- */
.profile { display: grid; gap: 14px; max-width: 760px; padding-block: 8px 40px; }
.profile h2 { font-size: 1.3rem; }
.profile .card > p { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.profile-form { display: grid; gap: 16px; margin-top: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.photo-row { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.avatar-lg { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--brand); color: var(--brand-ink); font: 600 2rem var(--font-display); }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.qr-box { display: inline-block; margin-top: 14px; padding: 12px; border-radius: 14px; background: #fff; }
.mode-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Títulos internos ---------- */
.h-page { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.h-sub { font-size: 1.3rem; }
@media (max-width: 1080px) { .topnav .nav-ra { display: none; } }

/* ---------- Primera visita ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 56px); align-items: center; padding-block: clamp(16px, 4vw, 40px); }
.welcome-photo { width: 100%; height: min(70dvh, 560px); object-fit: cover; border-radius: var(--r-card); background: var(--surface-2); }
.welcome-box { display: grid; gap: 14px; min-width: 0; }
.welcome-box h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.welcome-box h2 { font-size: 1.4rem; margin-top: 8px; }
.welcome-lang { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); }
.welcome-lang i { font-size: 1.3rem; }
.welcome-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-langs .chip { text-decoration: none; }
.welcome-note { font-size: .92rem; }
.mode-list { display: grid; gap: 10px; }
.mode-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; gap: 12px; align-items: center; width: 100%; min-height: 88px; padding: 12px 16px; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.mode-card:hover { border-color: var(--accent); }
.mode-card:active { transform: scale(.99); }
.mode-card > i:first-child { font-size: 2.4rem; color: var(--accent); }
.mode-card b { display: block; font: 600 1.25rem var(--font-display); }
.mode-card small { color: var(--muted); font-size: .96rem; }
@media (max-width: 760px) {
    .welcome { grid-template-columns: 1fr; }
    .welcome-photo { height: 14dvh; }
}

/* ---------- Inicio por modo ---------- */
.xl-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; margin-bottom: 24px; }
.xl-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: clamp(190px, 34dvh, 340px); padding: 20px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); font: 700 clamp(1.5rem, 3.4vw, 2.2rem)/1.15 var(--font-display); text-align: center; text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.xl-action:hover { border-color: var(--accent); }
.xl-action:active { transform: scale(.99); }
.xl-action i { font-size: 3.4rem; color: var(--accent); }
.xl-action.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.xl-action.primary i { color: var(--accent-ink); }
.guide-say { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 22px 16px; }
.guide-face { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--surface-2); font-size: 3rem; line-height: 1; }
.guide-say p { padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font: 700 1.5rem/1.2 var(--font-display); max-width: none; }
.dash-pass { display: grid; gap: 14px; max-width: 620px; padding-bottom: 40px; }
.two-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) {
    .xl-actions { grid-auto-flow: row; }
    .xl-action:not(:only-child) { min-height: 25dvh; }
}

/* ---------- Ajuda ---------- */
.help-page { padding-bottom: 40px; display: grid; gap: 28px; }
.sos-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.sos { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 84px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); font-weight: 700; text-decoration: none; }
.sos i { font-size: 2rem; color: var(--accent); }
.sos b { font: 800 1.9rem var(--font-display); color: var(--accent); }
.help-note { margin-top: 10px; font-size: .95rem; }
.phrase-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.phrase { display: grid; gap: 2px; min-height: 76px; padding: 12px 16px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.phrase:hover { border-color: var(--accent); }
.phrase span { font-weight: 700; font-size: 1.08rem; }
.phrase small { color: var(--muted); font-size: .95rem; }
.show-phrase { width: min(760px, calc(100% - 24px)); padding: clamp(22px, 5vw, 44px); border: 0; border-radius: var(--r-card); background: var(--surface); color: var(--ink); }
.show-phrase::backdrop { background: rgba(6, 28, 34, .82); }
.show-es { font: 800 clamp(2.2rem, 8vw, 4.2rem)/1.08 var(--font-display); max-width: none; }
.show-tr { margin-top: 14px; color: var(--muted); font-size: 1.2rem; }
.show-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.show-acts .btn { flex: 1 1 180px; }
@media (max-width: 760px) { .sos-list, .phrase-list { grid-template-columns: 1fr; } }

/* ---------- Apresentação ---------- */
.present { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 72px); align-items: center; min-height: calc(100dvh - var(--topbar-h)); padding-block: 24px; }
.qr-canvas { width: min(62dvh, 100%); margin-inline: auto; padding: 20px; background: #fff; border-radius: var(--r-card); }
.qr-canvas img, .qr-canvas canvas { width: 100% !important; height: auto !important; }
.present h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.present-sub { margin-top: 10px; font-size: 1.3rem; color: var(--muted); }
.present-url { margin-top: 14px; font-weight: 700; overflow-wrap: anywhere; }
.present-demo { margin-top: 22px; }
.on-text { color: var(--ok); }
@media (max-width: 760px) { .present { grid-template-columns: 1fr; } }

/* ---------- Voz na câmera ---------- */
.btn-mic { flex: none; display: grid; grid-auto-flow: column; place-content: center; gap: 8px; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 1.3rem; cursor: pointer; }
.btn-mic span { display: none; font-size: 1.1rem; font-weight: 700; }
.btn-mic.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: pulso 1s ease-in-out infinite alternate; }
@keyframes pulso { from { transform: scale(1); } to { transform: scale(1.08); } }
.result-demo { margin-top: 10px; font-size: .92rem; color: var(--muted); }

/* ---------- Modos de uso ---------- */
html[data-modo="aventura"] { font-size: 110%; }
html[data-modo="simple"] { font-size: 122%; --topbar-h: 72px; }
[data-modo="simple"] .only-full { display: none; }
[data-modo="simple"] .btn { min-height: 62px; }
[data-modo="simple"] .btn-sm { min-height: 52px; padding-inline: 14px; }
[data-modo="simple"] .btn-lg { min-height: 72px; }
[data-modo="simple"] .chip { min-height: 54px; }
[data-modo="simple"] .field input, [data-modo="simple"] .field select { min-height: 62px; }
[data-modo="simple"] .btn-listen { min-height: 46px; padding-inline: 14px; }
[data-modo="simple"] .chat-form { flex-wrap: wrap; }
[data-modo="simple"] .btn-mic { order: -1; width: 100%; height: 72px; border-radius: 16px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 1.7rem; }
[data-modo="simple"] .btn-mic span { display: inline; }
[data-modo="simple"] .chat { height: auto; min-height: 560px; position: static; }
@media (max-width: 860px) {
    [data-modo="simple"] body:has(.tabbar), [data-modo="simple"] { --tabbar-h: 82px; }
    [data-modo="simple"] .tabbar a { font-size: .8rem; min-height: 62px; }
    [data-modo="simple"] .tabbar i { font-size: 1.8rem; }
}

.route-target { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; }
.route-target li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface-2); }
.route-target img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.route-target strong, .route-target small { display: block; }
.route-target small { color: var(--muted); }

/* ---------- Movimiento ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero-slide { animation: none !important; opacity: 0; }
    .hero-slide:first-child { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
    .btn-photo, .ra-info { backdrop-filter: none; background: #0b1619; }
}

/* Extras: app instalable, ayuda sin internet, cerca de mí, tarjeta del pasaporte y avisos */
.install-bar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px); max-width: 600px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 12px 12px 16px; border-radius: var(--r-card); background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.install-bar > i { font-size: 1.6rem; flex: none; color: var(--gold); }
.install-bar > span { flex: 1 1 200px; font-size: .95rem; line-height: 1.35; }
.install-x { border: 0; background: none; color: inherit; font: inherit; font-size: .92rem; text-decoration: underline; cursor: pointer; padding: 8px; }
.help-offline { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); font-weight: 600; }
.help-offline i { font-size: 1.3rem; color: var(--ok); flex: none; }
.help-offline.is-off { background: var(--accent-soft); }
.help-offline.is-off i { color: var(--accent); }
.pass-share { margin-top: 14px; }
.near-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
#btnCerca[aria-pressed="true"] { background: var(--on-selected-bg); border-color: var(--on-selected-bg); color: var(--on-selected-fg); }
.dest-dist { color: var(--icon-strong); font-weight: 700; }
.dest-tips { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.dest-tips li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: .88rem; line-height: 1.35; }
.dest-tips i { flex: none; margin-top: 1px; font-size: 1.15rem; color: var(--accent); }
[data-modo="simple"] .dest-tips li { font-size: 1rem; }

/* ===== Buscador de destinos, piezas de artesanía y medios de transporte (2026-11-19) ===== */
.dest-search { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 4px; }
.dest-search > i { position: absolute; left: 16px; top: 15px; font-size: 1.15rem; color: var(--muted); pointer-events: none; }
.dest-search input { flex: 1 1 260px; min-height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.dest-search input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.dest-ask { min-height: 44px; max-width: 100%; }
.dest-ask span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.dest-none { display: grid; justify-items: center; gap: 10px; margin-top: 18px; padding: 28px 20px; text-align: center; }
.dest-none[hidden] { display: none; }
.dest-none > i { font-size: 2.4rem; color: var(--gold); }
.dest-none p { max-width: 46ch; color: var(--muted); }
.result.craft .result-title i { color: var(--gold); }
#modos .chip i { margin-right: 6px; font-size: 1.05rem; }
.ra-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: .8rem; line-height: 1.35; }
