/* Guía de instalación de la app (/app). Hoja propia: la página no usa
   la navegación ni el resto de estilos del sitio. */
:root { --navy: #243462; --navy-deep: #101a34; --gold: #bba339; --gold-soft: #e4ce4a; --ink: #5b6580; --line: #e4e9f3; }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; background: #f8fafc; color: var(--navy); line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { text-decoration: none; color: inherit; }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Foto fundida en el azul de la marca ---------- */
.app-hero { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--navy-deep); color: #fff; }
.app-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-hero-melt { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,26,52,0) 55%, rgba(16,26,52,0.62) 68%, rgba(16,26,52,0.94) 80%, var(--navy-deep) 100%); }
.app-logo { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); left: 26px; width: 160px; height: 96px; overflow: hidden; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25)); }
/* Mismo recorte del logo que usa la pantalla de acceso. */
.app-logo img { position: absolute; width: 459px; height: 459px; left: -145px; top: -175px; max-width: none; }
.app-hero-copy { position: absolute; left: 2.5rem; right: 2.5rem; bottom: 2.25rem; }
.app-eyebrow { font: 700 0.72rem "Inter", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); }
.app-hero h1 { font: italic 700 2.6rem/1.1 "Playfair Display", Georgia, serif; margin: 0.45rem 0 0.7rem; text-shadow: 0 2px 14px rgba(0,0,0,0.35); }
.app-hero p { color: #c9d3ea; font-size: 0.95rem; max-width: 30rem; }

/* ---------- Contenido ---------- */
.app-main { display: flex; justify-content: center; padding: 1.75rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.app-wrap { width: 100%; max-width: 31rem; }
.app-topbar { display: flex; justify-content: flex-end; align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; }
.app-lang, .app-enter { font: 700 0.84rem "Inter", sans-serif; border-radius: 999px; cursor: pointer; }
.app-lang { border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 0.6rem 0.9rem; }
.app-enter { color: #fff; background: linear-gradient(100deg, #1a2847, #2563eb); padding: 0.68rem 1.15rem; box-shadow: 0 6px 20px rgba(187,163,57,0.28); }
h2 { font-size: 1.6rem; font-weight: 800; }
.app-lead { color: var(--ink); margin-top: 0.25rem; }

.app-note { margin-top: 1rem; border-radius: 0.9rem; padding: 0.85rem 1rem; font-size: 0.9rem; }
.app-note--warn { background: #fdf6dc; border: 1px solid var(--gold-soft); color: #5a4a08; }
.app-note--done { background: #e9f7ee; border: 1px solid #bfe5cc; color: #1c5e34; }
.app-install-now { width: 100%; margin-top: 1rem; border: 0; border-radius: 999px; padding: 0.95rem; background: var(--gold-soft); color: var(--navy-deep); font: 700 0.95rem "Inter", sans-serif; cursor: pointer; box-shadow: 0 8px 22px rgba(187,163,57,0.35); }

.app-tabs { display: flex; gap: 4px; margin: 1.25rem 0 0.9rem; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.app-tabs button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 0.65rem; font: 700 0.86rem "Inter", sans-serif; color: var(--ink); cursor: pointer; transition: background 200ms, color 200ms; }
.app-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(36,52,98,0.25); }

.app-steps { list-style: none; counter-reset: paso; }
.app-steps li { counter-increment: paso; display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 0.95rem 1rem; margin-bottom: 0.6rem; box-shadow: 0 4px 14px rgba(36,52,98,0.05); }
.app-steps li::before { content: counter(paso); flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font: 700 0.85rem "Inter", sans-serif; }
.app-steps li div { flex: 1; min-width: 0; }
.app-steps strong { display: block; font-size: 0.95rem; line-height: 1.35; }
.app-steps span { display: block; font-size: 0.82rem; color: var(--ink); margin-top: 0.1rem; }
.app-steps svg { flex: 0 0 auto; width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-after { margin-top: 1.5rem; background: var(--navy-deep); color: #fff; border-radius: 1.2rem; padding: 1.35rem 1.4rem; }
.app-after h3 { font: italic 700 1.3rem "Playfair Display", Georgia, serif; margin-bottom: 0.6rem; }
.app-after ul { list-style: none; }
.app-after li { position: relative; padding-left: 1.1rem; font-size: 0.88rem; color: #c9d3ea; margin-bottom: 0.5rem; }
.app-after li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); }
.app-after strong { color: #fff; }
.app-manual { display: inline-block; margin-top: 0.6rem; border: 1px solid var(--gold-soft); color: var(--gold-soft); border-radius: 999px; padding: 0.55rem 1.1rem; font: 700 0.82rem "Inter", sans-serif; }

.app-qr { display: flex; align-items: center; gap: 1.1rem; margin-top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1rem 1.2rem; }
.app-qr img { flex: 0 0 auto; width: 132px; height: 132px; }
.app-qr strong { display: block; }
.app-qr span { display: block; font-size: 0.84rem; color: var(--ink); }
.app-qr .app-url { margin-top: 0.4rem; font: 700 0.82rem "Inter", sans-serif; color: var(--navy); }

@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-hero { position: relative; height: 58vh; min-height: 360px; max-height: 520px; }
  .app-hero-melt { background: linear-gradient(180deg, rgba(16,26,52,0) 30%, rgba(16,26,52,0.65) 56%, var(--navy-deep) 100%); }
  .app-logo { left: 14px; top: calc(10px + env(safe-area-inset-top, 0px)); transform: scale(0.85); transform-origin: top left; }
  .app-hero-copy { left: 1.25rem; right: 1.25rem; bottom: 1.4rem; }
  .app-hero h1 { font-size: 2.05rem; }
  .app-hero p { font-size: 0.88rem; }
  .app-main { padding-left: 1rem; padding-right: 1rem; padding-top: 1.1rem; }
  .app-topbar { justify-content: space-between; margin-bottom: 1.35rem; }
}
/* En el propio móvil el QR no sirve: nadie puede escanear su pantalla. */
@media (max-width: 900px) and (pointer: coarse) { .app-qr { display: none; } }
