@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/Poppins-SemiBold.ttf") format("truetype"); }
:root {
  --green: #547979; --green-d: #3f5e5e; --brown: #3b1d1d;
  --bg: #ffffff; --soft: #f3f6f6; --line: #dfe6e6; --text: #1f2a2a; --text-2: #5d6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.gg { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--brown); letter-spacing: -0.086em; }

/* ---------- Cascarón (index.html) ---------- */
body.shell { overflow: hidden; overscroll-behavior: none; }
#app { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.layer { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); background: var(--bg); text-align: center;
  transition: opacity .25s ease; z-index: 5; }
.layer[hidden] { display: none; }
.layer.fade { opacity: 0; pointer-events: none; }
.logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 18px rgba(20,40,40,.14); }
.logo-sm { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 4px 12px rgba(20,40,40,.12); }
.loading-bar { margin-top: 28px; width: 132px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.loading-bar::after { content: ""; position: absolute; left: -40%; top: 0; bottom: 0; width: 40%; background: var(--green); border-radius: 3px;
  animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { to { left: 100%; } }
.muted { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.title { margin: 22px 0 6px; font-size: 21px; font-weight: 650; letter-spacing: -.2px; }
.panel { max-width: 360px; width: 100%; }
.btn { display: block; width: 100%; margin-top: 12px; padding: 15px 18px; border-radius: 13px; border: 0; font: inherit;
  font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:active { background: var(--green-d); }
.btn-ghost { background: var(--soft); color: var(--text); }
.small { font-size: 13px; color: var(--text-2); margin-top: 18px; line-height: 1.45; }
.small a { color: var(--green-d); }
.install-bar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 28px rgba(20,40,40,.22); border: 1px solid var(--line); }
.install-bar[hidden] { display: none; }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; }
.install-bar .t { flex: 1; text-align: left; font-size: 14px; line-height: 1.3; }
.install-bar .t b { display: block; font-size: 15px; }
.install-bar a.go { background: var(--green); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.install-bar button.x { border: 0; background: transparent; color: var(--text-2); font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; }

/* ---------- Página de instalación ---------- */
body.page { min-height: 100%; background: var(--soft); }
.wrap { max-width: 560px; margin: 0 auto; padding: 28px 18px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.hero { display: flex; align-items: center; gap: 16px; }
.hero h1 { margin: 0; font-size: 24px; letter-spacing: -.3px; line-height: 1.15; }
.hero h1 .gg { font-size: 26px; }
.hero p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 6px; margin-top: 18px; }
.card.focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(84,121,121,.14); }
.card h2 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.card h2 .tag { font-size: 12px; font-weight: 600; color: var(--green-d); background: rgba(84,121,121,.12); padding: 3px 8px; border-radius: 20px; }
.card .sub { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 11px 0 13px 44px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
ol.steps li:first-child { border-top: 0; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ico { display: inline-flex; vertical-align: -5px; width: 22px; height: 22px; align-items: center; justify-content: center;
  background: var(--soft); border: 1px solid var(--line); border-radius: 6px; margin: 0 2px; }
.ico svg { width: 15px; height: 15px; }
.k { font-weight: 650; }
.note { font-size: 13.5px; color: var(--text-2); line-height: 1.45; margin: 14px 2px 0; }
#btnInstall[hidden] { display: none; }
