/* ============================================================
   GEINZ LOGIN — Dark + resplandor morado suave
   Ligero: sin imágenes de fondo, sin backdrop-filter, sin blur
   pesado → fluido hasta en celulares básicos (Nokia, etc.)
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --accent: #a855f7;
  --accent-2: #7c3aed;
  --accent-soft: rgba(168, 85, 247, 0.10);
  --accent-border: rgba(168, 85, 247, 0.22);

  --surface: #0e0c14;
  --surface-input: #09080d;
  --surface-hover: rgba(255, 255, 255, 0.05);

  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(168, 85, 247, 0.6);

  --text-1: #f0edf8;
  --text-2: #a097b8;
  --text-3: #6b6385;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: #060409;
  color: var(--text-1);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  line-height: 1.6;
}

/* ── FONDO: dark + blobs morados suaves (estático, barato) ── */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(168, 85, 247, 0.20), transparent 70%),
    radial-gradient(55% 45% at 92% 96%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(40% 30% at 85% 12%, rgba(168, 85, 247, 0.07), transparent 70%),
    #060409;
}

/* ── SCROLLBAR ── */
* {
  scrollbar-width: thin;
  scrollbar-color: #2a2438 transparent;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2a2438;
  border-radius: 99px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.ui-root {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  padding: 0 24px;
  overflow-y: auto;
}

.ui-root#mainUI {
  display: none;
}

.auth-column {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: auto 0;
  padding: 16px 0;
}

.welcome-card {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 420px;
  animation: card-in 0.5s var(--ease-out) both;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(168, 85, 247, 0.07);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  cursor: pointer;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #fff;
}

.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.3s ease;
}

.welcome-sub {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 28px;
}

.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: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, filter 0.18s ease;
  outline: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.45);
}

.btn-email {
  width: 100%;
  padding: 14px 20px;
  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;
}

.btn-email:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
}

.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.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* FACEBOOK */
.btn-facebook {
  width: 100%;
  padding: 13px 20px;
  background: #1877f2;
  border: 1px solid #1877f2;
  color: #fff;
  font-size: 14px;
}

.btn-facebook:hover {
  filter: brightness(1.1);
}

.btn-facebook .icon-svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  padding: 14px 22px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:disabled {
  background: #1c1829;
  color: var(--text-3);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.btn-primary .material-symbols-outlined {
  font-size: 18px;
}

.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 {
  width: 100%;
}

.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;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  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);
  padding: 0;
}

.link-btn:hover {
  color: #c084fc;
  text-decoration: underline;
}

.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;
}

.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.9);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-scroll {
  width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #0d0b14;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: var(--radius-xl);
  padding: 56px 32px 36px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(168, 85, 247, 0.07);
  animation: dialog-in 0.28s var(--ease-out) both;
  margin: auto 0;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialog-wide {
  max-width: 500px;
}

.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: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 5;
}

.btn-back-modal .material-symbols-outlined {
  font-size: 14px;
}

.btn-back-modal:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #c084fc;
}

.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
   ============================================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  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;
  gap: 8px;
}

.forgot-link {
  font-size: 12px;
  color: #9333ea;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  color: #c084fc;
}

.input-box {
  position: relative;
  width: 100%;
}

.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: 16px;
  /* 16px evita el zoom automático en móviles */
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field::placeholder {
  color: var(--text-3);
}

.input-field:focus,
.custom-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.input-box:focus-within .input-icon {
  color: #9333ea;
}

.input-no-icon {
  padding-left: 14px !important;
}

.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;
  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 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* TELÉFONO */
.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;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding-left: 13px !important;
  box-shadow: none !important;
}

/* SELECT nativo (queda oculto cuando se convierte en cool-select) */
.select-wrap {
  position: relative;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
  padding-left: 14px;
  color: var(--text-1);
}

.select-wrap>.input-icon~.custom-select {
  padding-left: 40px;
}

.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: 2px;
}

.terms-check {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  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;
}

.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* ERRORES / HINTS */
.field-error {
  font-size: 12px;
  color: #ff6b6b;
  line-height: 1.4;
  display: none;
}

.field-error:not(:empty) {
  display: block;
}

#loginEmailError,
#loginPassError {
  margin-top: 6px;
}

.input-box:has(+ .field-error:not(:empty)) .input-field,
.input-box:has(+ .field-error:not(:empty)) .cool-select-trigger {
  border-color: rgba(255, 107, 107, 0.55);
}

.field-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

input[type="date"].input-field {
  color-scheme: dark;
}

input[type="date"].input-field::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.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;
}

.chip-change-btn:hover {
  color: #fff;
}

.chip-change-btn .material-symbols-outlined {
  font-size: 16px;
}

.link-btn-inline {
  background: none;
  border: none;
  color: #a78bfa;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

.icon-svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

svg.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.input-box:focus-within svg.input-icon {
  color: #9333ea;
}

/* ============================================================
   MODAL SOCIO
   ============================================================ */
.dialog-socio {
  border-color: rgba(168, 85, 247, 0.28) !important;
}

.socio-hero {
  text-align: center;
  margin-bottom: 24px;
}

.socio-crown {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 8px;
}

.socio-tag {
  display: inline-flex;
  align-items: center;
  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;
}

.socio-footer-link a:hover {
  color: #a855f7;
}

/* ============================================================
   SPLASH
   ============================================================ */
#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;
  -webkit-overflow-scrolling: touch;
  padding: 32px 24px;
}

#splashScreen.visible {
  display: flex;
}

#splashScreen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 70%);
}

#sValidating,
#sWelcome {
  margin: auto 0;
  position: relative;
}

#sValidating {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
}

.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 {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.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.12);
  flex-shrink: 0;
  transition: background 0.4s, border-color 0.4s;
}

.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);
}

#sWelcome {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: card-in 0.45s var(--ease-out) both;
}

#sWelcome.visible {
  display: flex;
}

.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: 700;
  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: 12px;
}

.wb-points-pill .material-symbols-outlined {
  font-size: 17px;
}

.btn-enter-panel {
  display: inline-flex;
  align-items: center;
  justify-content: 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 28px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.2);
  margin-bottom: 8px;
}

.btn-enter-panel:hover {
  filter: brightness(1.06);
}

.btn-enter-panel:active {
  transform: scale(0.97);
}

.btn-enter-icon {
  font-size: 20px;
}

.wb-hint {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.fade-out {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.4s ease !important;
}

/* PERFIL 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: 20px;
  }

  #sWelcome .wb-profile-left,
  #sWelcome .wb-profile-right {
    margin-top: 0;
    width: 100%;
  }

  #sWelcome .wb-profile-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 20px;
  }
}

.wb-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  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 #060409;
  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: 0.05em;
  text-transform: uppercase;
  color: #c084fc;
}

.wb-store-loc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.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.45);
  padding: 6px 2px;
}

.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;
}

.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: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  flex-shrink: 0;
}

.wb-edit-btn:hover {
  background: var(--accent-soft);
  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: 14px;
}

.wb-phone:empty {
  display: none;
}

.btn-otro-negocio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin-top: 10px;
  padding: 12px 16px;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-otro-negocio:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-otro-negocio .material-symbols-outlined {
  font-size: 20px;
}

/* ============================================================
   SELECTOR TIENDA
   ============================================================ */
.selector-screen {
  position: fixed;
  inset: 0;
  background: #060409;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.selector-screen.active {
  display: flex;
}

.selector-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 460px;
  padding: 0 8px;
  margin: auto 0;
}

.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;
}

.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;
}

.selector-sub {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 300px;
}

.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;
}

.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;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 13px 0;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  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;
  min-height: 46px;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.selector-action-btn .material-symbols-outlined {
  font-size: 18px;
}

.selector-action-btn:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.06);
}

.selector-btn {
  width: 100%;
  max-width: 400px;
  padding: 14px 24px;
}

.selector-help {
  font-size: 12.5px;
  color: var(--text-3);
}

.selector-link {
  color: #9333ea;
  text-decoration: none;
  font-weight: 500;
}

.selector-link:hover {
  color: #c084fc;
}

/* ============================================================
   COOL SELECT (con buscador)
   ============================================================ */
.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;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  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);
}

.cool-select.open .cool-select-trigger {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.cool-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.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 0.2s var(--ease-out);
}

.cool-select.open .cool-select-chevron {
  transform: rotate(180deg);
}

.cool-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0d0b14;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 60;
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.cool-select.open .cool-select-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  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, 0.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: 16px;
  width: 100%;
  font-family: var(--font-body);
}

.cool-select-search::placeholder {
  color: var(--text-3);
}

.cool-select-options {
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cool-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}

.cool-select-option:hover {
  background: rgba(168, 85, 247, 0.15);
  color: var(--text-1);
}

.cool-select-option.is-selected {
  background: rgba(168, 85, 247, 0.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: 12px;
  color: var(--text-3);
}

.cool-select.is-disabled .cool-select-trigger {
  opacity: 0.5;
  cursor: not-allowed;
}

.cool-select.is-loading .cool-select-trigger {
  opacity: 0.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 8px 8px;
}

.cool-select-loadbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  animation: coolSelectLoad 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';
  font-feature-settings: 'liga';
}

/* ============================================================
   CHECKING (sesión)
   ============================================================ */
#authChecking {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(60% 40% at 50% 40%, rgba(168, 85, 247, 0.12), transparent 70%), #060409;
  transition: opacity 0.35s ease, visibility 0.35s 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-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: spin 0.85s linear infinite;
}

.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;
}

.ac-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

/* BOTÓN REGRESAR */
.btn-back-geinz {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(20, 16, 30, 0.85);
  border: 1px solid var(--border);
  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: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-back-geinz svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-back-geinz:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text-1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .ui-root {
    padding: 0 14px;
  }

  .welcome-card {
    padding: 30px 22px 26px;
    border-radius: var(--radius-lg);
  }

  .dynamic-title {
    font-size: 20px;
  }

  .dialog {
    padding: 52px 20px 26px;
    max-width: 100%;
  }

  .dialog-wide {
    max-width: 100%;
  }

  .input-row-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .btn-back-geinz {
    top: 12px;
    left: 12px;
    padding: 8px 14px 8px 10px;
    font-size: 12px;
  }

  .auth-column {
    padding-top: 48px;
  }
}

@media (max-width: 400px) {
  .welcome-card {
    padding: 26px 16px 20px;
  }

  .dynamic-title {
    font-size: 18px;
  }

  .wb-name {
    font-size: 24px;
  }
}

@media (max-height: 700px) {
  .welcome-card {
    padding: 26px 26px 20px;
  }

  .brand-row {
    margin-bottom: 16px;
  }

  .welcome-sub {
    margin-bottom: 16px;
  }
}

@supports (padding: env(safe-area-inset-top)) {
  .btn-back-geinz {
    top: calc(14px + env(safe-area-inset-top));
  }

  .modal-scroll {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .selector-content {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.login-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.login-inline .field-group {
  margin-bottom: 10px;
}

.login-inline .btn {
  margin-top: 4px;
  margin-bottom: 10px;
}

.title-wrap {
  min-height: 3.2em;
}

/* evita que la tarjeta salte al cambiar el texto */
.dynamic-title {
  opacity: 1;
}

.btn-github {
  width: 100%;
  padding: 13px 20px;
  background: #24292f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
}

.btn-github:hover {
  background: #2f363d;
}

.btn-github .icon-svg {
  width: 18px;
  height: 18px;
}

/* por si el CSS viejo lo dejaba oculto */
/* ===== SIN RECUADRO: el contenido flota sobre el fondo ===== */
.welcome-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  max-width: 380px !important;
  animation: none;
}

.brand-link {
  display: block;
}

.brand-row {
  justify-content: center;
  margin-bottom: 18px;
}

.title-wrap {
  justify-content: center;
  min-height: 0 !important;
  margin-bottom: 8px;
}

.dynamic-title {
  text-align: center;
}

.welcome-sub {
  text-align: center;
  margin-bottom: 22px;
}

/* ===== Botones: ícono a la izquierda, texto centrado ===== */
.actions-stack {
  margin-bottom: 0;
  gap: 10px;
}

.actions-stack .btn {
  position: relative;
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
}

.actions-stack .btn>img,
.actions-stack .btn>.icon-svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
}

.divider-row {
  margin: 22px 0;
  padding: 0;
}

/* ===== Autocompletado oscuro (sin fondo blanco/azul) ===== */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.input-field:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #09080d inset !important;
  box-shadow: 0 0 0 1000px #09080d inset !important;
  -webkit-text-fill-color: #f0edf8 !important;
  caret-color: #f0edf8;
  transition: background-color 9999s ease-in-out 0s;
}

.input-field:autofill {
  box-shadow: 0 0 0 1000px #09080d inset !important;
  -webkit-text-fill-color: #f0edf8 !important;
}

.radio-row {
  display: flex;
  gap: 10px;
}

.radio-opt {
  flex: 1;
  cursor: pointer;
}

.radio-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-opt span {
  display: block;
  text-align: center;
  padding: 11px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  font-size: 14px;
  color: #cfcfd6;
  transition: all .2s;
}

.radio-opt input:checked+span {
  background: rgba(139, 92, 246, .22);
  border-color: #8b5cf6;
  color: #fff;
}
/* ===== Campos de login desplegables ===== */
.login-inline { gap: 0; } /* el espacio lo maneja el contenedor, así no queda hueco al estar cerrado */

.login-fields {
  display: grid;
  grid-template-rows: 0fr;          /* cerrado: altura 0, sin alturas fijas -> funciona en cualquier pantalla */
  opacity: 0;
  transition:
    grid-template-rows .45s cubic-bezier(.4, 0, .2, 1),
    opacity .35s ease;
}
.login-fields.open {
  grid-template-rows: 1fr;          /* abierto: crece a su altura real y empuja el botón hacia abajo */
  opacity: 1;
}
.login-fields-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* padding/margin negativo para que no se recorten los focus rings de los inputs */
  padding: 4px 4px 14px;
  margin: -4px -4px 0;
}

@media (prefers-reduced-motion: reduce) {
  .login-fields { transition: none; }
}