/* ==========================================================================
   NexoMarket — Modern Local Commerce Design System (HyperFrames Inspired)
   Diseño: Limpio, Espacioso, Confiable y Ultra-Fluido
   Paleta: Lienzo Neutro (#F8FAFC), Slate Profundo (#0F172A), Azul Eléctrico (#2563EB)
   ========================================================================== */

:root {
  --color-bg-base: #F8FAFC;          /* Lienzo suave y limpio */
  --color-surface: #FFFFFF;          /* Blanco puro para tarjetas */
  --color-surface-subtle: #F1F5F9;   /* Fondo sutil */
  --color-primary: #0F172A;          /* Slate 900 corporativo */
  --color-accent: #2563EB;           /* Azul eléctrico moderno */
  --color-accent-hover: #1D4ED8;     /* Azul hover */
  --color-wa-green: #25D366;         /* Verde WhatsApp oficial */
  --color-gold: #F59E0B;             /* Dorado cálido */
  --color-trust: #10B981;            /* Verde confianza */
  --color-border: #E2E8F0;           /* Bordes sutiles */

  --font-title: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, ::before, ::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--color-bg-base);
  color: var(--color-primary);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

/* Tipografías Utilitarias */
.font-title {
  font-family: var(--font-title);
}

.font-body {
  font-family: var(--font-body);
}

/* Transiciones Suaves entre Hojas / Vistas (HyperFrames Spring Motion) */
.app-view {
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-fade-in {
  animation: viewFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tarjetas Limpias con Elevación Suave */
.retail-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.retail-card:hover {
  border-color: #CBD5E1;
}

/* Botón Principal de Conversión Moderno (Azul Eléctrico / Sunset) */
.btn-primary-modern {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary-modern:active {
  transform: translateY(0);
}

/* Botón WhatsApp de Conversión Directa */
.btn-whatsapp-temu {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-whatsapp-temu:hover {
  background: #20BA5A;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

/* Botón Temu Shimmer reemplazado por Glow de Calidad */
.btn-temu-orange {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.btn-temu-orange:hover {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

/* Píldoras de Categorías */
.category-pill-btn {
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.2s ease;
}

.category-pill-btn.active {
  background-color: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
}

/* Ocultar barra de scroll en contenedores horizontales */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sello Latente OMNEX Light */
.latent-glow-omnex-light {
  animation: omnexBreathLight 4s ease-in-out infinite;
}

@keyframes omnexBreathLight {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
  }
}

/* ==========================================================================
   VecinoBot 3D Animation & Floating Micro-Motion
   ========================================================================== */

.vecinobot-float {
  animation: vecinoFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

@keyframes vecinoFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

.vecinobot-pulse {
  animation: vecinoPulse 2.8s ease-in-out infinite;
}

@keyframes vecinoPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  }
  50% {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  }
}

/* ==========================================================================
   Motion Design & Micro-Interactions (Magic UI, Uiverse & Aceternity Standards)
   Hardware-accelerated 60 FPS CSS transitions (GPU transform & opacity)
   ========================================================================== */

/* 1. Magic UI Shimmer Button: Sweeping perimeter light beam */
.btn-magic-shimmer {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  will-change: transform;
}

.btn-magic-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: magicShimmerSweep 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes magicShimmerSweep {
  0% {
    left: -100%;
  }
  30%, 100% {
    left: 140%;
  }
}

.btn-magic-shimmer:hover {
  transform: translateY(-1.5px) scale(1.015);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35);
}

.btn-magic-shimmer:active {
  transform: translateY(0.5px) scale(0.99);
}

/* 2. Uiverse Tactile 3D Button: Real push depth physics for WhatsApp & main CTA */
.btn-tactile-3d-green {
  position: relative;
  border-bottom: 3.5px solid #15803d !important;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.btn-tactile-3d-green:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.35);
}

.btn-tactile-3d-green:active {
  border-bottom-width: 1px !important;
  transform: translateY(3px) !important;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.2) !important;
}

.btn-tactile-3d-blue {
  position: relative;
  border-bottom: 3.5px solid #1d4ed8 !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.btn-tactile-3d-blue:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.btn-tactile-3d-blue:active {
  border-bottom-width: 1px !important;
  transform: translateY(3px) !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
}

/* 3. Interactive Hover Button with Spring Icon motion */
.btn-interactive-hover {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-interactive-hover .btn-icon-spring {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-interactive-hover:hover .btn-icon-spring {
  transform: translateX(4px);
}

/* 4. Aceternity Spotlight Focus Ring for inputs & selects */
.input-spotlight-focus {
  transition: border-color 0.2s ease, box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.input-spotlight-focus:focus {
  outline: none;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 0 16px rgba(37, 99, 235, 0.12) !important;
  background-color: #ffffff !important;
}

/* 5. Dock Tab Spring Physics: Tactile tap on mobile bottom dock */
.dock-tab-spring {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  will-change: transform;
}

.dock-tab-spring:active {
  transform: scale(0.90);
}

.dock-tab-spring.active {
  transform: scale(1.03);
}


/* ==========================================================================
   6. UIVERSE PAPER AIRPLANE TAKE-OFF BUTTON (Adapted for NexoMarket Form)
   ========================================================================== */

.btn-takeoff {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --success: #10B981;
  --neutral-1: #ffffff;
  --neutral-2: #f1f5f9;
  --radius: 14px;

  cursor: pointer;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  min-height: 50px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow: hidden;
  will-change: transform;
}

.btn-takeoff:hover {
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45), 0 3px 6px rgba(0, 0, 0, 0.12);
}

.btn-takeoff:active {
  transform: translateY(1px) scale(0.99);
}

/* Outline with Conic Gradient Spin on Hover */
.btn-takeoff .outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
  inset: -1.5px;
  pointer-events: none;
}

.btn-takeoff .outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 180deg,
    transparent 60%,
    rgba(255, 255, 255, 0.8) 80%,
    transparent 100%
  );
  animation: planeSpin 2.2s linear infinite;
  animation-play-state: paused;
}

@keyframes planeSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-takeoff:hover .outline {
  opacity: 1;
}

.btn-takeoff:hover .outline::before {
  animation-play-state: running;
}

/* States container */
.btn-takeoff .state {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.btn-takeoff .state p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.btn-takeoff .state .icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Airplane Levitation & Tilt */
.btn-takeoff:hover .state--default .icon {
  transform: rotate(45deg) scale(1.2);
}

/* Animated Letters Wave on Hover */
.btn-takeoff .state p span {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.btn-takeoff:hover .state--default p span {
  animation: planeLetterWave 0.5s ease forwards calc(var(--i) * 0.02s);
}

@keyframes planeLetterWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); color: #93c5fd; }
}

/* Contrail (Smoke trail) behind airplane */
.btn-takeoff .state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -8px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.85));
  pointer-events: none;
}

/* Sending State Triggered by Form Submit */
.btn-takeoff.is-sending .state--default .icon svg {
  animation: planeTakeOff 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.btn-takeoff.is-sending .state--default .icon:before {
  animation: planeContrail 0.85s linear forwards;
}

@keyframes planeTakeOff {
  0% {
    opacity: 1;
    transform: translateX(0) rotate(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(60px) translateY(-10px) rotate(45deg) scale(1.6);
  }
  100% {
    opacity: 0;
    transform: translateX(180px) translateY(-30px) rotate(45deg) scale(0);
  }
}

@keyframes planeContrail {
  0% { width: 0; opacity: 1; }
  30% { width: 40px; opacity: 0.9; }
  70% { width: 100px; opacity: 0.6; }
  100% { width: 180px; opacity: 0; }
}

/* Success / Sent State */
.btn-takeoff .state--sent {
  display: none;
}

.btn-takeoff.is-sent {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
}

.btn-takeoff.is-sent .state--default {
  display: none !important;
}

.btn-takeoff.is-sent .state--sent {
  display: flex !important;
}

.btn-takeoff.is-sent .state--sent .icon svg {
  animation: checkPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkPopIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-30deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.25) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* ==========================================================================
   7. WHATSAPP ORDER PULSE BUTTON (Ultra-engaging conversion for entrepreneurs)
   ========================================================================== */

.btn-order-whatsapp-pulse {
  position: relative;
  background-color: #25D366;
  border-bottom: 3.5px solid #16a34a !important;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.28);
  transition: all 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  will-change: transform, box-shadow;
}

/* Specular Shimmer Sweep across the button */
.btn-order-whatsapp-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: waShimmer 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes waShimmer {
  0%, 60% { left: -120%; }
  100% { left: 180%; }
}

.btn-order-whatsapp-pulse:hover {
  background-color: #22c55e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.42);
}

.btn-order-whatsapp-pulse:active {
  border-bottom-width: 1px !important;
  transform: translateY(2.5px) !important;
  box-shadow: 0 1px 4px rgba(37, 211, 102, 0.25) !important;
}

/* WhatsApp Icon Vibration Ping */
.btn-order-whatsapp-pulse .wa-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  will-change: transform;
}

.btn-order-whatsapp-pulse:hover .wa-icon {
  animation: waVibrate 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite alternate;
}

@keyframes waVibrate {
  0% { transform: rotate(0deg) scale(1.05); }
  25% { transform: rotate(-12deg) scale(1.15); }
  75% { transform: rotate(12deg) scale(1.15); }
  100% { transform: rotate(0deg) scale(1.05); }
}

/* Dynamic Order Arrow Slide */
.btn-order-whatsapp-pulse .order-arrow {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-order-whatsapp-pulse:hover .order-arrow {
  transform: translateX(3px);
}

/* Live Active Beacon (Indica comercio activo para pedidos inmediatos) */
.wa-live-beacon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-live-beacon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 90px;
  background-color: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}


/* ==========================================================================
   8. SQUIRCLE GEOMETRY (Continuous Curvature macOS / iOS Dock Style)
   ========================================================================== */

.squircle-box {
  clip-path: url(#squircleClip);
  -webkit-clip-path: url(#squircleClip);
  will-change: transform, box-shadow;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}


/* ==========================================================================
   9. DOCK ICON PILL (Curvatura Suave Orgánica y Sedosa)
   ========================================================================== */

.dock-icon-pill {
  border-radius: 18px;
  will-change: transform, box-shadow;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}


/* ==========================================================================
   10. DOCK ELEVATION PHYSICS (Universal & High-Response for All Buttons)
   ========================================================================== */

.nav-tab-btn {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tab-btn .dock-icon-pill {
  transform: translateY(0) scale(1);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
  will-change: transform, box-shadow;
}

/* Hover de elevación táctil (Realce en hover para TODOS los botones) */
.nav-tab-btn:hover .dock-icon-pill {
  transform: translateY(-8px) scale(1.10) !important;
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.45) !important;
}

.nav-tab-btn[data-view="home"]:hover .dock-icon-pill {
  transform: translateY(-8px) scale(1.10) !important;
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.55) !important;
  border-color: #60a5fa !important;
}

.nav-tab-btn[data-view="directory"]:hover .dock-icon-pill {
  transform: translateY(-8px) scale(1.10) !important;
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.45) !important;
  border-color: #3b82f6 !important;
}

.nav-tab-btn[data-view="offers"]:hover .dock-icon-pill {
  transform: translateY(-8px) scale(1.10) !important;
  box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.55) !important;
  border-color: #f59e0b !important;
}

.nav-tab-btn[data-view="portal"]:hover .dock-icon-pill {
  transform: translateY(-8px) scale(1.10) !important;
  box-shadow: 0 14px 28px -4px rgba(99, 102, 241, 0.45) !important;
  border-color: #818cf8 !important;
}

.nav-tab-btn[data-view="vecinobot"]:hover .dock-icon-pill {
  transform: translateY(-8px) scale(1.10) !important;
  box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.55) !important;
  border-color: #fbbf24 !important;
}

/* Estado activo / seleccionado: SOLO EL BOTÓN TOCADO / ACTIVO SE ELEVA */
.nav-tab-btn.active .dock-icon-pill,
.nav-tab-btn[data-active="true"] .dock-icon-pill {
  transform: translateY(-8px) scale(1.10) !important;
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.5) !important;
  border-color: #ffffff !important;
}

.nav-tab-btn[data-view="home"].active .dock-icon-pill,
.nav-tab-btn[data-view="home"][data-active="true"] .dock-icon-pill {
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.65), 0 0 12px rgba(245, 158, 11, 0.4) !important;
  border-color: #fde68a !important;
}

.nav-tab-btn[data-view="directory"].active .dock-icon-pill,
.nav-tab-btn[data-view="directory"][data-active="true"] .dock-icon-pill {
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.6) !important;
  border-color: #93c5fd !important;
}

.nav-tab-btn[data-view="offers"].active .dock-icon-pill,
.nav-tab-btn[data-view="offers"][data-active="true"] .dock-icon-pill {
  box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.65) !important;
  border-color: #fde68a !important;
}

.nav-tab-btn[data-view="portal"].active .dock-icon-pill,
.nav-tab-btn[data-view="portal"][data-active="true"] .dock-icon-pill {
  box-shadow: 0 14px 28px -4px rgba(99, 102, 241, 0.6) !important;
  border-color: #c7d2fe !important;
}

/* Presión táctil (:active) */
.nav-tab-btn:active .dock-icon-pill {
  transform: translateY(-3px) scale(0.96) !important;
}


/* ==========================================================================
   8. HERO DINÁMICO COMUNITARIO: KEN BURNS & AMBIENT GLOW (HUMAN TOUCH)
   ========================================================================== */

.hero-dynamic-container {
  position: relative;
  overflow: hidden;
}

.hero-dynamic-bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.1) brightness(0.88);
  animation: kenBurnsMotion 28s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

@keyframes kenBurnsMotion {
  0% {
    transform: scale(1.0) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1.5%, -1%);
  }
  100% {
    transform: scale(1.04) translate(1.5%, 1%);
  }
}

/* Capa de atmósfera degradada para contraste impecable de textos y botones */
.hero-scrim-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.82) 45%,
    rgba(15, 23, 42, 0.58) 85%,
    rgba(15, 23, 42, 0.75) 100%
  );
  pointer-events: none;
}

.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 75% 35%,
    transparent 15%,
    rgba(15, 23, 42, 0.35) 55%,
    rgba(15, 23, 42, 0.88) 100%
  );
  pointer-events: none;
}

.hero-golden-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: floatAmbientGlow 14s ease-in-out infinite alternate;
}

@keyframes floatAmbientGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(30px, -20px) scale(1.15);
    opacity: 0.9;
  }
  100% {
    transform: translate(-20px, 25px) scale(0.95);
    opacity: 0.5;
  }
}


/* ==========================================================================
   9. TARJETA DE INGRESO MASTER (LUXURY DARK & NEXOMARKET SIGNATURE GLOW)
   ========================================================================== */

.login-wrapper {
  --blob-1-color: #2563eb; /* Azul Eléctrico NexoMarket */
  --blob-2-color: #f59e0b; /* Ámbar Dorado Comunitario */
  --blob-3-color: #4f46e5; /* Índigo Profundo */
  --btn-hover-glow: rgba(37, 99, 235, 0.35);
  --input-focus-glow: rgba(59, 130, 246, 0.25);
  position: relative;
  animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
  width: 100%;
  max-width: 370px;
}

@keyframes floatUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  position: relative;
  width: 100%;
  background-color: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 30px 24px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-wrapper:hover .login-card {
  transform: translateY(-4px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.7),
    0 12px 28px rgba(0, 0, 0, 0.5);
}

.glow-blob {
  position: absolute;
  filter: blur(48px);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.55;
  animation: pulseGlow 5s infinite alternate ease-in-out;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
}

.login-wrapper:hover .glow-blob {
  opacity: 0.75;
  filter: blur(40px);
}

.blob-1 {
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: var(--blob-1-color);
}

.blob-2 {
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: var(--blob-2-color);
  animation-delay: -2.5s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 120px;
  height: 120px;
  background: var(--blob-3-color);
  opacity: 0.25;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.92) translate(0, 0);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.08) translate(8px, -8px);
    opacity: 0.7;
  }
}

.dark-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(10, 14, 23, 0.82) 20%,
    rgba(13, 17, 23, 0.95) 100%
  );
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

.view-container {
  position: relative;
  z-index: 10;
}

.decorative-emblem {
  width: 3.2em;
  height: 3.2em;
  margin: 0 auto 0.7em auto;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.login-title {
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.login-subtitle {
  color: rgba(226, 232, 240, 0.7);
  font-size: 12px;
  font-weight: 400;
}

.role-tab-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-top: 16px;
  margin-bottom: 18px;
}

.role-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.role-tab-btn.active-merchant {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.role-tab-btn.active-admin {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.dark-input-group {
  margin-bottom: 14px;
  position: relative;
}

.dark-input-field {
  width: 100%;
  padding: 0.85em 1.1em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark-input-field::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.dark-input-field:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px var(--input-focus-glow);
  transform: translateY(-1px);
}

.dark-btn-submit {
  width: 100%;
  padding: 0.85em 1.2em;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px var(--btn-hover-glow);
}

.dark-btn-submit:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.dark-btn-submit:active {
  transform: translateY(0);
}

.dark-btn-admin {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
}

.dark-btn-admin:hover {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.3);
}

.dark-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.dark-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.08);
}

.dark-quick-btn {
  padding: 5px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark-quick-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}
