/* ============================================================
   DGTech Store — sistema visual premium
   Canvas neutro cálido, tipografía amplia, profundidad suave,
   movimiento continuo sin saltos.
   ============================================================ */

:root {
  --canvas: #f6f6f8;
  --canvas-2: #fbfbfd;
  --surface: #ffffff;
  --ink: #0b0f14;
  --ink-2: #1d2530;
  --muted: #6e7783;
  --muted-2: #98a1ad;
  --line: rgba(11, 15, 20, .08);
  --line-2: rgba(11, 15, 20, .045);
  --brand: #12395e;
  --brand-2: #2f7fb8;
  --brand-soft: #e8f0f7;
  --ok: #1f7a5c;
  --radius: 26px;
  --radius-sm: 16px;
  --shadow-1: 0 1px 2px rgba(11, 15, 20, .04), 0 8px 24px -12px rgba(11, 15, 20, .12);
  --shadow-2: 0 2px 6px rgba(11, 15, 20, .05), 0 26px 60px -28px rgba(11, 15, 20, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --rail: 244px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 12% -12%, rgba(47, 127, 184, .12), transparent 62%),
    radial-gradient(900px 460px at 105% 4%, rgba(18, 57, 94, .09), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Estructura ---------- */

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
}

.stage {
  min-width: 0;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.views { padding: 0 20px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ---------- Barra superior móvil ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
  background: linear-gradient(to bottom, rgba(246, 246, 248, .92), rgba(246, 246, 248, .72));
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.topbar.is-scrolled { border-bottom-color: var(--line-2); }

.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
  letter-spacing: -.02em;
  color: var(--brand);
}
.mobile-brand strong { font-weight: 640; }
.mobile-brand .brand-mark { color: var(--brand); display: inline-flex; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  border-radius: 14px;
  color: var(--ink-2);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.icon-btn:active { transform: scale(.94); }

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
  border-radius: 13px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--brand);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.ghost-btn:active { transform: scale(.96); }

/* ---------- Barra lateral escritorio ---------- */

.rail { display: none; }

/* ---------- Barra inferior móvil ---------- */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  background: rgba(252, 252, 253, .82);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  border-top: 1px solid var(--line-2);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  border-radius: 14px;
  color: var(--muted-2);
  transition: color .28s var(--ease), transform .28s var(--ease);
}
.tabbar a .ti { font-size: 17px; line-height: 1; }
.tabbar a em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tabbar a.active { color: var(--brand); }
.tabbar a:active { transform: scale(.94); }

/* ---------- Tipografía ---------- */

.display {
  font-size: clamp(30px, 8.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 660;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.lede {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -.005em;
  margin: 10px 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 14px;
}
.section-head h2 {
  font-size: 19px;
  letter-spacing: -.025em;
  font-weight: 640;
  margin: 0;
}
.section-head span { font-size: 12.5px; color: var(--muted-2); font-weight: 550; }

/* ---------- Héroe ---------- */

.hero { padding: 18px 0 6px; }
.hero .eyebrow { margin-bottom: 12px; }

.chip-exclusive {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px 7px 10px;
  font-size: 11.5px;
  font-weight: 620;
  color: var(--brand);
  box-shadow: var(--shadow-1);
}
.chip-exclusive .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(31, 122, 92, .14);
}

/* ---------- Buscador ---------- */

.searchwrap {
  margin: 22px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 16px;
  box-shadow: var(--shadow-1);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.searchwrap:focus-within {
  border-color: rgba(47, 127, 184, .4);
  box-shadow: 0 0 0 4px rgba(47, 127, 184, .1), var(--shadow-1);
}
.searchwrap svg { color: var(--muted-2); flex: none; }
.searchwrap input {
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15.5px; width: 100%;
  color: var(--ink); letter-spacing: -.01em;
}
.searchwrap input::placeholder { color: var(--muted-2); }

/* ---------- Filtros ---------- */

.railchips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 20px 4px;
  margin: 0 -20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.railchips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -.01em;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Rejilla de aplicaciones ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
  will-change: transform;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), transparent 42%);
  opacity: .6;
  pointer-events: none;
}
.card:active { transform: scale(.975); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.appicon {
  width: 56px; height: 56px;
  border-radius: 17px;
  display: grid; place-items: center;
  font-size: 26px;
  background: linear-gradient(150deg, #eef4f9, #dfeaf3);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 14px -8px rgba(18, 57, 94, .5);
  flex: none;
}
.appicon.lg { width: 76px; height: 76px; border-radius: 22px; font-size: 34px; }

.card h3 {
  font-size: 15.5px;
  font-weight: 640;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.25;
}
.card .cat {
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 550;
  margin: 3px 0 0;
  letter-spacing: -.005em;
}
.card .tagline {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  flex: none;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}
.badge.soon { background: #f1f1f4; color: var(--muted); }
.badge.new { background: #eaf6f0; color: var(--ok); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rating i { font-style: normal; color: #d9a441; font-size: 11px; }
.installs { font-size: 11.5px; color: var(--muted-2); font-weight: 550; }

/* ---------- Tarjeta destacada ---------- */

.feature {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(150deg, #0d2b47 0%, #12395e 45%, #1f6390 100%);
  box-shadow: 0 24px 60px -28px rgba(18, 57, 94, .75);
  display: block;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -120px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 200, 255, .38), transparent 65%);
  pointer-events: none;
}
.feature:active { transform: scale(.985); }
.feature .f-top { display: flex; align-items: center; gap: 13px; }
.feature .appicon {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.feature h3 { font-size: 21px; letter-spacing: -.03em; font-weight: 660; margin: 0; }
.feature .f-sub { font-size: 12px; opacity: .72; margin: 2px 0 0; letter-spacing: -.005em; }
.feature p {
  font-size: 13.5px;
  line-height: 1.5;
  opacity: .86;
  margin: 16px 0 0;
  max-width: 46ch;
  position: relative;
}
.feature .f-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: #fff;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  padding: 11px 18px;
  border-radius: 14px;
  position: relative;
}

/* ---------- Detalle de aplicación ---------- */

.detail { padding-top: 6px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 13px 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.back:active { transform: scale(.95); }

/* Marco de dispositivo con vista previa en vivo */
.frame-wrap {
  margin: 16px 0 0;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(170deg, #e9edf2, #f7f9fb 40%, #e3e8ee);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .9);
  position: relative;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 8px;
}
.frame-bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(11, 15, 20, .12);
  display: block;
}
.frame-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.frame-bar .live b {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

.frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #0b0f14;
  height: 60vh;
  min-height: 380px;
  max-height: 620px;
}
.frame iframe {
  width: 100%; height: 100%;
  border: 0;
  background: #fff;
  display: block;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.frame.ready iframe { opacity: 1; }

.frame .skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #f2f5f8, #e9eef3 50%, #f2f5f8);
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: -.005em;
  transition: opacity .5s var(--ease);
}
.frame.ready .skeleton { opacity: 0; pointer-events: none; }
.frame .skeleton .spin {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(18, 57, 94, .16);
  border-top-color: var(--brand-2);
  animation: spin .9s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.frame .fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
  gap: 10px;
  background: radial-gradient(120% 90% at 50% 0%, #163b5c, #0b1a29);
  color: #fff;
}
.frame .fallback .appicon { margin: 0 auto 6px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.frame .fallback h4 { margin: 0; font-size: 17px; letter-spacing: -.02em; font-weight: 640; }
.frame .fallback p { margin: 0; font-size: 12.5px; line-height: 1.5; opacity: .72; max-width: 30ch; }

/* Panel de información */
.info-panel { padding: 22px 2px 0; }

.app-head { display: flex; align-items: center; gap: 15px; }
.app-head h1 {
  font-size: 25px;
  letter-spacing: -.035em;
  font-weight: 660;
  margin: 0;
  line-height: 1.1;
}
.app-head .sub { font-size: 12.5px; color: var(--muted-2); font-weight: 550; margin: 4px 0 0; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 570;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 12px;
}

.desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 18px 0 0;
  letter-spacing: -.005em;
}

.spec {
  margin: 20px 0 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-2);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { font-weight: 580; text-align: right; }

/* CTA fija */
.cta-inline { display: none; }

.cta-dock {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(64px + env(safe-area-inset-bottom));
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(246,246,248,.98) 55%, rgba(246,246,248,.86));
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  z-index: 55;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(246, 246, 248, .96) 40%, rgba(246, 246, 248, 0));
  backdrop-filter: blur(6px);
}

.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 19px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 660;
  letter-spacing: -.015em;
  color: #fff;
  background: linear-gradient(150deg, #12395e, #1c5a8c);
  box-shadow: 0 16px 34px -16px rgba(18, 57, 94, .8), inset 0 1px 0 rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.btn-primary:active { transform: scale(.975); box-shadow: 0 8px 20px -14px rgba(18, 57, 94, .8); }
.btn-primary[disabled] { opacity: .5; }

.btn-secondary {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .9);
  color: var(--ink-2);
  transition: transform .25s var(--ease);
}
.btn-secondary:active { transform: scale(.98); }

/* ---------- Biblioteca ---------- */

.lib-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  margin-bottom: 11px;
}
.lib-item .grow { flex: 1; min-width: 0; }
.lib-item h4 { margin: 0; font-size: 14.5px; font-weight: 620; letter-spacing: -.02em; }
.lib-item small { color: var(--muted-2); font-size: 11.5px; }
.lib-open {
  border: 0;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 12.5px;
  font-weight: 650;
  flex: none;
  transition: transform .25s var(--ease);
}
.lib-open:active { transform: scale(.94); }

.empty {
  text-align: center;
  padding: 56px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .6);
  border: 1px dashed var(--line);
  color: var(--muted);
}
.empty .em { font-size: 30px; margin-bottom: 10px; opacity: .5; }
.empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink-2); letter-spacing: -.02em; }
.empty p { margin: 0; font-size: 13px; line-height: 1.5; }

/* ---------- Hoja inferior ---------- */

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 15, 20, .34);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .38s var(--ease);
}
.sheet-scrim.show { opacity: 1; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--canvas-2);
  border-radius: 30px 30px 0 0;
  padding: 10px 22px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -24px 60px -30px rgba(11, 15, 20, .45);
  transform: translateY(100%);
  transition: transform .46s var(--ease);
  max-height: 88dvh;
  overflow-y: auto;
}
.sheet.show { transform: translateY(0); }
.sheet .grab {
  width: 38px; height: 4px;
  border-radius: 99px;
  background: rgba(11, 15, 20, .14);
  margin: 4px auto 18px;
}
.sheet h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; font-weight: 650; }
.sheet .sheet-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.steps { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 18px 42px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: -1px;
  width: 27px; height: 27px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 680;
  color: var(--brand);
  background: var(--brand-soft);
}
.steps li:last-child { padding-bottom: 4px; }
.steps li b { font-weight: 640; }

.sheet .note {
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
  padding: 12px 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line-2);
  border-radius: 14px;
}

/* ---------- Aviso flotante ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(140px + env(safe-area-inset-bottom));
  transform: translate(-50%, 14px);
  z-index: 120;
  background: rgba(11, 15, 20, .92);
  color: #fff;
  font-size: 12.5px;
  font-weight: 560;
  padding: 11px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
  max-width: 84vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Página DGTech ---------- */

.studio-card {
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  padding: 22px;
  margin-top: 14px;
}
.studio-card h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.02em; font-weight: 630; }
.studio-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Animación de entrada de vistas ---------- */

.view { animation: viewIn .52s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: none; }
}

.stagger > * { animation: cardIn .55s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(7) { animation-delay: .26s; }
.stagger > *:nth-child(8) { animation-delay: .3s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Escritorio: disposición horizontal con barra lateral
   ============================================================ */

@media (min-width: 900px) {
  .shell { grid-template-columns: var(--rail) 1fr; }

  .rail {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 30px 20px 24px;
    background: rgba(252, 252, 253, .78);
    border-right: 1px solid var(--line-2);
    backdrop-filter: blur(18px);
  }

  .rail-brand { display: flex; align-items: center; gap: 11px; color: var(--brand); }
  .rail-brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
  .rail-brand strong { font-size: 16px; font-weight: 660; letter-spacing: -.03em; }
  .rail-brand small { font-size: 11.5px; color: var(--muted-2); letter-spacing: .02em; font-weight: 550; }

  .rail-nav { display: flex; flex-direction: column; gap: 4px; }
  .rail-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 570;
    color: var(--muted);
    transition: background .28s var(--ease), color .28s var(--ease), transform .28s var(--ease);
  }
  .rail-nav a .ri { font-size: 13px; opacity: .7; }
  .rail-nav a:hover { background: rgba(18, 57, 94, .06); color: var(--brand); }
  .rail-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 620; }
  .rail-nav a:active { transform: scale(.98); }

  .rail-foot { margin-top: auto; }
  .exclusive {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    font-weight: 620;
    color: var(--ink-2);
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line-2);
    position: relative;
    padding-left: 30px;
  }
  .exclusive .dot {
    position: absolute;
    left: 14px; top: 18px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(31, 122, 92, .14);
  }
  .exclusive small { font-size: 11px; font-weight: 500; color: var(--muted-2); line-height: 1.4; }

  .topbar { display: none; }
  .tabbar { display: none; }

  .stage { padding: 0 0 40px; }
  .views { padding: 0 44px; }

  .hero { padding: 46px 0 8px; }
  .hero .display { max-width: 20ch; }

  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: rgba(18, 57, 94, .12); }

  .feature { padding: 34px; }
  .feature h3 { font-size: 26px; }
  .feature p { font-size: 14.5px; }
  .feature .f-cta { margin-top: 22px; }

  .railchips { padding: 18px 44px 4px; margin: 0 -44px; }

  /* Detalle en dos columnas */
  .detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 40px;
    align-items: start;
    padding-top: 26px;
  }
  .frame { height: 74vh; max-height: 760px; min-height: 520px; }
  .frame-wrap { margin-top: 18px; }
  .info-panel { padding-top: 6px; position: sticky; top: 24px; }

  .cta-dock { display: none; }
  .cta-inline { display: block; margin-top: 24px; }

  .app-head h1 { font-size: 32px; }
  .desc { font-size: 15px; }

  .sheet {
    left: 50%;
    right: auto;
    bottom: 50%;
    transform: translate(-50%, calc(50% + 30px)) scale(.97);
    width: 440px;
    border-radius: 28px;
    padding: 22px 26px 26px;
    opacity: 0;
    transition: transform .42s var(--ease), opacity .3s var(--ease);
  }
  .sheet.show { transform: translate(-50%, 50%); opacity: 1; }
  .sheet .grab { display: none; }
  .toast { bottom: 40px; }
}

@media (min-width: 1280px) {
  .views { padding: 0 56px; max-width: 1240px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Móvil: datos centrados y controles grandes ---------- */

@media (max-width: 899px) {
  .views { padding: 0 18px; }
  .hero { text-align: center; }
  .hero .display { margin-inline: auto; }
  .lede { margin-inline: auto; max-width: 34ch; }
  .hero .eyebrow { justify-content: center; }
  .chip-exclusive { margin-inline: auto; }
  .searchwrap { margin-top: 20px; }
  .section-head { margin-top: 30px; }
  .app-head { flex-direction: column; text-align: center; gap: 12px; }
  .app-head .appicon.lg { margin-inline: auto; }
  .meta-row { justify-content: center; }
  .desc { text-align: center; }
  .spec-row { font-size: 12.5px; }
  .empty { padding: 44px 20px; }
  .card { align-items: center; text-align: center; }
  .card-top { width: 100%; justify-content: center; }
  .card .tagline { text-align: center; }
  .card-foot { width: 100%; justify-content: center; gap: 14px; }
}

/* ============================================================
   Panel de clientes
   ============================================================ */

.panel-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 5px;
  margin: 18px 0 18px;
  overflow-x: auto;
}
.panel-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.panel-tabs button.on { background: var(--ink); color: #fff; }

.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
}
.kpi b { display: block; font-size: 21px; letter-spacing: -.03em; }
.kpi span { font-size: 11.5px; color: var(--muted-2); font-weight: 550; }

.client-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-1);
  margin-bottom: 12px;
}
.client-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; }
.client-head h3 { margin: 0; font-size: 15.5px; letter-spacing: -.02em; font-weight: 640; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.client-head .sub { margin: 3px 0 0; font-size: 12px; color: var(--muted-2); }
.client-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.mini {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  border-radius: 11px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 620;
  color: var(--ink-2);
  transition: transform .2s var(--ease), background .2s;
}
.mini:active { transform: scale(.96); }
.mini.danger { color: #9b2c2c; border-color: #f0d7d7; background: #fdf4f4; }
.mini.ghost { color: var(--muted); }

.chip-state {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
}
.chip-state.ok { background: #e9f6f0; color: var(--ok); }
.chip-state.warn { background: #fdf4e5; color: #8a5a00; }
.chip-state.bad { background: #fdecec; color: #9b2c2c; }

.client-apps { margin: 14px 0 10px; display: grid; gap: 6px; }
.lic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(246, 246, 248, .8);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.lic-app { font-weight: 620; letter-spacing: -.01em; flex: 1; min-width: 90px; }
.lic-meta { color: var(--muted-2); font-size: 11.5px; }

.client-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted-2);
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
}

.app-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 550;
  background: #fff;
  cursor: pointer;
}
.pick input { accent-color: var(--brand); }

.note.bad { background: #fdecec; border-color: #f3d2d2; color: #9b2c2c; }

@media (min-width: 900px) {
  .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.code-pill{display:inline-block;background:var(--ink);color:#fff;border-radius:7px;padding:2px 8px;font-size:11px;letter-spacing:.06em}

/* ============================================================
   Ajustes de la tienda: iconos oficiales, tarjetas compactas,
   destacadas deslizables, calificaciones, planes y estudio.
   ============================================================ */

/* Icono oficial de cada aplicacion */
.appicon { overflow: hidden; position: relative; }
.appicon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.appicon.sin-icono::after { content: attr(data-emoji); font-size: inherit; line-height: 1; }

/* Tarjetas mas compactas e informativas */
.grid { grid-template-columns: minmax(0, 1fr); gap: 12px; justify-content: center; max-width: 100%; margin-inline: auto; }
.card { padding: 13px; gap: 7px; border-radius: 20px; }
.card .appicon { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }
.card h3 { font-size: 14.5px; }
.card .cat { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.card .tagline {
  font-size: 12.5px; line-height: 1.42; color: var(--ink-3, #5b6b7a); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .card-foot { margin-top: auto; padding-top: 6px; }
.card .installs { font-size: 11px; }
.badge.own { background: rgba(31, 157, 92, .14); color: #0b6b3f; border-color: rgba(31, 157, 92, .3); }

/* Fila horizontal deslizable de destacadas */
.featured-row {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; margin-top: 6px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.featured-row::-webkit-scrollbar { display: none; }
.featured-row .feature {
  flex: 0 0 auto; width: min(84vw, 340px); margin-top: 0;
  scroll-snap-align: start; border-radius: 26px; padding: 20px;
}
.featured-row .feature .appicon { width: 52px; height: 52px; border-radius: 15px; }
.featured-row .feature h3 { font-size: 16px; }
.featured-row .feature > p { font-size: 13px; line-height: 1.45; }

/* Calificacion desde la vista previa */
.rate-card {
  margin-top: 16px; padding: 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
}
.rate-card h3 { font-size: 15.5px; margin: 0 0 4px; }
.rate-sub { font-size: 12.5px; color: var(--ink-3, #5b6b7a); margin: 0 0 12px; line-height: 1.45; }
.stars-pick { display: flex; gap: 6px; margin-bottom: 12px; }
.stars-pick button {
  background: none; border: 0; padding: 2px; cursor: pointer; font-size: 28px; line-height: 1;
  color: #d5dde5; transition: transform .18s var(--ease), color .18s var(--ease);
}
.stars-pick button:hover { transform: scale(1.12); }
.stars-pick button.on { color: #d9a441; }
.rate-card textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line-2); padding: 11px 13px;
  font: inherit; font-size: 13.5px; resize: vertical; background: #fff; color: inherit; margin-bottom: 12px;
}
.rate-list { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.rate-titulo { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3, #5b6b7a); }
.rate-item { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 5px 0; }
.rate-stars { color: #d9a441; letter-spacing: .5px; flex: none; }

/* Mas informacion en el detalle */
.why-box {
  margin: 14px 0; padding: 15px 16px; border-radius: 18px;
  background: linear-gradient(150deg, #eef6ff, #e6f0fb); border: 1px solid rgba(31, 99, 144, .14);
}
.why-tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #1f6390; font-weight: 700; }
.why-box p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: #14344f; }
.bloque { margin: 16px 0; }
.bloque h4 { font-size: 13px; letter-spacing: .02em; margin: 0 0 8px; }
.puntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.puntos li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.45; }
.puntos li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent, #1f6390);
}
.para { font-size: 13px; line-height: 1.5; color: var(--ink-3, #5b6b7a); margin: 0; }

/* Plan actual en Mi biblioteca */
.plan-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 24px; margin: 6px 0 22px;
  background: linear-gradient(150deg, #0d2b47, #12395e 60%, #1f6390); color: #fff;
  box-shadow: 0 20px 50px -26px rgba(18, 57, 94, .7);
}
.plan-tag { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.plan-card h3 { margin: 4px 0 2px; font-size: 20px; }
.plan-precio { margin: 0; font-size: 13px; opacity: .85; }
.plan-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-estado {
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
}
.plan-estado.activo { background: rgba(31, 157, 92, .3); border-color: rgba(120, 230, 175, .5); }
.plan-card .btn-secondary { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }

/* Pantalla de suscripciones */
.planes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-content: center; }
.plan {
  position: relative; padding: 20px; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px;
}
.plan.actual { border-color: rgba(31, 157, 92, .5); box-shadow: 0 18px 44px -26px rgba(31, 157, 92, .6); }
.plan-badge {
  position: absolute; top: 14px; right: 14px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: rgba(31, 157, 92, .14); color: #0b6b3f; font-weight: 700;
}
.plan h3 { margin: 0; font-size: 18px; }
.plan-para { margin: 0; font-size: 12.5px; color: var(--ink-3, #5b6b7a); line-height: 1.45; }
.plan-monto { margin: 6px 0 2px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.plan-monto span { font-size: 12.5px; font-weight: 500; color: var(--ink-3, #5b6b7a); }
.plan-incluye { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; }
.plan-incluye li { position: relative; padding-left: 21px; font-size: 12.5px; line-height: 1.4; }
.plan-incluye li::before {
  content: "✓"; position: absolute; left: 2px; top: 0; font-size: 11px; font-weight: 700; color: #1f9d5c;
}
.plan-btn { margin-top: auto; }
.nota-pago {
  margin-top: 20px; padding: 18px 20px; border-radius: 22px;
  background: #fff8e8; border: 1px solid rgba(217, 164, 65, .32);
}
.nota-pago h4 { margin: 0 0 6px; font-size: 13.5px; }
.nota-pago p { margin: 0; font-size: 13px; line-height: 1.55; color: #6a5525; }

/* Pantalla DGTech */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.studio-card {
  padding: 18px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
}
.studio-ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(150deg, #eef6ff, #e2eefb); color: #1f6390; margin-bottom: 10px;
}
.studio-card h3 { margin: 0 0 6px; font-size: 14.5px; }
.studio-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3, #5b6b7a); }
.studio-block {
  margin-top: 16px; padding: 20px; border-radius: 24px;
  background: linear-gradient(150deg, #0d2b47, #12395e 60%, #1f6390); color: #fff;
  box-shadow: 0 22px 54px -28px rgba(18, 57, 94, .7);
}
.studio-block h3 { margin: 0 0 8px; font-size: 17px; }
.studio-block p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; opacity: .9; }
.studio-block .btn-primary { background: #fff; color: #0d2b47; }
.studio-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.studio-stats div { display: flex; flex-direction: column; }
.studio-stats b { font-size: 21px; letter-spacing: -.02em; }
.studio-stats span { font-size: 11px; opacity: .75; }

/* Regla de oro de columnas */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .planes, .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; }
  .planes { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; }
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-row .feature { width: 330px; }
}
@media (min-width: 1440px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1360px; }
}
@media (max-width: 639px) {
  .grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .planes, .studio-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Rediseño premium: filtros, tarjetas, biblioteca, estudio,
   vista previa por dispositivo y navegación móvil.
   ============================================================ */

/* --- Filtros: lista horizontal deslizable --- */
.railchips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
}
.railchips::-webkit-scrollbar { display: none; }
.railchips .chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }

/* --- Tarjeta compacta con nota y categoría al pie --- */
.card { gap: 9px; padding: 14px; }
.card h3 { font-size: 14.5px; }
.card .tagline {
  font-size: 12px;
  line-height: 1.42;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.card .card-top { align-items: center; }
.card-cat {
  display: block;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3, #7b8794);
}
.score { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; }
.score i { color: #f5a623; font-style: normal; }
.score.nueva { font-weight: 500; opacity: .62; }

/* --- Biblioteca: plan actual rediseñado --- */
.plan-card2 {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(150deg, #0d2b47 0%, #12395e 48%, #1f6390 100%);
  box-shadow: 0 22px 44px -26px rgba(13, 43, 71, .85);
}
.plan-card2::after {
  content: "";
  position: absolute;
  right: -60px; top: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
  pointer-events: none;
}
.pc2-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc2-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  opacity: .78;
}
.pc2-estado {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.pc2-estado i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.pc2-estado.gratis i { background: #cbd5e1; box-shadow: 0 0 0 3px rgba(203,213,225,.22); }
.pc2-body { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.pc2-name h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.pc2-name p { margin: 3px 0 0; font-size: 13px; opacity: .82; }
.pc2-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc2-meta > div {
  padding: 10px 8px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.1);
}
.pc2-meta b { display: block; font-size: 14px; }
.pc2-meta span { font-size: 10.5px; opacity: .8; }
.pc2-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pc2-foot .btn-secondary { background: #fff; color: #0d2b47; border-color: transparent; }
.pc2-nota { font-size: 11px; opacity: .72; flex: 1 1 180px; }

.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.lib-card { padding: 12px; gap: 7px; }
.lib-card .appicon { width: 46px; height: 46px; border-radius: 14px; }
.lib-card h3 { font-size: 13px; }
@media (max-width: 430px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Pantalla DGTech --- */
.studio-hero {
  text-align: center;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.studio-hero .lede { max-width: 46ch; margin-inline: auto; }
.studio-stats-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 18px auto 0;
}
.studio-stats-top > div {
  padding: 13px 8px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  text-align: center;
}
.studio-stats-top b { display: block; font-size: 18px; letter-spacing: -.02em; }
.studio-stats-top span { font-size: 10.5px; opacity: .7; }

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 980px;
  margin: 18px auto 0;
}
.studio-card {
  text-align: center;
  padding: 24px 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.studio-card h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.studio-card p { margin: 0; font-size: 13px; line-height: 1.55; opacity: .78; max-width: 42ch; }
.studio-ico {
  width: 52px; height: 52px;
  border-radius: 17px;
  display: grid; place-items: center;
  color: #12395e;
  background: linear-gradient(150deg, #eaf2fa, #dbe8f4);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px -12px rgba(18,57,94,.6);
}
.studio-cta { margin-top: 6px; }
@media (min-width: 900px) {
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .studio-card { padding: 28px 24px; }
}

/* --- Vista previa: selector de dispositivo --- */
.devswitch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: var(--surface-2, #eef2f6);
  border: 1px solid var(--line-2);
}
.devswitch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 620;
  color: var(--ink-2, #5a6672);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease, ease), color .25s var(--ease, ease), box-shadow .25s var(--ease, ease);
}
.devswitch button.on {
  background: #fff;
  color: #0d2b47;
  box-shadow: 0 2px 8px -2px rgba(13,43,71,.35);
}

.frame { position: relative; overflow: hidden; }
.frame.dev-movil, .frame.dev-tablet, .frame.dev-pc {
  height: auto;
  min-height: 0;
  max-height: 620px;
  margin-inline: auto;
  background: #0b0f14;
}
.frame.dev-movil { aspect-ratio: 9 / 16; width: min(100%, 360px); }
.frame.dev-tablet { aspect-ratio: 3 / 4; width: min(100%, 470px); }
.frame.dev-pc { aspect-ratio: 16 / 10; width: 100%; max-width: 100%; }
.devstage { position: absolute; inset: 0; overflow: hidden; }
.devstage iframe {
  border: 0;
  display: block;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px -24px rgba(13,43,71,.6);
}
.frame.dev-movil .devstage iframe { border-radius: 26px; }

/* --- Detalle: menos ancho para la ficha, más para la vista previa --- */
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1.75fr) minmax(280px, .72fr); gap: 18px; }
}

/* --- Barra inferior móvil: cinco accesos alineados --- */
.tabbar {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 2px;
}
.tabbar a em {
  font-size: 10px;
  font-style: normal;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tabbar .ti svg { width: 23px; height: 23px; }
.tabbar a[data-tab="estudio"] { grid-column: auto; }

/* Pie de la tarjeta destacada */
.feature .f-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.feature .score { color: #fff; font-size: 12.5px; }
.feature .score i { color: #ffd166; }
.feature .score.nueva { color: rgba(255,255,255,.72); }

/* ===== Ajustes v2: marca, tarjetas destacadas y barra de dispositivos ===== */

/* Logo nuevo: imagen con transparencia en vez del icono dibujado */
.brand-mark img { display: block; }
.rail-brand .brand-mark { line-height: 0; }
.mobile-brand .brand-mark { line-height: 0; }

/* Boton "Ver y descargar" mas discreto en las tarjetas destacadas */
.feature .f-cta {
  gap: 6px;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 11px;
  letter-spacing: -.005em;
}

/* Estrella y nota un poco mas grandes en las tarjetas destacadas */
.feature .score { font-size: 13.6px; gap: 5px; }
.feature .score i { font-size: 14.5px; }
.feature .score b { font-size: 13.6px; }

/* Barra Movil / Tablet / PC centrada en la vista previa */
.devswitch {
  display: flex;
  width: fit-content;
  margin: 10px auto 8px;
  justify-content: center;
}

/* ===== Asistente IA (Puter.js) ===== */
.ia-fab {
  position: fixed; right: 16px; bottom: 84px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #1f7ae0, #0b4fa8);
  box-shadow: 0 10px 24px -8px rgba(11,79,168,.7), 0 2px 6px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ia-fab:active { transform: scale(.93); }
.ia-wrap {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end;
  background: rgba(6,10,16,.55); backdrop-filter: blur(3px);
}
.ia-wrap[hidden] { display: none; }
.ia-panel {
  width: 100%; max-height: 82vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px 22px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0,0,0,.28); animation: iaSube .26s cubic-bezier(.22,.9,.3,1);
}
@keyframes iaSube { from { transform: translateY(30px); opacity: .6 } to { transform: none; opacity: 1 } }
.ia-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.ia-head b { font-size: 15px; color: #0d2b47; }
.ia-x { border: 0; background: #eef2f6; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; color: #5a6672; cursor: pointer; }
.ia-body { flex: 1; overflow-y: auto; padding: 4px 4px 10px; display: flex; flex-direction: column; gap: 10px; }
.ia-hola { color: #6b7783; font-size: 13.5px; margin: 0; }
.ia-msg { max-width: 88%; padding: 10px 13px; border-radius: 15px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.ia-msg.yo { align-self: flex-end; background: #1f7ae0; color: #fff; border-bottom-right-radius: 5px; }
.ia-msg.ia { align-self: flex-start; background: #f1f5f9; color: #16202b; border-bottom-left-radius: 5px; }
.ia-msg.err { align-self: stretch; background: #fdecec; color: #9b2c2c; font-size: 13px; }
.ia-form { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid #eef2f6; }
.ia-form input { flex: 1; min-width: 0; border: 1.5px solid #e3e9ee; border-radius: 999px; padding: 11px 15px; font: inherit; font-size: 14.5px; outline: none; }
.ia-form input:focus { border-color: #1f7ae0; }
.ia-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #1f7ae0; color: #fff; display: grid; place-items: center; cursor: pointer; }
.ia-form button[disabled] { opacity: .5; }
.ia-pie { margin: 8px 4px 0; font-size: 11px; color: #8a949c; text-align: center; }
@media (min-width: 860px) { .ia-fab { bottom: 24px; right: 24px; } .ia-panel { max-width: 460px; margin: 0 auto 0 24px; border-radius: 22px; } .ia-wrap { align-items: flex-end; } }

/* ===== Chips de capacidades ===== */
.caps-box { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 16px; }
.caps-tt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a949c; margin-right: 2px; }
.caps-chip { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: #eef4fb; color: #1a4b80; border: 1px solid #dbe8f6; }
.caps-chip b { font-weight: 700; }

/* ===== Ajustes movil nativo v3 ===== */

/* Textos de cabecera ocultos en el telefono */
@media (max-width: 640px) {
  .ocultar-movil { display: none !important; }

  /* Buscador: oculto hasta que se pulse la lupa */
  .searchwrap { display: none; }
  body.buscando .searchwrap { display: flex; }

  /* Vista previa: sin encabezado ni barra inferior */
  body.en-detalle #topbar { display: none; }
  body.en-detalle .tabbar { display: none; }
}

body.en-detalle #topbar { display: none; }
body.en-detalle .tabbar { display: none; }

/* Boton de retroceso de la vista previa */
.detalle-atras {
  position: fixed; top: 12px; right: 12px; z-index: 58;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(15,25,40,.10);
  background: rgba(255,255,255,.94);
  color: #0d2b47;
  box-shadow: 0 8px 22px -10px rgba(10,25,45,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.detalle-atras:active { transform: scale(.94); }

/* Botones de filtro: mas grandes y menos redondeados */
.railchips .chip {
  font-size: 13.5px;
  padding: 9px 15px;
  border-radius: 9px;
}

/* Tarjetas destacadas: estrella grande alineada con el boton */
.feature .f-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature .score { font-size: 22px; gap: 6px; }
.feature .score i { font-size: 24px; letter-spacing: -2px; }
.feature .score b { font-size: 17px; }

/* Tarjetas del catalogo: mas compactas y ordenadas */
.card .tagline { display: none; }
.card { padding-bottom: 14px; }
.card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 6px; font-size: 12px; color: #5a6672;
}
.card-meta .score { font-size: 13px; }
.card-meta .score i { font-size: 13.5px; letter-spacing: -1px; }
.card-meta .score b { font-size: 12.5px; }
.card-meta .card-cat {
  position: static; margin: 0;
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: #eef2f6; color: #46525e;
}
.card-meta .card-dev { font-size: 11.5px; color: #7b8791; }

/* Perfil del usuario */
.perfil-hero { text-align: center; padding-top: 8px; }
.perfil-avatar {
  width: 78px; height: 78px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #1f7ae0, #0b4fa8);
  box-shadow: 0 12px 26px -12px rgba(11,79,168,.8);
}
.perfil-nombre { font-size: 24px; margin: 0 0 4px; }
.perfil-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 8px;
}
.perfil-stats > div {
  background: #fff; border: 1px solid rgba(15,25,40,.08); border-radius: 16px;
  padding: 14px 8px; text-align: center;
}
.perfil-stats b { display: block; font-size: 19px; color: #0d2b47; }
.perfil-stats span { font-size: 11.5px; color: #7b8791; }
.perfil-lista { display: grid; gap: 10px; }
.perfil-fila {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid rgba(15,25,40,.08); border-radius: 16px;
  padding: 14px 16px; font: inherit;
}
.perfil-fila b { display: block; font-size: 14.5px; color: #0d2b47; }
.perfil-fila span { font-size: 12.5px; color: #7b8791; }
.perfil-fila:active { background: #f6f9fc; }

/* ===== Modo detalle limpio y perfil de cuenta ===== */

/* En la vista previa no se muestra el encabezado ni la barra inferior */
body.en-detalle #topbar,
body.en-detalle .tabbar { display: none !important; }
body.en-detalle .frame-bar { display: none !important; }

@media (max-width: 640px) {
  body.en-detalle #topbar,
  body.en-detalle .tabbar { display: none !important; }
  body.en-detalle .frame-wrap { margin-top: 8px; border-radius: 24px; }
  body.en-detalle .detail { padding-top: 6px; }
}

/* Boton de volver en la vista previa */
.detalle-atras {
  position: fixed; top: 14px; right: 14px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: #0d2b47;
  border: 1px solid rgba(13,43,71,.12);
  box-shadow: 0 8px 22px -10px rgba(6,10,16,.55);
  backdrop-filter: blur(10px); cursor: pointer;
}
.detalle-atras:active { transform: scale(.94); }

/* Perfil de la cuenta */
.perfil-card {
  background: #fff; border: 1px solid var(--line-2, #e6ebf1);
  border-radius: 18px; padding: 6px 16px; margin: 4px 0 14px;
  box-shadow: 0 10px 30px -22px rgba(6,10,16,.5);
}
.perfil-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; font-size: 14px; color: #5a6672;
  border-bottom: 1px solid rgba(13,43,71,.06);
}
.perfil-row:last-child { border-bottom: 0; }
.perfil-row b { color: #0d2b47; font-weight: 680; }
.perfil-links { display: grid; gap: 9px; margin-top: 12px; }
.perfil-links .btn-secondary { justify-content: center; }

/* ===== Correcciones v4 ===== */

/* Titulos de presentacion: fuera en movil y en PC */
.ocultar-movil { display: none !important; }

/* Capacidades: ocultas en la ficha de detalle */
.caps-box { display: none !important; }

/* Barra de descarga pegada al borde inferior */
.cta-dock {
  bottom: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
}

/* Icono de retroceso un poco mas abajo y a la derecha */
.detalle-atras { top: 26px !important; right: 20px !important; }

/* Boton de calificar mas discreto */
#rate-send { font-size: 12px !important; padding: 7px 12px !important; border-radius: 9px !important; }

/* Asistente reescrito */
.ia-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; }
.ia-head button {
  border: 0; background: #eef2f6; color: #46525e; font: inherit; font-size: 12.5px;
  font-weight: 650; padding: 6px 12px; border-radius: 9px; cursor: pointer;
}
.ia-form { display: flex; gap: 8px; padding-top: 10px; }
.ia-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid #dde4ea; border-radius: 12px; outline: none; background: #f7f9fb;
}
.ia-form input:focus { border-color: #1f7ae0; background: #fff; }
.ia-form button {
  border: 0; font: inherit; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #1f7ae0, #0b4fa8); padding: 11px 16px;
  border-radius: 12px; cursor: pointer;
}
.ia-form button:disabled { opacity: .55; cursor: default; }
.ia-body { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; min-height: 90px; }
.ia-msg { font-size: 14px; line-height: 1.45; padding: 10px 13px; border-radius: 14px; max-width: 92%; white-space: pre-wrap; }
.ia-yo { align-self: flex-end; background: #1f7ae0; color: #fff; }
.ia-bot { align-self: flex-start; background: #f1f4f8; color: #1d2a36; }

/* Barra de rol del panel */
.rol-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.rol-bar span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a949c; }
.rol-bar select {
  font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 9px;
  border: 1px solid #dde4ea; background: #fff; color: #1d2a36;
}

/* El asistente siempre por encima de la barra inferior y del dock */
.ia-wrap { z-index: 200 !important; }
.ia-fab { z-index: 150 !important; }

/* Barra inferior con cinco destinos alineados */
.tabbar a{padding:5px 2px;gap:3px;min-width:0}
.tabbar a em{font-size:9.6px;letter-spacing:-.02em;line-height:1.1;white-space:nowrap}
.tabbar a .ti svg{width:20px;height:20px}
.tabbar a.on,.tabbar a[aria-current="page"]{color:var(--brand)}

/* La ficha de la aplicación va sin barra inferior */
body[data-route="app"] .tabbar{display:none !important}
body[data-route="app"] main{padding-bottom:calc(16px + env(safe-area-inset-bottom)) !important}

/* ==========================================================================
   v3 — Descubrir estilo tienda de apps, ficha, Admin nativo, asistente IA
   ========================================================================== */

/* ---- Chips de categoría: más grandes, con icono y más redondeados ---- */
.railchips { gap: 10px; padding: 14px 20px 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 13px;
  border-radius: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(11,15,20,.04);
}
.chip .chip-ic { flex: none; width: 18px; height: 18px; opacity: .85; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(18,57,94,.55); }
.chip.active .chip-ic { opacity: 1; }

/* ---- Tarjetas rectangulares estilo Google Play ---- */
.grid.stagger { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px)  { .grid.stagger { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid.stagger { grid-template-columns: repeat(3, 1fr); } }

.card.play {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(11,15,20,.04);
  text-decoration: none; color: inherit; min-height: 98px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card.play:active { transform: scale(.985); }
@media (hover: hover) { .card.play:hover { box-shadow: 0 14px 30px -18px rgba(11,15,20,.28); transform: translateY(-1px); } }
.card.play .appicon.xl { width: 74px; height: 74px; flex: none; border-radius: 19px; font-size: 32px; box-shadow: 0 4px 12px -4px rgba(11,15,20,.25); }
.play-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.play-info h3 { margin: 0; font-size: 16.5px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-dev { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.play-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.play-meta .play-dot { opacity: .5; }
.play-info .badge { align-self: flex-start; margin-top: 4px; }
.play-go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }

/* ---- Ficha de la aplicación (estilo tienda) ---- */
.detail-play { max-width: 760px; margin: 0 auto; padding-top: 8px; }
.dp-head { display: flex; align-items: center; gap: 18px; padding: 54px 2px 6px; }
.dp-head .appicon.xxl { width: 104px; height: 104px; flex: none; border-radius: 28px; font-size: 46px; box-shadow: 0 10px 26px -10px rgba(11,15,20,.35); }
.dp-title { min-width: 0; }
.dp-title h1 { margin: 0 0 4px; font-size: 27px; line-height: 1.12; letter-spacing: -.035em; }
.dp-dev { margin: 0; color: var(--brand); font-weight: 650; font-size: 14.5px; }
.dp-cat { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.dp-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 16px; padding: 14px 0; border-block: 1px solid var(--line); }
.dp-stats > div { text-align: center; padding: 0 6px; }
.dp-stats > div + div { border-left: 1px solid var(--line); }
.dp-stats b { display: block; font-size: 17px; letter-spacing: -.02em; }
.dp-stats b i { font-style: normal; color: #d9a441; font-size: 13px; margin-left: 2px; }
.dp-stats span { font-size: 12px; color: var(--muted); }

.dp-install { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-install {
  position: relative; overflow: hidden; width: 100%; height: 52px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font: 650 16px var(--font); letter-spacing: -.01em; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(18,57,94,.7); transition: transform .2s var(--ease), background .3s var(--ease);
}
.btn-install:active { transform: scale(.985); }
.btn-install[disabled] { background: #b9c1cb; box-shadow: none; cursor: default; }
.btn-install .bi-label { position: relative; z-index: 2; }
.btn-install .bi-prog { position: absolute; inset: 0; z-index: 1; }
.btn-install .bi-prog i { display: block; height: 100%; width: 0; background: rgba(255,255,255,.28); transition: width .09s linear; }
.btn-install.busy { pointer-events: none; }
.btn-install.busy .bi-label::after { content: ''; display: inline-block; width: 15px; height: 15px; margin-left: 10px; vertical-align: -2px; border: 2.4px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: dgspin .7s linear infinite; }
.btn-install.done { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
@keyframes dgspin { to { transform: rotate(360deg); } }
.btn-ghost-dl { border: 0; background: none; color: var(--muted); font: 600 13px var(--font); padding: 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.dp-block { margin-top: 22px; }
.dp-block h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.03em; }
.dp-info .desc { margin-top: 0; }

/* ---- Ventana "ya está en tu escritorio" ---- */
.inst-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 22px; background: rgba(8,16,40,.46); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .26s var(--ease); }
.inst-modal.on { opacity: 1; }
.inst-card { position: relative; width: 100%; max-width: 340px; text-align: center; background: #fff; border-radius: 30px; padding: 34px 24px 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); transform: translateY(14px) scale(.96); transition: transform .34s var(--ease); }
.inst-modal.on .inst-card { transform: none; }
.inst-card .appicon.lg { margin: 0 auto 14px; }
.inst-check { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 10px 22px -8px rgba(31,122,92,.7); }
.inst-card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.03em; }
.inst-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.inst-acts { display: flex; flex-direction: column; gap: 8px; }
.inst-acts .btn-primary { display: block; text-decoration: none; text-align: center; }
.inst-acts .btn-ghost { border: 0; background: none; color: var(--muted); font: 600 14px var(--font); padding: 10px; cursor: pointer; }

/* ---- Barra inferior: SOLO móvil vertical, posiciones fijas ---- */
.tabbar { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabbar a { grid-column: auto !important; grid-row: 1 !important; order: 0 !important; }
.tabbar a:nth-child(1) { grid-column: 1 !important; }
.tabbar a:nth-child(2) { grid-column: 2 !important; }
.tabbar a:nth-child(3) { grid-column: 3 !important; }
.tabbar a:nth-child(4) { grid-column: 4 !important; }
.tabbar a:nth-child(5) { grid-column: 5 !important; }
.tabbar a.active, .tabbar a.on { color: var(--brand); }
@media (min-width: 900px) { .tabbar { display: none !important; } }
@media (orientation: landscape) and (min-width: 700px) { .tabbar { display: none !important; } }
body[data-route="app"] .tabbar { display: none !important; }

/* ---- Panel administrativo (pantalla nativa de la tienda) ---- */
.ad { max-width: 980px; margin: 0 auto; padding: 4px 0 40px; }
.ad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 6px 2px 14px; }
.ad-title { margin: 2px 0 4px; font-size: 28px; letter-spacing: -.04em; line-height: 1.1; }
.ad-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.ad-refresh { flex: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.ad-refresh.spin svg { animation: dgspin .7s linear infinite; }

.ad-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 20; box-shadow: 0 6px 18px -14px rgba(11,15,20,.4); }
.ad-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 52px; border: 0; background: none; border-radius: 14px; color: var(--muted); font: 600 11.5px var(--font); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.ad-tabs button.on { background: var(--brand); color: #fff; }
@media (min-width: 700px) { .ad-tabs button { flex-direction: row; gap: 8px; font-size: 13.5px; height: 46px; } }

.ad-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 22px; }
@media (min-width: 700px) { .ad-kpis { grid-template-columns: repeat(4, 1fr); } }
.ad-kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 15px 16px; }
.ad-kpi span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ad-kpi b { display: block; margin-top: 6px; font-size: 25px; letter-spacing: -.04em; line-height: 1.05; }
.ad-kpi.ok b { color: var(--ok); } .ad-kpi.warn b { color: #b7791f; } .ad-kpi.bad b { color: #b4443c; } .ad-kpi.money b { color: var(--brand); }
.ad-h2 { margin: 4px 2px 10px; font-size: 17px; letter-spacing: -.02em; }

.ad-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin-bottom: 12px; }
.ad-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 14px; }
.ad-row + .ad-row { border-top: 1px solid var(--line); border-radius: 0; }
.ad-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-grow b, .ad-grow h3 { margin: 0; font-size: 15px; font-weight: 640; letter-spacing: -.015em; }
.ad-grow span { font-size: 12.5px; color: var(--muted); }
.ad-num { text-align: right; } .ad-num b { display: block; font-size: 18px; } .ad-num span { font-size: 11.5px; color: var(--muted); }
.ad-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; background: #eef1f6; display: block; }
.ad-ic.big { width: 54px; height: 54px; border-radius: 15px; }
.ad-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ad-pill { flex: none; display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #eef1f6; color: var(--muted); }
.ad-pill.ok { background: #e6f5ee; color: var(--ok); } .ad-pill.warn { background: #fdf1da; color: #9a6a12; } .ad-pill.bad { background: #fbe6e3; color: #b4443c; }

.ad-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ad-actions button, .ad-actions a { flex: 1 1 auto; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 13px var(--font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ad-actions .pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.ad-actions .ad-wa { color: #1f7a5c; border-color: #cfe8dd; background: #f1faf6; }
.ad-actions button:active { transform: scale(.97); }

.ad-app-top, .ad-cli-top { display: flex; align-items: center; gap: 12px; }
.ad-edit { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.ad-edit[hidden] { display: none; }
.ad-card label, .ad-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ad-card input:not([type=checkbox]), .ad-card textarea, .ad-card select { width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: #fafbfc; border-radius: 13px; padding: 12px 13px; font: 500 15px var(--font); color: var(--ink); outline: 0; text-transform: none; letter-spacing: 0; }
.ad-card input:focus, .ad-card textarea:focus, .ad-card select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(18,57,94,.10); }

.ad-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; margin-bottom: 10px; color: var(--muted); }
.ad-search input { flex: 1; border: 0; outline: 0; background: none; height: 46px; font: 500 15px var(--font); color: var(--ink); }
.ad-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.ad-chips::-webkit-scrollbar { display: none; }
.ad-chip { flex: none; height: 36px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.ad-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.ad-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.ad-cli-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; padding: 12px; background: #f6f8fb; border-radius: 15px; }
.ad-cli-meta span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ad-cli-meta b { font-size: 14px; }
.ad-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.ad-lics { display: grid; gap: 8px; }
.ad-lic { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; }
.ad-lic .ad-ic { width: 34px; height: 34px; border-radius: 10px; }
.ad-lic b { font-size: 13.5px; } .ad-lic .ad-grow span { font-size: 12px; }
.ad-dev { flex: none; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 9px; border-radius: 999px; }
.ad-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 22px 0; margin: 0; }
.ad-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 70px 0; color: var(--muted); font-size: 14px; }

.ad-form { display: grid; gap: 14px; }
.ad-form h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.ad-form fieldset { border: 1px solid var(--line); border-radius: 15px; padding: 12px; margin: 0; }
.ad-form legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ad-checks { display: grid; gap: 4px; }
.ad-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; padding: 8px 4px; font-size: 15px !important; font-weight: 600 !important; color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
.ad-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-save { height: 52px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 650 16px var(--font); cursor: pointer; box-shadow: 0 10px 22px -10px rgba(18,57,94,.7); }

/* ---- Asistente de IA: ventana más cuidada ---- */
.ia-fab { width: 56px; height: 56px; border-radius: 20px; background: linear-gradient(145deg, #12395e 0%, #1f6fd1 100%); box-shadow: 0 14px 30px -10px rgba(18,57,94,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.ia-wrap { background: rgba(8,16,40,.42) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ia-panel {
  background: #fff; border-radius: 28px 28px 0 0 !important; padding: 0 !important; overflow: hidden;
  box-shadow: 0 -30px 70px -30px rgba(0,0,0,.5); display: flex; flex-direction: column; max-height: 82dvh;
  animation: iaUp .38s var(--ease);
}
@keyframes iaUp { from { transform: translateY(34px); opacity: .5; } to { transform: none; opacity: 1; } }
.ia-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px !important; background: linear-gradient(135deg, #0b2a4a 0%, #1f5fb0 100%); color: #fff; }
.ia-head::before { content: ''; flex: none; width: 38px; height: 38px; border-radius: 13px; background: rgba(255,255,255,.16) url("/logo-48.png") center/26px no-repeat; }
.ia-head b { color: #fff !important; font-size: 16px !important; letter-spacing: -.02em; display: flex; flex-direction: column; line-height: 1.2; }
.ia-head b::after { content: 'En línea · responde al instante'; font-size: 11.5px; font-weight: 500; opacity: .75; margin-top: 2px; }
.ia-head .ia-x, .ia-head button { margin-left: auto; width: 34px !important; height: 34px !important; border-radius: 50% !important; background: rgba(255,255,255,.16) !important; color: #fff !important; }
.ia-body { padding: 16px !important; background: #f6f8fb; gap: 10px !important; min-height: 160px; }
.ia-hola { background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 12px 14px; color: var(--ink) !important; font-size: 14px !important; line-height: 1.45; align-self: flex-start; max-width: 90%; box-shadow: 0 2px 8px -4px rgba(11,15,20,.12); }
.ia-msg { box-shadow: 0 2px 8px -4px rgba(11,15,20,.12); }
.ia-msg.yo { background: linear-gradient(145deg, #12395e, #1f6fd1) !important; border-radius: 18px 18px 6px 18px !important; }
.ia-msg.ia { background: #fff !important; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px !important; }
.ia-form { padding: 12px 14px !important; background: #fff; border-top: 1px solid var(--line) !important; gap: 10px !important; }
.ia-form input { height: 46px; border-radius: 16px !important; background: #f3f5f8 !important; border: 1px solid transparent !important; padding: 0 16px !important; }
.ia-form input:focus { background: #fff !important; border-color: var(--brand) !important; }
.ia-form button { width: 46px !important; height: 46px !important; border-radius: 16px !important; background: var(--brand) !important; }
.ia-pie { padding: 0 14px calc(12px + env(safe-area-inset-bottom)); margin: 0 !important; background: #fff; }
@media (min-width: 860px) { .ia-panel { border-radius: 26px !important; margin: 0 24px 24px auto; max-width: 440px; } }

/* ---- Correcciones de especificidad v3.1 ---- */
.railchips .chip { border-radius: 14px; }
.railchips .chip.active { border-radius: 14px; }
.card.play { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 14px; }
.card.play::after { display: none; }
.card.play .card-top { display: contents; }
.card.play .appicon { width: 74px; height: 74px; flex: 0 0 74px; border-radius: 19px; font-size: 32px; }
.card.play h3 { margin: 0; font-size: 16.5px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.play .card-meta { margin-top: 2px; }

/* ==========================================================================
   v4 — Fondo blanco limpio, tarjetas que resaltan, navegación animada
   ========================================================================== */

/* ---- Ocultar la tuerca del encabezado: al panel se entra por la barra ---- */
#admin-link { display: none !important; }

/* ---- Fondo blanco estético en todas las pantallas ---- */
:root {
  --canvas: #ffffff;
  --canvas-2: #ffffff;
  --surface: #ffffff;
  --line: rgba(11, 15, 20, .085);
  --line-2: rgba(11, 15, 20, .06);
  --shadow-1: 0 1px 2px rgba(11, 15, 20, .04), 0 8px 24px -18px rgba(11, 15, 20, .18);
}
body { background: #ffffff !important; }
.rail, .tabbar { background: rgba(255, 255, 255, .88) !important; }

/* Las tarjetas se despegan del fondo blanco */
.card, .studio-card, .ad-card, .ad-kpi, .ad-row, .panel,
.sheet .card, .frame-wrap, .dp-stats, .caps-box {
  background: #fff !important;
  border: 1px solid rgba(11, 15, 20, .07) !important;
  box-shadow: 0 1px 2px rgba(11, 15, 20, .04), 0 10px 30px -22px rgba(11, 15, 20, .28) !important;
}
.card, .studio-card, .ad-card { transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease); }
@media (hover: hover) {
  .card:hover, .feature:hover, .studio-card:hover, .ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(11,15,20,.05), 0 22px 44px -26px rgba(11,15,20,.38) !important;
    border-color: rgba(11,15,20,.12) !important;
  }
}

/* Botones y chips con respuesta al tacto y al puntero */
.btn-primary, .chip, .ad-tabs button, .ad-refresh, .ad-save, .tabbar a, .rail-nav a {
  transition: transform .22s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease), color .28s var(--ease);
}
.btn-primary:active, .chip:active, .ad-tabs button:active, .ad-refresh:active { transform: scale(.97); }
@media (hover: hover) {
  .btn-primary:hover { box-shadow: 0 12px 28px -14px rgba(18,57,94,.55); transform: translateY(-1px); }
  .chip:hover { border-color: rgba(11,15,20,.18); background: #fff; }
  .tabbar a:hover, .rail-nav a:hover { color: var(--ink); }
}

/* ---- Transición entre pantallas: sin saltos ---- */
main, .detail, .studio-hero, .ad { animation: screenIn .42s var(--ease) both; }
@keyframes screenIn {
  from { opacity: 0; translate: 0 10px; }
  to   { opacity: 1; translate: 0 0; }
}
/* Entrada escalonada de tarjetas y filas */
.grid > *, .featured-row > *, .studio-grid > *, .ad-body > *, .ad-list > * {
  animation: itemIn .5s var(--ease) both;
}
.grid > *:nth-child(1), .studio-grid > *:nth-child(1), .ad-list > *:nth-child(1) { animation-delay: .02s; }
.grid > *:nth-child(2), .studio-grid > *:nth-child(2), .ad-list > *:nth-child(2) { animation-delay: .06s; }
.grid > *:nth-child(3), .studio-grid > *:nth-child(3), .ad-list > *:nth-child(3) { animation-delay: .1s; }
.grid > *:nth-child(4), .studio-grid > *:nth-child(4), .ad-list > *:nth-child(4) { animation-delay: .14s; }
.grid > *:nth-child(5), .ad-list > *:nth-child(5) { animation-delay: .18s; }
@keyframes itemIn {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

/* Panel: salida y entrada suave al cambiar de sección */
.ad-body { animation: adIn .34s var(--ease) both; }
.ad-body.ad-out { opacity: 0; translate: 0 6px; transition: opacity .15s ease, transform .15s ease; }
@keyframes adIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* Cabecera del panel: solo el botón, limpio y alineado */
.ad-head-clean { display: flex; align-items: center; justify-content: flex-end; min-height: 0; margin-bottom: 10px; }
.ad-ic-lbl { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.ad-meta-ic { display: inline-flex; align-items: center; gap: 4px; }

@media (prefers-reduced-motion: reduce) {
  main, .detail, .studio-hero, .ad, .grid > *, .featured-row > *, .studio-grid > *, .ad-body > *, .ad-list > * { animation: none !important; }
}

/* Salida suave hacia el Escritorio */
body.page-out { opacity: 0; transform: scale(.995); transition: opacity .17s ease, transform .17s ease; }

/* ---- La tarjeta destacada conserva su azul con degradado ---- */
.feature {
  background: linear-gradient(150deg, #0d2b47 0%, #12395e 45%, #1f6390 100%) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 24px 60px -28px rgba(18,57,94,.75) !important;
}
.feature h3, .feature .f-sub, .feature p, .feature .f-cta, .feature .score { color: #fff !important; }
.feature .f-sub { opacity: .78; }
.feature .f-cta { background: rgba(255,255,255,.16) !important; color: #fff !important; }

/* ---- Barra inferior: esquinas superiores y estado activo azul ---- */
.tabbar {
  border-radius: 22px 22px 0 0 !important;
  overflow: hidden;
  border-top: 1px solid rgba(11,15,20,.06);
}
.tabbar a {
  position: relative;
  border-radius: 16px !important;
  margin: 0 2px;
  padding: 6px 2px !important;
  transition: background .28s var(--ease), transform .28s var(--ease), color .28s var(--ease);
}
.tabbar a .ti { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 11px;
  transition: background .3s var(--ease), transform .3s var(--ease); }
.tabbar a em { transition: color .28s var(--ease), opacity .28s var(--ease); }
.tabbar a.active, .tabbar a.on, .tabbar a[aria-current="page"] { color: var(--brand) !important; }
.tabbar a.active .ti, .tabbar a.on .ti, .tabbar a[aria-current="page"] .ti {
  background: var(--brand-soft);
  transform: translateY(-1px) scale(1.06);
}
.tabbar a.active .ti svg, .tabbar a.on .ti svg { transform: scale(1.06); }
.tabbar a.active em, .tabbar a.on em { font-weight: 750; }
@media (hover: hover) {
  .tabbar a:hover .ti { background: rgba(18,57,94,.08); }
}

/* Transición nativa entre páginas (sin pantalla en blanco) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }

/* Encabezado del panel: pestañas y actualizar en la misma fila */
.ad-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 20; }
.ad-bar .ad-tabs { flex: 1; margin-bottom: 0 !important; position: static !important; }
.ad-bar .ad-refresh { width: 46px; height: 46px; border-radius: 16px; background: var(--brand) !important;
  color: #fff !important; border: 0; box-shadow: 0 8px 18px -10px rgba(18,57,94,.9); }
@media (max-width: 420px) {
  .ad-bar .ad-tabs button span { display: none; }
  .ad-bar .ad-tabs button { padding: 10px 0; }
}

/* ==========================================================================
   Landing DGTech — sistema operativo web
   ========================================================================== */
.ld-hero { position: relative; overflow: hidden; border-radius: 30px; padding: 34px 26px 30px;
  background: linear-gradient(155deg, #071a33 0%, #0d2b47 42%, #174c7a 100%); color: #fff;
  box-shadow: 0 30px 70px -34px rgba(9,30,60,.85); animation: ldIn .6s var(--ease) both; }
.ld-glow { position: absolute; width: 460px; height: 460px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,160,255,.45), transparent 68%); filter: blur(6px); }
.ld-hero-in { position: relative; }
.ld-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: #9dc4ef; }
.ld-title { margin: 12px 0 10px; font-size: clamp(30px, 8vw, 54px); line-height: 1.02; letter-spacing: -.045em; font-weight: 680; }
.ld-sub { margin: 0; max-width: 56ch; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.78); }
.ld-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ld-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  border-radius: 15px; background: #fff; color: #0b2a4a; font-weight: 680; font-size: 14px; text-decoration: none;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease); }
.ld-btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.24); }
@media (hover: hover) {
  .ld-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0,0,0,.6); }
  .ld-btn.ghost:hover { background: rgba(255,255,255,.22); }
}
.ld-btn:active { transform: scale(.98); }
.ld-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
@media (min-width: 620px) { .ld-stats { grid-template-columns: repeat(4, 1fr); } }
.ld-stats > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 13px 15px; backdrop-filter: blur(8px); }
.ld-stats b { display: block; font-size: 25px; letter-spacing: -.04em; line-height: 1.05; }
.ld-stats span { font-size: 11.5px; color: rgba(255,255,255,.7); letter-spacing: .01em; }

.ld-section { margin-top: 26px; }
.ld-h2 { font-size: clamp(20px, 4.6vw, 27px); letter-spacing: -.035em; margin: 0 0 14px; font-weight: 660; }
.ld-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .ld-grid { grid-template-columns: repeat(2, 1fr); } }
.ld-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  box-shadow: 0 10px 30px -26px rgba(11,15,20,.55);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
  animation: ldIn .5s var(--ease) both; }
.ld-card:nth-child(1) { animation-delay: .04s; } .ld-card:nth-child(2) { animation-delay: .1s; }
.ld-card:nth-child(3) { animation-delay: .16s; } .ld-card:nth-child(4) { animation-delay: .22s; }
@media (hover: hover) { .ld-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(11,15,20,.5); border-color: rgba(18,57,94,.22); } }
.ld-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.ld-card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.02em; font-weight: 650; }
.ld-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.ld-steps { display: flex; flex-direction: column; gap: 10px; }
.ld-step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; animation: ldIn .5s var(--ease) both; }
.ld-step:nth-child(2) { animation-delay: .08s; } .ld-step:nth-child(3) { animation-delay: .16s; }
.ld-num { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #12395e, #1f6fd1); color: #fff; font-weight: 700; font-size: 14px; }
.ld-step h3 { margin: 0 0 3px; font-size: 15px; letter-spacing: -.02em; }
.ld-step p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.ld-quote { border-radius: 24px; padding: 26px; background: #f7f9fc; border: 1px solid var(--line); }
.ld-quote p { margin: 0 0 12px; font-size: clamp(16px, 3.8vw, 21px); line-height: 1.42; letter-spacing: -.03em; font-weight: 560; }
.ld-quote span { font-size: 12px; color: var(--muted); font-weight: 650; letter-spacing: .02em; }

.ld-final { display: flex; flex-direction: column; gap: 16px; border-radius: 26px; padding: 26px;
  background: linear-gradient(150deg, #0d2b47 0%, #12395e 50%, #1f6390 100%); color: #fff; }
@media (min-width: 760px) { .ld-final { flex-direction: row; align-items: center; justify-content: space-between; } }
.ld-final h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.03em; }
.ld-final p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.76); max-width: 60ch; }

@keyframes ldIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .ld-hero, .ld-card, .ld-step { animation: none !important; }
}

/* ---- Logo de la plataforma sobre un círculo azul ---- */
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, #2f7bd6 0%, #12395e 55%, #011248 100%);
  box-shadow: 0 6px 16px -8px rgba(1,18,72,.7), inset 0 1px 0 rgba(255,255,255,.22);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand-mark img { width: 30px; height: 30px; border-radius: 50%; display: block; object-fit: cover; }
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.04); box-shadow: 0 10px 22px -10px rgba(1,18,72,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.rail .brand-mark, .rail-brand .brand-mark { width: 36px; height: 36px; }
.rail .brand-mark img, .rail-brand .brand-mark img { width: 26px; height: 26px; }
@media (min-width: 900px) { .brand-mark { width: 46px; height: 46px; } .brand-mark img { width: 33px; height: 33px; } }
.brand-mark { display: grid !important; place-items: center !important; }
.brand-mark img { display: block !important; }


/* ==========================================================================
   v7 — ajustes finos de tienda, ficha y sincronización
   ========================================================================== */

/* 1) Aire a la izquierda del primer filtro */
.railchips { padding-left: 26px; padding-right: 26px; margin-left: 0 !important; margin-right: 0 !important; }
.railchips .chip:first-child { margin-left: 2px; }

/* 2) Encabezado: grupo un poco más a la derecha y más compacto */
.topbar { padding-left: 20px; padding-right: 16px; }
.topbar-actions { gap: 6px; }
.mobile-brand { margin-right: auto; }
@media (min-width: 900px) { .topbar { padding-left: 26px; } }

/* 3) Calificación en una sola estrella */
.score i { letter-spacing: 0 !important; font-size: 13px; }

/* 4) Descargas en las tarjetas */
.dl-count { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.f-dl { color: rgba(255,255,255,.78); font-size: 12px; margin-left: 8px; white-space: nowrap; }

/* 5) Asistente flotante oculto en toda la aplicación */
.ia-fab, #ia-fab, .ia-wrap { display: none !important; }

/* 6) El retroceso del detalle ya no se usa */
.detalle-atras { display: none !important; }

/* 7) Barra de calificación y descargas a todo el ancho en móvil */
@media (max-width: 700px) {
  .dp-stats { width: 100%; margin-left: 0; margin-right: 0; }
  .detail-play .dp-stats { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .detail-play .dp-stats > div { padding: 12px 6px; }
  .detail-play .dp-stats b { font-size: 15px; }
  .detail-play .dp-stats span { font-size: 10.5px; line-height: 1.25; }
}

/* 8) Vista previa contraíble solo en móvil vertical */
.pv-collapsible { position: relative; }
.pv-toggle { display: none; }
@media (max-width: 700px) {
  .pv-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    position: absolute; top: -6px; right: 2px; z-index: 6;
    border: 1px solid var(--line); background: #fff; color: var(--brand);
    border-radius: 999px; padding: 7px 12px; font: 650 12px var(--font);
    cursor: pointer; box-shadow: 0 6px 16px -10px rgba(11,15,20,.4);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  }
  .pv-toggle:active { transform: scale(.97); }
  .pv-toggle.abierto svg { transform: rotate(180deg); }
  .pv-toggle svg { transition: transform .3s var(--ease); }
  .pv-collapsible .frame-wrap {
    max-height: 52px; overflow: hidden;
    transition: max-height .48s cubic-bezier(.22,.61,.36,1), box-shadow .3s var(--ease);
  }
  .pv-collapsible.open .frame-wrap { max-height: 1500px; }
  .pv-collapsible:not(.open) .frame-bar { border-radius: 20px; }
}

/* 9) Botón de enviar calificación con más presencia */
#rate-send { min-height: 54px; height: 54px; font-size: 15.5px; border-radius: 16px; }

/* ===== DGTech OS v3.8.0 — ajustes ===== */
:root{color-scheme:light dark}

/* 2 y 4 — Barra superior oculta en el Escritorio (PC y móvil) */
.dg-os-desk .top,.dg-os-desk .top .search{display:none !important}

/* 2 — Tarjeta Recientes oculta en PC horizontal */
@media (min-width:901px) and (orientation:landscape){
  
  .dg-os-desk .pc-side{gap:14px}
}

/* 4 y 5 — Barra inferior oculta en Escritorio y en Tienda */
.dg-os-store .tabbar{display:none !important}
.taskbar{display:none !important}
.pc{padding-bottom:0 !important}
.dg-os-desk a[data-tab="estudio"],.dg-os-desk a[data-rail="estudio"],
.dg-os-store a[data-tab="estudio"],.dg-os-store a[data-rail="estudio"]{display:none !important}
.dg-os-desk a[href="#/suscripciones"],.dg-os-store a[href="#/suscripciones"],
.dg-os-desk a[href="/tienda/#/suscripciones"]{display:none !important}
.dg-solo-pc,.dg-os-desk .rec-grid{display:none !important}
.dg-os-desk .rec-fab{bottom:calc(22px + env(safe-area-inset-bottom)) !important}

/* 4 — Menú de navegación (sustituye Apps abiertas) */
.dg-navmenu{display:flex;flex-direction:column;gap:8px;margin:6px 0 14px}
.dg-navmenu a{display:flex;align-items:center;gap:12px;padding:14px 15px;border-radius:16px;
  border:1px solid var(--line,#e6eaf0);background:#fff;color:inherit;text-decoration:none;
  font-weight:600;font-size:14.5px}
.dg-navmenu a:active{transform:scale(.985)}
.dg-navmenu a i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;
  background:rgba(11,15,20,.05);font-style:normal;flex:none}

/* 5 — Menú de tres puntos en Tienda */
.dg-os-more{margin-left:auto;flex:none;width:42px;height:42px;border-radius:14px;border:1px solid var(--line,#e6eaf0);
  background:#fff;color:inherit;display:grid;place-items:center;cursor:pointer}
.dg-os-more:active{transform:scale(.95)}
.dg-os-menu{position:fixed;top:64px;right:16px;z-index:120;min-width:196px;padding:8px;border-radius:18px;
  background:#fff;border:1px solid var(--line,#e6eaf0);box-shadow:0 24px 50px -24px rgba(11,15,20,.45);
  display:none}
.dg-os-menu.on{display:block}
.dg-os-menu a{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:13px;
  color:inherit;text-decoration:none;font-weight:600;font-size:14px}
.dg-os-menu a:hover{background:#f4f7fb}

/* 3 — Centro de información Tu tienda */
.smart-stats{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 12px}
.smart-kpi{flex:1 1 30%;min-width:88px;padding:10px 11px;border-radius:14px;background:rgba(11,15,20,.045)}
.smart-kpi span{display:block;font-size:11px;letter-spacing:.02em;opacity:.62;font-weight:600;text-transform:uppercase}
.smart-kpi b{display:block;font-size:20px;margin-top:3px;letter-spacing:-.02em}
.smart-sec{margin-top:12px}
.smart-sec h5{margin:0 0 8px;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;opacity:.6;font-weight:700}
.smart-app{display:flex;align-items:center;gap:11px;padding:9px;border-radius:14px;color:inherit;text-decoration:none}
.smart-app:hover{background:#f4f7fb}
.smart-app img,.smart-app .em{width:36px;height:36px;border-radius:11px;object-fit:cover;flex:none;display:grid;place-items:center;font-size:19px;background:rgba(11,15,20,.05)}
.smart-app b{display:block;font-size:13.5px;letter-spacing:-.01em}
.smart-app i{display:block;font-style:normal;font-size:11.5px;opacity:.66;line-height:1.35;margin-top:1px}
.smart-load{font-size:12.5px;opacity:.6;margin:6px 0}
.smart-ia-btn{border:1px solid var(--line,#e6eaf0);background:#fff;border-radius:13px;padding:11px 15px;
  font-weight:650;font-size:13px;cursor:pointer;font-family:inherit;color:inherit}
.smart-ia-btn:active{transform:scale(.97)}

/* Etiqueta "Usada recientemente" en Recientes */
.rec-item{position:relative}
.rec-item::after{content:'Usada recientemente';position:absolute;left:50%;bottom:-9px;transform:translate(-50%,6px);
  background:#0b0f14;color:#fff;font-size:10.5px;font-weight:600;padding:4px 8px;border-radius:8px;
  white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:9}
.rec-item.show-tip::after{opacity:1;transform:translate(-50%,0)}

/* 6 — Adaptación al tema del navegador */
@media (prefers-color-scheme:dark){
  .top,.dg-os-more{background:#0b0f14 !important;color:#e8eef7 !important;border-color:rgba(255,255,255,.14) !important}
  .dg-os-menu,.dg-navmenu a,.smart-app,.smart-ia-btn{background:#131a24 !important;color:#e8eef7 !important;
    border-color:rgba(255,255,255,.12) !important}
  .smart-kpi{background:rgba(255,255,255,.07) !important}
  .smart-app img,.smart-app .em{background:rgba(255,255,255,.09) !important}
}
