/* ============================================================
   GEINZ LOGIN — Premium Dark UI
   Tipografía: Syne (display) + DM Sans (body)
   ============================================================ */

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ── TOKENS ── */
:root {
  --accent: #a855f7;
  --accent-2: #7c3aed;
  --accent-glow: rgba(168, 85, 247, 0.22);
  --accent-soft: rgba(168, 85, 247, 0.10);
  --accent-border: rgba(168, 85, 247, 0.20);

  --surface: rgba(14, 12, 20, 0.72);
  --surface-2: rgba(20, 17, 30, 0.85);
  --surface-input: rgba(9, 8, 13, 0.70);
  --surface-hover: rgba(255, 255, 255, 0.04);

  --border: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(168, 85, 247, 0.55);

  --text-1: #f0edf8;
  --text-2: #a097b8;
  --text-3: #5c5475;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Geist', sans-serif;
  --font-body: 'Geist', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── BASE ── */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: #060409;
  color: var(--text-1);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.2);
  border-radius: 99px;
}

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */
.slider-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease, transform 8s ease;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Viñeta oscura para profundidad */
.overlay-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(-3, 2, -5, -25.15) 71%);
}

/* Grano sutil de película */
.overlay-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
}

/* Gradiente principal */
.overlay-gradient {
  position: fixed;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(135deg, rgba(6, 4, 10, 0.96) 0%, rgba(10, 7, 18, 0.90) 50%, rgba(4, 2, 8, 0.94) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.ui-root {
  position: relative;
  z-index: 4;
  display: flex;
  /* ✅ flex simple en vez de grid de 2 columnas */
  justify-content: center;
  /* ✅ centra horizontalmente */
  align-items: center;
  /* ✅ centra verticalmente */
  height: 100vh;
  width: 100%;
  padding: 0 24px;
}

/* ── SIDE PANEL (desktop only) ── */
.side-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
}

.side-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 280px;
}

.side-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--accent-border);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #c084fc;
  letter-spacing: 0.02em;
  width: fit-content;
}

.dot {
  width: 7px;
  height: 7px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.08);
  }
}

.side-quote {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
  letter-spacing: -0.5px;
}

.side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #f0edf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ── AUTH COLUMN ── */
.auth-column {
  display: flex;
  align-items: center;
  justify-content: center;
  /* ✅ centrado horizontal */
  padding-left: 0;
  /* ✅ sin padding que la desplace */
  width: 100%;
}

/* ── TARJETA DE BIENVENIDA ── */
.welcome-card {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 420px;
  animation: card-in 0.7s var(--ease-out) forwards;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(168, 85, 247, 0.06);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* LOGO */
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: transparent;
  flex-shrink: 0;
}

.logo-mark span {
  color: #fff;
  font-size: 22px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(120deg, #fff 30%, #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9333ea;
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(147, 51, 234, 0.25);
  padding: 3px 9px;
  border-radius: 99px;
}

/* TÍTULO */
.title-wrap {
  margin-bottom: 10px;
  min-height: 54px;
  display: flex;
  align-items: flex-start;
}

.dynamic-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.4px;
  color: var(--text-1);
  transition: opacity 0.4s ease;
}

.welcome-sub {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 28px;
}

/* ACTIONS */
.actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.15s ease;
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.05);
}

.btn:active {
  transform: scale(0.975);
}

/* Botón SOCIO — destacado */
.btn-socio {
  width: 100%;
  padding: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(109, 40, 217, 0.12));
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0;
  text-align: left;
  transition: all 0.2s var(--ease-out);
}

.btn-socio:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(109, 40, 217, 0.18));
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.12);
  transform: translateY(-1px);
}

.btn-icon-wrap {
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  font-size: 20px;
}

.btn-icon-wrap .material-symbols-outlined {
  font-size: 20px;
}

.btn-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 0;
}

.btn-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.2;
}

.btn-sub {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 400;
}

.btn-arrow {
  color: var(--text-3);
  font-size: 18px;
  margin-right: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-socio:hover .btn-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* Botón GOOGLE */
.btn-google {
  width: 100%;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 14px;
}

.btn-google img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Botón PRIMARY */
.btn-primary {
  padding: 14px 22px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  font-size: 14.5px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-primary:disabled {
  background: rgba(30, 25, 45, 0.8);
  color: var(--text-3);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-primary .material-symbols-outlined {
  font-size: 18px;
}

/* Botón GHOST */
.btn-ghost {
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text-1);
}

/* Full width helper */
.full-width {
  width: 100%;
}

/* DIVIDER */
.divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-text {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* CARD FOOTER */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #a855f7;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: color 0.15s;
  padding: 0;
}

.link-btn:hover {
  color: #c084fc;
  text-decoration: underline;
}

/* LOCALITY ROW */
.locality-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.locality-dot {
  width: 6px;
  height: 6px;
  background: #a855f7;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease infinite;
}

.locality-text {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

/* ============================================================
   MODALES
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 8, 0.82);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-scroll {
  width: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  scrollbar-width: thin;
}

.dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 11, 20, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.16);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-xl);
  padding: 56px 32px 36px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(168, 85, 247, 0.07);
  animation: dialog-in 0.35s var(--ease-out) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-wide {
  max-width: 500px;
}

/* BACK BTN */
.btn-back-modal {
  position: absolute;
  top: 18px;
  left: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 5px 12px 5px 8px;
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-back-modal .material-symbols-outlined {
  font-size: 14px;
}

.btn-back-modal:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: var(--accent-border);
  color: #c084fc;
}

/* DIALOG HEADER */
.dialog-header {
  text-align: center;
  margin-bottom: 28px;
}

.dialog-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(109, 40, 217, 0.12));
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.dialog-icon-wrap .material-symbols-outlined {
  font-size: 24px;
  color: #a855f7;
}

.dialog-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.dialog-sub {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================================================
   CAMPOS / INPUTS
   ============================================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: 12px;
  color: #9333ea;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 500;
}

.forgot-link:hover {
  color: #c084fc;
}

.input-box {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 17px;
  pointer-events: none;
  transition: color 0.2s;
}

.input-field,
.custom-select {
  width: 100%;
  padding: 13px 14px 13px 40px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.input-field::placeholder {
  color: var(--text-3);
}

.input-field:focus,
.custom-select:focus {
  border-color: var(--border-focus);
  background: rgba(9, 7, 15, 0.9);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.input-field:focus+.input-icon,
.input-box:focus-within .input-icon {
  color: #9333ea;
}

/* No-icon padding override */
.input-no-icon {
  padding-left: 14px !important;
}

/* Toggle password */
.toggle-pass-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
  border-radius: 6px;
}

.toggle-pass-btn .material-symbols-outlined {
  font-size: 17px;
}

.toggle-pass-btn:hover {
  color: var(--text-1);
  background: var(--surface-hover);
}

/* INPUT ROW 2 */
.input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* PHONE ROW */
.phone-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-input);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-row:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.country-prefix {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}

.flag {
  font-size: 17px;
}

.prefix-code {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.phone-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding-left: 13px !important;
  box-shadow: none !important;
}

/* SELECT */
.select-wrap {
  position: relative;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
}

.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-3);
  pointer-events: none;
}

.custom-select option {
  background: #110e1a;
  color: var(--text-1);
}

/* TÉRMINOS */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.terms-check {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #a855f7;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-label {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}

.terms-link {
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  color: #c084fc;
  text-decoration: underline;
}

/* REGISTER STEPS */
.register-steps {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-track {
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.step-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  width: 100%;
  border-radius: 99px;
}

.step-label-text {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* DIALOG ACTIONS */
.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* ============================================================
   MODAL SOCIO
   ============================================================ */
.dialog-socio {
  border-color: rgba(168, 85, 247, 0.28) !important;
}

.socio-hero {
  text-align: center;
  margin-bottom: 28px;
}

.socio-crown {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 8px;
  animation: float-crown 3s ease-in-out infinite;
}

@keyframes float-crown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.socio-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.socio-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.socio-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0 16px;
}

.socio-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-3);
}

.socio-footer-link .material-symbols-outlined {
  font-size: 16px;
}

.socio-footer-link a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.socio-footer-link a:hover {
  color: #a855f7;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splashScreen {
  position: fixed;
  inset: 0;
  background: #060409;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 32px 24px;
  gap: 0;
}

#sValidating,
#sWelcome {
  margin: auto 0;
}

#splashScreen.visible {
  display: flex;
}

/* VALIDANDO */
#sValidating {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  gap: 0;
}

.splash-logo {
  position: relative;
  margin-bottom: 32px;
}

.splash-ring {
  width: 72px;
  height: 72px;
  background: rgba(168, 85, 247, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 2.5px solid rgba(168, 85, 247, 0.12);
  border-left-color: #a855f7;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.splash-brand {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.splash-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-top: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.splash-sub {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* STEPS TRACK */
.steps-track {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 14px;
  padding: 12px 0;
  position: relative;
  transition: color 0.4s ease;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.step-ico {
  font-size: 18px;
  transition: color 0.4s ease;
}

.step-text {
  flex: 1;
}

.step-line {
  position: absolute;
  left: 4px;
  bottom: -2px;
  width: 2px;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.step-item.done {
  color: var(--text-1);
}

.step-item.done .step-dot {
  background: #a855f7;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.step-item.done .step-ico {
  color: #a855f7;
}

.step-item.done .step-line {
  background: rgba(168, 85, 247, 0.3);
}

/* BIENVENIDA */
#sWelcome {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  animation: card-in 0.5s var(--ease-out) both;
}

#sWelcome.visible {
  display: flex;
}

.welcome-avatar-wrap {
  position: relative;
  margin-bottom: 24px;
}

.welcome-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(109, 40, 217, 0.12));
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-avatar .material-symbols-outlined {
  font-size: 38px;
  color: #c084fc;
}

.avatar-checkmark {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-radius: 50%;
  border: 2px solid #060409;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-checkmark .material-symbols-outlined {
  font-size: 14px;
  color: #fff;
}

.wb-greeting {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a855f7;
  font-weight: 600;
  margin-bottom: 6px;
}

.wb-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-1);
  margin-bottom: 4px;
}

.wb-username {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.wb-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(168, 85, 247, 0.09);
  border: 1px solid rgba(168, 85, 247, 0.18);
  color: #c084fc;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 99px;
  margin-bottom: 32px;
}

.wb-points-pill .material-symbols-outlined {
  font-size: 17px;
}

.btn-enter-panel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-1);
  color: #0a0812;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 32px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
  margin-bottom: 16px;
}

.btn-enter-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
  filter: brightness(1.05);
}

.btn-enter-panel:active {
  transform: scale(0.97);
}

.btn-enter-icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.btn-enter-panel:hover .btn-enter-icon {
  transform: translateX(3px) translateY(-2px);
}

.wb-hint {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* FADE OUT */
.fade-out {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.4s ease !important;
}

/* ============================================================
   PANTALLA SELECTOR (TIENDA SIN VINCULAR)
   ============================================================ */
.selector-screen {
  position: fixed;
  inset: 0;
  background: #060409;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.selector-screen.active {
  display: flex;
}

.selector-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 460px;
  padding: 0 8px;
}

.selector-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.selector-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(109, 40, 217, 0.1));
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.selector-icon .material-symbols-outlined {
  font-size: 28px;
  color: #a855f7;
}

.selector-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-1);
}

.selector-sub {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 300px;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip:hover {
  background: rgba(168, 85, 247, 0.07);
  border-color: var(--accent-border);
  color: var(--text-1);
}

.chip.active {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
  font-weight: 600;
}

.selector-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.selector-input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.selector-input-wrap .input-icon {
  position: relative;
  left: unset;
  top: unset;
  transform: none;
  padding: 0 12px;
  flex-shrink: 0;
}

.selector-field {
  flex: 1;
  background: transparent;
  border: none;
  padding: 13px 0;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.selector-field::placeholder {
  color: var(--text-3);
}

.selector-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 14px;
  height: 100%;
  min-height: 46px;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.selector-action-btn .material-symbols-outlined {
  font-size: 18px;
}

.selector-action-btn:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}

.selector-btn {
  max-width: 400px;
  padding: 14px 24px;
}

.selector-help {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: -4px;
}

.selector-link {
  color: #9333ea;
  text-decoration: none;
  font-weight: 500;
}

.selector-link:hover {
  color: #c084fc;
}

/* ============================================================
   BLUR ACTIVO (cuando un modal está abierto)
   ============================================================ */
body.blur-active .ui-root {
  filter: blur(3px);
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* TABLET (≤ 900px) */
@media (max-width: 900px) {
  .side-panel {
    display: none;
  }

  .ui-root {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .auth-column {
    justify-content: center;
    padding-left: 0;
  }

  .welcome-card {
    max-width: 440px;
  }
}

/* MÓVIL GRANDE (≤ 600px) */
@media (max-width: 600px) {
  .ui-root {
    padding: 0 16px;
  }

  .welcome-card {
    padding: 32px 24px 28px;
    border-radius: var(--radius-lg);
  }

  .dynamic-title {
    font-size: 20px;
  }

  .dialog {
    padding: 52px 22px 28px;
    border-radius: var(--radius-xl);
    max-width: 100%;
  }

  .dialog-wide {
    max-width: 100%;
  }

  .input-row-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* MÓVIL PEQUEÑO (≤ 400px) */
@media (max-width: 400px) {
  .welcome-card {
    padding: 28px 18px 22px;
  }

  .btn-socio {
    grid-template-columns: 38px 1fr auto;
  }

  .dynamic-title {
    font-size: 18px;
  }

  .wb-name {
    font-size: 24px;
  }
}

/* ALTURA REDUCIDA */
@media (max-height: 700px) {
  .welcome-card {
    padding: 28px 28px 22px;
  }

  .brand-row {
    margin-bottom: 18px;
  }

  .welcome-sub {
    margin-bottom: 18px;
  }
}

/* ============================================================
   SAFE AREAS (iPhone notch / Dynamic Island)
   ============================================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-scroll {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .selector-content {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.logo-mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* Hace la imagen circular */
  object-fit: cover;
  /* Ajusta la imagen sin deformarla */
}

/* Botón email */
.btn-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-email:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Error de campo */
.field-error {
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 6px;
  min-height: 18px;
  margin-bottom: 20px;
}

/* Chip de correo confirmado */
.login-email-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.login-email-chip .material-symbols-outlined {
  font-size: 18px;
  color: #4ade80;
}

.login-email-chip span#loginEmailChipText {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-change-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  padding: 2px;
  transition: color 0.2s;
}

.chip-change-btn:hover {
  color: #fff;
}

.chip-change-btn .material-symbols-outlined {
  font-size: 16px;
}

/* Link inline dentro de error */
.link-btn-inline {
  background: none;
  border: none;
  color: #a78bfa;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}

/* Mensajes de error por campo */
.field-error {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 5px;
  min-height: 16px;
  display: none;
  line-height: 1.4;
}

.field-error:not(:empty) {
  display: block;
}

/* Input inválido — borde rojo suave */
.input-box:has(+ .field-error:not(:empty)) {
  border-color: rgba(255, 107, 107, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

/* Select inválido */
.select-wrap:has(+ .field-error:not(:empty)) {
  border-color: rgba(255, 107, 107, 0.5) !important;
}

/* Input de fecha nativa — quitar fondo raro en dark */
input[type="date"].input-field {
  color-scheme: dark;
}

input[type="date"].input-field::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.field-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}




/* Scrollbar elegante, negra, delgada y redondeada */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #111;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #333, #000);
  border-radius: 999px;
  border: 1px solid #111;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #444, #111);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #000 #111;
}

.icon-svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Dentro de los inputs (posición absoluta como antes) */
svg.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 17px;
  height: 17px;
  pointer-events: none;
  transition: color 0.2s;
}

.input-box:focus-within svg.input-icon {
  color: #9333ea;
}


@keyframes fadeInOverlay {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes slideUpSheet {
  from {
    transform: translateY(100%)
  }

  to {
    transform: translateY(0)
  }
}

#modalExitoPromo .sheet {
  width: 100%;
  max-width: 520px;
  background: #0d0c12;
  border-radius: 30px 30px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 0 0 env(safe-area-inset-bottom, 0);
  animation: slideUpSheet .45s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

#modalExitoPromo .handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, .15);
  border-radius: 2px;
  margin: 14px auto 0;
}

#modalExitoPromo .sheet-inner {
  padding: 24px 22px 28px;
}

#modalExitoPromo .hero-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin: 4px auto 18px;
  background: linear-gradient(155deg, #7c3aed, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(124, 58, 237, .55);
}

#modalExitoPromo .hero-badge i {
  font-size: 28px;
  color: #fff;
}

#modalExitoPromo h2 {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -.3px;
}

#modalExitoPromo .subtitle {
  font-size: 13px;
  color: #8b869b;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 20px;
}

#modalExitoPromo .url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #17151f;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 16px;
}

#modalExitoPromo .url-box>i {
  font-size: 14px;
  color: #5c5670;
  flex-shrink: 0;
}

#modalExitoPromo .url-text {
  flex: 1;
  font-size: 11px;
  color: #a29cb5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'SF Mono', monospace;
}

#modalExitoPromo .btn-copy {
  flex-shrink: 0;
  height: 28px;
  padding: 0 12px;
  border: none;
  background: rgba(124, 58, 237, .18);
  color: #c4b5fd;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .2s;
  white-space: nowrap;
}

#modalExitoPromo .btn-copy:hover {
  background: rgba(124, 58, 237, .3);
}

#modalExitoPromo .btn-copy.copied {
  color: #4ade80;
  background: rgba(74, 222, 128, .15);
}

#modalExitoPromo .share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

#modalExitoPromo .share-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .06);
  background: #15131c;
  transition: transform .18s ease, border-color .18s ease;
}

#modalExitoPromo .share-btn:active {
  transform: scale(.97);
}

#modalExitoPromo .share-btn .sb-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#modalExitoPromo .share-btn .sb-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

#modalExitoPromo .share-btn .sb-label {
  font-size: 12.5px;
  font-weight: 650;
  color: #f0eef5;
}

#modalExitoPromo .share-btn .sb-sub {
  font-size: 10.5px;
  color: #6b6680;
  margin-top: 1px;
}

#modalExitoPromo .share-btn.wp {
  border-color: rgba(34, 197, 94, .18);
}

#modalExitoPromo .share-btn.share {
  border-color: rgba(129, 140, 248, .18);
}

#modalExitoPromo .share-btn.view {
  grid-column: 1/-1;
  border-color: rgba(245, 158, 11, .18);
}

#modalExitoPromo .share-btn.wp .sb-icon {
  background: rgba(34, 197, 94, .14);
}

#modalExitoPromo .share-btn.share .sb-icon {
  background: rgba(129, 140, 248, .14);
}

#modalExitoPromo .share-btn.view .sb-icon {
  background: rgba(245, 158, 11, .14);
}

#modalExitoPromo .share-btn.wp .sb-icon i {
  font-size: 16px;
  color: #22c55e;
}

#modalExitoPromo .share-btn.share .sb-icon i {
  font-size: 16px;
  color: #818cf8;
}

#modalExitoPromo .share-btn.view .sb-icon i {
  font-size: 16px;
  color: #f59e0b;
}

#modalExitoPromo .btn-done {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px -8px rgba(124, 58, 237, .5);
  transition: transform .15s ease, box-shadow .15s ease;
}

#modalExitoPromo .btn-done:active {
  transform: scale(.98);
}


.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  cursor: pointer;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-select {
  color: var(--text-2);
  /* placeholder gris por defecto */
}

.custom-select:valid,
.custom-select option:checked {
  color: var(--text-1);
}

.select-wrap:hover .custom-select {
  border-color: rgba(168, 85, 247, 0.3);
}

.custom-select:focus {
  transform: translateY(-1px);
}

.select-chevron {
  transition: transform 0.25s var(--ease-out), color 0.25s ease;
}

.custom-select:focus~.select-chevron {
  transform: translateY(-50%) rotate(180deg);
  color: #a855f7;
}

/* Firefox sí permite pintar las opciones */
.custom-select option {
  background: #110e1a;
  color: #f0edf8;
  padding: 10px;
}

/* Oculta el select real pero lo mantiene funcional/accesible */
.real-select-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.fake-select {
  position: relative;
  width: 100%;
  padding: 13px 36px 13px 40px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fake-select:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

.fake-select.open {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.fake-select.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fake-select-label {
  color: var(--text-1);
}

.fake-select-label.placeholder {
  color: var(--text-3);
}

.fake-select::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-3);
  transition: transform 0.25s var(--ease-out);
}

.fake-select.open::after {
  transform: translateY(-50%) rotate(180deg);
  color: #a855f7;
}

.fake-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #110e1a;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.fake-select.open .fake-select-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fake-select-item {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.fake-select-item:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--text-1);
}

.fake-select-item.active {
  color: #c084fc;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.08);
}

/* ============================================================
   COOL SELECT (con buscador) — reemplaza <select> nativo
   ============================================================ */
.real-select-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cool-select {
  position: relative;
  width: 100%;
}

.cool-select-trigger {
  width: 100%;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  /* 👈 padding parejo, sin hueco */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.cool-select-trigger:hover:not(:disabled) {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(124, 58, 237, .05);
}

.cool-select.open .cool-select-trigger {
  border-color: var(--border-focus);
  background: rgba(9, 7, 15, 0.9);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .12);
}

.cool-select-trigger:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.cool-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-1);
}

.cool-select-value.is-placeholder {
  color: var(--text-3);
  font-weight: 400;
}

.cool-select-chevron {
  flex-shrink: 0;
  color: #a855f7;
  transition: transform .25s var(--ease-out);
}

.cool-select.open .cool-select-chevron {
  transform: rotate(180deg);
}

.cool-select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(13, 11, 20, .97);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 60;
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: all .2s var(--ease-out);
}

.cool-select.open .cool-select-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cool-select-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  color: #a855f7;
}

.cool-select-search {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 12.5px;
  width: 100%;
  font-family: var(--font-body);
}

.cool-select-search::placeholder {
  color: var(--text-3);
}

.cool-select-options {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cool-select-options::-webkit-scrollbar {
  width: 5px;
}

.cool-select-options::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, .35);
  border-radius: 10px;
}

.cool-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s ease;
}

.cool-select-option:hover {
  background: rgba(168, 85, 247, .15);
  color: var(--text-1);
}

.cool-select-option.is-selected {
  background: rgba(168, 85, 247, .2);
  color: var(--text-1);
  font-weight: 700;
}

.cool-select-check {
  color: #a855f7;
  opacity: 0;
  flex-shrink: 0;
}

.cool-select-option.is-selected .cool-select-check {
  opacity: 1;
}

.cool-select-empty {
  padding: 16px 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.cool-select.is-disabled .cool-select-trigger {
  opacity: .5;
  cursor: not-allowed;
}

.cool-select.is-loading .cool-select-trigger {
  pointer-events: none;
  opacity: 0.7;
}

.cool-select-loadbar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.cool-select-loadbar::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 40%;
  background: currentColor;
  animation: coolLoadSlide 1s infinite ease-in-out;
}

@keyframes coolLoadSlide {
  0% {
    left: -40%;
  }

  100% {
    left: 100%;
  }
}

.cool-select {
  position: relative;
}

.cool-select {
  position: relative;
}

.cool-select-trigger {
  transition: opacity .2s ease;
}

.cool-select.is-loading .cool-select-trigger {
  opacity: .55;
  pointer-events: none;
  cursor: wait;
}

.cool-select-loadbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  background: rgba(0, 0, 0, .06);
}

.cool-select-loadbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
  animation: coolSelectLoad 1.1s ease-in-out infinite;
}

@keyframes coolSelectLoad {
  0% {
    left: -40%;
  }

  100% {
    left: 100%;
  }
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ===== SPLASH BIENVENIDA — 2 COLUMNAS ===== */
#sWelcome .wb-profile-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
}

#sWelcome .wb-profile-left,
#sWelcome .wb-profile-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  margin-top: 40px;
}

#sWelcome .wb-profile-right {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 32px;
}

@media (max-width: 640px) {
  #sWelcome .wb-profile-grid {
    flex-direction: column;
    gap: 24px;
  }

  #sWelcome .wb-profile-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 24px;
  }
}

.wb-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: visible;
  margin-bottom: 6px;
}

.wb-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(167, 139, 250, 0.5);
  background: rgba(255, 255, 255, 0.05);
  display: block;
}

.wb-avatar-edit {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #7c3aed;
  border: 2px solid #030307;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

.wb-avatar-edit .material-symbols-outlined {
  font-size: 15px;
}

.wb-avatar-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(3, 3, 7, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
}

.wb-avatar-wrap.is-uploading .wb-avatar-spinner {
  display: flex;
}

.wb-store-card,
.wb-nostore-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 4px;
}

.wb-store-card {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.wb-nostore-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wb-store-icon {
  color: #c084fc;
  font-size: 22px;
  flex-shrink: 0;
}

.wb-store-info {
  text-align: left;
  overflow: hidden;
}

.wb-store-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #c084fc;
}

.wb-store-loc {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  padding: 4px 2px;
  transition: color 0.2s;
}

.wb-logout-btn:hover {
  color: #f87171;
}

.wb-logout-btn .material-symbols-outlined {
  font-size: 15px;
}

.wb-logout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#authChecking {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060409;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#authChecking.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ac-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ac-ring-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-glow {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
  filter: blur(10px);
  animation: acGlowPulse 2s ease-in-out infinite;
}

@keyframes acGlowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.ac-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(168, 85, 247, 0.25);
  animation: acSpinSlow 8s linear infinite;
}

@keyframes acSpinSlow {
  to {
    transform: rotate(360deg);
  }
}

.ac-ring-spin {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2.5px solid rgba(168, 85, 247, 0.12);
  border-top-color: #a855f7;
  border-right-color: #c084fc;
  animation: acSpin 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes acSpin {
  to {
    transform: rotate(360deg);
  }
}

.ac-logo-circle {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #0d0b14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: acLogoPulse 2s ease-in-out infinite;
}

.ac-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes acLogoPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.ac-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.1px;
}

.ac-dots {
  display: flex;
  gap: 5px;
}

.ac-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a855f7;
  animation: acDotBlink 1.3s ease-in-out infinite;
}

.ac-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.ac-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes acDotBlink {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-back-geinz {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 99px;
  padding: 9px 16px 9px 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.btn-back-geinz svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-back-geinz:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-border);
  color: var(--text-1);
}

.btn-back-geinz:hover svg {
  transform: translateX(-2px);
}

@media (max-width: 600px) {
  .btn-back-geinz {
    top: 14px;
    left: 14px;
    padding: 8px 14px 8px 10px;
    font-size: 12px;
  }
}

@supports (padding: env(safe-area-inset-top)) {
  .btn-back-geinz {
    top: calc(20px + env(safe-area-inset-top));
  }
}

.ui-root#mainUI {
  display: none;
}


.wb-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wb-edit-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wb-edit-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--accent-border);
  color: #c084fc;
}

.wb-edit-btn .material-symbols-outlined {
  font-size: 14px;
}
.wb-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: -14px;
  margin-bottom: 20px;
}

.wb-phone .material-symbols-outlined {
  font-size: 13px;
}