:root {
  --bg: #0d0f16;
  --bg-soft: #12141e;
  --panel: rgba(20, 23, 33, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eaf2;
  --text-dim: #8a91a8;
  --text-faint: #5d6377;
  --gold: #c9a86a;
  --teal: #5cb8a4;
  --violet: #a08bd6;
  --red: #d97b7b;
  --ok: #7cc98f;
  --mono: "JetBrains Mono", monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

@property --rgb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rgb-rotate {
  to { --rgb-angle: 360deg; }
}

@keyframes laser-beam {
  0% { transform: skewX(-18deg) translateX(-260%); }
  55%, 100% { transform: skewX(-18deg) translateX(640%); }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: inherit;
  cursor: pointer;
}

/* ── Textura y cuadrícula ─────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.8;
}

/* ── Shell ────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ── Hero ─────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 44px; }

.creator {
  display: block;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
  margin-top: 28px;
  transition: color 0.2s ease;
}

.creator strong {
  font-weight: 700;
  background: linear-gradient(90deg, var(--teal), var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.creator:hover { color: var(--text); }

.hero-overline {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 9px 18px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: 3px;
  margin-bottom: 24px;
  background: rgba(201, 168, 106, 0.05);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-title .accent { font-style: italic; color: var(--teal); }

.hero-sub {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-sub i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  display: block;
}

.hero-rule {
  max-width: 340px;
  margin: 26px auto 0;
  height: 1px;
  background: var(--line);
  position: relative;
}

.hero-rule span {
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Layout: módulos + teléfono ───────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  justify-content: center;
}

/* ── Módulos ──────────────────────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  justify-content: center;
}

.module {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px 24px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, background 0.3s ease;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 0.09s);
  overflow: hidden;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.module::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 106, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module:hover::before { opacity: 1; }

.module:hover {
  transform: translateY(-5px);
  background: rgba(24, 28, 40, 0.9);
  border-color: var(--line-strong);
}

.module::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.module[data-module="nombres"]:hover { --hover-line: rgba(92, 184, 164, 0.6); }
.module[data-module="llaves"]:hover { --hover-line: rgba(160, 139, 214, 0.6); }
.module[data-module="bancolombia"]:hover { --hover-line: rgba(201, 168, 106, 0.65); }

.module:hover::after { border-color: var(--hover-line, var(--line-strong)); }

.module-index {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.module[data-module="nombres"] .module-index { color: var(--teal); }
.module[data-module="llaves"] .module-index { color: var(--violet); }
.module[data-module="bancolombia"] .module-index { color: var(--gold); }

.module-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.module[data-module="nombres"] .module-icon { color: var(--teal); }
.module[data-module="llaves"] .module-icon { color: var(--violet); }
.module[data-module="bancolombia"] .module-icon { color: var(--gold); }

.module:hover .module-icon { transform: translateY(-2px); }

.module-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-tag {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Teléfono (vista previa del video) ────────── */
.phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-self: center;
}

.phone-pitch {
  display: block;
  width: 100%;
  font-size: clamp(0.78rem, 2.1vw + 0.55rem, 1.16rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
  color: #ffd166;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.75), 0 0 26px rgba(255, 209, 102, 0.4);
}

.phone .cta {
  width: 100%;
  margin-top: 18px;
}

.phone .btn-apk {
  min-width: 0;
  width: 100%;
  max-width: 320px;
}

@media (max-width: 920px) {
  .phone .cta { max-width: 360px; }
}

.phone-pitch-sub {
  display: block;
  width: 100%;
  font-size: clamp(0.68rem, 1.8vw + 0.45rem, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  color: #f4c76b;
  opacity: 0.92;
  margin-top: -8px;
}

@media (max-width: 520px) {
  .phone-pitch-sub { font-size: clamp(0.6rem, 3vw, 0.78rem); }
}

.phone-frame {
  position: relative;
  width: min(290px, 74vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #232838, #0d0f17);
  border: 2px solid var(--line-strong);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-frame::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42px;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  border-radius: 999px;
  background: #080a10;
  z-index: 2;
}

.phone-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.phone-cap {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Descarga ─────────────────────────────────── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.25s;
}

.btn-apk {
  --rgb-r: #ff2d55;
  --rgb-g: #2dff88;
  --rgb-b: #00b4ff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  min-height: 66px;
  padding: 12px 22px;
  border: 3px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  background:
    linear-gradient(rgba(13, 15, 23, 0.9), rgba(13, 15, 23, 0.9)) padding-box,
    conic-gradient(
      from var(--rgb-angle),
      var(--rgb-r),
      #ffd42d,
      var(--rgb-g),
      #2dfff0,
      var(--rgb-b),
      #b72dff,
      var(--rgb-r)
    ) border-box;
  box-shadow: 0 0 22px rgba(0, 180, 255, 0.14), 0 0 22px rgba(255, 45, 85, 0.14), 0 10px 26px rgba(0, 0, 0, 0.5);
  animation: rgb-rotate 3.5s linear infinite;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 0.25s ease;
}

.btn-apk::before {
  content: "";
  position: absolute;
  top: -35%;
  left: 0;
  width: 24%;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 255, 0.8), rgba(183, 45, 255, 0.45), transparent);
  filter: blur(1px);
  animation: laser-beam 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.btn-apk:hover {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.25) brightness(1.08);
  box-shadow: 0 0 32px rgba(0, 180, 255, 0.32), 0 0 32px rgba(255, 45, 85, 0.32), 0 12px 30px rgba(0, 0, 0, 0.55);
}

.btn-apk:active { transform: translateY(0) scale(0.98); }

.btn-apk-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: var(--teal);
  filter: drop-shadow(0 0 8px rgba(92, 184, 164, 0.5));
}

.btn-apk-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.1;
}

.btn-apk-text strong {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.btn-apk-text small {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* ── Botón descarga directa ───────────────────── */
.btn-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 300px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(92, 184, 164, 0.4);
  border-radius: 13px;
  background: rgba(13, 15, 23, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.btn-direct:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  color: var(--text);
  box-shadow: 0 0 26px rgba(92, 184, 164, 0.3), 0 10px 26px rgba(0, 0, 0, 0.45);
}

.btn-direct:active { transform: translateY(0) scale(0.98); }

.btn-direct svg { width: 22px; height: 22px; color: var(--teal); }

/* ── Firma del creador ────────────────────────── */
.sign {
  margin-top: 34px;
  text-align: center;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.35s;
}

.sign a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.sign a strong { font-weight: 600; }

.sign a:hover { opacity: 1; color: var(--gold); }

/* ── Comunidad Telegram ───────────────────────── */
.tg-card {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.4s;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2aabee, #229ed9 55%, #1c8cc4);
  box-shadow: 0 8px 26px rgba(34, 158, 217, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.25s ease, filter 0.25s ease;
}

.tg-link:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 12px 34px rgba(34, 158, 217, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tg-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex: 0 0 auto;
}

.tg-icon svg {
  width: 24px;
  height: 24px;
}

.tg-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.tg-txt strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.tg-txt small {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 520px) {
  .tg-link { width: 100%; max-width: 320px; }
}

/* ── Diálogo ──────────────────────────────────── */
.dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 14, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dialog-layer.open { opacity: 1; pointer-events: auto; }

.dialog {
  width: min(680px, 100%);
  max-height: min(84vh, 820px);
  overflow-y: auto;
  background: #141724;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}

.dialog-layer.open .dialog { transform: translateY(0) scale(1); }

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 18px;
  background: rgba(20, 23, 36, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.dialog-titles h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-titles p {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.dialog-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dialog-close svg { width: 15px; height: 15px; }

.dialog-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: rotate(90deg);
}

.dlg-desc {
  padding: 20px 26px 4px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ── Selector de billetera ────────────────────── */
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 26px 4px;
}

.seg-btn {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.seg-btn:hover { color: var(--text); border-color: var(--line-strong); }

.seg-btn.active {
  color: #10131d;
  background: var(--d-accent, var(--gold));
  border-color: transparent;
}

/* ── Formulario ───────────────────────────────── */
.query-block {
  padding: 26px 30px 34px;
}

form.query {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.field-hint {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.field input,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text);
  background: #0d0f17;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease;
  min-height: 46px;
}

.field input:focus,
.field select:focus { border-color: var(--d-accent, var(--gold)); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  background: #0d0f17;
  color: var(--text);
}

.btn-row {
  display: flex;
  padding: 12px 0 2px;
}

/* ── Botón consultar: borde RGB + láser ───────── */
.btn-query {
  --rgb-r: #ff2d55;
  --rgb-g: #2dff88;
  --rgb-b: #00b4ff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 52px;
  padding: 0 40px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #eef1fa;
  border: 3px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  overflow: hidden;
  background:
    linear-gradient(#0d0f17, #0d0f17) padding-box,
    conic-gradient(
      from var(--rgb-angle),
      var(--rgb-r),
      #ffd42d,
      var(--rgb-g),
      #2dfff0,
      var(--rgb-b),
      #b72dff,
      var(--rgb-r)
    ) border-box;
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.14), 0 0 18px rgba(255, 45, 85, 0.14), 0 8px 22px rgba(0, 0, 0, 0.45);
  animation: rgb-rotate 3.5s linear infinite;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-query::before {
  content: "";
  position: absolute;
  top: -35%;
  left: 0;
  width: 24%;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 255, 0.85), rgba(183, 45, 255, 0.5), transparent);
  filter: blur(1px);
  animation: laser-beam 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.btn-query:hover {
  transform: translateY(-2px) scale(1.03);
  filter: saturate(1.25) brightness(1.08);
  box-shadow: 0 0 28px rgba(0, 180, 255, 0.32), 0 0 28px rgba(255, 45, 85, 0.32), 0 10px 26px rgba(0, 0, 0, 0.5);
}

.btn-query:active { transform: translateY(0) scale(0.99); }

.btn-query:disabled {
  opacity: 0.5;
  cursor: wait;
  filter: saturate(0.25) grayscale(0.5);
  box-shadow: none;
  animation: none;
}

.btn-query:disabled::before {
  animation: none;
  opacity: 0;
}

.btn-query .spinner {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-top-color: #eef1fa;
  box-shadow: 0 0 12px rgba(120, 220, 255, 0.55);
  animation: spin 0.8s linear infinite;
}

.btn-query.loading { letter-spacing: 0.1em; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.query-err {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  font-size: 0.84rem;
  border-radius: 8px;
  border: 1px solid rgba(217, 123, 123, 0.4);
  background: rgba(217, 123, 123, 0.08);
  color: var(--red);
}

.query-err.show { display: block; }

/* ── Resultado ────────────────────────────────── */
.live {
  display: none;
  margin-top: 24px;
}

.live.show { display: block; animation: dropIn 0.35s ease; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-head {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.res-group { margin-bottom: 18px; }

.res-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--d-accent, var(--gold));
  margin-bottom: 10px;
}

.res-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.res-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(13, 15, 23, 0.6);
  border: 1px solid var(--line);
}

.res-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.res-value {
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-word;
}

.res-value.strong {
  font-weight: 600;
  color: var(--d-accent, var(--gold));
}

.res-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 9px;
  border: 1px solid rgba(217, 123, 123, 0.35);
  background: rgba(217, 123, 123, 0.07);
  color: var(--red);
  font-size: 0.9rem;
}

.res-error-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.72rem;
}

.live-sign {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--text-faint);
  text-align: right;
}

.live-sign strong { color: var(--text-dim); font-weight: 600; }

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--teal), var(--violet)); border-radius: 8px; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .phone { order: -1; }
  .phone-frame { width: min(250px, 62vw); }
}

@media (max-width: 700px) {
  .res-rows { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .shell { padding: 34px 16px 52px; }
  .phone-pitch { font-size: clamp(0.68rem, 3.4vw, 0.85rem); }
  .hero-sub { gap: 10px; letter-spacing: 0.2em; font-size: 0.7rem; flex-wrap: wrap; }
  .modules { gap: 12px; }
  .module { padding: 26px 20px 22px; min-height: 164px; }
  .phone-frame { width: min(230px, 64vw); padding: 10px; }
  .btn-apk { width: 100%; max-width: 360px; min-width: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .dialog-head { padding: 18px 18px 14px; }
  .dlg-desc, .seg, .query-block { padding-left: 20px; padding-right: 20px; }
  .dlg-desc { padding-top: 18px; padding-bottom: 2px; }
  .seg { padding-top: 14px; }
  .query-block { padding-top: 22px; padding-bottom: 26px; }
  .btn-row .btn-query { width: 100%; min-width: 0; }
  .res-rows { grid-template-columns: 1fr; }
  .dialog-layer { padding: 16px; }
  .dialog { border-radius: 14px; }
}