/* ===== FONDO DEL BAÑO (capas reales, no ::before) ===== */
.bano-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background: url('portada.webp') center 70px / cover no-repeat #0d1420;
  pointer-events: none;
  filter: blur(var(--bg-blur, 0px));
  transition: filter .2s linear;
  will-change: filter;
}
.bano-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(26,35,48,0)   0%,
    rgba(26,35,48,0)   55%,
    rgba(26,35,48,.55) 80%,
    rgba(26,35,48,.95) 100%);
}
@media (max-width: 1024px) {
  .bano-bg {
    background: url('portada-1024.webp') center 72px / 100% auto no-repeat #0d1420;
  }
}
@media (max-width: 480px) {
  .bano-bg {
    background: url('portada-1024.webp') center 68px / 108% auto no-repeat #0d1420;
  }
}

/* ===== PÁGINA DE PRODUCTO ===== */

/* Sin scroll horizontal en móvil — todo cabe en iPhone 14 (390px) */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, video, svg, iframe { max-width: 100%; height: auto; }
* { min-width: 0; }


/* ===== TEMA OSCURO — ajustado a la portada de diseño web ===== */
body.theme-mall {
  --bg: #141b25;            /* charcoal de sala de control */
  --bg-2: #1e2836;
  --panel: #1e2836;
  --panel-2: #27364a;
  --text: #eef3f8;          /* off-white para alto contraste */
  --muted: #b6c2d2;         /* gris azulado claro */
  --line: rgba(255,255,255,.10);
  --cyan: #4ac6ff;          /* rojo alarma — color principal del sistema */
  --violet: #ff6b7d;
  --pink: #4ac6ff;          /* cian de los tableros CCTV como acento */
  --grad: linear-gradient(135deg, #4ac6ff 0%, #ff6b7d 55%, #4ac6ff 100%);
  --shadow-neon:
    0 0 0 1px rgba(74,198,255,.20),
    0 16px 44px -12px rgba(74,198,255,.35);
  background: var(--bg);
}
/* Imagen de fondo del baño — fija, SIN filtro blanco, solo gradiente al final */
body.theme-mall::before {
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: -2 !important;
  background:
    linear-gradient(180deg,
      rgba(26,35,48,0)   0%,
      rgba(26,35,48,0)   55%,
      rgba(26,35,48,.55) 80%,
      rgba(26,35,48,.95) 100%),
    url('./portada.webp') center 70px / cover no-repeat,
    var(--bg) !important;
  background-attachment: fixed;
  filter: blur(var(--bg-blur, 0px));
  transition: filter .2s linear;
  will-change: filter;
  display: block !important;
}

/* Móvil/tablet: imagen del baño SIN filtro blanco */
@media (max-width: 1024px) {
  body.theme-mall::before {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -2 !important;
    background:
      linear-gradient(180deg,
        rgba(26,35,48,0)   0%,
        rgba(26,35,48,0)   55%,
        rgba(26,35,48,.55) 80%,
        rgba(26,35,48,.95) 100%),
      url('./portada.webp') center 72px / 100% auto no-repeat,
      var(--bg) !important;
    background-attachment: scroll;
    background-color: var(--bg);
    display: block !important;
  }
}
@media (max-width: 480px) {
  body.theme-mall::before {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -2 !important;
    background:
      linear-gradient(180deg,
        rgba(26,35,48,0)   0%,
        rgba(26,35,48,0)   55%,
        rgba(26,35,48,.55) 80%,
        rgba(26,35,48,.95) 100%),
      url('./portada.webp') center 68px / 108% auto no-repeat,
      var(--bg) !important;
    background-attachment: scroll;
    background-color: var(--bg);
    display: block !important;
  }
}

/* ===== ÍCONO FLOTANTE DEL MONEDERO (visible siempre, junto a LO QUIERO) ===== */
/* Desktop: SOBRE el botón LO QUIERO, CENTRADO horizontalmente sobre él */
.mobile-monedero-icon,
body.theme-mall .mobile-monedero-icon {
  display: block !important;
  position: fixed !important;
  bottom: 100px;
  right: 64px;
  width: 92px; height: 118px;
  z-index: 60;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(42,139,157,.55);
  box-shadow:
    0 10px 28px -4px rgba(42,139,157,.45),
    0 0 0 4px rgba(42,139,157,.12);
  background: rgba(255,255,255,.95);
  animation: monedero-shake 2.6s ease-in-out infinite;
  transform-origin: center center;
  pointer-events: none;
}
body.theme-mall .mobile-monedero-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 5px;
}

/* Móvil/tablet: SOBRE el LO QUIERO, centrado horizontalmente */
@media (max-width: 1024px) {
  body.theme-mall .mobile-monedero-icon {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    /* LO QUIERO ~150px ancho, centro a 91px del borde; monedero 76px → 91 - 38 = 53 */
    right: calc(53px + env(safe-area-inset-right, 0px));
    width: 76px; height: 96px;
  }
}
@media (max-width: 380px) {
  body.theme-mall .mobile-monedero-icon {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    /* LO QUIERO ~130px ancho en pantalla chica, centro a 81px; monedero 68px → 81 - 34 = 47 */
    right: calc(47px + env(safe-area-inset-right, 0px));
    width: 68px; height: 86px;
  }
}

/* Shake estilo manecillas de reloj: ida y vuelta */
@keyframes monedero-shake {
  0%   { transform: rotate(0deg)   scale(1); }
  10%  { transform: rotate(18deg)  scale(1.04); }  /* horario */
  20%  { transform: rotate(-12deg) scale(1.04); }  /* anti-horario */
  30%  { transform: rotate(15deg)  scale(1.04); }
  40%  { transform: rotate(-15deg) scale(1.04); }
  50%  { transform: rotate(10deg)  scale(1.02); }
  60%  { transform: rotate(-8deg)  scale(1.02); }
  70%  { transform: rotate(5deg)   scale(1.01); }
  80%  { transform: rotate(-3deg)  scale(1); }
  100% { transform: rotate(0deg)   scale(1); }
}

/* Secciones alternas: panel oscuro translúcido (glassmorphism dark) */
body.theme-mall .section,
body.theme-mall .prod-hero { position: relative; }
body.theme-mall .section-alt {
  background: rgba(26, 35, 48, .72) !important;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-color: rgba(74,198,255,.16) !important;
}
body.theme-mall::after { display: none; }
body.theme-mall .pcb-dots { display: none; }
body.theme-mall .hero h1,
body.theme-mall .section-title,
body.theme-mall .lead,
body.theme-mall .section-sub,
body.theme-mall .prod-hero-text h1 { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
/* Nav y footer en tono dark glass */
body.theme-mall .nav {
  background: rgba(26, 35, 48, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74,198,255,.18);
}
body.theme-mall .nav-links a { color: var(--text); }
body.theme-mall .nav-links a:hover { color: var(--cyan); }
body.theme-mall .lang-toggle { color: var(--text); border-color: var(--line); background: rgba(42,139,157,.06); }
body.theme-mall .lang-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
body.theme-mall .footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
body.theme-mall .footer a { color: var(--cyan); }
body.theme-mall .why-icon {
  background: rgba(42,139,157,.1);
  border-color: rgba(42,139,157,.3);
}
body.theme-mall .modal-backdrop { background: rgba(255,255,255,.65); }
body.theme-mall .logo-text { color: var(--text); }
body.theme-mall .logo-mark { background: var(--grad); }
body.theme-mall .lead, body.theme-mall .section-sub {
  text-shadow: 0 2px 14px rgba(0,0,0,.6) !important;
  color: #eef3f8;
}
body.theme-mall .section-title {
  text-shadow: 0 2px 18px rgba(0,0,0,.65) !important;
  color: #ffffff;
}
body.theme-mall .prod-hero-text h1 {
  text-shadow: 0 2px 18px rgba(0,0,0,.65) !important;
  color: #ffffff;
}
body.theme-mall .stats-eyebrow {
  color: var(--cyan);
  background: rgba(42,139,157,.08);
  border-color: rgba(42,139,157,.3);
}
body.theme-mall .stats-title {
  /* Gradiente con franja brillante (shimmer) que recorre el texto */
  background: linear-gradient(
    100deg,
    #2a8b9d 0%,
    #0a0b0d 28%,
    #0a0b0d 47%,
    #ffffff 50%,
    #0a0b0d 53%,
    #0a0b0d 72%,
    #2a8b9d 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: stats-title-shine 3.2s linear infinite;
}
body.theme-mall .stats-sub { color: var(--muted); }
body.theme-mall .stats-disclaimer { color: var(--muted); }
body.theme-mall .btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(35, 47, 63, .55);
  backdrop-filter: blur(6px);
}
body.theme-mall .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
body.theme-mall .voice-btn {
  background: rgba(42,139,157,.1);
  border-color: rgba(42,139,157,.4);
}
body.theme-mall .voice-btn:hover { background: rgba(42,139,157,.22); }
body.theme-mall .voice-btn.speaking {
  background: linear-gradient(135deg, #2a8b9d, #3d4a5c);
  border-color: transparent;
}
body.theme-mall .voice-btn.speaking::after { border-color: #2a8b9d; }
body.theme-mall .voice-btn.speaking .voice-text { color: #fff; }

/* Hero del monedero: SIN imagen, SIN badge "// Comercial", texto grande estilo portada */
body.theme-mall .prod-hero-img { display: none; }
body.theme-mall .prod-hero-text .badge { display: inline-block; }   /* badge visible en WEB */
body.theme-mall .prod-hero { padding: 110px 0 80px; }       /* más aire arriba/abajo */
body.theme-mall .prod-hero-grid {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin-left: 10%;
  margin-right: auto;
  text-align: left;
  padding-left: 0;
}
body.theme-mall .prod-hero-text { text-align: left; }
body.theme-mall .prod-hero-text .cta-row { justify-content: flex-start; margin-top: 6px; }

/* Título y lead más grandes — vibe de portada de revista */
body.theme-mall .prod-hero-text h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0 0 22px;
  font-weight: 900;
}
body.theme-mall .prod-hero-text .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 620px;
}
body.theme-mall .prod-hero-text .btn {
  font-size: 1rem;
  padding: 16px 32px;
}
/* Esconde el panel de quick wins si está vacío */
body.theme-mall .prod-quick:empty { display: none; }

@media (max-width: 900px) {
  body.theme-mall .prod-hero-grid {
    margin: 0 auto;
    max-width: 100%;
    padding-left: 0;
    text-align: center;
  }
  body.theme-mall .prod-hero-text { text-align: center; }
  body.theme-mall .prod-hero-text .cta-row { justify-content: center; }
}
body.theme-mall .prod-hero-text h1 {
  text-shadow: 0 2px 24px rgba(13,12,10,.9), 0 0 60px rgba(13,12,10,.7);
}
body.theme-mall .lead, body.theme-mall .section-sub {
  text-shadow: 0 2px 14px rgba(13,12,10,.85);
}
body.theme-mall .section-title { text-shadow: 0 2px 18px rgba(13,12,10,.9); }
body.theme-mall .badge {
  background: rgba(61,168,212,.12);
  border: 1px solid rgba(61,168,212,.4);
  color: var(--cyan);
}
body.theme-mall .stats > div {
  background: rgba(20, 18, 14, .78);
  border-color: rgba(61,168,212,.2);
}

/* CTAs y botones ghost */
body.theme-mall .btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(61,168,212,.05);
}
body.theme-mall .btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Voice button (tema dorado) */
body.theme-mall .voice-btn {
  background: rgba(61,168,212,.14);
  border-color: rgba(61,168,212,.45);
}
body.theme-mall .voice-btn:hover { background: rgba(61,168,212,.28); }
body.theme-mall .voice-btn .voice-icon {
  animation: voice-icon-idle 1.8s ease-in-out infinite;
  filter: none;
}
body.theme-mall .voice-btn.speaking {
  background: linear-gradient(135deg, #3da8d4, #1e6f9c);
  border-color: transparent;
}
body.theme-mall .voice-btn.speaking::after { border-color: #3da8d4; }

/* ===== MOCKUP DE ENTRADA A BAÑO DE CENTRO COMERCIAL ===== */
.mall-entry {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background:
    /* gradiente de azulejos */
    linear-gradient(135deg, #fafcff 0%, #e9eef5 100%);
  border-radius: 22px;
  border: 1px solid rgba(0,147,180,.18);
  padding: 28px;
  min-height: 460px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(27,34,56,.18);
}
@media (max-width: 720px) {
  .mall-entry { grid-template-columns: 1fr; gap: 20px; }
}

/* Patrón de azulejos detrás */
.mall-entry::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,147,180,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,147,180,.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: .6;
}

/* Lado izquierdo: dispositivo monedero */
.mall-device {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
}
.mall-device-label {
  font-size: 11px; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase;
  font-family: ui-monospace, monospace;
}
.mall-device-box {
  width: 100%; max-width: 260px;
  background: linear-gradient(180deg, #d8dee6 0%, #b5bcc7 100%);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,.7),
    inset 0 -2px 6px rgba(0,0,0,.15),
    0 18px 40px -10px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  border: 1px solid #a8b0bc;
}
/* Tornillos */
.mall-device-box::before,
.mall-device-box::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: radial-gradient(circle, #6a7280 30%, #3a3f4a 100%);
  border-radius: 50%;
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.4);
}
.mall-device-box::before { top: 8px; left: 8px; }
.mall-device-box::after { top: 8px; right: 8px; }

/* Ranura de monedas */
.coin-slot {
  width: 60%; height: 16px;
  background: #1a1d24;
  border-radius: 3px;
  margin: 0 auto;
  box-shadow:
    inset 0 3px 5px rgba(0,0,0,.7),
    0 1px 0 rgba(255,255,255,.5);
  position: relative;
}
.coin-slot::after {
  content: 'INSERTE MONEDA';
  position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 8px; letter-spacing: 1px;
  color: #4a5060; font-family: ui-monospace, monospace;
  white-space: nowrap;
}

/* Display LCD */
.lcd-screen {
  background: #0a1a14;
  border-radius: 6px;
  padding: 14px 18px;
  text-align: center;
  border: 2px solid #2a3a32;
  box-shadow: inset 0 0 14px rgba(0,0,0,.6);
  margin-top: 10px;
}
.lcd-state, .lcd-status {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 22px; font-weight: 800; letter-spacing: 3px;
  color: #44ff88;
  text-shadow: 0 0 8px rgba(68,255,136,.7), 0 0 14px rgba(68,255,136,.5);
  animation: lcd-pulse 2s ease-in-out infinite;
}
.lcd-state.occupied, .lcd-status.occupied {
  color: #ff5566;
  text-shadow: 0 0 8px rgba(255,85,102,.7), 0 0 14px rgba(255,85,102,.5);
}
.lcd-state.paid {
  color: #5ec0e4;
  text-shadow: 0 0 8px rgba(94,192,228,.7), 0 0 14px rgba(94,192,228,.5);
}
.lcd-sub {
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: 1.5px;
  color: rgba(68,255,136,.55);
  margin-top: 4px;
}

@keyframes lcd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}

/* QR scanner */
.qr-scanner {
  width: 56px; height: 56px;
  margin: 6px auto 0;
  background: #0a1a14;
  border: 2px solid #2a3a32;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,.7);
}
.qr-scanner::before {
  content: '';
  width: 32px; height: 32px;
  background:
    linear-gradient(#00d4ff, #00d4ff) 0 0 / 8px 2px,
    linear-gradient(#00d4ff, #00d4ff) 0 0 / 2px 8px,
    linear-gradient(#00d4ff, #00d4ff) 100% 0 / 8px 2px,
    linear-gradient(#00d4ff, #00d4ff) 100% 0 / 2px 8px,
    linear-gradient(#00d4ff, #00d4ff) 0 100% / 8px 2px,
    linear-gradient(#00d4ff, #00d4ff) 0 100% / 2px 8px,
    linear-gradient(#00d4ff, #00d4ff) 100% 100% / 8px 2px,
    linear-gradient(#00d4ff, #00d4ff) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
  position: relative;
}
.qr-scanner::after {
  content: '';
  position: absolute;
  width: 80%; height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  animation: qr-scan 2s linear infinite;
  box-shadow: 0 0 8px #00d4ff;
}
@keyframes qr-scan {
  0% { transform: translateY(-18px); }
  50% { transform: translateY(18px); }
  100% { transform: translateY(-18px); }
}
.qr-label {
  font-size: 9px; letter-spacing: 1.5px;
  color: #4a5060; font-family: ui-monospace, monospace;
  text-align: center; margin-top: 4px;
}

/* LED indicador */
.lock-led {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5fff80, #1a8a3a);
  box-shadow: 0 0 8px rgba(68,255,136,.7);
  margin: 4px auto 0;
  animation: led-blink 1.5s ease-in-out infinite;
}
.lock-led.unlocked {
  background: radial-gradient(circle at 30% 30%, #5ec0e4, #1a5f8a);
  box-shadow: 0 0 10px rgba(94,192,228,.8);
  animation: led-blink .6s ease-in-out infinite;
}
@keyframes led-blink {
  0%, 70%, 100% { opacity: 1; }
  80% { opacity: .3; }
}

/* Botón demo */
.demo-coin-btn {
  margin-top: 8px;
  padding: 10px 18px;
  background: var(--grad);
  color: #fff; border: none;
  border-radius: 999px;
  font-weight: 700; cursor: pointer;
  font-size: .85rem; letter-spacing: .5px;
  box-shadow: 0 8px 20px -6px rgba(0,147,180,.5);
  transition: transform .2s;
}
.demo-coin-btn:hover { transform: translateY(-2px); }
.demo-coin-btn:active { transform: translateY(0); }

/* Lado derecho: puerta y señalización */
.mall-door-side {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
}
.mall-signs {
  display: flex; gap: 14px;
}
.mall-signs .sign {
  width: 52px; height: 52px;
  background: #1b2238;
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 14px -4px rgba(27,34,56,.4);
}
.mall-door {
  background: linear-gradient(180deg, #3a4256 0%, #232a3c 100%);
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    inset 0 4px 0 rgba(255,255,255,.1),
    inset 0 -4px 0 rgba(0,0,0,.3);
}
.mall-door::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 4px;
  pointer-events: none;
}
.mall-status-tag {
  padding: 8px 18px;
  background: #fff;
  border: 2px solid;
  border-radius: 999px;
  font-weight: 800; font-size: .85rem; letter-spacing: 1.5px;
  font-family: ui-monospace, monospace;
}
.mall-status-tag.libre {
  color: #1a8a3a;
  border-color: #44c46d;
  box-shadow: 0 0 0 4px rgba(68,196,109,.15);
}
.mall-status-tag.ocupado {
  color: #c5364a;
  border-color: #ee5566;
  box-shadow: 0 0 0 4px rgba(238,85,102,.15);
}

/* ===== BOTÓN FLOTANTE "LO QUIERO" ===== */
.floating-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 800;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow:
    0 14px 30px -6px rgba(0,147,180,.6),
    0 0 0 0 rgba(0,147,180,.5);
  animation: fcta-pulse 2s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.floating-cta:hover {
  transform: translateY(-3px) scale(1.04);
  animation: none;
  box-shadow: 0 22px 44px -8px rgba(0,147,180,.8);
}
.floating-cta:active {
  transform: translateY(0) scale(.98);
}
.fcta-icon {
  font-size: 1.15rem;
  animation: fcta-spin 4s linear infinite;
  display: inline-block;
}
.fcta-arrow {
  font-size: 1.05rem;
  transition: transform .25s ease;
}
.floating-cta:hover .fcta-arrow { transform: translateX(4px); }

@keyframes fcta-pulse {
  0%, 100% {
    box-shadow:
      0 14px 30px -6px rgba(0,147,180,.6),
      0 0 0 0 rgba(0,147,180,.5);
  }
  50% {
    box-shadow:
      0 14px 30px -6px rgba(0,147,180,.6),
      0 0 0 14px rgba(0,147,180,0);
  }
}
@keyframes fcta-spin {
  to { transform: rotate(360deg); }
}

/* Para tema mall (monedero blanco): pulso teal */
body.theme-mall .floating-cta:not(.browser-cta) {
  color: #fff;
  box-shadow:
    0 14px 30px -6px rgba(42,139,157,.55),
    0 0 0 0 rgba(42,139,157,.45);
  animation: fcta-pulse-teal 2s ease-in-out infinite;
}
body.theme-mall .floating-cta:not(.browser-cta):hover {
  box-shadow: 0 22px 44px -8px rgba(42,139,157,.75);
}
@keyframes fcta-pulse-teal {
  0%, 100% {
    box-shadow:
      0 14px 30px -6px rgba(42,139,157,.55),
      0 0 0 0 rgba(42,139,157,.45);
  }
  50% {
    box-shadow:
      0 14px 30px -6px rgba(42,139,157,.55),
      0 0 0 16px rgba(42,139,157,0);
  }
}

/* Mobile: más compacto + respeta safe-area de iPhone */
@media (max-width: 720px) {
  .floating-cta {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    padding: 14px 22px;
    font-size: .92rem;
    letter-spacing: 1px;
  }
}
@media (max-width: 380px) {
  .floating-cta {
    padding: 12px 18px;
    font-size: .85rem;
    gap: 6px;
  }
  .fcta-text { letter-spacing: .5px; }
  .fcta-icon { font-size: 1rem; }
}

/* ===== BOTÓN TOGGLE DEL SIMULADOR ===== */
.sim-toggle-wrap {
  display: flex; justify-content: center;
  margin-bottom: 32px;
}
.sim-toggle-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0093b4 0%, #5b3aa5 60%, #1e6f9c 100%);
  color: #fff; border: none;
  border-radius: 999px;
  font-weight: 700; cursor: pointer;
  font-size: 1rem; letter-spacing: .5px;
  font-family: inherit;
  box-shadow: 0 10px 30px -8px rgba(0,147,180,.5);
  transition: all .25s ease;
}
.sim-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(0,147,180,.7);
}
.sim-toggle-icon { font-size: 1.2rem; }
.sim-toggle-arrow {
  font-size: .85rem;
  transition: transform .3s;
}
.sim-toggle-btn.open .sim-toggle-arrow { transform: rotate(180deg); }
.sim-collapsible {
  animation: sim-expand .5s ease;
}
.sim-collapsible[hidden] { display: none; }
@keyframes sim-expand {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BOTÓN DE VOZ POR SECCIÓN (pill con icono + texto en escritorio) ===== */
.voice-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 14px;
  margin-left: 16px;
  background: rgba(0, 147, 180, .14);
  border: 1.5px solid rgba(0, 147, 180, .4);
  border-radius: 999px;
  cursor: pointer;
  vertical-align: middle;
  transition: all .25s;
  font-family: inherit;
  position: relative;
}
.voice-btn .voice-icon {
  font-size: 38px;        /* bocina XL */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  animation: voice-icon-idle 1.8s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes voice-icon-idle {
  0%, 100% { transform: rotate(0) scale(1); }
  15%      { transform: rotate(-10deg) scale(1.06); }
  30%      { transform: rotate(10deg)  scale(1.10); }
  45%      { transform: rotate(-7deg)  scale(1.06); }
  60%      { transform: rotate(5deg)   scale(1.03); }
  75%      { transform: rotate(-2deg)  scale(1.01); }
}
@keyframes voice-icon-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(0,147,180,.4)); }
  50%      { filter: drop-shadow(0 0 14px rgba(0,147,180,.9)) drop-shadow(0 0 22px rgba(0,147,180,.5)); }
}
.voice-btn { overflow: visible; }
.voice-btn .voice-text {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}
.voice-btn:hover {
  background: rgba(0, 147, 180, .25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0,147,180,.5);
}
.voice-btn.speaking {
  background: linear-gradient(135deg, #0093b4, #5b3aa5);
  border-color: transparent;
  animation: voice-pulse 1.2s ease-in-out infinite;
}
.voice-btn.speaking .voice-text,
.voice-btn.speaking .voice-icon { color: #fff; }
.voice-btn.speaking .voice-icon { animation: voice-icon-bounce .8s ease-in-out infinite; }
.voice-btn.speaking::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid #0093b4;
  opacity: .6;
  animation: voice-ring 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,147,180,.4); }
  50% { box-shadow: 0 0 0 12px rgba(0,147,180,0); }
}
@keyframes voice-ring {
  0% { transform: scale(.95); opacity: .6; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes voice-icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Móvil: solo bocina (sin texto) en formato círculo compacto */
@media (max-width: 720px) {
  .voice-btn {
    padding: 6px;
    border-radius: 50%;
    margin-left: 10px;
    margin-top: 6px;
    gap: 0;
  }
  .voice-btn .voice-text { display: none; }
  .voice-btn .voice-icon { font-size: 28px; width: 36px; height: 36px; }
}

/* ===== TARJETAS "POR QUÉ" CON ANIMACIÓN LATERAL ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.animated-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all .3s;
}
.animated-card[data-flip="right"] {
  grid-template-columns: 1fr 140px;
}
.animated-card[data-flip="right"] .card-anim-side { order: 2; }
.animated-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,147,180,.4);
  box-shadow: 0 14px 30px -10px rgba(0,147,180,.3);
}
.card-anim-side {
  display: flex; align-items: center; justify-content: center;
}
.anim-blob {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(0,147,180,.25), rgba(91,58,165,.15));
  animation: blob-float 4s ease-in-out infinite;
}
.anim-blob::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(0,147,180,.3);
  animation: blob-rotate 12s linear infinite;
}
.anim-emoji {
  font-size: 48px;
  animation: emoji-bounce 2.4s ease-in-out infinite;
}
.anim-blob-1 .anim-emoji { animation-delay: 0s; }
.anim-blob-2 .anim-emoji { animation-delay: .3s; }
.anim-blob-3 .anim-emoji { animation-delay: .6s; }
.anim-blob-4 .anim-emoji { animation-delay: .9s; }
.anim-blob-2 { background: radial-gradient(circle at 30% 30%, rgba(61,168,212,.25), rgba(91,58,165,.15)); }
.anim-blob-3 { background: radial-gradient(circle at 30% 30%, rgba(91,58,165,.25), rgba(0,147,180,.15)); }
.anim-blob-4 { background: radial-gradient(circle at 30% 30%, rgba(0,147,180,.25), rgba(61,168,212,.15)); }
@keyframes blob-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}
@keyframes blob-rotate {
  to { transform: rotate(360deg); }
}
@keyframes emoji-bounce {
  0%, 100% { transform: scale(1) rotate(0); }
  20% { transform: scale(1.15) rotate(-5deg); }
  40% { transform: scale(.95) rotate(3deg); }
  60% { transform: scale(1.08) rotate(0); }
}
.card-text-side h3 {
  font-size: 1.1rem; margin-bottom: 6px;
}
.card-text-side p {
  color: var(--muted); font-size: .94rem; margin: 0;
}

/* ===== BENEFICIOS CON ICONO ANIMADO ===== */
.benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 900px; margin: 0 auto;
}
.animated-benefit {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all .3s;
}
.animated-benefit:hover {
  transform: translateX(4px);
  border-color: rgba(0,147,180,.4);
  box-shadow: 0 10px 24px -10px rgba(0,147,180,.25);
}
.benefit-icon-wrap {
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 14px -4px rgba(0,147,180,.4);
  animation: pop-in .6s ease both;
  position: relative;
  overflow: hidden;
}
.benefit-icon::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 3s ease-in-out infinite;
}
.benefit-icon.anim-1 { animation-delay: 0s; }
.benefit-icon.anim-2 { animation-delay: .08s; }
.benefit-icon.anim-3 { animation-delay: .16s; }
.benefit-icon.anim-4 { animation-delay: .24s; }
.benefit-icon.anim-5 { animation-delay: .32s; }
.benefit-icon.anim-6 { animation-delay: .40s; }
@keyframes pop-in {
  from { transform: scale(.4) rotate(-90deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 720px) {
  /* Hardening anti-overflow horizontal */
  .container { width: 92%; max-width: 100%; padding: 0; }
  .section, .prod-hero, .stats-bar-section, .video-demo-section { overflow-x: hidden; }
  .stats-bar, .sim-grid, .mall-entry { max-width: 100%; }

  /* Hero del monedero en móvil: sube y centra título + botones, MUCHO espacio antes de los stats */
  body.theme-mall .prod-hero {
    padding: 30px 0 180px !important;   /* sube arriba, mucho respiro abajo */
  }
  body.theme-mall .stats-bar-section {
    padding-top: 60px;                  /* extra aire arriba del bloque de promedios */
  }
  body.theme-mall .prod-hero-grid {
    margin: 0 auto !important;
    max-width: 100% !important;
    padding-left: 0;
    text-align: center !important;
  }
  body.theme-mall .prod-hero-text { text-align: center !important; }
  body.theme-mall .prod-hero-text h1 { text-align: center !important; }
  body.theme-mall .prod-hero-text .lead {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.theme-mall .prod-hero-text .cta-row {
    justify-content: flex-start !important;
    padding-left: 6%;     /* tirados a la izquierda */
  }

  .prod-hero { padding: 50px 0 30px; }
  .prod-hero-img { min-height: 280px; padding: 14px; }
  .prod-hero-img img { max-height: 320px; }

  .sim-toggle-btn { padding: 14px 22px; font-size: .92rem; }
  .sim-toggle-text { display: inline-block; max-width: 180px; }

  /* Cards "por qué" — stack vertical en móvil */
  .animated-card,
  .animated-card[data-flip="right"] {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }
  .animated-card[data-flip="right"] .card-anim-side { order: 0; }
  .anim-blob { width: 90px; height: 90px; }
  .anim-emoji { font-size: 38px; }

  /* Beneficios */
  .animated-benefit {
    grid-template-columns: 48px 1fr;
    padding: 14px 18px; gap: 12px;
  }
  .benefit-icon { width: 38px; height: 38px; }

  /* Cómo funciona — apilar vertical en móvil */
  .how-step,
  .how-step[data-flip="right"] {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
    gap: 14px;
  }
  .how-step[data-flip="right"] .how-visual { order: 0; }
  .how-visual { width: 110px; height: 110px; }
  .how-blob { width: 90px; height: 90px; }
  .how-emoji { font-size: 40px; }
  .step-number { width: 26px; height: 26px; font-size: .72rem; }

  /* Simulador — apilar todo */
  .sim-grid { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .sim-analytics { grid-template-columns: 1fr; }
  .sim-btn-row { grid-template-columns: 1fr 1fr 1fr; }
  .mall-device-box { max-width: 240px; }

  /* Voice button más pequeño */
  .voice-btn { width: 30px; height: 30px; font-size: 12px; margin-left: 8px; }

  /* Sección titles más cortos */
  .section-title { font-size: 1.4rem; }

  /* Pulsador físico — más pequeño en móvil */
  .exit-plate { width: 120px; padding: 14px 10px 10px; }
  .exit-button-circle { width: 64px; height: 64px; }
  .exit-button-text { font-size: .72rem; }
}

@media (max-width: 480px) {
  .sim-btn-row { grid-template-columns: 1fr 1fr; }
  .sim-btn-row .coin-btn:last-child { grid-column: 1 / -1; }
  .sim-stat-grid { grid-template-columns: 1fr 1fr; }
  .sim-stat:nth-child(3) { grid-column: 1 / -1; }
  .mall-signs .sign { width: 44px; height: 44px; font-size: 22px; }
  .door-frame { width: 130px; height: 200px; }
}

/* ===== SIMULADOR COMPLETO ===== */
.sim-section { padding-top: 40px; }
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  background: linear-gradient(135deg, #fafcff 0%, #e9eef5 100%);
  border-radius: 22px;
  border: 1px solid rgba(0,147,180,.18);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(27,34,56,.18);
}
.sim-grid::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,147,180,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,147,180,.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none; opacity: .5;
}
@media (max-width: 880px) {
  .sim-grid { grid-template-columns: 1fr; }
}

.sim-device-col, .sim-controls-col {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 20px;
}
.sim-device-col { align-items: center; }

.sim-door-area {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 8px;
}
.sim-door-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
/* ===== MARCO DE PUERTA CON SENSOR ===== */
.door-frame {
  position: relative;
  width: 160px; height: 248px;
  padding: 8px;
  background: linear-gradient(180deg, #d2d8e1 0%, #a8b0bc 100%);
  border-radius: 10px 10px 4px 4px;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.6),
    inset 0 -2px 4px rgba(0,0,0,.15),
    0 14px 30px -8px rgba(0,0,0,.25);
  perspective: 1000px;
}
.door-frame::before {
  /* sombra interior simulando hueco del marco */
  content: '';
  position: absolute;
  inset: 8px;
  background: #1a1d24;
  border-radius: 6px 6px 2px 2px;
  box-shadow: inset 0 4px 8px rgba(0,0,0,.6);
}

/* Sensor magnético — parte del marco (a la derecha arriba) */
.sensor-frame-part {
  position: absolute;
  top: 36px; right: -6px;
  width: 14px; height: 32px;
  background: linear-gradient(180deg, #e8ebf0, #b8bec8);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 2px 4px rgba(0,0,0,.3);
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.sensor-frame-part .sensor-led {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #444;
  transition: background .3s, box-shadow .3s;
}

/* Puerta clickable con apertura/cierre suave */
.mall-door {
  position: relative;
  width: 100%; height: 100%;
  cursor: pointer;
  transition:
    transform 1.8s cubic-bezier(.25, .1, .25, 1),
    box-shadow 1.6s ease;
  transform-origin: left center;
  z-index: 2;
  border-radius: 6px 6px 2px 2px;
  user-select: none;
}
.mall-door.open {
  /* Apertura más amplia y con curva suave */
  transform: perspective(900px) rotateY(-72deg);
  box-shadow: -22px 22px 44px -12px rgba(0,0,0,.5);
}
.mall-door.pulse-hint {
  animation: door-pulse 1.6s ease-in-out infinite;
}
@keyframes door-pulse {
  0%, 100% { box-shadow: inset 0 4px 0 rgba(255,255,255,.1), inset 0 -4px 0 rgba(0,0,0,.3), 0 0 0 rgba(94,192,228,0); }
  50% { box-shadow: inset 0 4px 0 rgba(255,255,255,.1), inset 0 -4px 0 rgba(0,0,0,.3), 0 0 24px 4px rgba(94,192,228,.5); }
}

/* Sensor magnético — parte de la puerta (alineado con el del marco cuando cerrada) */
.sensor-door-part {
  position: absolute;
  top: 36px; right: 4px;
  width: 14px; height: 32px;
  background: linear-gradient(180deg, #c8cdd6, #98a0ac);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 2px 4px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
}
.sensor-door-part .sensor-led {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #444;
  transition: background .3s, box-shadow .3s;
}

/* Estados de los LEDs del sensor */
.sensor-led.green {
  background: #44ff88;
  box-shadow: 0 0 6px #44ff88, 0 0 12px rgba(68,255,136,.6);
}
.sensor-led.yellow {
  background: #5ec0e4;
  box-shadow: 0 0 6px #5ec0e4, 0 0 12px rgba(94,192,228,.7);
  animation: led-blink .8s ease-in-out infinite;
}
.sensor-led.red {
  background: #ff5566;
  box-shadow: 0 0 6px #ff5566, 0 0 12px rgba(255,85,102,.7);
  animation: led-blink .5s ease-in-out infinite;
}

/* Hint sobre la puerta */
.door-hint {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* Manija de la puerta */
.mall-door::after {
  content: '';
  position: absolute;
  right: 10px; top: 50%;
  width: 8px; height: 22px;
  background: radial-gradient(circle, #c9d1dc 30%, #6a7280 100%);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  z-index: 3;
}

/* Indicador de estado del sensor (texto) */
.sensor-status {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: #5d6478;
  font-family: ui-monospace, monospace;
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dde3ed;
}
.sensor-status .sensor-dot {
  width: 8px; height: 8px;
  background: #44ff88;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(68,255,136,.6);
}
.sensor-status.unlocked .sensor-dot {
  background: #5ec0e4;
  box-shadow: 0 0 6px rgba(94,192,228,.7);
}
.sensor-status.open .sensor-dot {
  background: #ff5566;
  box-shadow: 0 0 6px rgba(255,85,102,.7);
}
.sensor-status strong { color: #1b2238; }

/* Paneles de control */
.sim-panel {
  background: #fff;
  border: 1px solid #dde3ed;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px -6px rgba(27,34,56,.1);
}
.sim-panel h4 {
  font-size: .82rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #1b2238; margin-bottom: 12px;
  font-family: ui-monospace, monospace;
}
.sim-btn-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-bottom: 14px;
}
.sim-btn {
  padding: 10px 14px;
  background: #fff;
  color: #1b2238;
  border: 1.5px solid #c8d0dd;
  border-radius: 10px;
  font-weight: 700; cursor: pointer;
  font-size: .9rem; letter-spacing: .3px;
  transition: all .2s;
  font-family: inherit;
}
.sim-btn:hover:not(:disabled) {
  border-color: #0093b4;
  color: #0093b4;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(0,147,180,.4);
}
.sim-btn:active:not(:disabled) { transform: translateY(0); }
.sim-btn:disabled {
  opacity: .4; cursor: not-allowed;
}
.sim-btn.coin-btn {
  background: linear-gradient(180deg, #e8f5fb 0%, #8dd4ee 100%);
  border-color: #d4a020;
  color: #5a4400;
  position: relative;
}
.sim-btn.coin-btn:hover:not(:disabled) {
  border-color: #b8861a;
  color: #3a2d00;
}
.sim-btn.full { width: 100%; }
.sim-btn.small { padding: 7px 12px; font-size: .82rem; }

/* Progress bar acumulado */
.sim-progress { margin-top: 4px; }
.sim-progress-text {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: #5d6478;
  margin-bottom: 6px;
}
.sim-progress-text strong { color: #1b2238; }
.sim-progress-bar {
  height: 8px; background: #eef2f8;
  border-radius: 999px; overflow: hidden;
  border: 1px solid #dde3ed;
}
.sim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0093b4, #5b3aa5, #1e6f9c);
  border-radius: 999px;
  width: 0%;
  transition: width .35s ease;
  box-shadow: 0 0 8px rgba(0,147,180,.5);
}

/* Admin */
.sim-row {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.sim-row label {
  font-size: .85rem; color: #5d6478; flex: 1;
}
.sim-row input[type="number"] {
  width: 100px; padding: 7px 10px;
  border: 1.5px solid #c8d0dd; border-radius: 8px;
  font-family: inherit; font-size: .9rem;
  color: #1b2238; background: #fff;
}
.sim-row input[type="number"]:focus {
  outline: none; border-color: #0093b4;
}

/* ===== PULSADOR FÍSICO DE SALIDA (PRESS TO EXIT) ===== */
.exit-panel { text-align: center; }
.exit-help {
  font-size: .78rem; color: #5d6478;
  margin-bottom: 14px; line-height: 1.5;
}
.exit-pushbutton {
  display: inline-block;
  background: none; border: none; padding: 0;
  cursor: pointer;
  transition: transform .1s;
}
.exit-pushbutton:disabled { cursor: not-allowed; opacity: .45; }
.exit-pushbutton.pressed .exit-button-circle { transform: scale(.92); box-shadow: inset 0 4px 8px rgba(0,0,0,.5); }

.exit-plate {
  display: inline-flex; flex-direction: column;
  align-items: center; gap: 8px;
  width: 150px;
  padding: 18px 14px 14px;
  background: linear-gradient(135deg, #e8ebf0 0%, #c5cbd6 60%, #a8b0bc 100%);
  border-radius: 10px;
  border: 1px solid #98a0ac;
  position: relative;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.7),
    inset 0 -2px 4px rgba(0,0,0,.15),
    0 12px 24px -8px rgba(0,0,0,.25);
}
/* Tornillos de la placa */
.exit-plate::before,
.exit-plate::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  background: radial-gradient(circle, #6a7280 30%, #3a3f4a 100%);
  border-radius: 50%;
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.4);
}
.exit-plate::before { top: 6px; left: 6px; }
.exit-plate::after { top: 6px; right: 6px; }

.exit-button-circle {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6ae28a 0%, #2da050 50%, #1a6e34 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  border: 3px solid #98a0ac;
  box-shadow:
    inset 0 -4px 8px rgba(0,0,0,.3),
    inset 0 4px 6px rgba(255,255,255,.4),
    0 6px 14px -2px rgba(45,160,80,.5),
    0 0 0 4px rgba(106,226,138,.15);
  transition: all .12s ease;
  position: relative;
}
.exit-pushbutton:hover:not(:disabled) .exit-button-circle {
  box-shadow:
    inset 0 -4px 8px rgba(0,0,0,.3),
    inset 0 4px 6px rgba(255,255,255,.5),
    0 8px 18px -2px rgba(45,160,80,.7),
    0 0 0 5px rgba(106,226,138,.25);
}
.exit-button-led {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #c7ffd9;
  box-shadow: 0 0 6px #6aff8a, 0 0 12px rgba(106,255,138,.6);
  animation: led-blink 1.4s ease-in-out infinite;
}
.exit-pushbutton:disabled .exit-button-led {
  background: #888; box-shadow: none; animation: none;
}
.exit-button-text {
  color: #fff; font-weight: 800;
  font-size: .82rem; letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.exit-plate-label {
  font-size: 10px; letter-spacing: 2px;
  color: #3a3f4a; font-weight: 700;
  font-family: ui-monospace, monospace;
  margin-top: 2px;
}

/* Stats */
.sim-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; margin-bottom: 14px;
}
.sim-stat {
  background: #f4f7fb;
  border: 1px solid #dde3ed;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.sim-stat-label {
  display: block;
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #5d6478;
  margin-bottom: 4px; font-family: ui-monospace, monospace;
}
.sim-stat strong {
  font-size: 1.1rem; color: #1b2238;
  font-weight: 800;
}

/* Log */
.sim-log-title {
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #5d6478;
  font-family: ui-monospace, monospace;
  display: block; margin-bottom: 8px;
}
.sim-log ul, #simLog {
  list-style: none; padding: 0; margin: 0;
  max-height: 140px; overflow-y: auto;
}
#simLog li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 6px 8px;
  font-size: .82rem;
  border-bottom: 1px dashed #dde3ed;
  font-family: ui-monospace, monospace;
  color: #1b2238;
}
#simLog li:last-child { border-bottom: none; }
#simLog li.empty {
  display: block; text-align: center;
  color: #9aa3b5; font-style: italic;
  padding: 12px; font-family: inherit;
}
.log-time { color: #5d6478; }
.log-method { color: #1b2238; }
.log-amount { color: #0093b4; font-weight: 700; }

/* ===== OVERRIDES SIMULADOR PARA TEMA DARK WARM ===== */
body.theme-mall .sim-toggle-btn {
  background: linear-gradient(135deg, #5ec0e4 0%, #3da8d4 50%, #1e6f9c 100%);
  color: #1a1308;
  box-shadow: 0 10px 30px -8px rgba(61,168,212,.5);
}
body.theme-mall .sim-toggle-btn:hover {
  box-shadow: 0 14px 36px -8px rgba(61,168,212,.7);
}

body.theme-mall .sim-grid,
body.theme-mall .mall-entry {
  background: linear-gradient(135deg, rgba(28,25,20,.85) 0%, rgba(20,18,14,.92) 100%);
  border-color: rgba(61,168,212,.22);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
}
body.theme-mall .sim-grid::before,
body.theme-mall .mall-entry::before {
  background-image:
    linear-gradient(rgba(61,168,212,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,168,212,.06) 1px, transparent 1px);
}
body.theme-mall .sim-panel,
body.theme-mall .analytics-card {
  background: rgba(26, 23, 18, .85);
  border: 1px solid rgba(61,168,212,.18);
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.5);
}
body.theme-mall .sim-panel h4,
body.theme-mall .analytics-card h4 {
  color: var(--cyan);
}

/* Botones del simulador */
body.theme-mall .sim-btn {
  background: rgba(34, 31, 24, .9);
  color: var(--text);
  border-color: rgba(61,168,212,.25);
}
body.theme-mall .sim-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 6px 14px -6px rgba(61,168,212,.5);
}
body.theme-mall .sim-btn.coin-btn {
  background: linear-gradient(180deg, #8dd4ee 0%, #3da8d4 60%, #1a5f8a 100%);
  color: #1a1308;
  border-color: #8a6815;
}

/* Progress bar */
body.theme-mall .sim-progress-text { color: var(--muted); }
body.theme-mall .sim-progress-text strong { color: var(--text); }
body.theme-mall .sim-progress-bar {
  background: rgba(34, 31, 24, .8);
  border-color: rgba(61,168,212,.18);
}
body.theme-mall .sim-progress-fill {
  background: linear-gradient(90deg, #3da8d4, #5ec0e4, #8dd4ee);
  box-shadow: 0 0 10px rgba(61,168,212,.6);
}

/* Inputs admin */
body.theme-mall .sim-row label { color: var(--muted); }
body.theme-mall .sim-row input[type="number"] {
  background: rgba(34, 31, 24, .9);
  color: var(--text);
  border-color: rgba(61,168,212,.25);
}
body.theme-mall .sim-row input[type="number"]:focus { border-color: var(--cyan); }

/* Stats */
body.theme-mall .sim-stat {
  background: rgba(34, 31, 24, .85);
  border-color: rgba(61,168,212,.18);
}
body.theme-mall .sim-stat-label { color: var(--muted); }
body.theme-mall .sim-stat strong { color: var(--cyan); }

/* Log */
body.theme-mall .sim-log-title { color: var(--muted); }
body.theme-mall #simLog li {
  color: var(--text);
  border-bottom-color: rgba(61,168,212,.15);
}
body.theme-mall #simLog li.empty { color: var(--muted); }
body.theme-mall .log-time { color: var(--muted); }
body.theme-mall .log-amount { color: var(--cyan); }

/* Analítica */
body.theme-mall .dist-bar-label,
body.theme-mall .dist-bar-label strong { color: var(--text); }
body.theme-mall .dist-bar-info { color: var(--muted); }
body.theme-mall .dist-bar-info strong { color: var(--cyan); }
body.theme-mall .dist-bar-track {
  background: rgba(34, 31, 24, .8);
  border-color: rgba(61,168,212,.18);
}
body.theme-mall .dist-bar-fill.monedas {
  background: linear-gradient(90deg, #5ec0e4, #3da8d4);
  box-shadow: 0 0 10px rgba(61,168,212,.6);
}
body.theme-mall .dist-bar-fill.empleados {
  background: linear-gradient(90deg, #3da8d4, #1e6f9c);
  box-shadow: 0 0 10px rgba(30,111,156,.5);
}
body.theme-mall .dist-bar-label .dot.monedas {
  background: #3da8d4; box-shadow: 0 0 6px rgba(61,168,212,.7);
}
body.theme-mall .dist-bar-label .dot.empleados {
  background: #1e6f9c; box-shadow: 0 0 6px rgba(30,111,156,.6);
}
body.theme-mall .analytics-chart .chart-grid line { stroke: rgba(61,168,212,.1); }
body.theme-mall .analytics-chart .chart-axis { stroke: rgba(61,168,212,.25); }
body.theme-mall #curveMonedas { stroke: #5ec0e4; }
body.theme-mall #curveEmpleados { stroke: #1e6f9c; }
body.theme-mall .chart-legend { color: var(--muted); border-top-color: rgba(61,168,212,.18); }
body.theme-mall .chart-legend .leg-dot.monedas { background: #5ec0e4; }
body.theme-mall .chart-legend .leg-dot.empleados { background: #1e6f9c; }

/* Sensor status & misc */
body.theme-mall .sensor-status {
  background: rgba(34, 31, 24, .9);
  border-color: rgba(61,168,212,.25);
  color: var(--muted);
}
body.theme-mall .sensor-status strong { color: var(--text); }
body.theme-mall .mall-device-label,
body.theme-mall .qr-label,
body.theme-mall .coin-slot::after {
  color: var(--muted);
}
body.theme-mall .exit-help { color: var(--muted); }
body.theme-mall .exit-plate-label { color: #ece8df; }
body.theme-mall .mall-status-tag.libre {
  background: rgba(20, 18, 14, .9);
}
body.theme-mall .mall-status-tag.ocupado {
  background: rgba(20, 18, 14, .9);
}

/* Blobs y burbujas animadas (por qué, cómo, etc.) en oro */
body.theme-mall .anim-blob,
body.theme-mall .how-blob {
  background: radial-gradient(circle at 30% 30%, rgba(61,168,212,.22), rgba(30,111,156,.12));
}
body.theme-mall .anim-blob-2 {
  background: radial-gradient(circle at 30% 30%, rgba(94,192,228,.25), rgba(30,111,156,.12));
}
body.theme-mall .anim-blob-3 {
  background: radial-gradient(circle at 30% 30%, rgba(30,111,156,.25), rgba(61,168,212,.15));
}
body.theme-mall .anim-blob-4 {
  background: radial-gradient(circle at 30% 30%, rgba(61,168,212,.25), rgba(94,192,228,.15));
}
body.theme-mall .anim-blob::before,
body.theme-mall .how-blob::before {
  border-color: rgba(61,168,212,.3);
}
body.theme-mall .anim-log .how-blob::after { background: rgba(61,168,212,.55); }
body.theme-mall .anim-chart .how-blob::after {
  background: linear-gradient(90deg, transparent, #3da8d4, #5ec0e4, transparent);
}
body.theme-mall .anim-scan .how-blob::after {
  background: linear-gradient(90deg, transparent, #8dd4ee, transparent);
  box-shadow: 0 0 12px #8dd4ee;
}
body.theme-mall .anim-camera .how-blob::after { border-color: rgba(61,168,212,.5); }
body.theme-mall .anim-alert .how-blob {
  background: radial-gradient(circle at 30% 30%, rgba(61,168,212,.4), rgba(30,111,156,.15));
}
body.theme-mall .anim-alert .how-blob {
  animation: hw-alert-glow-gold 1s ease-in-out infinite;
}
@keyframes hw-alert-glow-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,168,212,.5); }
  50% { box-shadow: 0 0 0 12px rgba(61,168,212,0); }
}

/* Step number con gradiente dorado */
body.theme-mall .step-number {
  background: var(--grad);
  color: #1a1308;
  border: 2px solid var(--panel);
  box-shadow: 0 4px 10px rgba(61,168,212,.5);
}

/* Final CTA en blanco con glow azul */
body.theme-mall .final-cta {
  background:
    radial-gradient(circle at 30% 50%, rgba(61,168,212,.18), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(94,192,228,.15), transparent 60%),
    rgba(255, 255, 255, .92);
  border-color: rgba(61,168,212,.35);
  box-shadow: 0 24px 60px -20px rgba(61,168,212,.3);
  backdrop-filter: blur(10px);
}
body.theme-mall .final-cta h2 {
  background: linear-gradient(135deg, #1a5f8a, #1c2230 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.theme-mall .final-cta p {
  color: #1a1d24;
}

/* Benefit icon (check) dorado */
body.theme-mall .benefit-icon {
  background: var(--grad);
  color: #1a1308;
  box-shadow: 0 6px 14px -4px rgba(61,168,212,.6);
}

/* Quick wins items en hero */
body.theme-mall .prod-quick .quick-item {
  background: rgba(26, 23, 18, .85);
  border-color: rgba(61,168,212,.18);
  color: var(--text);
}

/* ===== STATS BAR HORIZONTAL ===== */
.stats-bar-section {
  padding: 50px 0 40px;
  position: relative;
}
.stats-header {
  text-align: center;
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.stats-eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: 2.5px;
  color: #2a8b9d;
  padding: 6px 14px;
  border: 1px solid rgba(42,139,157,.35);
  border-radius: 999px;
  background: rgba(42,139,157,.08);
  font-family: ui-monospace, monospace;
  font-weight: 700;
  margin-bottom: 14px;
}
.stats-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  /* Gradiente con franja brillante que recorre el texto */
  background: linear-gradient(
    100deg,
    #4ac6ff 0%,
    #dbe7f5 28%,
    #dbe7f5 47%,
    #ffffff 50%,
    #dbe7f5 53%,
    #dbe7f5 72%,
    #4ac6ff 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: stats-title-shine 3.2s linear infinite;
}

@keyframes stats-title-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -150% 0; }
}
.stats-sub {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* === STAT ITEMS estilo "caja de detección facial" === */
.stat-item {
  padding: 26px 18px 22px;
  text-align: center;
  background: rgba(10, 14, 22, .35);
  border: 1.5px solid #4ac6ff;     /* línea cian sólida, como bbox de IA */
  border-radius: 0;                /* esquinas RECTAS, no redondeadas */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  position: relative;
  transition: all .25s ease;
  box-shadow: 0 0 14px rgba(74,198,255,.18);
}
/* Corner brackets cian — las "puntas" típicas de bbox IA */
.stat-item::before,
.stat-item::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid #4ac6ff;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(74,198,255,.6));
}
.stat-item::before {
  top: -3px; left: -3px;
  border-right: 0; border-bottom: 0;
}
.stat-item::after {
  bottom: -3px; right: -3px;
  border-left: 0; border-top: 0;
}
/* Las otras dos esquinas las dibujamos con outline + clipping de un wrapper interno.
   Truco simple: gradientes en background para marcar 2 esquinas opuestas más. */
.stat-item {
  background-image:
    linear-gradient(#4ac6ff, #4ac6ff),   /* top-right horizontal */
    linear-gradient(#4ac6ff, #4ac6ff),   /* top-right vertical */
    linear-gradient(#4ac6ff, #4ac6ff),   /* bottom-left horizontal */
    linear-gradient(#4ac6ff, #4ac6ff);   /* bottom-left vertical */
  background-repeat: no-repeat;
  background-size:
    14px 3px,   /* TR horizontal */
    3px 14px,   /* TR vertical */
    14px 3px,   /* BL horizontal */
    3px 14px;   /* BL vertical */
  background-position:
    top 0 right 0,        /* TR horizontal */
    top 0 right 0,        /* TR vertical */
    bottom 0 left 0,      /* BL horizontal */
    bottom 0 left 0;      /* BL vertical */
}
.stat-item:hover {
  background-image:
    linear-gradient(#ffd84c, #ffd84c),
    linear-gradient(#ffd84c, #ffd84c),
    linear-gradient(#ffd84c, #ffd84c),
    linear-gradient(#ffd84c, #ffd84c);
}
.stat-item:hover {
  border-color: #ffd84c;            /* al hover se pone dorado, como detección activa */
  background: rgba(10, 14, 22, .55);
  box-shadow: 0 0 24px rgba(255,216,76,.45);
  transform: translateY(-2px);
}
.stat-item:hover::before,
.stat-item:hover::after,
.stat-item:hover .stat-value::before,
.stat-item:hover .stat-label::after {
  border-color: #ffd84c;
  filter: drop-shadow(0 0 6px rgba(255,216,76,.7));
}
/* Línea de escaneo sutil que recorre la caja al hover */
.stat-item::before { transition: border-color .25s ease, filter .25s ease; }
.stat-item::after  { transition: border-color .25s ease, filter .25s ease; }

.stat-value {
  display: block;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  color: #4ac6ff;                  /* rojo alarma */
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  -webkit-text-fill-color: #4ac6ff;
  text-shadow: 0 0 12px rgba(74,198,255,.45);
  margin-bottom: 8px;
  letter-spacing: 0;
}
.stat-label {
  display: block;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b6c2d2;
  font-family: ui-monospace, monospace;
}
.stats-disclaimer {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  margin-top: 18px;
  font-style: italic;
}

@media (max-width: 760px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-item { padding: 22px 16px; }
}
@media (max-width: 420px) {
  .stats-bar { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== VIDEO DEMOSTRATIVO ===== */
.video-demo-section { padding: 50px 0; }
.video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(42,139,157,.25);
  box-shadow:
    0 30px 70px -20px rgba(28,34,48,.25),
    0 0 0 1px rgba(42,139,157,.1);
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;     /* proporcion 16:9 para video horizontal */
  object-fit: contain;
  background: #000;
}

@media (max-width: 720px) {
  .video-wrap {
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 14px;
    overflow: hidden;
  }
  .video-wrap video {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
  }
  .video-glow { display: none; }
}
.video-glow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(42,139,157,.25), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(61,168,212,.18), transparent 40%);
  z-index: -1;
  animation: video-glow-pulse 4s ease-in-out infinite;
}
@keyframes video-glow-pulse {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

/* ===== PANEL DE ANÁLISIS (porcentajes + curva) ===== */
.sim-analytics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 880px) {
  .sim-analytics { grid-template-columns: 1fr; }
}
.analytics-card {
  background: #fff;
  border: 1px solid #dde3ed;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px -6px rgba(27,34,56,.1);
}
.analytics-card h4 {
  font-size: .82rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: #1b2238; margin-bottom: 16px;
  font-family: ui-monospace, monospace;
}

/* Barras de distribución */
.dist-bars { display: grid; gap: 18px; }
.dist-bar { display: grid; gap: 6px; }
.dist-bar-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem; color: #1b2238;
}
.dist-bar-label .dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 8px; vertical-align: middle;
}
.dist-bar-label .dot.monedas {
  background: #0093b4; box-shadow: 0 0 6px rgba(0,147,180,.6);
}
.dist-bar-label .dot.empleados {
  background: #9b5cff; box-shadow: 0 0 6px rgba(155,92,255,.6);
}
.dist-bar-label strong {
  font-size: 1.1rem; color: #1b2238;
  font-family: ui-monospace, monospace;
}
.dist-bar-track {
  height: 12px; background: #eef2f8;
  border-radius: 999px; overflow: hidden;
  border: 1px solid #dde3ed;
}
.dist-bar-fill {
  height: 100%; border-radius: 999px;
  width: 0%;
  transition: width .6s cubic-bezier(.25,.1,.25,1);
}
.dist-bar-fill.monedas {
  background: linear-gradient(90deg, #00b3d4, #0093b4);
  box-shadow: 0 0 10px rgba(0,147,180,.5);
}
.dist-bar-fill.empleados {
  background: linear-gradient(90deg, #b076ff, #9b5cff);
  box-shadow: 0 0 10px rgba(155,92,255,.5);
}
.dist-bar-info {
  font-size: .78rem; color: #5d6478;
  font-family: ui-monospace, monospace;
}
.dist-bar-info strong { color: #0093b4; }

/* Curva acumulada */
.analytics-chart {
  width: 100%;
  height: 160px;
  display: block;
  margin-bottom: 8px;
}
.analytics-chart .chart-grid line {
  stroke: #eef2f8; stroke-width: 1;
  stroke-dasharray: 3 4;
}
.analytics-chart .chart-axis {
  stroke: #c8d0dd; stroke-width: 1;
}
.chart-legend {
  display: flex; gap: 18px;
  font-size: .78rem; color: #5d6478;
  font-family: ui-monospace, monospace;
  padding-top: 4px;
  border-top: 1px solid #eef2f8;
  margin-top: 8px;
  padding-top: 10px;
}
.chart-legend .leg-dot {
  display: inline-block; width: 12px; height: 3px;
  border-radius: 2px; margin-right: 6px; vertical-align: middle;
}
.chart-legend .leg-dot.monedas { background: #0093b4; }
.chart-legend .leg-dot.empleados { background: #9b5cff; }


.back-link {
  display: inline-flex; align-items: center; gap: 4px;
}

/* HERO DEL PRODUCTO */
.prod-hero {
  padding: 80px 0 60px;
  position: relative;
}
.prod-hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 50px; align-items: center;
}
@media (max-width: 900px) {
  .prod-hero-grid { grid-template-columns: 1fr; gap: 30px; }
}
.prod-hero-img {
  background:
    radial-gradient(circle at 50% 50%, rgba(0,229,255,.12), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
  box-shadow: 0 20px 60px -20px rgba(0,229,255,.3);
}
.prod-hero-img img {
  max-width: 100%; max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.prod-hero-text h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
  margin: 14px 0 16px;
  text-shadow: 0 2px 18px rgba(6,7,13,.85);
}
.prod-hero-text .lead {
  font-size: 1.05rem; margin: 0 0 28px;
}
.prod-quick {
  margin-top: 28px;
  display: grid; gap: 10px;
}
.prod-quick .quick-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .92rem;
}
.prod-quick .quick-item .ico {
  font-size: 1.1rem;
}

/* ¿POR QUÉ? */
.why-grid .why-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: all .3s;
}
.why-grid .why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,.4);
}
.why-grid .why-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.3);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
}
.why-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-grid p { color: var(--muted); font-size: .92rem; }

/* BENEFICIOS */
.benefits-list {
  list-style: none; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1000px; margin: 0 auto;
}
.benefits-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: all .25s;
}
.benefits-list li:hover {
  border-color: rgba(0,229,255,.4);
  transform: translateX(4px);
}
.benefits-list .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 0 14px rgba(0,229,255,.4);
}
.benefits-list .benefit-text strong {
  display: block; margin-bottom: 4px;
}
.benefits-list .benefit-text span {
  color: var(--muted); font-size: .9rem;
}

/* CÓMO FUNCIONA - timeline con visual animado por paso */
.how-timeline {
  max-width: 950px; margin: 0 auto;
  list-style: none; padding: 0;
}
.how-step {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 26px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  transition: all .3s;
  position: relative;
}
.how-step[data-flip="right"] {
  grid-template-columns: 1fr 150px;
}
.how-step[data-flip="right"] .how-visual { order: 2; }
.how-step:hover {
  transform: translateY(-3px);
  border-color: rgba(0,147,180,.4);
  box-shadow: 0 14px 30px -10px rgba(0,147,180,.3);
}
.how-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 130px; height: 130px;
  margin: 0 auto;
}
.how-blob {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(0,147,180,.22), rgba(91,58,165,.12));
  position: relative;
  overflow: visible;
}
.how-blob::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(0,147,180,.25);
  animation: blob-rotate 14s linear infinite;
}
.how-emoji {
  font-size: 50px;
  display: inline-block;
  line-height: 1;
}
.step-number {
  position: absolute;
  bottom: -4px; right: 0;
  background: var(--grad);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: .82rem; font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,147,180,.4);
  border: 2px solid var(--panel);
}
.how-text h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.how-text p {
  color: var(--muted);
  font-size: .94rem;
  margin: 0;
  line-height: 1.55;
}

/* ===== ANIMACIONES POR TIPO DE PASO ===== */
/* wave: el emoji saluda meciendo */
.anim-wave .how-emoji { animation: hw-wave 2.2s ease-in-out infinite; transform-origin: 70% 80%; }
@keyframes hw-wave {
  0%, 60%, 100% { transform: rotate(0); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
}

/* coin: la moneda cae y rebota */
.anim-coin .how-emoji {
  animation: hw-coin 2.4s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes hw-coin {
  0% { transform: translateY(-32px) rotateY(0); opacity: 0; }
  30% { transform: translateY(0) rotateY(180deg); opacity: 1; }
  45% { transform: translateY(-8px) rotateY(360deg); }
  60% { transform: translateY(0) rotateY(360deg); }
  100% { transform: translateY(0) rotateY(360deg); opacity: 1; }
}

/* unlock: gira y pulsa (cerradura/check) */
.anim-unlock .how-emoji {
  animation: hw-unlock 2.6s ease-in-out infinite;
}
@keyframes hw-unlock {
  0%, 100% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.18) rotate(-12deg); }
  55% { transform: scale(1.18) rotate(12deg); }
  70% { transform: scale(1) rotate(0); }
}

/* log: el papel/registro tipea apareciendo */
.anim-log .how-emoji {
  animation: hw-log 2.2s ease-in-out infinite;
}
@keyframes hw-log {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.08) translateY(-4px); }
}
.anim-log .how-blob::after {
  content: '';
  position: absolute;
  bottom: 22%; left: 50%;
  width: 30px; height: 3px;
  background: rgba(0,147,180,.5);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: hw-log-line 2.2s ease-in-out infinite;
}
@keyframes hw-log-line {
  0%, 100% { width: 8px; opacity: 0; }
  30% { width: 30px; opacity: 1; }
  70% { width: 40px; opacity: .3; }
}

/* chart: gráfico crece */
.anim-chart .how-emoji { animation: hw-chart 2.4s ease-in-out infinite; }
@keyframes hw-chart {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.anim-chart .how-blob::after {
  content: '';
  position: absolute;
  bottom: 18%; left: 20%; right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0093b4, #9b5cff, transparent);
  border-radius: 2px;
  animation: hw-chart-grow 2.4s ease-in-out infinite;
}
@keyframes hw-chart-grow {
  0%, 100% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* camera: parpadea como obturador */
.anim-camera .how-emoji { animation: hw-camera 2.4s ease-in-out infinite; }
@keyframes hw-camera {
  0%, 90%, 100% { transform: scale(1); filter: brightness(1); }
  92% { transform: scale(1.1); filter: brightness(1.8); }
  94% { transform: scale(1); filter: brightness(1); }
  96% { transform: scale(1.1); filter: brightness(1.8); }
}
.anim-camera .how-blob::after {
  content: '';
  position: absolute; inset: 10%;
  border-radius: 50%;
  border: 2px solid rgba(0,147,180,.4);
  animation: hw-camera-ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes hw-camera-ring {
  0%, 80%, 100% { opacity: 0; transform: scale(.7); }
  90% { opacity: 1; transform: scale(1.2); }
}

/* scan: línea de escáner recorre */
.anim-scan .how-emoji { animation: hw-scan-emoji 3s ease-in-out infinite; }
@keyframes hw-scan-emoji {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.anim-scan .how-blob::after {
  content: '';
  position: absolute;
  top: 20%; left: 15%; right: 15%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  box-shadow: 0 0 12px #00d4ff;
  border-radius: 2px;
  animation: hw-scan-line 2.5s linear infinite;
}
@keyframes hw-scan-line {
  0% { top: 18%; opacity: 1; }
  50% { top: 75%; opacity: 1; }
  100% { top: 18%; opacity: 1; }
}

/* alert: sirena que parpadea */
.anim-alert .how-emoji {
  animation: hw-alert 1s ease-in-out infinite;
}
@keyframes hw-alert {
  0%, 100% { transform: rotate(-8deg) scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: rotate(8deg) scale(1.1); filter: drop-shadow(0 0 8px rgba(61,168,212,.8)); }
}
.anim-alert .how-blob {
  background: radial-gradient(circle at 30% 30%, rgba(61,168,212,.35), rgba(91,58,165,.15));
  animation: hw-alert-glow 1s ease-in-out infinite;
}
@keyframes hw-alert-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,168,212,.4); }
  50% { box-shadow: 0 0 0 12px rgba(61,168,212,0); }
}

/* CARACTERÍSTICAS TÉCNICAS */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1000px; margin: 0 auto;
}
.specs-grid .spec {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex; flex-direction: column;
}
.specs-grid .spec-label {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 6px;
  font-family: ui-monospace, monospace;
}
.specs-grid .spec-value {
  font-size: .95rem; color: var(--text);
}

/* CASOS DE USO */
.cases-grid .case-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: all .3s;
}
.cases-grid .case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155,92,255,.4);
  box-shadow: 0 14px 30px -10px rgba(155,92,255,.3);
}
.cases-grid .case-icon { font-size: 28px; margin-bottom: 12px; }
.cases-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cases-grid p { color: var(--muted); font-size: .92rem; }

/* CTA FINAL */
.final-cta {
  background:
    radial-gradient(circle at 30% 50%, rgba(0,229,255,.15), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(155,92,255,.15), transparent 60%),
    var(--panel);
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 22px;
  padding: 56px 32px;
  text-align: center;
  max-width: 900px; margin: 0 auto;
  box-shadow: 0 24px 60px -20px rgba(0,229,255,.3);
}
.final-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.final-cta p {
  color: var(--muted); font-size: 1rem;
  max-width: 600px; margin: 0 auto 28px;
}
.btn-lg {
  padding: 16px 36px !important;
  font-size: 1rem !important;
}

/* ===== CAJAS GLASS DETRÁS DEL TEXTO DEL HERO (portada) ===== */
.hero-glass-box {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(10, 14, 18, .42);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 14px 38px -14px rgba(0, 0, 0, .55);
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
/* Variante título — caja más grande */
.hero-glass-box.title-glass {
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(10, 14, 18, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 22px 50px -16px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(0, 229, 255, .18);
}
/* Variante lead — más sutil */
.hero-glass-box.lead-glass {
  padding: 10px 18px;
  margin-top: 8px;
  font-size: inherit;
  line-height: 1.55;
  background: rgba(10, 14, 18, .38);
  border-radius: 14px;
}
/* Variante badge — caja chiquita arriba */
.hero-glass-box.badge-glass {
  padding: 4px 12px;
  font-size: .78rem;
  letter-spacing: 2px;
  border-radius: 999px;
  background: rgba(10, 14, 18, .55);
  color: #00e5ff;
  border-color: rgba(0, 229, 255, .35);
  text-shadow: 0 0 8px rgba(0, 229, 255, .5);
}

/* En theme-mall: el .badge venía oculto/estilizado distinto — forzamos look glass */
body.theme-mall .prod-hero-text .badge {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: inherit !important;
}
body.theme-mall .prod-hero-text h1 {
  /* permite que la caja glass abrace solo al texto */
  display: block;
}
body.theme-mall .prod-hero-text h1 .hero-glass-box,
body.theme-mall .prod-hero-text .lead .hero-glass-box {
  display: inline-block;
  max-width: 100%;
}

@media (max-width: 720px) {
  .hero-glass-box.title-glass { padding: 10px 16px; border-radius: 14px; }
  .hero-glass-box.lead-glass  { padding: 8px 14px;  border-radius: 12px; }
  .hero-glass-box.badge-glass { font-size: .7rem; letter-spacing: 1.5px; }
}


/* ====== BOTÓN "LO QUIERO" = NAVEGADOR QUE CONSTRUYE UNA PÁGINA (WEB) ====== */
body.theme-mall .floating-cta.browser-cta,
.floating-cta.browser-cta {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: bw-bob 4s ease-in-out infinite !important;
  width: 186px;
  cursor: pointer;
}
@keyframes bw-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
body.theme-mall .floating-cta.browser-cta:hover {
  transform: translateY(-4px) !important;
  animation: none !important;
  box-shadow: none !important;
}

/* --- Marco del navegador --- */
.browser-cta .bw-frame {
  display: block;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #121a28 0%, #0b1220 100%);
  border: 1px solid rgba(74, 198, 255, .3);
  border-bottom: none;
  box-shadow:
    0 18px 40px -12px rgba(0, 0, 0, .65),
    0 0 26px -8px rgba(74, 198, 255, .35);
}

/* Barra superior */
.browser-cta .bw-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  background: #1b2637;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.browser-cta .bw-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.browser-cta .bw-dot-r { background: #ff5f57; }
.browser-cta .bw-dot-y { background: #febc2e; }
.browser-cta .bw-dot-g { background: #28c840; }
.browser-cta .bw-url {
  margin-left: 6px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, .4);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: .56rem;
  color: #7fa3c4;
  overflow: hidden;
}
.browser-cta .bw-lock {
  font-size: .5rem;
  animation: bw-lock-in 4s ease-in-out infinite;
}
@keyframes bw-lock-in {
  0%, 55%   { opacity: 0; transform: scale(.4); }
  62%, 100% { opacity: 1; transform: scale(1); }
}
.browser-cta .bw-domain {
  white-space: nowrap;
  overflow: hidden;
  animation: bw-type 4s steps(14) infinite;
}
@keyframes bw-type {
  0%, 5%    { max-width: 0; }
  30%, 100% { max-width: 90px; }
}

/* --- Página que se construye sola --- */
.browser-cta .bw-page {
  position: relative;
  display: block;
  padding: 10px 10px 14px;
  min-height: 78px;
  background: #0d1626;
}
/* Bloque hero */
.browser-cta .bw-hero {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4ac6ff 0%, #6d8dff 100%);
  transform-origin: left center;
  transform: scaleX(0);
  animation: bw-grow 4s ease-out infinite;
}
/* Líneas de texto */
.browser-cta .bw-line {
  display: block;
  height: 5px;
  margin-top: 6px;
  border-radius: 3px;
  background: #2b3f5c;
  transform-origin: left center;
  transform: scaleX(0);
}
.browser-cta .bw-line-1 { width: 88%; animation: bw-grow 4s ease-out infinite .25s; }
.browser-cta .bw-line-2 { width: 62%; animation: bw-grow 4s ease-out infinite .4s; }
@keyframes bw-grow {
  0%, 8%    { transform: scaleX(0); }
  28%, 88%  { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}
/* Tarjetas */
.browser-cta .bw-cards {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.browser-cta .bw-card {
  flex: 1;
  height: 22px;
  border-radius: 4px;
  background: #1b2b44;
  border: 1px solid rgba(74, 198, 255, .18);
  opacity: 0;
  transform: translateY(6px);
}
.browser-cta .bw-card-1 { animation: bw-pop 4s ease-out infinite .55s; }
.browser-cta .bw-card-2 { animation: bw-pop 4s ease-out infinite .68s; }
.browser-cta .bw-card-3 { animation: bw-pop 4s ease-out infinite .81s; }
@keyframes bw-pop {
  0%, 12%   { opacity: 0; transform: translateY(6px); }
  30%, 88%  { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(6px); }
}
/* Barra de progreso de "construcción" */
.browser-cta .bw-progress {
  position: absolute;
  left: 10px; right: 10px; bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(74, 198, 255, .14);
  overflow: hidden;
}
.browser-cta .bw-progress i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #4ac6ff, #6d8dff);
  transform-origin: left center;
  transform: scaleX(0);
  animation: bw-load 4s ease-out infinite;
}
@keyframes bw-load {
  0%        { transform: scaleX(0); opacity: 1; }
  55%       { transform: scaleX(1); opacity: 1; }
  70%, 100% { transform: scaleX(1); opacity: 0; }
}

/* --- Etiqueta inferior (el CTA real) --- */
.browser-cta .bw-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, #4ac6ff 0%, #2f7fe8 60%, #2159b8 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: .88rem;
  letter-spacing: 2px;
  box-shadow:
    0 14px 30px -10px rgba(47, 127, 232, .7),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}
.browser-cta .bw-label-icon {
  font-size: 1rem;
  animation: bw-spin 4s linear infinite;
  display: inline-block;
}
@keyframes bw-spin { to { transform: rotate(360deg); } }
.browser-cta .bw-label-arrow {
  font-size: .95rem;
  transition: transform .25s ease;
}
.browser-cta:hover .bw-label-arrow { transform: translateX(4px); }

/* Móvil: más compacto */
@media (max-width: 720px) {
  body.theme-mall .floating-cta.browser-cta,
  .floating-cta.browser-cta { width: 148px; }
  .browser-cta .bw-page { min-height: 62px; padding: 8px 8px 12px; }
  .browser-cta .bw-hero { height: 11px; }
  .browser-cta .bw-card { height: 17px; }
  .browser-cta .bw-label { padding: 9px 10px; font-size: .74rem; letter-spacing: 1.4px; gap: 6px; }
  .browser-cta .bw-url { font-size: .5rem; }
}
@media (max-width: 380px) {
  body.theme-mall .floating-cta.browser-cta,
  .floating-cta.browser-cta { width: 128px; }
  .browser-cta .bw-label { font-size: .66rem; letter-spacing: 1.1px; }
}

/* ===== GALERÍA DE TRABAJOS (páginas hechas) ===== */
.web-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.web-work {
  display: flex;
  flex-direction: column;
  background: rgba(35, 47, 63, .55);
  border: 1px solid rgba(74, 198, 255, .18);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.web-work:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 198, 255, .55);
  box-shadow: 0 24px 48px -16px rgba(74, 198, 255, .3);
}
/* Barra superior tipo navegador */
.web-work-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(10, 14, 22, .6);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.web-work-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.web-work-bar i:nth-child(1) { background: #ff5f57; }
.web-work-bar i:nth-child(2) { background: #febc2e; }
.web-work-bar i:nth-child(3) { background: #28c840; }
.web-work-url {
  margin-left: 8px;
  padding: 3px 10px;
  flex: 1;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: .68rem;
  color: #8fa8bb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Pantallazo del sitio */
.web-work-shot {
  display: block;
  position: relative;
  overflow: hidden;
  background: #0b1220;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  aspect-ratio: 16 / 10;
}
.web-work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s ease;
}
.web-work:hover .web-work-shot img { transform: scale(1.05); }
/* Velo sutil que se levanta al pasar el mouse */
.web-work-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0) 55%, rgba(11,18,32,.55) 100%);
  transition: opacity .3s ease;
}
.web-work:hover .web-work-shot::after { opacity: .4; }

.web-work-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.web-work-body strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.web-work-body > span {
  font-size: .88rem;
  color: #b6c2d2;
  line-height: 1.5;
}
.web-work-cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: .82rem !important;
  font-weight: 800;
  color: #4ac6ff !important;
  letter-spacing: .5px;
  transition: transform .2s ease;
}
.web-work:hover .web-work-cta { transform: translateX(4px); }

@media (max-width: 640px) {
  .web-works { grid-template-columns: 1fr; gap: 16px; }
  .web-work-body { padding: 15px 16px 17px; }
}

/* ===== HERO SIN TEXTO: la portada ya trae su propio título ===== */
/* Título y lead ocultos visualmente (siguen en el DOM para SEO y lectores de pantalla) */
body.theme-mall .prod-hero-text h1,
body.theme-mall .prod-hero-text .lead {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* El badge tampoco hace falta: la portada ya comunica el producto */
body.theme-mall .prod-hero-text .badge { display: none !important; }

/* El hero conserva altura para lucir la portada; el texto de la imagen va a la
   izquierda, así que los botones se alinean centrados a la DERECHA en cascada. */
body.theme-mall .prod-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;      /* centrado vertical */
}
body.theme-mall .prod-hero .prod-hero-grid { width: 100%; }

/* Los botones van a la izquierda, así que el grid vuelve a su ancho normal. */
body.theme-mall .prod-hero .prod-hero-grid {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 5% !important;
  padding-right: 5% !important;
}

/* Los botones del hero se eliminaron: la portada ya trae su propio llamado
   y quedan el CTA de la sección final y el flotante "LO QUIERO". */


@media (max-width: 720px) {
  /* La imagen ocupa solo la franja superior: el hero se ajusta a ella
     para no dejar un vacío oscuro debajo. */
  body.theme-mall .prod-hero {
    min-height: 0 !important;
    /* padding-top = alto de la imagen (100% del ancho, ratio 3:2) */
    padding: 68vw 0 26px !important;
    align-items: flex-end;
  }
  body.theme-mall .prod-hero .prod-hero-grid { padding-right: 0 !important; }
  body.theme-mall .prod-hero-text .cta-row {
    align-items: stretch !important;
    justify-content: center !important;
    padding-left: 0 !important;
    margin: 0 auto !important;
    gap: 12px;
    width: 88%;
  }
  /* En móvil sin cascada: la pantalla es muy angosta */
  body.theme-mall .prod-hero-text .cta-row > * {
    min-width: 0;
    width: 100%;
    padding: 16px 24px !important;
    font-size: .98rem !important;
    border-radius: 14px !important;
  }
  body.theme-mall .prod-hero-text .cta-row > *:nth-child(1),
  body.theme-mall .prod-hero-text .cta-row > *:nth-child(2) { transform: none; }
  body.theme-mall .prod-hero-text .cta-row > *:nth-child(1):hover,
  body.theme-mall .prod-hero-text .cta-row > *:nth-child(2):hover { transform: scale(1.02); }
}

/* ===================================================================
   POSICIONAMIENTO WEB — resultados medibles
   =================================================================== */
.pos-section { padding: 70px 0 80px; }

.pos-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 900;
  letter-spacing: 1.5px; color: var(--cyan);
  background: rgba(74,198,255,.1); border: 1px solid rgba(74,198,255,.3);
  padding: 7px 14px; border-radius: 999px;
}

/* --- Tabla antes / después --- */
.pos-tabla {
  margin: 34px auto 0; max-width: 760px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); overflow: hidden;
}

.pos-sitio {
  font-family: ui-monospace, monospace; font-size: .86rem;
  color: var(--text); overflow-wrap: anywhere;
}

.pos-nota {
  justify-self: center;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.15rem; font-weight: 900;
  border: 3px solid currentColor;
  font-variant-numeric: tabular-nums;
}
.pos-nota.mal   { color: #e5484d; background: rgba(229,72,77,.12); }
.pos-nota.medio { color: #f5a524; background: rgba(245,165,36,.12); }
.pos-nota.bien  { color: #22c55e; background: rgba(34,197,94,.12); }

.pos-nota-pie {
  max-width: 760px; margin: 16px auto 0;
  font-size: .86rem; line-height: 1.6; color: var(--muted); text-align: center;
}

/* --- Bloque del 100/100 --- */
.pos-cien {
  max-width: 760px; margin: 30px auto 0;
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap; text-align: center;
  padding: 22px 26px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(74,198,255,.10));
  border: 1px solid rgba(34,197,94,.3);
}
.pos-cien strong {
  font-size: 2rem; font-weight: 900; color: #22c55e;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.pos-cien span { color: var(--text); font-size: .95rem; max-width: 380px; }

/* --- Herramientas --- */
.pos-sub2 {
  margin: 60px 0 10px; text-align: center;
  font-size: 1.45rem; font-weight: 900; color: var(--text);
}
.pos-sub3 { margin-bottom: 26px; }

.pos-tools {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; max-width: 980px; margin: 0 auto;
}
.pos-tool {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}
.pos-tool:hover { transform: translateY(-4px); border-color: var(--cyan); }
.pos-tool-ico { font-size: 1.8rem; line-height: 1; }
.pos-tool strong { font-size: 1.02rem; color: var(--text); }
.pos-tool span { font-size: .88rem; line-height: 1.6; color: var(--muted); }

/* --- Qué sí garantizamos --- */
.pos-honesto {
  max-width: 820px; margin: 56px auto 0;
  padding: 30px 32px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
}
.pos-honesto h3 {
  margin: 0 0 16px; font-size: 1.25rem; font-weight: 900; color: var(--text);
}
.pos-honesto ul { margin: 0; padding-left: 20px; }
.pos-honesto li {
  margin-bottom: 11px; line-height: 1.65; color: var(--muted); font-size: .95rem;
}
.pos-honesto li strong { color: var(--text); }
.pos-honesto-pie {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .9rem; line-height: 1.65; color: var(--muted);
}

@media (max-width: 640px) {
  .pos-section { padding: 50px 0 60px; }
  .pos-sitio { font-size: .72rem; }
  .pos-nota { width: 44px; height: 44px; font-size: .95rem; border-width: 2px; }
    .pos-cien strong { font-size: 1.6rem; }
  .pos-honesto { padding: 24px 20px; }
  .pos-sub2 { font-size: 1.2rem; }
}

/* --- Los dos caminos: pagina nueva vs pagina existente --- */
.pos-caminos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; max-width: 900px; margin: 36px auto 0;
}
.pos-camino {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.pos-camino:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.pos-camino-nueva     { border-top: 4px solid var(--cyan); }
.pos-camino-existente { border-top: 4px solid #22c55e; }

.pos-camino-tag {
  position: absolute; top: -11px; left: 26px;
  font-family: ui-monospace, monospace; font-size: .68rem; font-weight: 900;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
}
.pos-camino-nueva     .pos-camino-tag { color: var(--cyan);  border-color: rgba(74,198,255,.45); }
.pos-camino-existente .pos-camino-tag { color: #22c55e; border-color: rgba(34,197,94,.45); }

.pos-camino-ico { display: block; font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.pos-camino h3 {
  margin: 0 0 10px; font-size: 1.2rem; font-weight: 900;
  color: var(--text); line-height: 1.3;
}
.pos-camino p {
  margin: 0 0 16px; font-size: .93rem; line-height: 1.65; color: var(--muted);
}
.pos-camino ul { margin: 0; padding-left: 18px; }
.pos-camino li {
  margin-bottom: 7px; font-size: .88rem; line-height: 1.55; color: var(--muted);
}
.pos-camino-nueva     li::marker { color: var(--cyan); }
.pos-camino-existente li::marker { color: #22c55e; }

.pos-sub2-tabla { margin-top: 56px; }

@media (max-width: 640px) {
  .pos-caminos { gap: 26px; margin-top: 30px; }
  .pos-camino { padding: 26px 20px 22px; }
  .pos-camino h3 { font-size: 1.08rem; }
  .pos-sub2-tabla { margin-top: 40px; }
}

/* --- Tabla de puntuaciones: 4 categorías por sitio --- */
.pos-fila {
  display: grid;
  grid-template-columns: minmax(0,1fr) repeat(4, 60px);
  align-items: center; gap: 8px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.pos-fila:last-child { border-bottom: none; }
.pos-head {
  background: var(--panel-2);
  font-size: .7rem; font-weight: 900; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted);
}
.pos-head span:not(:first-child) { text-align: center; }

/* La casilla de SEO es la que queremos que llame la atención */
.pos-fila .pos-nota:nth-of-type(2) { position: relative; }
.pos-fila:not(.pos-head) .pos-nota:nth-of-type(2)::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  opacity: 0;
  animation: seo-pulso 2.6s ease-out infinite;
  pointer-events: none;
}
.pos-fila:not(.pos-head):nth-child(2) .pos-nota:nth-of-type(2)::after { animation-delay: 0s; }
.pos-fila:not(.pos-head):nth-child(3) .pos-nota:nth-of-type(2)::after { animation-delay: .22s; }
.pos-fila:not(.pos-head):nth-child(4) .pos-nota:nth-of-type(2)::after { animation-delay: .44s; }
.pos-fila:not(.pos-head):nth-child(5) .pos-nota:nth-of-type(2)::after { animation-delay: .66s; }
.pos-fila:not(.pos-head):nth-child(6) .pos-nota:nth-of-type(2)::after { animation-delay: .88s; }
.pos-fila:not(.pos-head):nth-child(7) .pos-nota:nth-of-type(2)::after { animation-delay: 1.1s; }
.pos-fila:not(.pos-head):nth-child(8) .pos-nota:nth-of-type(2)::after { animation-delay: 1.32s; }

@keyframes seo-pulso {
  0%        { opacity: 0;   transform: scale(.82); }
  22%       { opacity: .95; transform: scale(1); }
  55%       { opacity: .28; transform: scale(1.18); }
  100%      { opacity: 0;   transform: scale(1.34); }
}

/* Brillo que recorre la casilla de SEO */
.pos-fila:not(.pos-head) .pos-nota:nth-of-type(2) {
  overflow: hidden;
  box-shadow: 0 0 14px rgba(34,197,94,.28);
}
.pos-fila:not(.pos-head) .pos-nota:nth-of-type(2)::before {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: seo-brillo 3.4s ease-in-out infinite;
}
@keyframes seo-brillo {
  0%, 62%  { left: -120%; }
  88%, 100%{ left: 190%; }
}

@media (prefers-reduced-motion: reduce) {
  .pos-fila .pos-nota::before,
  .pos-fila .pos-nota::after { animation: none !important; opacity: 0 !important; }
}

@media (max-width: 640px) {
  .pos-fila { grid-template-columns: minmax(0,1fr) repeat(4, 38px); gap: 5px; padding: 11px 12px; }
  .pos-head { font-size: .56rem; letter-spacing: .2px; }
  .pos-fila .pos-nota { width: 36px; height: 36px; font-size: .8rem; border-width: 2px; }
  .pos-sitio { font-size: .68rem; }
}

/* ===================================================================
   PORTADA ANIMADA — capa decorativa y llamado a deslizar
   Todo con transform/opacity: no toca el layout, no genera CLS.
   =================================================================== */
.prod-hero { position: relative; overflow: hidden; }

.hero-fx {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

/* Rejilla sutil que se desplaza, como un lienzo de diseño */
.fx-grid {
  position: absolute; inset: -40% -10%;
  background-image:
    linear-gradient(rgba(74,198,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,198,255,.07) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: fx-grid-move 26s linear infinite;
}
@keyframes fx-grid-move {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(54px,54px,0); }
}

/* Cursor que recorre la portada y "hace clic" */
.fx-cursor {
  position: absolute; top: 20%; left: 54%;
  width: 40px; height: 52px;
  background: #fff;
  clip-path: polygon(0 0, 0 74%, 26% 58%, 44% 96%, 62% 88%, 44% 52%, 76% 50%);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.65));
  animation: fx-cursor-path 13s cubic-bezier(.55,.05,.35,1) infinite;
}
.fx-cursor::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border: 3px solid rgba(74,198,255,.95); border-radius: 50%;
  opacity: 0;
  animation: fx-click 13s ease-out infinite;
}
@keyframes fx-cursor-path {
  0%   { transform: translate3d(0,0,0); }
  16%  { transform: translate3d(150px,120px,0); }
  30%  { transform: translate3d(150px,120px,0); }
  46%  { transform: translate3d(36px,250px,0); }
  60%  { transform: translate3d(36px,250px,0); }
  76%  { transform: translate3d(210px,300px,0); }
  88%  { transform: translate3d(210px,300px,0); }
  100% { transform: translate3d(0,0,0); }
}
@keyframes fx-click {
  0%,14%    { opacity: 0; transform: scale(.35); }
  18%       { opacity: 1; transform: scale(.55); }
  26%       { opacity: 0; transform: scale(1.25); }
  44%       { opacity: 0; transform: scale(.35); }
  48%       { opacity: 1; transform: scale(.55); }
  56%       { opacity: 0; transform: scale(1.25); }
  74%       { opacity: 0; transform: scale(.35); }
  78%       { opacity: 1; transform: scale(.55); }
  86%,100%  { opacity: 0; transform: scale(1.25); }
}

/* Bloques de interfaz que flotan */
.fx-chip {
  position: absolute; border-radius: 9px;
  background: rgba(20,27,37,.55);
  border: 1px solid rgba(74,198,255,.26);
  backdrop-filter: blur(5px);
}
.fx-chip-1 {
  top: 20%; right: 16%; width: 112px; height: 30px;
  display: flex; align-items: center; gap: 5px; padding: 0 9px;
  animation: fx-flota 7.5s ease-in-out infinite;
}
.fx-chip-1 i { width: 8px; height: 8px; border-radius: 50%; background: rgba(74,198,255,.75); }
.fx-chip-1 i:nth-child(2) { background: rgba(245,165,36,.75); }
.fx-chip-1 i:nth-child(3) { background: rgba(34,197,94,.75); }
.fx-chip-2 {
  bottom: 24%; right: 26%; width: 80px; height: 56px;
  animation: fx-flota 9.5s ease-in-out infinite .9s;
}
.fx-chip-3 {
  top: 54%; left: 9%; width: 56px; height: 56px; border-radius: 50%;
  animation: fx-flota 8.5s ease-in-out infinite 1.7s;
}
@keyframes fx-flota {
  0%,100% { transform: translate3d(0,0,0); }
  50%     { transform: translate3d(0,-16px,0); }
}

/* El contenido del hero va por encima de la capa */
.prod-hero-grid { position: relative; z-index: 2; }

/* --- Llamado a deslizar, estilo portada --- */
.hero-scroll {
  position: absolute; left: 50%; bottom: 56px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-decoration: none; color: #fff;
  animation: fx-sube 3s ease-in-out infinite;
}
.hero-scroll-txt {
  font-family: ui-monospace, monospace; font-size: .64rem; font-weight: 900;
  letter-spacing: 2.6px; opacity: .85;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}
.hero-scroll-mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.75);
  border-radius: 13px; position: relative;
}
.hero-scroll-mouse i {
  position: absolute; left: 50%; top: 7px; margin-left: -2px;
  width: 4px; height: 7px; border-radius: 2px; background: #fff;
  animation: fx-rueda 1.9s ease-in-out infinite;
}
@keyframes fx-rueda {
  0%      { opacity: 0; transform: translateY(0); }
  28%     { opacity: 1; }
  75%,100%{ opacity: 0; transform: translateY(13px); }
}
.hero-scroll-chev {
  width: 11px; height: 11px;
  border-right: 2px solid rgba(255,255,255,.75);
  border-bottom: 2px solid rgba(255,255,255,.75);
  transform: rotate(45deg);
}
@keyframes fx-sube {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-9px); }
}
.hero-scroll:hover .hero-scroll-txt { opacity: 1; }

@media (max-width: 880px) {
  .fx-chip-2, .fx-chip-3 { display: none; }
  .fx-cursor { top: 22%; left: 12%; }
  .hero-scroll { bottom: 14px; }
  .hero-scroll-txt { font-size: .56rem; letter-spacing: 1.8px; }
  .hero-scroll-mouse { width: 21px; height: 33px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-grid, .fx-cursor, .fx-cursor::after, .fx-chip,
  .hero-scroll, .hero-scroll-mouse i { animation: none !important; }
  .fx-cursor::after { opacity: 0; }
}

/* ===================================================================
   CARTILLA: páginas web que pasan como hojas, al fondo a la derecha
   =================================================================== */
.fx-cartilla {
  position: absolute;
  top: 58%; right: 4%;
  width: 260px; height: 182px;
  margin-top: -91px;
  opacity: .95;
  perspective: 1400px;
  perspective-origin: left center;
  z-index: 0;
}

.fx-hoja {
  position: absolute; inset: 0;
  transform-origin: left center;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(18,25,37,.985), rgba(10,15,24,.985));
  border: 1px solid rgba(74,198,255,.55);
  box-shadow: -16px 14px 40px rgba(0,0,0,.72), 0 0 26px rgba(74,198,255,.22);
  backface-visibility: hidden;
  padding: 16px 18px;
  animation: fx-pasar-hoja 12.5s cubic-bezier(.45,.05,.3,1) infinite;
  opacity: 0;
}

/* barra superior del "navegador" */
.fx-hoja b {
  display: block; height: 9px; width: 62px; border-radius: 5px;
  background: rgba(74,198,255,.55); margin-bottom: 14px;
}
/* líneas de contenido */
.fx-hoja s {
  display: block; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.17); margin-bottom: 9px;
  text-decoration: none;
}
.fx-hoja s:nth-of-type(1) { width: 88%; }
.fx-hoja s:nth-of-type(2) { width: 64%; }
/* bloque tipo imagen */
.fx-hoja u {
  display: block; height: 76px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(74,198,255,.26), rgba(109,92,255,.2));
  border: 1px solid rgba(255,255,255,.1);
  margin-top: 14px; text-decoration: none;
}

/* cada hoja entra escalonada: se levanta y gira como página de cartilla */
.fx-hoja-1 { animation-delay: 0s;    }
.fx-hoja-2 { animation-delay: 2.5s;  }
.fx-hoja-3 { animation-delay: 5s;    }
.fx-hoja-4 { animation-delay: 7.5s;  }
.fx-hoja-5 { animation-delay: 10s;   }

@keyframes fx-pasar-hoja {
  0%   { transform: rotateY(0deg)   translateZ(0);    opacity: 0; }
  3%   { transform: rotateY(0deg)   translateZ(0);    opacity: 1; }
  16%  { transform: rotateY(0deg)   translateZ(0);    opacity: 1; }
  25%  { transform: rotateY(-88deg) translateZ(22px); opacity: .85; }
  33%  { transform: rotateY(-166deg) translateZ(10px); opacity: 0; }
  100% { transform: rotateY(-166deg) translateZ(10px); opacity: 0; }
}

/* el color del lomo cambia por hoja, para que se note que son páginas distintas */
.fx-hoja-2 b { background: rgba(109,92,255,.6); }
.fx-hoja-3 b { background: rgba(255,77,141,.55); }
.fx-hoja-4 b { background: rgba(34,197,94,.55); }
.fx-hoja-5 b { background: rgba(245,165,36,.55); }

/* base fija debajo del taco de hojas, para que no floten en el aire */
.fx-cartilla::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  background: rgba(12,17,25,.55);
  border: 1px solid rgba(255,255,255,.07);
  z-index: -1;
  transform: translate3d(7px, 9px, 0);
}

@media (max-width: 1100px) {
  .fx-cartilla { width: 230px; height: 162px; margin-top: -81px; right: 5%; }
  .fx-hoja u { height: 54px; }
}
@media (max-width: 880px) {
  .fx-cartilla { display: none; }
  .fx-cursor { width: 32px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-hoja { animation: none !important; opacity: 0 !important; }
  .fx-hoja-1 { opacity: 1 !important; }
}
