/* Guía interactiva para instalar WEMAIT (agregar a la pantalla de inicio).
   Colores y tipografía de WEMAIT Esencial (apps/mobile/src/theme.ts). */
@font-face { font-family: Manrope; src: url("./fonts/Manrope-Medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Manrope; src: url("./fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url("./fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }

:root {
  --primary: #0f766e;
  --primary-pressed: #115e59;
  --primary-soft: #ccfbf1;
  --teal-light: #1aa9a3;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --control-border: #64748b;
  --text: #0f172a;
  --muted: #475569;
  --neutral-soft: #f1f5f9;
  --coral: #f36545;
  --warning: #92400e;
  --warning-soft: #fef3c7;
  --navy: #091020;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(700px 500px at -10% -10%, var(--primary-soft), transparent 70%),
    radial-gradient(600px 500px at 110% 60%, #ffe4dc, transparent 70%),
    var(--bg);
  line-height: 1.5;
}
img { display: block; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 99; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }

.ico, [data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Cabecera ——— */
.top {
  max-width: 1120px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.lang { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.lang button { border: 0; background: none; padding: 8px 14px; min-height: 40px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 24px; }

/* ——— Presentación ——— */
.hero { text-align: center; padding: 20px 0 8px; }
.eyebrow { margin: 0; color: var(--primary); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }
h1 { margin: 8px auto 10px; font-size: clamp(28px, 6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; max-width: 760px; }
.lead { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); }
.muted { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.notice { margin: 18px auto 0; max-width: 620px; display: flex; gap: 14px; text-align: left; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.notice .ico { width: 44px; height: 44px; border-radius: 12px; flex: none; font-size: 22px; }
.notice p { margin: 4px 0 10px; color: var(--muted); font-size: 15px; }
.notice-ok .ico { background: var(--primary-soft); color: var(--primary); }
.notice-warn { border-color: #fcd34d; background: #fffbeb; }
.notice-warn .ico { background: var(--warning-soft); color: var(--warning); }

.install-now { margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; text-decoration: none; cursor: pointer; min-height: 48px; padding: 0 22px; transition: transform 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 28px rgba(15, 118, 110, 0.3); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-big { min-height: 56px; font-size: 18px; padding: 0 28px; }
.btn-small { min-height: 40px; font-size: 14px; padding: 0 16px; }

/* ——— Pestañas de dispositivo ——— */
.devices { margin-top: 22px; text-align: center; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin: 0 auto; }
@media (min-width: 760px) { .tabs { display: inline-flex; max-width: none; } }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); font-weight: 700; color: var(--muted);
}
.tab[aria-selected="true"] { background: var(--text); color: #fff; border-color: var(--text); }
@media (max-width: 759px) {
  .tab { flex-wrap: wrap; white-space: normal; row-gap: 0; padding: 6px 10px; line-height: 1.2; border-radius: 18px; }
  .tab small { flex-basis: 100%; text-align: center; font-size: 12px; }
}
.tab small { font-weight: 600; opacity: 0.75; }
.detected { margin: 10px 0 0; font-size: 14px; color: var(--muted); min-height: 21px; }
.detected b { color: var(--primary); }

/* ——— Reproductor ——— */
.player-wrap { margin-top: 18px; display: grid; gap: 18px; scroll-margin-top: 12px; }
@media (min-width: 960px) { .player-wrap { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.player { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); padding: 14px; overflow: hidden; }
.stage {
  position: relative; height: min(68vh, 640px); min-height: 420px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(500px 360px at 30% 20%, rgba(204, 251, 241, 0.9), transparent 70%), radial-gradient(420px 360px at 80% 90%, #ffe4dc, transparent 70%), var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.device { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; }
.device.phone { width: 418px; height: 872px; border-radius: 64px; padding: 14px; background: linear-gradient(160deg, #1e293b, #0b1220); box-shadow: 0 40px 80px rgba(15, 23, 42, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.08); }
.device.laptop { width: 980px; height: 640px; border-radius: 22px; padding: 14px; background: linear-gradient(160deg, #1e293b, #0b1220); box-shadow: 0 40px 80px rgba(15, 23, 42, 0.3); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.phone .screen { border-radius: 50px; }
.laptop .screen { border-radius: 10px; }
.big-play {
  position: absolute; inset: auto; width: 84px; height: 84px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; font-size: 34px;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.45); cursor: pointer; display: none; z-index: 30;
}
.big-play.show { display: inline-flex; align-items: center; justify-content: center; }

/* Dedo / cursor y punto para tocar */
.finger {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 999px; pointer-events: none; z-index: 20;
  background: rgba(255, 255, 255, 0.55); border: 3px solid rgba(15, 23, 42, 0.35); box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
  opacity: 0; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
.finger.cursor { width: 30px; height: 30px; margin: -4px 0 0 -6px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.finger.cursor::before { content: ""; position: absolute; inset: 0; background: var(--text); clip-path: polygon(0 0, 0 78%, 22% 60%, 38% 96%, 52% 90%, 37% 55%, 66% 55%); filter: drop-shadow(0 0 2px #fff); }
.finger.show { opacity: 1; }
.finger.press { animation: press 0.32s ease; }
@keyframes press { 50% { scale: 0.78; } }
.ripple { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 999px; border: 4px solid var(--primary); pointer-events: none; z-index: 19; animation: ripple 0.6s ease-out forwards; }
@keyframes ripple { from { scale: 0.2; opacity: 0.9; } to { scale: 1.2; opacity: 0; } }
.hotspot { position: absolute; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 999px; border: 4px solid var(--coral); pointer-events: none; z-index: 18; opacity: 0; }
.hotspot.show { opacity: 1; animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { 0% { scale: 0.6; opacity: 1; } 100% { scale: 1.4; opacity: 0; } }
.try-target { cursor: pointer; }

/* Barra de pasos */
.bar { display: flex; gap: 6px; margin: 14px 4px 4px; }
.seg { flex: 1; height: 8px; border-radius: 99px; background: var(--neutral-soft); border: 0; padding: 0; cursor: pointer; position: relative; overflow: hidden; }
.seg i { position: absolute; inset: 0; width: 0; background: var(--primary); border-radius: 99px; }
.seg.done i { width: 100%; }

.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 4px 0; }
.ctl { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.ctl-main { width: 56px; height: 56px; background: var(--primary); border-color: var(--primary); color: #fff; font-size: 24px; }
.ctl:disabled { opacity: 0.4; cursor: default; }
.mode { margin-left: auto; display: flex; background: var(--neutral-soft); border-radius: 999px; padding: 4px; }
.mode button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1); }

.caption { padding: 14px 6px 6px; min-height: 120px; }
.step-label { margin: 0; color: var(--primary); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.step-text { margin: 6px 0 0; font-size: clamp(19px, 3vw, 24px); font-weight: 800; line-height: 1.25; }
.step-hint { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: ch; }
.chapters li button {
  width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.chapters li button[aria-current="step"] { border-color: var(--primary); box-shadow: 0 8px 22px rgba(15, 118, 110, 0.15); }
.chapters .n { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--neutral-soft); color: var(--muted); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.chapters [aria-current="step"] .n, .chapters .past .n { background: var(--primary); color: #fff; }
.chapters .t { font-weight: 700; font-size: 15px; line-height: 1.35; }

/* ——— Por qué / preguntas ——— */
.why, .faq { margin-top: 40px; }
h2 { font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.01em; margin: 0 0 14px; }
.cards { display: grid; gap: 12px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; }
.card h3 { margin: 12px 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.tile { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.final { margin: 40px 0 8px; text-align: center; }
.foot { text-align: center; padding: 24px 16px max(28px, env(safe-area-inset-bottom)); color: var(--primary); font-weight: 600; }
.foot img { margin: 0 auto 6px; }
.foot p { margin: 0; }

/* ===================== Pantallas simuladas ===================== */
.m { position: absolute; inset: 0; font-family: -apple-system, "SF Pro Text", Manrope, system-ui, sans-serif; color: #111; }
.m * { box-sizing: border-box; }
.m-status { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 14px 34px 0; font-weight: 700; font-size: 16px; z-index: 6; }
.m-status .icons { display: flex; gap: 6px; }
.m-status .icons svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.m-island { position: absolute; top: 12px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 999px; background: #000; z-index: 7; }
.m-dark .m-status { color: #fff; }

/* Página de WEMAIT dentro del navegador */
.w-page { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; background: var(--bg); padding: 40px 26px 0; font-family: Manrope, system-ui, sans-serif; color: var(--text); }
.w-page .logo { width: 210px; margin: 26px auto 8px; }
.w-page .tag { text-align: center; color: var(--primary); font-weight: 600; font-size: 15px; margin-bottom: 26px; }
.w-field { margin-bottom: 14px; }
.w-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.w-field div { height: 50px; border-radius: 12px; border: 1.5px solid var(--control-border); background: #fff; }
.w-btn { height: 52px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.w-link { margin-top: 18px; text-align: center; color: var(--primary); font-weight: 700; font-size: 15px; }

/* Safari (iPhone) */
.saf-bar { position: absolute; left: 14px; right: 14px; bottom: 30px; height: 56px; display: flex; align-items: center; gap: 10px; z-index: 5; }
.saf-round { width: 52px; height: 52px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: center; }
.saf-round svg, .saf-url svg, .cr-bar svg, .cra-bar svg, .lp-bar svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.saf-url { flex: 1; height: 52px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 17px; }
.saf-url svg { width: 15px; height: 15px; }
.home-ind { position: absolute; bottom: 8px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 9px; background: #111; z-index: 8; }
.m-dark .home-ind { background: #fff; }

/* Menú de Safari («•••») */
.saf-menu { position: absolute; right: 14px; bottom: 96px; width: 270px; border-radius: 26px; background: rgba(250, 250, 250, 0.96); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); overflow: hidden; z-index: 9; transform-origin: 90% 100%; animation: pop 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.saf-menu div { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; font-size: 17px; border-bottom: 1px solid #e5e5ea; }
.saf-menu div:last-child { border: 0; }
.saf-menu svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
@keyframes pop { from { scale: 0.7; opacity: 0; } to { scale: 1; opacity: 1; } }
.dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); z-index: 8; animation: fadein 0.3s; }
@keyframes fadein { from { opacity: 0; } }

/* Hoja para compartir (iOS) */
.share { position: absolute; left: 0; right: 0; bottom: 0; top: 120px; border-radius: 26px 26px 0 0; background: #f2f2f7; z-index: 9; animation: up 0.45s cubic-bezier(0.22, 1, 0.36, 1); overflow: hidden; }
@keyframes up { from { transform: translateY(100%); } }
.share-head { display: flex; align-items: center; gap: 12px; padding: 20px 18px 14px; }
.share-head img { width: 48px; height: 48px; border-radius: 12px; }
.share-head b { display: block; font-size: 16px; }
.share-head span { color: #8e8e93; font-size: 14px; }
.share-apps { display: flex; gap: 18px; padding: 8px 18px 16px; }
.share-apps div { width: 62px; text-align: center; font-size: 12px; color: #3c3c43; }
.share-apps i { display: block; width: 62px; height: 62px; border-radius: 16px; margin-bottom: 6px; }
.share-inner { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.share-list { margin: 0 16px; }
.share-group { background: #fff; border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.share-group div { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: 52px; font-size: 17px; border-bottom: 1px solid #e5e5ea; }
.share-group div:last-child { border: 0; }
.share-group svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Agregar a inicio (iOS) */
.add { position: absolute; left: 0; right: 0; bottom: 0; top: 64px; border-radius: 26px 26px 0 0; background: #f2f2f7; z-index: 9; animation: up 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.add-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 18px; font-size: 17px; }
.add-nav .c { color: #007aff; }
.add-nav .t { font-weight: 700; }
.add-nav .a { color: #007aff; font-weight: 700; }
.add-card { margin: 8px 16px; background: #fff; border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.add-card img { width: 64px; height: 64px; border-radius: 15px; }
.add-card .name { font-size: 18px; border-bottom: 1px solid #e5e5ea; padding-bottom: 8px; margin-bottom: 8px; }
.add-card .url { color: #8e8e93; font-size: 15px; }
.add-row { margin: 18px 16px 0; background: #fff; border-radius: 14px; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 17px; }
.toggle { width: 52px; height: 32px; border-radius: 99px; background: #34c759; position: relative; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 28px; height: 28px; border-radius: 99px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); }
.add-note { margin: 8px 30px; color: #8e8e93; font-size: 13px; }

/* Pantalla de inicio */
.home { position: absolute; inset: 0; background: linear-gradient(165deg, #0b4f4a, var(--teal-light) 70%, #ffd6c9); }
.home-grid { position: absolute; left: 26px; right: 26px; top: 90px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 18px; }
.app { text-align: center; color: #fff; font-size: 12px; font-weight: 600; }
.app i { display: block; width: 66px; height: 66px; margin: 0 auto 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.24); }
.app img { width: 66px; height: 66px; margin: 0 auto 6px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.app.new { animation: drop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: 0.35s; }
@keyframes drop { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.android .app img, .android .app i { border-radius: 999px; }
.dock { position: absolute; left: 16px; right: 16px; bottom: 26px; height: 92px; border-radius: 32px; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: space-around; }
.dock i { width: 62px; height: 62px; border-radius: 16px; background: rgba(255, 255, 255, 0.35); }

/* App abierta a pantalla completa */
.open { position: absolute; inset: 0; background: var(--bg); font-family: Manrope, system-ui, sans-serif; animation: zoomin 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes zoomin { from { transform: scale(0.15); border-radius: 60px; opacity: 0.4; } }
.open .splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; animation: fadeout 0.4s 1.2s forwards; background: var(--bg); z-index: 3; }
.open .splash img { width: 230px; }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
.open .app-home { position: absolute; inset: 54px 0 0; padding: 26px 22px; color: var(--text); }
.app-home .hi { font-size: 26px; font-weight: 800; margin: 10px 0 18px; }
.app-card { background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.app-card b { display: block; font-size: 17px; }
.app-card span { color: var(--muted); font-size: 14px; }
.app-card.accent { border-color: var(--primary); }
.app-notif { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--primary); border-radius: 16px; padding: 12px 14px; font-size: 14px; font-weight: 700; margin-bottom: 14px; animation: up2 0.5s 1.6s both; }
.app-notif svg { width: 22px; height: 22px; flex: none; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-notif .on { margin-left: auto; background: var(--primary); color: #fff; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
@keyframes up2 { from { transform: translateY(20px); opacity: 0; } }
.app-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: #fff; border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: flex-start; padding-top: 12px; }
.app-tabs i { width: 28px; height: 28px; border-radius: 8px; background: var(--neutral-soft); }
.app-tabs i:first-child { background: var(--primary-soft); }
.burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; z-index: 5; }
.burst i { position: absolute; width: 10px; height: 16px; border-radius: 3px; animation: confetti 1.4s 1.5s ease-out both; }
@keyframes confetti { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* Chrome en iPhone */
.cr-top { position: absolute; top: 54px; left: 0; right: 0; height: 64px; background: #f7f7f7; border-bottom: 1px solid #ddd; display: flex; align-items: center; gap: 10px; padding: 0 14px; z-index: 5; }
.cr-url { flex: 1; height: 44px; border-radius: 999px; background: #e9e9ec; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 16px; color: #333; }
.cr-url svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.cr-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #333; }
.cr-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cr-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: #f7f7f7; border-top: 1px solid #ddd; display: flex; justify-content: space-around; padding-top: 12px; z-index: 5; }
.cr-bottom i { width: 26px; height: 26px; border-radius: 6px; background: #d4d4d8; }
.has-top .w-page { top: 118px; padding-top: 24px; }

/* Chrome en Android */
.android { font-family: Roboto, Manrope, system-ui, sans-serif; }
.a-status { position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 14px; font-weight: 600; z-index: 6; }
.a-status .icons svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.a-cam { position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 99px; background: #111; z-index: 7; }
.cra-bar { position: absolute; top: 40px; left: 0; right: 0; height: 64px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-bottom: 1px solid #e5e7eb; z-index: 5; }
.cra-url { flex: 1; height: 46px; border-radius: 999px; background: #edf2fa; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 16px; color: #1f1f1f; }
.cra-url svg { width: 16px; height: 16px; }
.cra-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #444; }
.android .w-page { top: 104px; padding-top: 22px; }
.a-nav { position: absolute; left: 50%; bottom: 10px; width: 110px; height: 5px; margin-left: -55px; border-radius: 9px; background: #222; z-index: 8; }
.a-menu { position: absolute; top: 46px; right: 8px; width: 280px; background: #fff; border-radius: 16px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28); z-index: 9; transform-origin: 95% 0; animation: pop 0.3s cubic-bezier(0.22, 1, 0.36, 1); overflow: hidden; }
.a-menu .row { display: flex; justify-content: space-around; padding: 12px 10px; border-bottom: 1px solid #eee; color: #444; }
.a-menu .row svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.a-menu div.item { padding: 13px 22px; font-size: 16px; color: #1f1f1f; display: flex; align-items: center; gap: 16px; }
.a-menu div.item svg { width: 22px; height: 22px; stroke: #444; fill: none; stroke-width: 2; }
.a-dialog { position: absolute; left: 28px; right: 28px; top: 290px; background: #fff; border-radius: 28px; padding: 24px; z-index: 10; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: pop 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.a-dialog h4 { margin: 0 0 18px; font-size: 22px; font-weight: 500; }
.a-dialog .appline { display: flex; gap: 14px; align-items: center; }
.a-dialog .appline img { width: 48px; height: 48px; border-radius: 999px; }
.a-dialog .appline b { display: block; font-size: 17px; font-weight: 600; }
.a-dialog .appline span { color: #555; font-size: 14px; }
.a-dialog .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.a-dialog .acts span { padding: 10px 16px; border-radius: 999px; font-weight: 600; color: #0b57d0; }
.a-dialog .acts span.pri { background: #0b57d0; color: #fff; }
.a-toast { position: absolute; left: 24px; right: 24px; bottom: 140px; background: #303030; color: #fff; border-radius: 12px; padding: 14px 16px; font-size: 15px; animation: up2 0.4s 0.6s both; z-index: 9; }

/* Computadora (Chrome / Edge) */
.lp { position: absolute; inset: 0; background: #dfe3e8; font-family: "Segoe UI", system-ui, Manrope, sans-serif; }
.lp-tabs { height: 40px; background: #dee1e6; display: flex; align-items: flex-end; padding: 0 12px; gap: 8px; }
.lp-tab { height: 32px; width: 220px; background: #fff; border-radius: 10px 10px 0 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; }
.lp-tab img { width: 16px; height: 16px; border-radius: 4px; }
.lp-dots { display: flex; gap: 8px; align-items: center; height: 40px; margin-right: 10px; }
.lp-dots i { width: 12px; height: 12px; border-radius: 99px; background: #ff5f57; }
.lp-dots i:nth-child(2) { background: #febc2e; }
.lp-dots i:nth-child(3) { background: #28c840; }
.lp-bar { height: 48px; background: #fff; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid #e5e7eb; }
.lp-url { flex: 1; height: 34px; border-radius: 999px; background: #f1f3f4; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 14px; color: #202124; }
.lp-url svg { width: 14px; height: 14px; }
.lp-url .inst { margin-left: auto; width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #202124; }
.lp-url .inst svg { width: 18px; height: 18px; }
.lp-page { position: absolute; top: 88px; left: 0; right: 0; bottom: 0; background: var(--bg); display: flex; gap: 0; font-family: Manrope, system-ui, sans-serif; color: var(--text); }
.lp-side { width: 200px; background: #fff; border-right: 1px solid var(--border); padding: 20px 16px; }
.lp-side img { width: 130px; margin-bottom: 20px; }
.lp-side i { display: block; height: 30px; border-radius: 8px; background: var(--neutral-soft); margin-bottom: 10px; }
.lp-side i:first-of-type { background: var(--primary-soft); }
.lp-main { flex: 1; padding: 26px; }
.lp-main .hi { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-cards div { height: 120px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.lp-pop { position: absolute; top: 76px; right: 40px; width: 360px; background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25); padding: 20px; z-index: 9; animation: pop 0.3s cubic-bezier(0.22, 1, 0.36, 1); transform-origin: 85% 0; }
.lp-pop h4 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.lp-pop .appline { display: flex; gap: 12px; align-items: center; }
.lp-pop .appline img { width: 40px; height: 40px; border-radius: 10px; }
.lp-pop .appline span { color: #5f6368; font-size: 13px; display: block; }
.lp-pop .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.lp-pop .acts span { padding: 8px 18px; border-radius: 999px; border: 1px solid #dadce0; font-size: 14px; font-weight: 600; color: #0b57d0; }
.lp-pop .acts span.pri { background: #0b57d0; color: #fff; border-color: #0b57d0; }
.lp-win { position: absolute; left: 60px; top: 30px; right: 60px; bottom: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); animation: pop 0.45s cubic-bezier(0.22, 1, 0.36, 1); background: var(--bg); }
.lp-win .title { height: 36px; background: var(--primary); color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; font-weight: 700; }
.lp-win .title img { width: 18px; height: 18px; border-radius: 4px; }
.lp-win .lp-page { top: 36px; }
.lp-dock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); height: 58px; padding: 6px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); display: flex; gap: 10px; align-items: center; }
.lp-dock i { width: 44px; height: 44px; border-radius: 11px; background: rgba(15, 23, 42, 0.18); }
.lp-dock img { width: 44px; height: 44px; border-radius: 11px; animation: drop 0.6s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* Pausa: congela todas las animaciones del escenario */
.paused .screen *, .paused .screen { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .m *, .finger, .ripple, .hotspot { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

/* Sólo para revisión (?debug=1&anim=0): muestra cada pantalla en su estado final. */
.no-anim .m, .no-anim .m * { animation: none !important; }
.no-anim .open .splash, .no-anim .burst { display: none; }
