@font-face { font-family: 'Twemoji Country Flags'; src: url('/site/flags.woff2') format('woff2'); font-display: block; unicode-range: U+1F1E6-1F1FF; }
/* Stayslit — sitio público. Misma identidad que la app (verde, tipografía del sistema, claro/oscuro automático). */
:root {
  --bg: #f4f7f5;
  --bg2: #e9f1ec;
  --card: #ffffff;
  --text: #0c1a13;
  --muted: #5a6a62;
  --line: rgba(12, 40, 25, 0.1);
  --accent: #12864a;
  --accent-ink: #0d6b3a;
  --on-accent: #ffffff;
  --glow: rgba(52, 199, 89, 0.28);
  --hero-a: #14573f;
  --hero-b: #062a1f;
  --shadow: 0 1px 2px rgba(12, 40, 25, 0.05), 0 8px 24px rgba(12, 40, 25, 0.06);
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1410;
    --bg2: #0f1d17;
    --card: #14221b;
    --text: #eef5f0;
    --muted: #9db0a5;
    --line: rgba(190, 230, 205, 0.12);
    --accent: #30d158;
    --accent-ink: #5be27f;
    --on-accent: #03140a;
    --glow: rgba(48, 209, 88, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.i { flex: none; display: inline-block; vertical-align: middle; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.wrap.narrow.center { display: flex; flex-direction: column; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
section { padding: 64px 0; }
section.tint { background: var(--bg2); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ----- botones ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-weight: 650; font-size: 0.98rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px var(--glow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { color: var(--text); border-color: var(--line); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.big { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; min-height: 44px; }

/* ----- cabecera ----- */
.top {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -0.01em; min-height: 44px; }
.brand img { border-radius: 8px; }
.links { display: none; gap: 4px; margin-left: 8px; }
.links a { flex: none; white-space: nowrap; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 550; font-size: 0.96rem; }
.links a:hover, .links a[aria-current] { color: var(--text); background: var(--bg2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hide-sm { display: none; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang, .menu { position: relative; }
.lang summary, .menu summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center;
  padding: 0 10px; border-radius: 12px; color: var(--muted); font-weight: 650; font-size: 0.9rem;
}
.lang summary:hover, .menu summary:hover, .lang[open] summary, .menu[open] summary { background: var(--bg2); color: var(--text); }
.lang-panel, .menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 6px; display: flex; flex-direction: column;
  animation: pop 0.16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.lang-panel a, .menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.lang-panel a:hover, .menu-panel a:hover { background: var(--bg2); }
.lang-panel a[aria-current] { color: var(--accent-ink); font-weight: 650; }
.menu-panel { position: fixed; left: 12px; right: 12px; top: calc(72px + env(safe-area-inset-top)); max-height: calc(100dvh - 96px); overflow-y: auto; }
.menu-panel .btn { margin-top: 6px; color: var(--on-accent); justify-content: center; }
.menu-panel .btn:hover { background: var(--accent); }

@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
/* Enlaces visibles O menú de hamburguesa, nunca los dos (igual que el acceso de la app). */
@media (min-width: 1180px) { .links { display: flex; } .menu { display: none; } }
/* Con los botones «Iniciar sesión» / «Probar gratis» ya en el encabezado, el menú no los repite. */
@media (min-width: 640px) { .menu-panel .cta { display: none; } }

/* ----- portada ----- */
.hero { padding: 48px 0 56px; background: radial-gradient(1200px 520px at 80% -10%, var(--glow), transparent 60%); }
.hero-in { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; color: var(--accent-ink); background: var(--bg2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-weight: 650; font-size: 0.86rem; margin-bottom: 18px; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.92rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { color: var(--accent); }
@media (min-width: 900px) { .hero { padding: 80px 0 88px; } .hero-in { grid-template-columns: 1.15fr 0.85fr; } }

/* teléfono de demostración (solo CSS) */
.demo { margin: 0; display: flex; justify-content: center; }
.phone {
  width: 280px; padding: 12px; border-radius: 46px;
  background: linear-gradient(145deg, #1d2a24, #0a120e); box-shadow: 0 30px 60px rgba(6, 42, 31, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.screen {
  border-radius: 36px; padding: 44px 20px 24px; min-height: 500px;
  background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); color: #eaf7ef;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.orb { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(52, 199, 89, 0.25), transparent 70%); margin-bottom: 18px; }
.orb span { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #7cf0a6, #1fb85a); box-shadow: 0 0 0 10px rgba(52, 199, 89, 0.18), 0 0 40px rgba(52, 199, 89, 0.6); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 18px rgba(52, 199, 89, 0.1), 0 0 60px rgba(52, 199, 89, 0.7); } }
.demo-title { font-size: 1.7rem; font-weight: 800; margin: 0; }
.demo-sub { font-size: 0.9rem; opacity: 0.8; margin: 4px 0 20px; }
.demo-list { list-style: none; margin: 0 0 20px; padding: 6px 14px; width: 100%; text-align: left; background: rgba(255, 255, 255, 0.07); border-radius: 16px; font-size: 0.84rem; }
.demo-list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.demo-list li:last-child { border: 0; }
.demo-list .ok .i { color: #5be27f; }
.demo-btn { margin-top: auto; width: 100%; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); font-weight: 650; font-size: 0.92rem; }

/* ----- bloques ----- */
.page-head { padding: 56px 0 24px; }
.page-head + section { padding-top: 24px; }
.grid3, .grid2 { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 700px) { .grid3, .grid2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card.row { display: flex; gap: 16px; align-items: flex-start; }
.stack { display: grid; gap: 14px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-ink); background: var(--bg2); margin-bottom: 14px; flex: none; }
.card.row .ico { margin: 0; }
.ico.big { width: 56px; height: 56px; border-radius: 16px; }
.honest { text-align: center; display: flex; flex-direction: column; align-items: center; }
.honest p { color: var(--muted); font-size: 1.08rem; }
.note { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--muted); font-size: 0.95rem; margin-top: 24px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.num { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
@media (min-width: 900px) { .p-home .steps { grid-template-columns: repeat(3, 1fr); } .p-home .steps li { flex-direction: column; } }

.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { color: var(--accent); margin-top: 3px; }

.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; min-height: 56px; font-weight: 620; }
.faq summary .i { color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary .i { transform: rotate(90deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ----- precios ----- */
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg2); padding: 4px; border-radius: 14px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 44px; border-radius: 11px; font-weight: 650; font-size: 0.95rem; cursor: pointer; color: var(--muted); text-align: center; padding: 4px 8px; }
.toggle input:checked + label { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.toggle input:focus-visible + label { outline: 3px solid var(--accent); }
.save { font-size: 0.75rem; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 2px 8px; border-radius: 999px; }
.amounts { padding: 22px 2px 18px; }
.amount.m { display: none; }
.amount b { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.amount span { color: var(--muted); margin-left: 6px; }
.amount small { display: block; color: var(--muted); font-size: 0.9rem; }
.price-card:has(#bill-m:checked) .amount.y { display: none; }
.price-card:has(#bill-m:checked) .amount.m { display: block; }
.price-card .btn { margin-top: 8px; }
.price-card .center { margin: 12px 0 0; }

/* ----- legal / estado ----- */
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal p { color: var(--muted); }
.status { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.status h2 { font-size: 1.3rem; margin: 0 0 4px; }
.status p { margin: 0; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--muted); flex: none; }
.status.ok .dot { background: #34c759; box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.18); }
.status.down .dot { background: #ff9f0a; box-shadow: 0 0 0 6px rgba(255, 159, 10, 0.18); }

/* ----- llamada final y pie ----- */
.cta { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #eaf7ef; }
.cta h2 { color: #fff; }
.cta .lead, .cta .muted { color: rgba(234, 247, 239, 0.78); }
.cta .btn.primary { background: #34c759; color: #03140a; margin: 18px 0 12px; }
.foot { padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 0.95rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr; } .foot-grid > div:first-child { grid-column: auto; } }
.foot h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot ul a { color: var(--text); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot ul a:hover { color: var(--accent-ink); }
.foot .brand { margin-bottom: 6px; }
.fine { color: var(--muted); font-size: 0.82rem; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* ----- guías y comparaciones ----- */
.guide h2 { font-size: 1.35rem; margin: 1.9em 0 0.5em; }
.guide h2:first-child { margin-top: 0.4em; }
.guide p { color: var(--muted); }
.guide .checks { margin-top: 0.6em; }
.tbl-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--bg2); font-weight: 600; }
.tbl tbody th { font-weight: 600; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.link-card { text-decoration: none; color: inherit; }
.link-card h3 { margin: 0; }
a.link-card:hover { border-color: var(--accent, currentColor); }
