/* =========================================================
   Fer Store BC · Estilos del Generador y Tarjeta QR
   ========================================================= */

.qr-page {
  padding-bottom: 80px;
}

.qr-hero {
  padding: 30px 0 20px;
  text-align: center;
}

.qr-hero__titulo {
  font-family: var(--f-brush);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  text-shadow: var(--glow-text);
  margin-bottom: 6px;
}

.qr-hero__sub {
  color: var(--texto-suave);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Layout en dos columnas */
.qr-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 30px;
}

@media (min-width: 960px) {
  .qr-layout {
    grid-template-columns: 420px 1fr;
    gap: 48px;
  }
}

/* Panel de controles */
.qr-panel {
  background: var(--noche-2);
  border: 1px solid var(--linea);
  border-radius: var(--r);
  padding: 24px;
  display: grid;
  gap: 20px;
  box-shadow: var(--sombra);
}

.qr-panel__titulo {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-claro);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--linea);
}

.qr-panel__grupo {
  display: grid;
  gap: 8px;
}

.qr-panel__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--texto);
}

.qr-panel__ayuda {
  font-size: 0.82rem;
  color: var(--texto-tenue);
  margin-top: 2px;
}

/* Switch de modo visual */
.qr-tabs {
  display: flex;
  background: var(--noche-3);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--linea);
}

.qr-tab {
  flex: 1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texto-suave);
  text-align: center;
  transition: all 0.2s var(--ease);
}

.qr-tab.is-active {
  background: var(--neon);
  color: #fff;
  box-shadow: var(--glow-sm);
}

/* Acciones */
.qr-acciones {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--linea);
}

/* Vista previa interactiva */
.qr-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-preview-switch {
  display: inline-flex;
  gap: 8px;
  background: var(--noche-2);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--linea);
}

.qr-preview-switch button {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--texto-suave);
  transition: all 0.2s;
}

.qr-preview-switch button.is-active {
  background: rgba(255, 90, 165, 0.2);
  color: #fff;
  border: 1px solid var(--neon);
}

/* Tarjeta de Mostrador (Preview Pantalla) */
.stand-card {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1000 / 1440;
  border-radius: 36px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.3s var(--ease);
}

/* Modo Neón Oscuro */
.stand-card--dark {
  background: #0a0608;
  border: 2px solid rgba(255, 150, 200, 0.25);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 90, 165, 0.2);
  color: #fbeef4;
}

.stand-card--dark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 90, 165, 0.4);
  pointer-events: none;
}

.stand-card--dark .stand-card__qr-box {
  background: #ffffff;
  border: 4px solid var(--neon);
  box-shadow: 0 12px 30px rgba(255, 90, 165, 0.4);
}

/* Modo Mostrador Claro */
.stand-card--light {
  background: #ffffff;
  border: 3px solid #fbb0cc;
  box-shadow: 0 16px 40px -10px rgba(201, 74, 124, 0.15);
  color: #1a0f14;
}

.stand-card--light::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 90, 165, 0.5);
  pointer-events: none;
}

.stand-card--light .stand-card__qr-box {
  background: #ffffff;
  border: 3px solid var(--neon);
  box-shadow: 0 8px 24px rgba(201, 74, 124, 0.18);
}

.stand-card--light .stand-card__tag {
  background: #fde4ee;
  color: #c94a7c;
  border-color: #e1769a;
}

.stand-card--light .stand-card__sub {
  color: #c94a7c;
}

.stand-card--light .stand-card__title {
  color: #1a0f14;
}

.stand-card--light .stand-card__inst {
  color: #27161f;
}

.stand-card--light .stand-card__perks {
  color: #6b5260;
}

/* Elementos de la tarjeta */
.stand-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stand-card__marca {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  line-height: 1;
}

.stand-card__corona {
  position: absolute;
  left: -12px;
  top: -12px;
  color: var(--neon-claro);
  filter: drop-shadow(0 0 5px rgba(255, 90, 165, 0.9));
  transform: rotate(-14deg);
}

.stand-card__corona svg {
  width: 28px;
  height: 28px;
}

.stand-card__fer {
  font-family: var(--f-brush);
  font-size: 2.8rem;
  color: inherit;
  line-height: 0.9;
}

.stand-card--dark .stand-card__fer {
  color: #ffffff;
  text-shadow: var(--glow-text);
}

.stand-card__store {
  font-family: var(--f-brush);
  font-size: 1.45rem;
  color: var(--neon-claro);
}

.stand-card--light .stand-card__store {
  color: var(--rosa-hondo);
}

.stand-card__tag {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 90, 165, 0.15);
  color: var(--neon-claro);
  border: 1px solid var(--neon);
}

.stand-card__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.stand-card__sub {
  font-family: var(--f-brush);
  font-size: 1.35rem;
  color: var(--neon-claro);
  line-height: 1;
}

.stand-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stand-card__qr-box {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  padding: 12px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.stand-card__qr-box svg,
.stand-card__qr-box img,
.stand-card__qr-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stand-card__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.stand-card__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff74b4, #ff3f95 55%, #e8318a);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px -6px rgba(255, 61, 148, 0.8), var(--glow-sm);
}

.stand-card__wa-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.stand-card__inst {
  font-size: 0.85rem;
  font-weight: 500;
}

.stand-card__perks {
  font-size: 0.78rem;
  color: var(--texto-suave);
  line-height: 1.3;
}

.stand-card__redes {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-claro);
}

/* Vista de solo QR */
.qr-solo-view {
  background: var(--noche-2);
  border: 1px solid var(--linea);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 440px;
  width: 100%;
}

.qr-solo-box {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 28px;
  padding: 16px;
  display: grid;
  place-items: center;
}

.qr-solo-box.is-dark {
  background: #0a0608;
  border: 2px solid rgba(255, 150, 200, 0.3);
  box-shadow: 0 0 30px rgba(255, 90, 165, 0.25);
}

.qr-solo-box.is-light {
  background: #ffffff;
  border: 2px solid #fbb0cc;
  box-shadow: 0 10px 25px rgba(201, 74, 124, 0.15);
}

.qr-solo-box svg,
.qr-solo-box canvas {
  width: 100%;
  height: 100%;
}

/* ---------- Reglas de Impresión para Mostrador ---------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .top, .anuncios, .skip, .qr-hero, .qr-panel, .qr-preview-switch, .pie, .wa-flotante, .toasts {
    display: none !important;
  }
  .qr-layout {
    display: block !important;
    margin: 0 !important;
  }
  .qr-preview-wrapper {
    width: 100% !important;
    display: block !important;
  }
  .stand-card {
    max-width: 100% !important;
    width: 100% !important;
    height: 98vh !important;
    border: 2px solid #ddd !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .stand-card--dark {
    background: #ffffff !important;
    color: #1a0f14 !important;
  }
  .stand-card--dark .stand-card__fer {
    color: #1a0f14 !important;
    text-shadow: none !important;
  }
  .stand-card--dark .stand-card__store {
    color: #c94a7c !important;
  }
  .stand-card--dark .stand-card__title {
    color: #1a0f14 !important;
  }
  .stand-card--dark .stand-card__sub {
    color: #c94a7c !important;
  }
  .stand-card--dark .stand-card__qr-box {
    box-shadow: none !important;
    border: 3px solid #ff5aa5 !important;
  }
}
