/* ============================================================
   INSTALL GATE (Fase Reactivación) — experiencia app-first.
   Solo mobile-browser (no standalone, no desktop): tapa la app y
   muestra el onboarding de instalación. Autocontenido: NO depende
   de estadio.css ni de bootstrap-icons (usa SVG inline). Colores de
   marca hardcodeados para que renderice aunque falle otra hoja.
   La clase .olimar-gated la agrega install-gate.js en <html>.
   ============================================================ */

/* Mientras el gate decide/está activo, no se pinta la app debajo. */
html.olimar-gated, html.olimar-gated body { overflow: hidden !important; height: 100%; }
html.olimar-gated body > *:not(#olimar-gate) { display: none !important; }

#olimar-gate {
    position: fixed; inset: 0; z-index: 2147483000;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: max(28px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    color: #eaf1ff;
    font-family: "Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background:
        radial-gradient(120% 80% at 50% -10%, #14336e 0%, #0b1f52 42%, #060f28 100%);
    -webkit-tap-highlight-color: transparent;
}

#olimar-gate .ig-brand {
    display: flex; align-items: center; gap: 10px; margin: 4px 0 22px;
    font-family: "Anton", system-ui, sans-serif; letter-spacing: .5px;
    font-size: 22px; text-transform: uppercase; color: #fff;
}
#olimar-gate .ig-brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
#olimar-gate .ig-brand em { color: #ffc233; font-style: normal; }

#olimar-gate .ig-hero { width: 118px; height: 118px; margin: 6px 0 18px; }
#olimar-gate .ig-hero img { width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }

#olimar-gate h1 {
    font-family: "Anton", system-ui, sans-serif; font-weight: 400;
    font-size: clamp(26px, 8vw, 34px); line-height: 1.04; text-align: center;
    margin: 0 0 10px; letter-spacing: .3px; text-transform: uppercase;
}
#olimar-gate h1 b { color: #ffc233; font-weight: 400; }
#olimar-gate .ig-sub {
    text-align: center; font-size: 15px; line-height: 1.45; max-width: 30ch;
    color: #b9c7e6; margin: 0 0 20px;
}

#olimar-gate .ig-feats { display: flex; gap: 14px; margin: 0 0 22px; flex-wrap: wrap; justify-content: center; }
#olimar-gate .ig-feat { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; }
#olimar-gate .ig-feat span { font-size: 12px; color: #cdd9f2; text-align: center; }
#olimar-gate .ig-feat i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
#olimar-gate .ig-feat svg { width: 22px; height: 22px; }

/* Tarjeta de acción (Android botón / iOS pasos) */
#olimar-gate .ig-card {
    width: 100%; max-width: 380px; background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
    padding: 18px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
#olimar-gate .ig-card h2 { font-size: 15px; margin: 0 0 14px; color: #fff; font-weight: 700;
    display: flex; align-items: center; gap: 8px; }

/* Botón principal (Android/Chromium) */
#olimar-gate .ig-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; border: 0; cursor: pointer; border-radius: 13px; padding: 15px 18px;
    font-family: inherit; font-size: 16px; font-weight: 800; color: #08132e;
    background: linear-gradient(180deg, #ffd45e, #ffc233); box-shadow: 0 8px 20px rgba(255,194,51,.28);
}
#olimar-gate .ig-btn:active { transform: translateY(1px); }
#olimar-gate .ig-btn svg { width: 20px; height: 20px; }

/* Pasos iOS */
#olimar-gate ol.ig-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
#olimar-gate ol.ig-steps li {
    counter-increment: s; display: flex; align-items: center; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14.5px; color: #dbe5fa;
}
#olimar-gate ol.ig-steps li:last-child { border-bottom: 0; }
#olimar-gate ol.ig-steps li::before {
    content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 13px;
    color: #08132e; background: #ffc233;
}
#olimar-gate ol.ig-steps li b { color: #fff; }
#olimar-gate ol.ig-steps .ig-ic { flex: none; margin-left: auto; opacity: .9; }
#olimar-gate ol.ig-steps .ig-ic svg { width: 20px; height: 20px; display: block; }

#olimar-gate .ig-foot { margin: 18px 0 4px; font-size: 12.5px; color: #8fa2c9; text-align: center; max-width: 32ch; }
#olimar-gate .ig-foot b { color: #cdd9f2; }

/* micro-animación: la mano/flecha apunta al botón compartir (iOS) */
@keyframes ig-nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
#olimar-gate .ig-pulse { animation: ig-nudge 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #olimar-gate .ig-pulse { animation: none; } }
