/* ============================================================
   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: center;
  padding: 32px 24px;
  gap: 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); }