/* Vitolo Tours · modo app (instalada en el móvil) + aviso de instalar */
:root { --tab-h: 64px; }

/* ── Avisos pequeños (versión nueva, sin conexión, copiado) ── */
.app-toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); z-index: 300; transform: translate(-50%, 140%); max-width: min(92vw, 28rem); padding: .8rem 1.2rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; text-align: center; box-shadow: 0 18px 40px -12px rgb(0 0 0 / 55%); transition: transform .45s var(--ease); pointer-events: none; }
.app-toast.on { transform: translate(-50%, 0); }
.app .app-toast { bottom: calc(var(--tab-h) + 1rem + env(safe-area-inset-bottom)); }

/* ── Barra inferior (solo con la app instalada y en pantallas de móvil) ── */
.tabbar { display: none; }
@media (max-width: 900px) {
  .app .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 105; display: grid; grid-template-columns: repeat(5, 1fr); padding: .35rem max(.4rem, env(safe-area-inset-left)) calc(.35rem + env(safe-area-inset-bottom)) max(.4rem, env(safe-area-inset-right)); background: rgb(6 26 51 / 93%); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid rgb(255 255 255 / 10%); transition: transform .35s var(--ease); }
  .app .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .22rem; min-height: 52px; padding: .3rem .1rem; border-radius: 14px; color: rgb(255 255 255 / 62%); font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s, transform .15s; }
  .app .tabbar a:active { transform: scale(.94); background: rgb(255 255 255 / 8%); }
  .app .tabbar svg { width: 24px; height: 24px; }
  .app .tabbar a[aria-current="page"] { color: var(--orange-l); }
  .app .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -.36rem; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 3px 3px; background: var(--orange-l); }
  .app .tabbar a.tab-wa { color: #5be39a; }
  .app .foot { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 1rem); }
  .app .legal { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 2rem); }
  .app body:has(.top.open) .tabbar { transform: translateY(110%); }
  .app .fab { display: none; }
}

/* Barra de estado de iPhone (la app ocupa toda la pantalla): la cabecera baja lo justo */
.app .top { padding-top: calc(4px + env(safe-area-inset-top)); }
.app .hero { padding-top: calc(96px + env(safe-area-inset-top)); }
.app .of-hero { padding-top: calc(9rem + env(safe-area-inset-top)); }
.app .legal-top, .app .app-top { padding-top: calc(1rem + env(safe-area-inset-top)); }
.app .e404 { padding-top: env(safe-area-inset-top); }
@media (max-width: 1100px) { .app .hero { padding-top: calc(92px + env(safe-area-inset-top)); } }
@media (max-width: 720px) { .app .of-hero { padding-top: calc(7rem + env(safe-area-inset-top)); } }
.app { overscroll-behavior-y: none; }
.app .link-app { display: none; }

/* ── Aviso «Instala la app» (solo en la web, en móviles) ── */
.instalar { position: fixed; left: max(.7rem, env(safe-area-inset-left)); right: max(.7rem, env(safe-area-inset-right)); bottom: calc(.7rem + env(safe-area-inset-bottom)); z-index: 130; display: flex; align-items: center; gap: .8rem; padding: .75rem .8rem .75rem .75rem; border-radius: 22px; background: rgb(11 39 71 / 96%); color: #fff; border: 1px solid rgb(255 255 255 / 16%); box-shadow: 0 24px 50px -16px rgb(0 0 0 / 70%); backdrop-filter: blur(14px); transform: translateY(150%); transition: transform .55s var(--ease); max-width: 32rem; margin-inline: auto; }
.instalar.on { transform: none; }
.instalar img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.instalar p { flex: 1; min-width: 0; line-height: 1.25; font-size: .88rem; color: rgb(255 255 255 / 75%); }
.instalar p b { display: block; font-size: 1rem; color: #fff; }
.instalar .btn { padding: .65rem 1.1rem; font-size: .92rem; flex: none; }
.instalar-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 10%); color: #fff; font-size: 1.3rem; line-height: 1; }
body.hay-instalar .fab { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }

/* ── Página /app ── */
body.p-app { background: var(--deep); color: #fff; min-height: 100vh; }
.app-top { padding: 1rem 0; }
.app-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.app-hero { padding: 2.2rem 0 1.4rem; text-align: center; }
.app-hero img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 20px 40px -14px rgb(0 0 0 / 60%); }
.app-hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); color: #fff; margin-top: 1.2rem; }
.app-hero h1 em { font-style: normal; color: var(--gold); }
.app-hero .lead { color: rgb(255 255 255 / 78%); max-width: 34rem; margin: 1rem auto 0; }
.app-ben { list-style: none; display: grid; gap: .6rem; max-width: 30rem; margin: 1.6rem auto 0; text-align: left; }
.app-ben li { display: flex; gap: .7rem; align-items: flex-start; color: rgb(255 255 255 / 86%); }
.app-ben svg { flex: none; width: 1.4em; height: 1.4em; color: var(--green); margin-top: .1em; }
.app-btn { display: none; margin: 1.6rem auto 0; }
.app-btn.on { display: inline-flex; }
.app-pasos { max-width: 38rem; margin: 2rem auto 0; padding-bottom: 4rem; display: grid; gap: .8rem; }
.app-pasos details { border-radius: 20px; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 14%); }
.app-pasos summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.app-pasos summary::-webkit-details-marker { display: none; }
.app-pasos summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange-l); transition: transform .25s; }
.app-pasos details[open] summary::after { transform: rotate(45deg); }
.app-pasos ol { margin: 0; padding: 0 1.3rem 1.3rem 2.6rem; display: grid; gap: .6rem; color: rgb(255 255 255 / 86%); }
.app-pasos ol b { color: #fff; }
.app-pasos .nota { padding: 0 1.3rem 1.2rem; font-size: .9rem; color: rgb(255 255 255 / 60%); }

/* ── Compartir una oferta ── */
.of-acc { display: flex; gap: .5rem; margin-top: auto; align-items: stretch; }
.of-acc .of-cta { margin-top: 0; width: auto; flex: 1; min-width: 0; padding: .85rem .9rem; font-size: .95rem; white-space: nowrap; }
.of-share { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--blue); transition: border-color .2s, background .2s, transform .15s; }
.of-share:hover { border-color: var(--blue); background: var(--sky-l); }
.of-share:active { transform: scale(.94); }
.of-share .ico { width: 1.35em; height: 1.35em; }
.of.of-flash { animation: ofFlash 2.4s var(--ease) 1; }
@keyframes ofFlash { 0%, 40% { box-shadow: 0 0 0 4px var(--orange-l), 0 22px 40px -18px rgb(227 112 29 / 60%); } 100% { box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  .app-toast, .instalar, .app .tabbar, .app .tabbar a { transition: none; }
  .of.of-flash { animation: none; box-shadow: 0 0 0 3px var(--orange-l); }
}
