/* ══ ruktu.com — layout & componentes (mobile-first) ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: clip; /* nada puede provocar scroll horizontal en móvil */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { padding: var(--section-pad) 0; position: relative; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.section-tag::before { content: "//"; color: var(--text-faint); }

.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 0.8rem; }
.section-sub { color: var(--text-dim); max-width: 620px; margin-bottom: 2.5rem; }

/* ── nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 6, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.logo .tld { color: var(--primary-soft); }
.logo::before { content: "▚ "; color: var(--primary); margin-right: 0.35rem; }
.nav-links { display: none; gap: 1.8rem; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad-hero);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-faint);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  min-height: 34px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch:hover { background: rgba(139, 92, 246, 0.18); color: var(--text); }

/* popup de idioma */
.lang-popup {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 140%);
  z-index: 120;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  box-shadow: var(--glow), 0 18px 50px rgba(0, 0, 0, 0.5);
  max-width: min(92vw, 400px);
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-popup.show { transform: translate(-50%, 0); }
.lang-popup .lp-q { font-family: var(--font-display); font-weight: 600; margin-bottom: 0.8rem; }
.lang-popup .lp-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ── botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad-hero);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: var(--glow-sm);
}
.btn-primary:hover { box-shadow: 0 0 38px rgba(139, 92, 246, 0.55); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--primary-faint);
  background: rgba(139, 92, 246, 0.06);
}
.btn-ghost:hover { border-color: var(--primary); background: rgba(139, 92, 246, 0.14); }
.btn-wa { background: var(--wa-green); color: #06281a; }
.btn-wa:hover { box-shadow: 0 0 30px rgba(37, 211, 102, 0.4); }
.btn-sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* ── hero ── */
.hero {
  position: relative; /* sin esto, los orbes absolutos escapan del overflow:hidden */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.orb-1 { width: 480px; height: 480px; background: #6d28d9; top: -12%; right: -8%; animation: float-a 14s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; background: #4c1d95; bottom: -10%; left: -10%; animation: float-b 18s ease-in-out infinite; }
.orb-3 { width: 220px; height: 220px; background: #c084fc; top: 40%; left: 55%; opacity: 0.22; animation: float-a 22s ease-in-out infinite reverse; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
}
.hero-content { position: relative; max-width: 780px; }
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero-kicker .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse-dot 1.8s infinite;
}
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.3rem);
  margin-bottom: 1.3rem;
}
.hero-type {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 2.2rem;
  min-height: 1.8em;
}
.hero-type .prompt { color: var(--primary-soft); }
.cursor {
  display: inline-block;
  width: 0.55em; height: 1.15em;
  background: var(--primary-soft);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ── productos ── */
.products { background: var(--bg-2); }
.product-card {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  margin-bottom: 2.2rem;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}
.product-info h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-bottom: 0.7rem; }
.product-info > p { color: var(--text-dim); margin-bottom: 1.2rem; }
.feature-list { list-style: none; margin-bottom: 1.4rem; display: grid; gap: 0.5rem; }
.feature-list li { display: flex; gap: 0.6rem; font-size: 0.94rem; color: var(--text-dim); }
.feature-list li::before { content: "▹"; color: var(--primary); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--primary-faint);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.demo-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
}
.demo-note b { color: var(--ok); font-weight: 600; }

/* marco de navegador */
.browser {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(10, 6, 18, 0.6);
  border-bottom: 1px solid var(--border);
}
.browser-bar .b-dot { width: 10px; height: 10px; border-radius: 50%; }
.b-dot.r { background: #ff5f57; } .b-dot.y { background: #febc2e; } .b-dot.g { background: #28c840; }
.browser-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  background: rgba(139, 92, 246, 0.07);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  margin-left: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url .lock { color: var(--ok); }
.browser-body { padding: 1rem; min-height: 240px; }

/* mini-mockup finanzas */
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.mock-stat {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  min-width: 0;
  overflow: hidden;
}
.mock-stat .lbl { font-size: 0.58rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-stat .val { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; }
.mock-stat .val.ok { color: var(--ok); }
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 90px;
  padding: 0.7rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.8rem;
}
.mock-chart .bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary-soft), var(--primary-deep));
  height: calc(var(--h) * 1%);
  transform-origin: bottom;
  animation: grow-bar 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mock-chart .bar:nth-child(2n) { opacity: 0.65; }
.mock-cards-row { display: flex; gap: 0.6rem; }
.mock-bankcard {
  flex: 1;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #fff;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mock-bankcard .amt { font-size: 0.78rem; font-weight: 700; }
.mb-nu { background: linear-gradient(120deg, #820ad1, #a839e0); }
.mb-k { background: linear-gradient(120deg, #1f1e5e, #4744c9); }
.mb-s { background: linear-gradient(120deg, #0d7a4f, #14b877); }

/* mini-mockup CRM (kanban) */
.mock-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.mock-col {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem;
  min-width: 0;
}
.mock-col h5 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}
.mock-task {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  color: var(--text-dim);
}
.mock-task .tag {
  display: inline-block;
  font-size: 0.52rem;
  font-family: var(--font-mono);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  margin-bottom: 0.25rem;
}
.tag-hi { background: rgba(255, 77, 109, 0.18); color: #ff8fa3; }
.tag-md { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.tag-lo { background: rgba(52, 211, 153, 0.14); color: var(--ok); }
.mock-task.drag {
  border-color: var(--primary);
  box-shadow: var(--glow-sm);
  animation: task-drag 5s ease-in-out infinite;
}

/* mini-mockup páginas web (wireframe animado) */
.mock-web { display: flex; flex-direction: column; gap: 0.7rem; }
.mock-web .mw-nav {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mw-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--grad-hero); }
.mw-links { display: flex; gap: 0.45rem; flex: 1; justify-content: center; }
.mw-links i { width: 26px; height: 6px; border-radius: 3px; background: rgba(167, 139, 250, 0.35); }
.mw-cta { width: 44px; height: 14px; border-radius: 999px; background: var(--primary); }
.mock-web .mw-hero {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0.9rem 0.7rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.mw-line { border-radius: 4px; background: rgba(237, 233, 254, 0.55); animation: mw-shimmer 2.6s ease-in-out infinite; }
.mw-line.lg { width: 78%; height: 12px; }
.mw-line.md { width: 60%; height: 12px; animation-delay: 0.2s; }
.mw-line.sm { width: 42%; height: 7px; background: rgba(169, 159, 196, 0.5); animation-delay: 0.4s; }
.mw-btn { width: 84px; height: 20px; border-radius: 999px; background: var(--grad-hero); margin-top: 0.3rem; box-shadow: var(--glow-sm); }
.mw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.mw-card {
  height: 44px; border-radius: 8px;
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid var(--border);
  animation: mw-shimmer 2.6s ease-in-out infinite;
}
.mw-card:nth-child(2) { animation-delay: 0.25s; }
.mw-card:nth-child(3) { animation-delay: 0.5s; }
.mw-palette {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mw-palette i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); }
.mw-type {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-faint);
  font-size: 0.95rem;
}

/* ── fila extra dentro de una tarjeta de producto ──
   Telegram dejó de ser una sección aparte: es una función de Finanzas y ahora
   vive dentro de su tarjeta, separada por una línea. Una caja por producto. */
.card-extra {
  grid-column: 1 / -1;
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 2rem;
  align-items: center;
}
.card-extra-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0.6rem 0 0.7rem;
}
.card-extra-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.3rem;
}
.card-extra .phone { --phone-h: 460px; }
.card-extra .phone-screen { height: var(--phone-h); }

/* ── maqueta de WhatsApp ── */
.wa-phone { background: #0b141a; }
.wa-phone .phone-screen { background: #0b141a; height: 530px; }
.wa-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: #1f2c34;
  flex-shrink: 0;
}
.wa-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #128c7e;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.wa-header .name { font-size: 0.9rem; font-weight: 600; color: #f5f5f5; }
.wa-header .status { font-size: 0.72rem; color: #6ee7b7; }
.wa-chat {
  flex: 1;
  overflow: hidden;
  padding: 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.wa-msg {
  max-width: 82%;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e9edef;
  word-wrap: break-word;
}
.wa-msg.in { align-self: flex-start; background: #1f2c34; border-top-left-radius: 4px; }
.wa-msg.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
/* El ticket es lo que demuestra que el bot toca datos reales y no solo
   conversa bonito: es la pieza que hay que ver en una captura. */
.wa-ticket {
  align-self: flex-end;
  width: 82%;
  background: #005c4b;
  border-radius: 12px;
  border-top-right-radius: 4px;
  padding: 0.5rem 0.7rem;
  font-size: 0.72rem;
  color: #e9edef;
}
.wa-ticket-row { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.12rem 0; }
.wa-ticket-row.total {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}
.wa-footer {
  padding: 0.6rem 0.9rem;
  background: #1f2c34;
  font-size: 0.78rem;
  color: #8696a0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.wa-footer .bar { flex: 1; background: #2a3942; border-radius: 999px; padding: 0.42rem 0.9rem; }

/* ── captura por Telegram (vive dentro de la tarjeta de Finanzas) ── */
.tg-copy .feature-list { margin-bottom: 1.6rem; }
.tg-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.tg-tab {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.25s;
}
.tg-tab:hover { color: var(--text); border-color: var(--border-strong); }
.tg-tab.active {
  color: #fff;
  background: var(--grad-hero);
  border-color: transparent;
  box-shadow: var(--glow-sm);
}

/* teléfono */
.phone {
  width: min(360px, 100%);
  margin: 0 auto;
  background: #17212b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), var(--glow);
}
.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #0e1621;
  display: flex;
  flex-direction: column;
  height: 560px;
}
.tg-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: #17212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.tg-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.tg-header .name { font-size: 0.9rem; font-weight: 600; color: #f5f5f5; }
.tg-header .status { font-size: 0.72rem; color: var(--tg-blue); }
.tg-chat {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background-image: radial-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.tg-footer {
  padding: 0.6rem 0.9rem;
  background: #17212b;
  font-size: 0.78rem;
  color: #5f6e7d;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.tg-footer .bar { flex: 1; background: #0e1621; border-radius: 999px; padding: 0.42rem 0.9rem; }

/* burbujas */
.msg {
  max-width: 84%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #eef2f5;
  animation: bubble-in 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  word-wrap: break-word;
}
.msg.user { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; }
.msg b { color: #fff; }
.msg .quote { color: #9ac0dd; font-style: italic; }
.msg-time { font-size: 0.6rem; color: rgba(255, 255, 255, 0.35); float: right; margin: 0.4rem 0 0 0.6rem; }

.typing {
  align-self: flex-start;
  background: #182533;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 0.7rem 0.9rem;
  display: flex;
  gap: 4px;
  animation: bubble-in 0.25s both;
}
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5f6e7d;
  animation: typing-dot 1.1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* botones inline de telegram */
.inline-kb { align-self: flex-start; display: grid; gap: 4px; width: 84%; animation: bubble-in 0.3s both; }
.inline-row { display: flex; gap: 4px; }
.inline-btn {
  flex: 1;
  text-align: center;
  font-size: 0.74rem;
  color: #7bb8e8;
  background: rgba(43, 82, 120, 0.35);
  border: 1px solid rgba(123, 184, 232, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  transition: background 0.2s;
}
.inline-btn.pressed { background: var(--tg-blue); color: #fff; }

/* nota de voz */
.voice { display: flex; align-items: center; gap: 0.6rem; min-width: 190px; }
.voice .play {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #7bb8e8;
  color: #0e1621;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.wave i {
  width: 3px;
  border-radius: 2px;
  background: #7bb8e8;
  height: calc(var(--h) * 1%);
  animation: wave-bar 1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.07s);
}
.voice .dur { font-size: 0.66rem; color: #9ac0dd; }

/* ticket foto */
.ticket {
  background: #f4f1e8;
  color: #3a3a33;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  width: 172px;
  line-height: 1.5;
  transform: rotate(-1.5deg);
}
.ticket .tk-head { text-align: center; font-weight: 700; border-bottom: 1px dashed #a9a494; padding-bottom: 0.3rem; margin-bottom: 0.3rem; }
.ticket .tk-row { display: flex; justify-content: space-between; }
.ticket .tk-total { border-top: 1px dashed #a9a494; margin-top: 0.3rem; padding-top: 0.3rem; font-weight: 700; }

/* tarjeta de confirmación */
.confirm-card {
  align-self: flex-start;
  background: #182533;
  border: 1px solid rgba(123, 184, 232, 0.3);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
  color: #eef2f5;
  width: 84%;
  animation: bubble-in 0.3s both;
}
.confirm-card h6 { font-size: 0.72rem; color: #7bb8e8; margin-bottom: 0.4rem; }
.confirm-card .c-row { display: flex; justify-content: space-between; padding: 0.12rem 0; color: #b8c7d4; }
.confirm-card .c-row b { color: #fff; }

/* ── maqueta del mapa (tarjeta "que te encuentren") ──
   Tres escenas que se turnan (js/mapa-demo.js pone .on). Todo es CSS + un SVG
   en línea para el logotipo; ni una imagen.

   Van en claro a propósito: Google Maps es claro y la ficha del negocio hay que
   verla como la verá su cliente. Mismo criterio que las tarjetas de WhatsApp y
   Telegram, que usan los colores reales de cada app y no la paleta del sitio.
   Colores de Google: azul #4285F4/#1a73e8, rojo #EA4335, amarillo #FBBC05,
   verde #34A853, texto #3c4043, bordes #dadce0. */
.loc-panel {
  width: min(420px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.loc-stage {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: #f1efe9;
}
.loc-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}
.loc-scene.on { opacity: 1; visibility: visible; }

/* etiqueta de escena, en el mismo lugar que la barra de búsqueda de la escena 1 */
.loc-cap {
  position: absolute;
  z-index: 4;
  top: 0; left: 0; right: 0;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: #3c4043;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dadce0;
}

/* ── escena 1: la ficha en el mapa ── */
.loc-map {
  position: absolute;
  inset: 0;
  background: #f1efe9;
}
/* la retícula de calles, en blanco como las de Maps */
.loc-roads {
  position: absolute;
  inset: -12%;
  background-image:
    repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 52px),
    repeating-linear-gradient(0deg,  #fff 0 3px, transparent 3px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0 1.5px, transparent 1.5px 17px);
}
/* la avenida principal, amarilla, sobre la que aterriza el pin */
.loc-ave {
  position: absolute;
  left: -25%; right: -25%;
  top: 47%;
  height: 9px;
  transform: rotate(-19deg);
  background: #fcefc3;
  border-top: 1px solid #f6e3a1;
  border-bottom: 1px solid #f6e3a1;
}
.loc-block { position: absolute; border-radius: 3px; }
.loc-block.b1 { left: 5%;  top: 13%; width: 26%; height: 17%; background: #e9e6df; }
.loc-block.b2 { right: 6%; top: 16%; width: 22%; height: 15%; background: #c9e6c4; }  /* parque */
.loc-block.b3 { right: 7%; top: 39%; width: 19%; height: 8%;  background: #aadaff; }  /* agua */

/* pines de la competencia: los rojos apagados de un resultado secundario */
.loc-pin {
  position: absolute;
  width: 13px; height: 13px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #b9524a;
  opacity: 0.55;
}
.loc-pin.p1 { left: 15%; top: 20%; }
.loc-pin.p2 { right: 17%; top: 28%; width: 11px; height: 11px; }
.loc-pin.p3 { left: 27%; top: 63%; width: 11px; height: 11px; }

/* el pin del negocio: rojo de Maps, con el punto blanco del centro */
.loc-you {
  position: absolute;
  left: 50%; top: 39%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50% 50% 50% 0;
  background: #ea4335;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: rotate(-45deg);
}
.loc-you::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
}
.loc-scene.on .loc-you {
  animation: loc-drop 1.1s cubic-bezier(0.3, 1.3, 0.5, 1) forwards;
}
/* el aro del impacto, en el azul de acción de Google */
.loc-ring {
  position: absolute;
  left: 50%; top: 39%;
  width: 110px; height: 110px;
  margin: -55px 0 0 -55px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 115, 232, 0.6);
  opacity: 0;
}
.loc-scene.on .loc-ring { animation: loc-ripple 1.5s ease-out 0.6s forwards; }
.loc-scene.on .loc-ring.r2 { animation-delay: 1s; }
.loc-ring.r2 { transform: scale(0.9); }

/* las cinco estrellas que brotan del pin */
.loc-burst {
  position: absolute;
  left: 50%; top: 39%;
  width: 0; height: 0;
}
.loc-burst i {
  position: absolute;
  font-style: normal;
  font-size: 0.8rem;
  color: #f9ab00;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  opacity: 0;
  --sx: 0px; --sy: 0px;
}
.loc-scene.on .loc-burst i { animation: loc-star 0.7s cubic-bezier(0.2, 1.2, 0.4, 1) forwards; }
.loc-burst i:nth-child(1) { --sx: -62px; --sy: -34px; }
.loc-burst i:nth-child(2) { --sx: -32px; --sy: -54px; }
.loc-burst i:nth-child(3) { --sx:   0px; --sy: -62px; }
.loc-burst i:nth-child(4) { --sx:  32px; --sy: -54px; }
.loc-burst i:nth-child(5) { --sx:  62px; --sy: -34px; }
.loc-scene.on .loc-burst i:nth-child(1) { animation-delay: 1.05s; }
.loc-scene.on .loc-burst i:nth-child(2) { animation-delay: 1.14s; }
.loc-scene.on .loc-burst i:nth-child(3) { animation-delay: 1.23s; }
.loc-scene.on .loc-burst i:nth-child(4) { animation-delay: 1.32s; }
.loc-scene.on .loc-burst i:nth-child(5) { animation-delay: 1.41s; }

/* la barra de búsqueda de Maps */
.loc-search {
  position: absolute;
  z-index: 3;
  top: 9px; left: 9px; right: 9px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.6rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22), 0 3px 10px rgba(0, 0, 0, 0.08);
}
.loc-mag { font-size: 0.72rem; opacity: 0.55; flex-shrink: 0; }
.loc-q {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  color: #3c4043;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-avatar {
  flex-shrink: 0;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: linear-gradient(140deg, #8ab4f8, #4285f4);
}
/* el logotipo "Google" abajo a la izquierda, como en el mapa real */
.loc-gword {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 152px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}
.loc-gword i { font-style: normal; }
.loc-gword i:nth-child(1) { color: #4285f4; }
.loc-gword i:nth-child(2) { color: #ea4335; }
.loc-gword i:nth-child(3) { color: #fbbc05; }
.loc-gword i:nth-child(4) { color: #4285f4; }
.loc-gword i:nth-child(5) { color: #34a853; }
.loc-gword i:nth-child(6) { color: #ea4335; }

/* la ficha del negocio, como la hoja inferior de Maps */
.loc-card {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.65rem 0.8rem 0.7rem;
  background: #fff;
  border-top: 1px solid #dadce0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
}
.loc-scene.on .loc-card { animation: loc-rise 0.55s ease-out 1.6s forwards; }
.loc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.loc-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #202124;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  background: var(--grad-hero);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}
.loc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #5f6368;
  margin-bottom: 0.22rem;
}
.loc-meta b { color: #3c4043; font-weight: 600; }
.loc-stars { color: #f9ab00; font-size: 0.72rem; letter-spacing: 0.04em; }
.loc-sep { opacity: 0.5; }
.loc-open { display: inline-flex; align-items: center; gap: 0.3rem; color: #188038; }
.loc-open i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #188038;
  animation: pulse-dot 1.8s infinite;
}
/* la tira de fotos: gradientes con destello. Insinúan la sesión fotográfica
   sin fingir ser fotos que todavía no existen. */
.loc-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin: 0.45rem 0 0.5rem;
}
.loc-shot {
  position: relative;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
}
.loc-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.3) 50%, transparent 66%);
}
.loc-shot.s1 { background: linear-gradient(150deg, #d8b98f, #b98b58); }
.loc-shot.s2 { background: linear-gradient(150deg, #cfa77a, #a8703f); }
.loc-shot.s3 { background: linear-gradient(150deg, #e0c9a6, #c08e5c); }
.loc-shot.s4 { display: grid; place-items: center; background: #f1f3f4; }
.loc-shot.s4::after { content: none; }
.loc-shot.s4 b {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #5f6368;
}
/* los botones de la ficha */
.loc-actions { display: flex; gap: 0.4rem; }
.loc-btn {
  flex: 1;
  padding: 0.32rem 0.5rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #dadce0;
  color: #1a73e8;
  background: #fff;
}
.loc-btn.pri { background: #1a73e8; border-color: #1a73e8; color: #fff; }

/* ── escena 2: el letrero de reseñas en su stand ── */
.loc-counter {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #efece6 0%, #eae6de 58%, #f6f4f0 58.5%, #efebe4 100%);
}
/* la superficie del mostrador */
.loc-table {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 41.5%;
  background: linear-gradient(180deg, #f7f5f1, #eee9e1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.loc-tap-row {
  position: absolute;
  left: 0; right: 0;
  bottom: 24%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
}
/* el stand de acrílico transparente, en L. Contra fondo claro el vidrio se lee
   por sus filos grises y sus reflejos blancos. */
.loc-stand {
  position: relative;
  width: 138px;
  opacity: 0;
  transform: perspective(620px) rotateY(-14deg) rotateX(3deg);
}
.loc-scene.on .loc-stand { animation: loc-fade 0.5s ease-out forwards; }
.loc-stand-panel {
  position: relative;
  padding: 9px 9px 13px;
  border-radius: 6px 6px 1px 1px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(120, 130, 145, 0.35);
  border-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 22px rgba(90, 80, 70, 0.18);
  overflow: hidden;
}
/* el reflejo diagonal: es lo que termina de decir "esto es vidrio" */
.loc-stand-panel::before {
  content: "";
  position: absolute;
  top: -30%; bottom: -30%; left: -14%;
  width: 34%;
  transform: rotate(19deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  pointer-events: none;
}
/* el canto derecho: el grosor del acrílico */
.loc-stand-panel::after {
  content: "";
  position: absolute;
  top: 3px; bottom: 0; right: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(150, 158, 170, 0.35));
}
.loc-stand-foot {
  display: block;
  height: 12px;
  margin: 0 -10px;
  border-radius: 1px 1px 7px 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(190, 196, 206, 0.4) 55%, rgba(170, 176, 188, 0.25));
  border: 1px solid rgba(120, 130, 145, 0.3);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 14px rgba(90, 80, 70, 0.2);
}

/* la lámina impresa */
.loc-sign {
  padding: 0.45rem 0.4rem 0.4rem;
  text-align: center;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 10px 20px rgba(90, 80, 70, 0.22);
}
/* el hueco del logo del negocio: marca + wordmark, vacío a propósito */
.loc-sign-logo {
  position: relative;
  display: block;
  width: 32px; height: 10px;
  margin: 0 auto 0.28rem;
  opacity: 0.4;
}
.loc-sign-logo::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: #202124;
}
.loc-sign-logo::after {
  content: "";
  position: absolute;
  right: 0; top: 2px;
  width: 18px; height: 6px;
  border-radius: 1px;
  background: linear-gradient(180deg, #202124 0 2.5px, transparent 2.5px 3.5px, #202124 3.5px 6px);
}
.loc-sign-h {
  display: block;
  font-family: var(--font-display);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #202124;
  margin-bottom: 0.3rem;
}
/* el marco de cuatro colores, como el del letrero real */
.loc-gframe {
  padding: 2.5px;
  border-radius: 7px;
  background: conic-gradient(from 315deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
}
.loc-gframe > div {
  padding: 0.35rem 0.3rem 0.3rem;
  border-radius: 5px;
  background: #fff;
}
.loc-glogo { display: block; width: 21px; height: 21px; margin: 0 auto 0.18rem; }
.loc-sign-stars {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: #f9ab00;
  margin-bottom: 0.28rem;
}
.loc-sign-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.loc-sign-div { width: 1px; align-self: stretch; background: #dadce0; }
/* el icono de "acércalo": tres arcos, como cualquier lector contactless */
.loc-tapico {
  position: relative;
  width: 32px; height: 32px;
  flex-shrink: 0;
  color: #3c4043;
}
.loc-tapico i {
  position: absolute;
  top: 50%; left: 7px;
  border: 1.5px solid currentColor;
  border-color: transparent currentColor transparent transparent;
  border-radius: 50%;
  opacity: 0.8;
}
.loc-tapico i:nth-child(1) { width: 7px;  height: 7px;  margin: -3.5px 0 0 0; }
.loc-tapico i:nth-child(2) { width: 14px; height: 14px; margin: -7px 0 0 0; }
.loc-tapico i:nth-child(3) { width: 21px; height: 21px; margin: -10.5px 0 0 0; }
/* el QR: rejilla de puntos, no un código real — no lleva a ningún lado */
.loc-qr {
  display: block;
  width: 31px; height: 31px;
  flex-shrink: 0;
  border-radius: 2px;
  padding: 2px;
  background-color: #fff;
  background-image: radial-gradient(#202124 44%, transparent 46%);
  background-size: 4.5px 4.5px;
  background-origin: content-box;
  background-clip: content-box;
}
.loc-sign-lbls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.26rem;
  font-family: var(--font-mono);
  font-size: 0.42rem;
  letter-spacing: 0.01em;
  color: #5f6368;
}
.loc-sign-lbls span:nth-child(2) { opacity: 0.55; text-transform: lowercase; }

/* el celular que se acerca y toca */
.loc-hand {
  position: relative;
  width: 50px; height: 88px;
  border-radius: 9px;
  background: linear-gradient(160deg, #3a3550, #1d1830);
  border: 1.5px solid rgba(60, 64, 67, 0.5);
  box-shadow: -8px 12px 22px rgba(90, 80, 70, 0.3);
  opacity: 0;
}
.loc-hand::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 5px;
  background: linear-gradient(160deg, #5d7fc4, #2b3f6b);
}
.loc-scene.on .loc-hand { animation: loc-tap 1.5s cubic-bezier(0.3, 1, 0.4, 1) 0.35s forwards; }

/* las ondas del toque NFC, en el azul de Google */
.loc-wave {
  position: absolute;
  left: calc(50% + 46px); bottom: 52px;
  width: 44px; height: 44px;
  margin: 0 0 -22px -22px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 115, 232, 0.75);
  opacity: 0;
}
.loc-scene.on .loc-wave { animation: loc-nfc 1.2s ease-out 1.05s forwards; }
.loc-scene.on .loc-wave.w2 { animation-delay: 1.25s; }
.loc-scene.on .loc-wave.w3 { animation-delay: 1.45s; }

/* las cinco estrellas que salen del toque */
.loc-fly {
  position: absolute;
  left: calc(50% + 46px); bottom: 64px;
  width: 0; height: 0;
}
.loc-fly i {
  position: absolute;
  font-style: normal;
  font-size: 0.85rem;
  color: #f9ab00;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  opacity: 0;
  --sx: 0px; --sy: 0px;
}
.loc-scene.on .loc-fly i { animation: loc-star-up 1.4s ease-out forwards; }
.loc-fly i:nth-child(1) { --sx: -34px; --sy: -66px; }
.loc-fly i:nth-child(2) { --sx: -10px; --sy: -84px; }
.loc-fly i:nth-child(3) { --sx:  16px; --sy: -92px; }
.loc-fly i:nth-child(4) { --sx:  42px; --sy: -80px; }
.loc-fly i:nth-child(5) { --sx:  62px; --sy: -58px; }
.loc-scene.on .loc-fly i:nth-child(1) { animation-delay: 1.3s; }
.loc-scene.on .loc-fly i:nth-child(2) { animation-delay: 1.42s; }
.loc-scene.on .loc-fly i:nth-child(3) { animation-delay: 1.54s; }
.loc-scene.on .loc-fly i:nth-child(4) { animation-delay: 1.66s; }
.loc-scene.on .loc-fly i:nth-child(5) { animation-delay: 1.8s; }

/* el contador de reseñas */
.loc-tally {
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
  color: #3c4043;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(90, 80, 70, 0.14);
  opacity: 0;
}
.loc-scene.on .loc-tally { animation: loc-in 0.5s ease-out 2.15s forwards; }
.loc-tally b { color: #f9ab00; font-family: var(--font-mono); }
.loc-tally .loc-up { color: #188038; font-size: 0.68rem; font-weight: 600; }

/* ── escena 3: más reseñas, más exposición, más clientes ── */
.loc-loop {
  position: absolute;
  inset: 0;
  top: 44px;
  display: grid;
  place-items: center;
  background: #f8f9fa;
}
.loc-ring-wrap { position: relative; width: 176px; height: 176px; }
.loc-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed #c8ccd1;
}
.loc-comet { position: absolute; inset: 0; border-radius: 50%; }
.loc-scene.on .loc-comet { animation: loc-orbit 6s linear infinite; }
.loc-comet::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #1a73e8;
  box-shadow: 0 0 12px 3px rgba(26, 115, 232, 0.45);
}
.loc-node {
  position: absolute;
  width: 72px;
  margin: -34px 0 0 -36px;
  padding: 0.45rem 0.3rem;
  text-align: center;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.12);
}
.loc-node.n1 { left: 50%; top: 0; }
.loc-node.n2 { left: 93%; top: 75%; }
.loc-node.n3 { left: 7%;  top: 75%; }
.loc-scene.on .loc-node { animation: loc-node-lit 6s ease-in-out infinite; }
.loc-scene.on .loc-node.n2 { animation-delay: 2s; }
.loc-scene.on .loc-node.n3 { animation-delay: 4s; }
.loc-node-ico { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.loc-node-lbl { display: block; font-size: 0.58rem; color: #5f6368; text-transform: lowercase; }
.loc-node-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a73e8;
}
.loc-scene.on .loc-node .loc-node-num { animation: loc-tick 6s ease-in-out infinite; }
.loc-scene.on .loc-node.n2 .loc-node-num { animation-delay: 2s; }
.loc-scene.on .loc-node.n3 .loc-node-num { animation-delay: 4s; }
.loc-loop-mid {
  position: absolute;
  left: 50%; top: 50%;
  width: 108px;
  margin: -22px 0 0 -54px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  line-height: 1.35;
  color: #3c4043;
}

/* Con movimiento reducido el sitio aplasta la duración de toda animación, pero
   NO el delay: sin esto, las estrellas y la ficha tardarían hasta dos segundos
   en aparecer de golpe. Se anulan los delays para que la escena se vea completa
   desde el primer frame. El `forwards` de cada regla es lo que la sostiene. */
@media (prefers-reduced-motion: reduce) {
  .loc-scene *, .loc-scene *::before, .loc-scene *::after {
    animation-delay: 0s !important;
  }
  /* las estrellas de la escena 2 terminan invisibles a propósito (se van
     volando). Sin movimiento no hay vuelo que ver, así que se quedan puestas:
     son el punto de la escena. Un !important sí gana contra una animación. */
  .loc-fly i {
    opacity: 1 !important;
    transform: translate(var(--sx), var(--sy)) !important;
  }
}

/* ── los puntitos para saltar de escena ── */
.loc-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0 0.8rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.loc-dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.loc-dot:hover { background: rgba(167, 139, 250, 0.5); }
.loc-dot.on { background: var(--primary-soft); transform: scale(1.3); }

/* ── proceso ── */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow-sm); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--text-dim); }

/* ── contacto ── */
.contact-box {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow);
}
.contact-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad-hero);
  opacity: 0.08;
  pointer-events: none;
}
.contact-box h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 0.7rem; position: relative; }
.contact-box p { color: var(--text-dim); margin-bottom: 1.8rem; position: relative; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; position: relative; }
.contact-mail {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-soft);
  position: relative;
  word-break: break-all;
}
.contact-mail:hover { text-decoration: underline; }

/* botón flotante whatsapp */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 5.5rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}
footer .mono { color: var(--primary-soft); }

/* ── reveal (scroll) ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── galería de estilos de diseño (tarjeta Páginas web) ── */
.product-card.web-card { grid-template-columns: 1fr; }
.design-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-content: center;
}
@media (min-width: 560px) {
  .design-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.dg-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}
.dg-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--glow-sm);
}
.dg-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0 0.15rem;
}
.dg-label b { color: var(--primary-soft); font-weight: 700; }
.dg-card:hover .dg-label { color: var(--text); }

/* mini-preview genérico */
.dg-mini {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  height: 108px;
  border-radius: 9px;
  padding: 0.5rem 0.55rem;
  overflow: hidden;
  position: relative;
}
.dg-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.1rem; }
.dg-topbar .dgl { width: 12px; height: 12px; border-radius: 4px; }
.dg-topbar .pill { width: 26px; height: 8px; border-radius: 99px; }
.dg-h1 { height: 8px; width: 72%; border-radius: 3px; }
.dg-h2 { height: 5px; width: 50%; border-radius: 3px; }
.dg-cta { height: 11px; width: 34px; border-radius: 99px; margin-top: 0.1rem; }
.dg-cols { display: flex; gap: 0.3rem; margin-top: auto; }
.dg-cols i { flex: 1; height: 20px; border-radius: 4px; }

/* futurista: oscuro con neón */
.dg-fut .dg-mini { background: #060118; border: 1px solid rgba(0, 240, 255, 0.25); }
.dg-fut .dgl { background: #00f0ff; box-shadow: 0 0 8px #00f0ff; border-radius: 2px; }
.dg-fut .pill { background: linear-gradient(90deg, #00f0ff, #ff2ec4); }
.dg-fut .dg-h1 { background: linear-gradient(90deg, #e8e6ff, #00f0ff); }
.dg-fut .dg-h2 { background: rgba(143, 138, 184, 0.6); }
.dg-fut .dg-cta { background: linear-gradient(90deg, #00f0ff, #7b5cff); box-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.dg-fut .dg-cols i { background: rgba(123, 92, 255, 0.2); border: 1px solid rgba(0, 240, 255, 0.3); }

/* minimalista: blanco y líneas finas */
.dg-min .dg-mini { background: #fafaf8; border: 1px solid #e5e5e0; }
.dg-min .dgl { background: #141414; border-radius: 0; width: 10px; height: 10px; }
.dg-min .pill { background: transparent; border-bottom: 1px solid #141414; border-radius: 0; height: 5px; }
.dg-min .dg-h1 { background: #1b1b1b; height: 6px; width: 62%; }
.dg-min .dg-h2 { background: #b9b9b2; height: 4px; }
.dg-min .dg-cta { background: transparent; border-bottom: 1.5px solid #141414; border-radius: 0; height: 7px; width: 28px; }
.dg-min .dg-cols i { background: #ecece8; border-radius: 0; }

/* retro: brutalist amarillo/negro */
.dg-ret .dg-mini { background: #ffe600; border: 2px solid #0d0d0d; }
.dg-ret .dgl { background: #0d0d0d; border-radius: 0; }
.dg-ret .pill { background: #fffdf2; border: 2px solid #0d0d0d; border-radius: 0; height: 9px; }
.dg-ret .dg-h1 { background: #0d0d0d; height: 10px; border-radius: 0; }
.dg-ret .dg-h2 { background: #ff3b30; height: 7px; border-radius: 0; width: 42%; }
.dg-ret .dg-cta { background: #ff3b30; border: 2px solid #0d0d0d; border-radius: 0; box-shadow: 2.5px 2.5px 0 #0d0d0d; }
.dg-ret .dg-cols i { border-radius: 0; border: 2px solid #0d0d0d; }
.dg-ret .dg-cols i:nth-child(1) { background: #2962ff; }
.dg-ret .dg-cols i:nth-child(2) { background: #ff5ca8; }
.dg-ret .dg-cols i:nth-child(3) { background: #00c853; }

/* corporativo: azul confianza */
.dg-corp .dg-mini { background: #f0f5fc; border: 1px solid #dbe5f2; }
.dg-corp .dgl { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.dg-corp .pill { background: #1d4ed8; }
.dg-corp .dg-h1 { background: #0b2447; }
.dg-corp .dg-h2 { background: #9db4d4; }
.dg-corp .dg-cta { background: #1d4ed8; border-radius: 5px; }
.dg-corp .dg-cols i { background: #ffffff; border: 1px solid #dbe5f2; box-shadow: 0 2px 5px rgba(11, 36, 71, 0.08); }

/* artesanal: tierra y crema */
.dg-art .dg-mini { background: #f7f0e4; border: 1px solid #e0cfae; }
.dg-art .dgl { background: #c1552e; border-radius: 50%; }
.dg-art .pill { background: #e0cfae; }
.dg-art .dg-h1 { background: #42281a; border-radius: 99px; }
.dg-art .dg-h2 { background: #c9ad82; border-radius: 99px; }
.dg-art .dg-cta { background: #c1552e; }
.dg-art .dg-cols i { background: #fffdf8; border: 1px solid #e0cfae; border-radius: 8px; }

/* electrónica: grafito industrial + naranja */
.dg-ele .dg-mini { background: #1c2026; border: 1px solid #343b45; }
.dg-ele .dgl { background: #ff6b1a; border-radius: 0; }
.dg-ele .pill { background: #343b45; border-radius: 0; }
.dg-ele .dg-h1 { background: #e6e9ee; border-radius: 0; }
.dg-ele .dg-h2 { background: #58616e; border-radius: 0; }
.dg-ele .dg-cta { background: #ff6b1a; border-radius: 0; }
.dg-ele .dg-cols i { background: #14161a; border: 1px solid #343b45; border-radius: 0; border-top: 2px solid #ff6b1a; }

/* tequila: negro y oro */
.dg-teq .dg-mini { background: #0e0c08; border: 1px solid rgba(201, 162, 39, 0.4); }
.dg-teq .dgl { background: transparent; border: 1px solid #c9a227; border-radius: 50%; }
.dg-teq .pill { background: transparent; border-bottom: 1px solid #c9a227; border-radius: 0; height: 5px; }
.dg-teq .dg-h1 { background: #f3ead8; height: 6px; }
.dg-teq .dg-h2 { background: #c9a227; height: 4px; width: 34%; margin: 0 auto; }
.dg-teq .dg-h1 { margin: 0 auto; width: 62%; }
.dg-teq .dg-cta { background: transparent; border: 1px solid #c9a227; margin: 2px auto 0; border-radius: 0; }
.dg-teq .dg-cols i { background: #171410; border: 1px solid rgba(201, 162, 39, 0.35); border-radius: 0; }

/* construcción: concreto + amarillo obra */
.dg-con .dg-mini { background: #e6e4e0; border: 1px solid #c9c6c0; }
.dg-con .dgl { background: #171717; border-radius: 0; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.dg-con .pill { background: #f5b700; border-radius: 0; }
.dg-con .dg-h1 { background: #171717; height: 10px; border-radius: 0; }
.dg-con .dg-h2 { background: #8f8c86; border-radius: 0; }
.dg-con .dg-cta { background: #f5b700; border-radius: 0; }
.dg-con .dg-cols i { background: #d4d1cb; border-radius: 0; border-bottom: 3px solid #171717; }

/* logística: azul noche + verde ruta */
.dg-log .dg-mini { background: #0b1d33; border: 1px solid #1f3d61; }
.dg-log .dgl { background: #2dd4a7; border-radius: 4px; }
.dg-log .pill { background: #1f3d61; }
.dg-log .dg-h1 { background: #e8eef6; }
.dg-log .dg-h2 { background: #2dd4a7; width: 38%; }
.dg-log .dg-cta { background: #ffb020; }
.dg-log .dg-cols i { background: #132c49; border: 1px solid #1f3d61; }

/* hotel: índigo + arena editorial */
.dg-hot .dg-mini { background: #1f2a4d; border: 1px solid #3a4a7d; }
.dg-hot .dgl { background: transparent; border: 1px solid #ede3d0; border-radius: 50%; }
.dg-hot .pill { background: #b99a5b; height: 5px; }
.dg-hot .dg-h1 { background: #ede3d0; height: 6px; margin: 0 auto; width: 58%; }
.dg-hot .dg-h2 { background: #8c97bd; height: 4px; margin: 0 auto; width: 40%; }
.dg-hot .dg-cta { background: transparent; border: 1px solid #ede3d0; margin: 2px auto 0; border-radius: 0; }
.dg-hot .dg-cols i { background: #2b3a67; border-radius: 2px; }

/* clínica: blanco + teal */
.dg-cli .dg-mini { background: #ffffff; border: 1px solid #d8e5e3; }
.dg-cli .dgl { background: #0d9488; border-radius: 50%; }
.dg-cli .pill { background: #ccfbf1; }
.dg-cli .dg-h1 { background: #1f2937; }
.dg-cli .dg-h2 { background: #b6c3c1; }
.dg-cli .dg-cta { background: #0d9488; }
.dg-cli .dg-cols i { background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 8px; }

/* tienda: crema + coral y pasteles */
.dg-tie .dg-mini { background: #faf6f0; border: 1px solid #e8e0d6; }
.dg-tie .dgl { background: #191512; border-radius: 6px; }
.dg-tie .pill { background: #ff5a4e; }
.dg-tie .dg-h1 { background: #191512; }
.dg-tie .dg-h2 { background: #b5aca2; }
.dg-tie .dg-cta { background: #ff5a4e; border-radius: 6px; }
.dg-tie .dg-cols i { border-radius: 8px; border: 1px solid #e8e0d6; }
.dg-tie .dg-cols i:nth-child(1) { background: #ffe9b8; }
.dg-tie .dg-cols i:nth-child(2) { background: #cfe4ff; }
.dg-tie .dg-cols i:nth-child(3) { background: #d3efd9; }

@media (max-width: 380px) {
  .dg-mini { height: 92px; }
  .design-gallery { gap: 0.55rem; }
  /* la ficha de Maps es alta (fotos + botones): si se recorta el escenario,
     tapa el pin y se pierde el punto de la escena */
  .loc-stage { height: 296px; }
  .loc-shot { height: 30px; }
  .loc-name { font-size: 0.82rem; }
  .loc-meta { font-size: 0.63rem; }
  .loc-btn { font-size: 0.63rem; }
  .loc-gword { bottom: 144px; }
  .loc-ring-wrap { width: 144px; height: 144px; }
  .loc-node { width: 62px; margin: -29px 0 0 -31px; }
  .loc-node-ico { font-size: 0.85rem; }
  .loc-loop-mid { font-size: 0.62rem; width: 92px; margin-left: -46px; }
  .loc-hand { width: 44px; height: 78px; }
  .loc-stand { width: 120px; }
}

/* ── desktop ── */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .product-card { grid-template-columns: 1fr 1fr; }
  .product-card.flip .product-info { order: 2; }
  .product-card.flip .browser,
  .product-card.flip .loc-panel { order: 1; }
  .card-extra { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  footer { padding-bottom: 2rem; }
}

/* móvil: sin animaciones de fondo ni backdrop-filter — el scroll se entrecorta */
@media (max-width: 767px) {
  .orb-1, .orb-2, .orb-3 { animation: none; filter: blur(55px); }
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 6, 18, 0.94);
  }
}

/* pantallas muy angostas: los mockups encogen su tipografía */
@media (max-width: 380px) {
  .browser-body { padding: 0.7rem; }
  .mock-stats, .mock-kanban, .mock-cards-row, .mw-cards { gap: 0.4rem; }
  .mock-stat .val { font-size: 0.74rem; }
  .mock-stat .lbl { font-size: 0.52rem; }
  .mock-col h5 { font-size: 0.54rem; }
  .mock-task { font-size: 0.56rem; padding: 0.35rem 0.45rem; }
  .mock-bankcard { font-size: 0.55rem; padding: 0.45rem 0.5rem; min-height: 46px; }
  .mock-bankcard .amt { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
