/* ==========================================================================
   1000 DIARIOS - STYLESHEET
   High-performance mobile-first driver SaaS UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button {
  background: transparent;
  color: inherit;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   CYBER 3D BACKGROUND & TURBO DEPTH SYSTEM
   ========================================================================== */
.cyber-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* 3D Perspective Cyber Horizon Floor */
.cyber-grid {
  position: absolute;
  bottom: -15%;
  left: -50%;
  width: 200%;
  height: 85vh;
  background-image: 
    linear-gradient(to right, var(--cyber-grid-line) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--cyber-grid-line-secondary) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
  transform: perspective(380px) rotateX(72deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, black 25%, rgba(0, 0, 0, 0.8) 60%, transparent 98%);
  -webkit-mask-image: linear-gradient(to top, black 25%, rgba(0, 0, 0, 0.8) 60%, transparent 98%);
  opacity: 0.95;
  animation: cyber-grid-drive 12s linear infinite;
}

@keyframes cyber-grid-drive {
  0% { transform: perspective(380px) rotateX(72deg) translateY(0); }
  100% { transform: perspective(380px) rotateX(72deg) translateY(56px); }
}

/* Luminous Cyber Horizon Laser Line (Haz de Luz Láser Dinámico) */
.cyber-horizon-line {
  position: absolute;
  bottom: calc(85vh - 120px);
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.4) 20%, rgba(52, 211, 153, 0.95) 50%, rgba(34, 211, 238, 0.4) 80%, transparent 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.6), 0 0 50px rgba(16, 185, 129, 0.45);
  opacity: 0.75;
  animation: cyber-horizon-flow 8s linear infinite, cyber-horizon-pulse 4s ease-in-out infinite alternate;
}

@keyframes cyber-horizon-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes cyber-horizon-pulse {
  0% { opacity: 0.4; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3)); }
  100% { opacity: 0.85; filter: drop-shadow(0 0 22px rgba(52, 211, 153, 0.8)); }
}

/* ==========================================================================
   3D CYBER HIGHWAY & ROAD EFFECT (Calles y Asfalto en Perspectiva Real)
   ========================================================================== */
.cyber-highway-viewport {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1280px);
  height: 98vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.32;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 32%, transparent 20%, black 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 32%, transparent 20%, black 72%);
}

.highway-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Bordillos Neón de la Carretera */
.highway-curb-left {
  stroke: #22d3ee;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.9));
}

.highway-curb-right {
  stroke: #34d399;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.9));
}

/* Carril Izquierdo (Sentido Opuesto: Fluye alejándose hacia el horizonte) */
.highway-dashed-lane-reverse {
  stroke: url(#laneLineGradReverse);
  stroke-width: 3px;
  stroke-dasharray: 24 20;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.75));
  animation: lane-stream-reverse 1.15s linear infinite;
}

@keyframes lane-stream-reverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 44; }
}

/* Carril Derecho (Sentido Propio: Fluye viniendo de frente hacia el repartidor) */
.highway-dashed-lane-forward {
  stroke: url(#laneLineGradForward);
  stroke-width: 3px;
  stroke-dasharray: 24 20;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.75));
  animation: lane-stream-forward 1.15s linear infinite;
}

@keyframes lane-stream-forward {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -44; }
}

/* Camellón Central / Divisor Doble Sentido (Doble Raya Amarilla Neón de Periférico) */
.highway-divider-center {
  stroke: url(#centerLineGrad);
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.9));
}



/* Ambient Floating Depth Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  will-change: transform;
}

.orb-emerald {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
  top: -80px;
  left: -80px;
  animation: float-orb-1 15s ease-in-out infinite alternate;
}

.orb-cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, rgba(6, 182, 212, 0) 70%);
  top: 15%;
  right: -140px;
  animation: float-orb-2 18s ease-in-out infinite alternate-reverse;
}

.orb-purple {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
  bottom: 5%;
  left: 20%;
  animation: float-orb-1 16s ease-in-out infinite alternate;
}

@keyframes float-orb-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 50px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 20px, 0) scale(0.95); }
}

@keyframes float-orb-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-45px, 35px, 0) scale(1.1); }
  100% { transform: translate3d(30px, -25px, 0) scale(0.92); }
}

/* Turbo Speed Streaks */
.speed-streaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.9) 35%, rgba(52, 211, 153, 1) 65%, transparent 100%);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  opacity: 0;
  animation: streak-fly 5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.streak-1 {
  top: 22%;
  left: -30%;
  width: 450px;
  animation-delay: 0.5s;
}

.streak-2 {
  top: 48%;
  left: -40%;
  width: 550px;
  animation-delay: 2.2s;
  animation-duration: 6s;
}

.streak-3 {
  top: 72%;
  left: -25%;
  width: 400px;
  animation-delay: 3.8s;
  animation-duration: 4.8s;
}

@keyframes streak-fly {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 0.95; }
  65% { opacity: 0.95; }
  100% { transform: translateX(calc(100vw + 600px)); opacity: 0; }
}



/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: all var(--transition-fast);
}

.navbar .nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo:active {
  transform: scale(0.97);
  transition-duration: var(--transition-press);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-400));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-inverse);
  box-shadow: 0 0 16px var(--emerald-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo:hover .logo-icon {
  box-shadow: 0 0 24px var(--emerald-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-text span {
  color: var(--emerald-400);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.975);
  transition-duration: var(--transition-press);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #ffffff;
  box-shadow: 0 0 24px var(--emerald-glow-strong), 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(52, 211, 153, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: btn-shine 3.8s infinite ease-in-out;
}

@keyframes btn-shine {
  0% { left: -100%; }
  25% { left: 100%; }
  100% { left: 100%; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px var(--emerald-glow-strong), 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.12);
}

.btn-primary:active {
  transform: translateY(0) scale(0.975);
  box-shadow: 0 0 16px var(--emerald-glow-strong), 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(0.96);
  transition-duration: var(--transition-press);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--emerald-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.975);
  transition-duration: var(--transition-press);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0) scale(0.975);
  transition-duration: var(--transition-press);
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1.5px solid var(--emerald-500) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: var(--emerald-400) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-outline-emerald:active {
  transform: translateY(0) scale(0.975) !important;
  transition-duration: var(--transition-press);
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.16) !important;
  border: 1.5px solid var(--cyan-500) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.3) !important;
  border-color: var(--cyan-400) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-outline-cyan:active {
  transform: translateY(0) scale(0.975) !important;
  transition-duration: var(--transition-press);
}

.btn-outline-rose {
  background: rgba(244, 63, 94, 0.16) !important;
  border: 1.5px solid var(--rose-500) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-outline-rose:hover {
  background: rgba(244, 63, 94, 0.3) !important;
  border-color: var(--rose-400) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-outline-rose:active {
  transform: translateY(0) scale(0.975) !important;
  transition-duration: var(--transition-press);
}

.btn-nav-logout {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--rose-400);
  transition: all var(--transition-fast);
}

.btn-nav-logout:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: var(--rose-400);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
  transform: translateY(-1px);
}

.btn-nav-logout:active {
  transform: translateY(0) scale(0.975);
  transition-duration: var(--transition-press);
}

.btn-admin-nav {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(185, 28, 28, 0.35));
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
  transition: all var(--transition-fast);
}

.btn-admin-nav:hover,
.btn-admin-nav.active-view {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(185, 28, 28, 0.65));
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
  transform: translateY(-1px);
}

.btn-admin-nav:active {
  transform: translateY(0) scale(0.975);
  transition-duration: var(--transition-press);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-top-color: rgba(255, 255, 255, 0.3);
  color: var(--emerald-300);
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.badge-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.badge-live::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--emerald-400);
  opacity: 0;
  animation: radar-wave 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes radar-wave {
  0% { transform: scale(1); opacity: 0.7; }
  60% { transform: scale(1.12, 1.3); opacity: 0; }
  100% { transform: scale(1.12, 1.3); opacity: 0; }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 2.2rem;
  text-align: center;
}

/* Luminous Hero Backlight Core */
.hero-section::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 95vw);
  height: 520px;
  background: radial-gradient(
    ellipse at center,
    rgba(16, 185, 129, 0.25) 0%,
    rgba(6, 182, 212, 0.18) 40%,
    rgba(99, 102, 241, 0.08) 65%,
    transparent 80%
  );
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 1.25rem auto 1.1rem;
  max-width: 980px;
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.95);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #10b981 0%, #34d399 30%, #22d3ee 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 32px rgba(16, 185, 129, 0.7));
}

.hero-desc {
  font-size: clamp(1rem, 2.3vw, 1.22rem);
  color: #94a3b8;
  max-width: 740px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 440px;
  width: 100%;
  margin: 0 auto 1.15rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

#hero-btn-start-trial {
  width: 100%;
  padding: 0.95rem 1.6rem;
  font-size: 1.08rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.55), 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  letter-spacing: -0.01em;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

#hero-btn-start-trial.btn-with-creator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  padding: 0.85rem 1.2rem;
}

.hero-btn-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-btn-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef08a;
  margin-top: 0.2rem;
  opacity: 0.96;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-cta-group {
    max-width: 100% !important;
    padding: 0 0.5rem;
  }
  #hero-btn-start-trial {
    padding: 0.8rem 1rem !important;
  }
  .hero-btn-title {
    font-size: 0.96rem !important;
  }
  .hero-btn-sub {
    font-size: 0.78rem !important;
  }
}

#hero-btn-start-trial:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.75), 0 12px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

.hero-link-secondary:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(1px);
}

.hero-metrics {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2.2rem;
  position: relative;
  z-index: 2;
}

.hero-metrics .metric-card {
  flex: 1 1 0;
  max-width: 280px;
  min-width: 0;
}

.metric-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.22) 0%, rgba(9, 14, 26, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1rem;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: 
    0 16px 40px -8px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform-style: preserve-3d;
  transition: transform var(--transition-spring), box-shadow var(--transition-normal), border-color var(--transition-fast);
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-400), var(--cyan-400), transparent);
  box-shadow: 0 0 14px var(--cyan-400);
}

.metric-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 
    0 24px 50px -6px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(16, 185, 129, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(52, 211, 153, 0.55);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  max-width: 100%;
  line-height: 1.15;
  color: #34d399;
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 35%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.55));
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   KINETIC HERO METRIC TICKER (VERTICAL SLIDE CON MOTION BLUR)
   ========================================================================== */
.hero-metrics .metric-card.kinetic-metric-card {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.85rem;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.kinetic-metric-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  filter: blur(0);
  will-change: transform, opacity, filter;
}

.kinetic-slide-exit {
  transform: translate3d(0, -18px, 0) !important;
  opacity: 0 !important;
  filter: blur(2px) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, filter 0.28s ease !important;
}

.kinetic-slide-prep {
  transform: translate3d(0, 18px, 0) !important;
  opacity: 0 !important;
  filter: blur(2px) !important;
  transition: none !important;
}

.kinetic-slide-enter {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
  filter: blur(0) !important;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, filter 0.35s ease !important;
}

.kinetic-metric-card:active {
  transform: scale(0.975);
}

/* ==========================================================================
   LIVE ORDER DISPATCH RADAR HUD (CRO Retención & Conversión Inmediata)
   ========================================================================== */
.live-dispatch-hud {
  max-width: 740px;
  margin: 2.2rem auto 0;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.06) 0%, rgba(13, 20, 36, 0.20) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: 
    0 16px 40px -5px rgba(0, 0, 0, 0.32),
    0 0 35px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  text-align: left;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-spring), box-shadow var(--transition-normal);
}

.live-dispatch-hud:hover {
  box-shadow: 
    0 20px 50px -5px rgba(0, 0, 0, 0.42),
    0 0 45px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hud-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.hud-live-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--emerald-400);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hud-stat-ping {
  color: var(--cyan-400);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-chats {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hud-msg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 0.5rem;
}

.hud-msg-incoming {
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hud-group-pill {
  font-size: 0.75rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan-400);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-weight: 600;
}

.hud-msg-captured {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

.hud-bot-response {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--emerald-400);
  font-weight: 700;
  flex-wrap: wrap;
}

.hud-win-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  color: #070a13;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--emerald-glow);
  white-space: nowrap;
}

/* ==========================================================================
   COMPARATIVA INTERACTIVA: TU DÍA EN LA MOTO (OPCIÓN A: TOGGLE SWITCH)
   ========================================================================== */
.comparativa-section {
  padding: 1.5rem 0 2rem;
  position: relative;
  z-index: 2;
}

.compare-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.compare-toggle-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 20, 36, 0.35);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.25);
  max-width: 95%;
}

.compare-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}

.compare-toggle-btn:active {
  transform: scale(0.96);
}

.compare-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.25s ease;
}

.compare-indicator-dot.dot-red {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.compare-indicator-dot.dot-green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Estado activo: Sin Turbo */
.compare-toggle-btn.active#btn-compare-sin {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Estado activo: Con TurboDelivery */
.compare-toggle-btn.active#btn-compare-con {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Tarjeta Principal (Frosted Glass) */
.compare-card-wrapper {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3.5vw, 1.85rem);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, rgba(13, 20, 36, 0.20) 100%);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Glow specular superior */
.compare-card-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

/* Estilos de Card: Modo Con Turbo */
.compare-card-wrapper.state-con {
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32),
              0 0 35px rgba(16, 185, 129, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Estilos de Card: Modo Sin Turbo */
.compare-card-wrapper.state-sin {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.05) 0%, rgba(13, 20, 36, 0.20) 100%);
  border: 1px solid rgba(239, 68, 68, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32),
              0 0 35px rgba(239, 68, 68, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Vistas */
.compare-card-view {
  animation: compareFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes compareFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compare-card-wrapper.state-con .view-sin {
  display: none;
}
.compare-card-wrapper.state-con .view-con {
  display: block;
}

.compare-card-wrapper.state-sin .view-sin {
  display: block;
}
.compare-card-wrapper.state-sin .view-con {
  display: none;
}

/* Encabezado dentro de la Card */
.compare-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.compare-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.compare-card-title.text-red {
  color: #f87171;
}

.compare-card-title.text-green {
  color: #34d399;
}

.compare-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.compare-pill.pill-red {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.compare-pill.pill-green {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Lista de Elementos */
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compare-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compare-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.compare-ico {
  font-size: 1.35rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.compare-txt {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.compare-txt strong {
  font-size: 0.95rem;
  color: #f1f5f9;
  font-weight: 700;
  line-height: 1.3;
}

.view-sin .compare-txt strong {
  color: #fecaca;
}

.view-con .compare-txt strong {
  color: #ecfdf5;
}

.compare-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.3;
}

.compare-switch-cta-wrap {
  margin-top: 1.15rem;
  text-align: center;
}

.btn-compare-switch-cta {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px dashed rgba(239, 68, 68, 0.4);
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  width: 100%;
}

.btn-compare-switch-cta:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.btn-compare-switch-cta:active {
  transform: scale(0.98);
}

/* ==========================================================================
   CALCULATOR SECTION
   ========================================================================== */
.calc-section {
  padding: 0.75rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.calc-box {
  background: linear-gradient(135deg, rgba(22, 33, 58, 0.22) 0%, rgba(11, 17, 32, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  transform-style: preserve-3d;
  transition: transform var(--transition-spring), box-shadow var(--transition-normal);
}

.calc-box:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-top-color: rgba(52, 211, 153, 0.55);
}

.calc-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.calc-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.calc-slider-group {
  margin-bottom: 1.5rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  accent-color: var(--emerald-500);
  outline: none;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--emerald-glow);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.calc-result-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.calc-result-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emerald-400);
}

/* ==========================================================================
   RETO DE REFLEJOS: TÚ VS TURBO (INTERACTIVO)
   ========================================================================== */
.reflex-challenge-section {
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.reflex-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(13, 20, 36, 0.20) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  text-align: center;
  position: relative;
}

.reflex-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber-400);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reflex-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.reflex-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.reflex-board {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.reflex-board.state-waiting {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.reflex-board.state-go {
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.35);
  animation: reflexPulseBorder 0.8s infinite alternate;
}

@keyframes reflexPulseBorder {
  0% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
  100% { box-shadow: 0 0 45px rgba(16, 185, 129, 0.6); }
}

.reflex-lights-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-full);
  display: inline-flex;
}

.traffic-light {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.traffic-light.light-red.active {
  background: #f43f5e;
  box-shadow: 0 0 18px #f43f5e;
}

.traffic-light.light-amber.active {
  background: #fbbf24;
  box-shadow: 0 0 18px #fbbf24;
  animation: amberPulse 0.5s infinite alternate;
}

@keyframes amberPulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.traffic-light.light-green.active {
  background: #10b981;
  box-shadow: 0 0 24px #10b981, 0 0 40px rgba(16, 185, 129, 0.8);
}

.reflex-status-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  min-height: 26px;
  font-weight: 500;
}

.reflex-order-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(13, 20, 36, 0.28) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 185, 129, 0.2);
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.reflex-order-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.reflex-group-tag {
  color: var(--emerald-400);
  font-weight: 700;
}

.reflex-order-price {
  background: var(--emerald-500);
  color: #070a13;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.reflex-order-text {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.reflex-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.reflex-btn-trigger {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  padding: 1.15rem 2.5rem !important;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important;
  color: #070a13 !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.8) !important;
  transform: scale(1.05);
  cursor: pointer;
  animation: btnPulse 0.4s infinite alternate;
}

@keyframes btnPulse {
  0% { transform: scale(1.03); }
  100% { transform: scale(1.08); }
}

.reflex-results {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.reflex-vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .reflex-vs-grid {
    grid-template-columns: 1fr;
  }
}

.reflex-vs-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reflex-vs-card.card-human {
  border-color: rgba(245, 158, 11, 0.3);
}

.reflex-vs-card.card-turbo {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

.reflex-card-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.reflex-time {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.card-human .reflex-time {
  color: var(--amber-400);
}

.card-turbo .reflex-time {
  color: var(--emerald-400);
}

.reflex-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.reflex-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-human {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.bar-turbo {
  background: linear-gradient(90deg, #10b981, #22d3ee);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.reflex-note {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.reflex-verdict {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.verdict-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.verdict-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 0.3rem;
}

.verdict-text {
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.reflex-footer-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   LO QUE TE PERDISTE MIENTRAS DUDAS (OPPORTUNITY COST SECTION)
   ========================================================================== */
.opportunity-cost-section {
  padding: 2.5rem 0 3.5rem;
  position: relative;
  z-index: 1;
}

.opp-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(13, 20, 36, 0.20) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(34, 211, 238, 0.55);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 32px rgba(6, 182, 212, 0.12);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

.opp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.opp-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cyan-400);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.opp-timer-tag {
  color: var(--text-secondary);
  font-weight: 600;
}

.opp-timer-digits {
  color: var(--amber-400);
  font-weight: 800;
}

.opp-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.opp-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.opp-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.opp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .opp-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.opp-metric-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-md);
  padding: 1.15rem 0.85rem;
  text-align: center;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform var(--transition-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.opp-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.opp-metric-icon {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

.opp-metric-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.opp-metric-val.highlight-cyan {
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.opp-metric-val.highlight-emerald {
  color: #34d399;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.2);
}

.opp-metric-val.highlight-amber {
  color: #fbbf24;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.opp-bikes-fleet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1.35rem;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.35));
  user-select: none;
}

.opp-bikes-fleet span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.opp-metric-card:hover .opp-bikes-fleet span:nth-child(1) {
  transform: translateX(-3px);
}

.opp-metric-card:hover .opp-bikes-fleet span:nth-child(3) {
  transform: translateX(3px);
}

.opp-metric-lbl {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.35;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opp-metric-sub {
  display: none !important;
}

.opp-feed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, rgba(13, 20, 36, 0.20) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 20px rgba(6, 182, 212, 0.08);
}

.opp-feed-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.opp-feed-text {
  color: #f1f5f9;
  font-weight: 600;
  transition: opacity 0.25s ease;
}

.opp-cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.opp-cta-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex: 1;
  min-width: 250px;
}

.opp-cta-btn {
  white-space: nowrap;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 32, 54, 0.45) 0%, rgba(10, 16, 30, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 28px rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  transform-style: preserve-3d;
  transition: transform var(--transition-spring), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--emerald-400);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 36px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pricing-card.featured {
  border-color: rgba(16, 185, 129, 0.55);
  border-top-color: rgba(6, 182, 212, 0.65);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(10, 16, 30, 0.70) 100%);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.25), 0 16px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

/* Animated Border Light Beam */
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    from 0deg,
    transparent 0 320deg,
    var(--emerald-400) 340deg,
    var(--cyan-400) 360deg
  );
  animation: beam-spin 7s linear infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(2px);
}

.pricing-card.featured > * {
  position: relative;
  z-index: 1;
}

@keyframes beam-spin {
  100% { transform: rotate(360deg); }
}

/* 3D Interactive Tilt Utility */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}


.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  color: #070a13;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

.plan-desc {
  color: #cbd5e1 !important;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

.plan-price {
  margin: 0.85rem 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald-400);
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.amount {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 850;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  -webkit-font-smoothing: antialiased;
}

.period {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.015em;
}

.plan-features {
  list-style: none;
  margin: 1.35rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #cbd5e1;
  padding: 0.38rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.plan-features li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: var(--emerald-400);
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 0.12rem;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.feature-text {
  flex: 1;
  color: #cbd5e1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.feature-text strong {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.payment-methods-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SCARCITY PILL & 100% GUARANTEE BANNER (CRO Trust & Urgency)
   ========================================================================== */
.scarcity-pill-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.scarcity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--rose-400);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.social-proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-400);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
}

.guarantee-banner {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 20, 36, 0.20) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-top-color: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.85rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 28px rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  text-align: left;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.guarantee-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 36px rgba(16, 185, 129, 0.22);
}

.guarantee-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.5));
}

.guarantee-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.guarantee-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   CÁPSULA FLOTANTE INTERACTIVA (BOTTOM-LEFT) & SCROLL TO TOP (BOTTOM-RIGHT)
   ========================================================================== */
.sticky-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose-400);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.sticky-btn {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Contenedor Flotante de la Cápsula (Izquierda) */
.sticky-checkout-capsule {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 102;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-checkout-capsule.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* 1. Botón Colapsado / Píldora Compacta */
.capsule-pill-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(11, 17, 32, 0.55);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.15rem;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(16, 185, 129, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  outline: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.capsule-pill-trigger:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-400);
  box-shadow: 
    0 16px 38px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.capsule-pill-trigger:active {
  transform: translateY(0) scale(0.97);
}

.capsule-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.capsule-pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--emerald-400);
  animation: capsulePulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes capsulePulse {
  0% { transform: scale(0.9); opacity: 1; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.capsule-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.capsule-text {
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.capsule-chevron {
  font-size: 0.72rem;
  color: var(--emerald-400);
  margin-left: 0.15rem;
  transition: transform 0.25s ease;
}

/* 2. Panel Desplegable (Caja Expandida) */
.capsule-expanded-content {
  display: none;
  width: min(88vw, 360px);
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg, 18px);
  padding: 1.1rem 1.25rem;
  box-shadow: 
    0 24px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(16, 185, 129, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  transform-origin: bottom left;
  animation: capsuleExpandAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes capsuleExpandAnim {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sticky-checkout-capsule.expanded .capsule-pill-trigger {
  display: none;
}

.sticky-checkout-capsule.expanded .capsule-expanded-content {
  display: block;
}

.capsule-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn-capsule-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  outline: none;
  padding: 0;
}

.btn-capsule-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff;
  transform: rotate(90deg);
}

.capsule-caption {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

.capsule-action {
  display: flex;
}

.capsule-cta-btn {
  width: 100%;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.15rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}

/* Botón Flotante Scroll To Top (Global: Landing y 4 Pestañas del Portal) */
.btn-scroll-top {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: 1.5rem;
  z-index: 102;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(11, 17, 32, 0.55);
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--cyan-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(6, 182, 212, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background-color 0.25s ease,
              border-color 0.25s ease;
  outline: none;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (hover: hover) {
  .btn-scroll-top:hover {
    background: rgba(6, 182, 212, 0.26);
    border-color: var(--cyan-400);
    color: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 30px rgba(6, 182, 212, 0.5);
    transform: translateY(-3px) scale(1.05);
  }

  .btn-scroll-top:hover .scroll-arrow-icon {
    transform: translateY(-2px);
  }

  .btn-scroll-top:hover .scroll-arrow-label {
    color: #fff;
  }
}

.btn-scroll-top:active {
  transform: translateY(0) scale(0.92);
  background: rgba(6, 182, 212, 0.35);
}

.btn-scroll-top .scroll-arrow-icon {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn-scroll-top:hover .scroll-arrow-icon {
  transform: translateY(-2px);
}

.btn-scroll-top .scroll-arrow-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
  color: var(--text-secondary);
}

.btn-scroll-top:hover .scroll-arrow-label {
  color: #fff;
}

@media (max-width: 600px) {
  .sticky-checkout-capsule {
    bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
    left: 0.85rem;
  }
  .capsule-expanded-content {
    width: calc(100vw - 1.7rem);
    max-width: 340px;
  }
  .btn-scroll-top {
    bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
    right: 0.9rem;
    width: 44px;
    height: 44px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 16px rgba(6, 182, 212, 0.32);
  }
  .btn-scroll-top .scroll-arrow-icon {
    font-size: 0.9rem;
  }
  .btn-scroll-top .scroll-arrow-label {
    font-size: 0.55rem;
  }
  /* En móviles, cuando la pestaña de soporte está activa, ocultar el botón flotante ARRIBA para que no obstruya el chat */
  body.tab-soporte-active .btn-scroll-top,
  body:has(#portal-tab-content-soporte.active) .btn-scroll-top {
    display: none !important;
  }
}

/* ==========================================================================
   PORTAL / DASHBOARD (CLIENT AREA)
   ========================================================================== */
.portal-wrapper {
  padding: 1.75rem 0 4rem;
}

.portal-header {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .portal-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.user-meta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-avatar-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 50%;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.user-avatar-container:hover {
  transform: scale(1.05);
}

.user-avatar-container:hover .user-avatar-badge {
  background: var(--emerald-500);
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.12);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-inverse);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.user-details h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.user-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.status-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-badge-lg.active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-500);
  color: var(--emerald-400);
}

.status-badge-lg.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber-500);
  color: var(--amber-400);
}

.status-badge-lg.danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--rose-500);
  color: var(--rose-400);
}

/* Subscription Validity Banner (Frosted Glass) */
.validity-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 20, 36, 0.20) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-top-color: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 20px rgba(16, 185, 129, 0.10);
}

@media (min-width: 640px) {
  .validity-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.validity-time {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald-400);
}

/* Grid of Actions */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .portal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.action-card {
  background: linear-gradient(145deg, rgba(18, 27, 46, 0.22) 0%, rgba(10, 16, 28, 0.26) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.action-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.action-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.card-icon {
  font-size: 1.3rem;
}

/* ==========================================================================
   PAIRING CODE DISPLAY (HERO OF DRIVER PORTAL)
   ========================================================================== */
.pairing-box {
  background: var(--bg-primary);
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.pairing-box.connected {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.05);
}

.pairing-code-display {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--emerald-400);
  text-shadow: 0 0 20px var(--emerald-glow);
  margin: 0.5rem 0;
  user-select: all;
}

.timer-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.75rem 0;
}

.timer-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--cyan-400));
  width: 100%;
  transition: width 1s linear;
}

.pairing-steps-guide {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
}

.pairing-steps-guide li {
  display: flex;
  gap: 0.5rem;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   SWITCH TOGGLE (MASTER ON/OFF)
   ========================================================================== */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

/* ==========================================================================
   UNIVERSAL MOBILE TOGGLE SWITCH (iOS, Android, Huawei & Desktop)
   ========================================================================== */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  flex-shrink: 0 !important;
  margin: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-card);
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
  box-sizing: border-box;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  will-change: transform;
}

input:checked + .slider-switch {
  background-color: var(--emerald-500);
  border-color: var(--emerald-400);
  box-shadow: 0 0 12px var(--emerald-glow);
}

input:checked + .slider-switch:before {
  transform: translateX(22px);
}

.multipedido-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.multipedido-toggle-text {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   INTERACTIVE ROUTES & ZONES MANAGER
   ========================================================================== */
.routes-interactive-manager {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.zone-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.zone-card.active {
  border-color: rgba(16, 185, 129, 0.45);
  border-top-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 16px rgba(16, 185, 129, 0.15);
}

.zone-card.inactive {
  opacity: 0.6;
  border-color: var(--border-subtle);
}

.zone-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.zone-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.zone-card.active .zone-card-title {
  color: var(--emerald-400);
}

.colony-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.colony-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.colony-chip:hover {
  border-color: var(--cyan-400);
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.colony-chip:active {
  transform: scale(0.96);
  transition-duration: var(--transition-press);
}

.btn-remove-colony {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-remove-colony:hover {
  color: var(--rose-400);
}

.btn-remove-colony:active {
  transform: scale(0.85);
  transition-duration: var(--transition-press);
}

.role-view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--cyan-500);
  border-top-color: rgba(255, 255, 255, 0.3);
  color: var(--cyan-400);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.role-view-switcher:hover {
  background: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.role-view-switcher:active {
  transform: translateY(0) scale(0.97);
  transition-duration: var(--transition-press);
}

/* ==========================================================================
   PORTAL NAVIGATION TABS & TURBO CONFIGURATION
   ========================================================================== */
.portal-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 6px 0.95rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.portal-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.portal-nav-tab:hover {
  color: var(--text-main);
  border-color: var(--cyan-500);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portal-nav-tab:active {
  transform: translateY(0) scale(0.975);
  transition-duration: var(--transition-press);
}

.portal-nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.28));
  border: 1.5px solid var(--emerald-400);
  border-radius: var(--radius-full);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.32), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
}

.portal-tab-content {
  display: none;
}

.portal-tab-content.active {
  display: block;
  animation: fadeInTab 0.25s ease-in-out;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Slim Scrollbar for Groups Container (Soporte para 200-400 grupos) */
.groups-viewport-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.3) rgba(15, 23, 42, 0.4);
}

.groups-viewport-scroll::-webkit-scrollbar {
  width: 6px;
}
.groups-viewport-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
}
.groups-viewport-scroll::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.35);
  border-radius: 8px;
}
.groups-viewport-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.65);
}

/* Custom Scrollbar for Restricted Zones Viewport (Max 20 fijas) */
.restricted-viewport-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 63, 94, 0.35) rgba(15, 23, 42, 0.4);
}
.restricted-viewport-scroll::-webkit-scrollbar {
  width: 6px;
}
.restricted-viewport-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
}
.restricted-viewport-scroll::-webkit-scrollbar-thumb {
  background: rgba(244, 63, 94, 0.35);
  border-radius: 8px;
}
.restricted-viewport-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 63, 94, 0.65);
}

/* Group Item Card */
.group-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.group-item-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.group-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 180px;
}

.group-name-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.group-match-code {
  display: none;
}

.group-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Multi-Pedido & Corredores Box */
.corridor-rules-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-top: 1rem;
}

.rule-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rule-control-group label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Corridors Grid & Interactive Cards */
.corridors-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.corridor-item-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.corridor-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.corridor-item-card.active {
  border-color: rgba(16, 185, 129, 0.4);
  border-top-color: rgba(52, 211, 153, 0.45);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 16px rgba(16, 185, 129, 0.1);
}

.corridor-item-card.inactive {
  opacity: 0.65;
  border-style: dashed;
}

.corridor-add-widget-card {
  border: 2px dashed rgba(6, 182, 212, 0.45) !important;
  background: rgba(6, 182, 212, 0.03) !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.corridor-add-widget-card:hover {
  border-color: var(--cyan-400) !important;
  background: rgba(6, 182, 212, 0.08) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.18);
}

.corridor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.corridor-title-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.corridor-add-colony-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.colony-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
  min-height: 28px;
}

.colony-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  font-size: 0.76rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.colony-chip:hover {
  border-color: var(--cyan-500);
}

.colony-chip.danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--rose-400);
}

.colony-chip.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--emerald-400);
}

.colony-chip.success:hover {
  border-color: var(--emerald-400);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.btn-remove-colony,
.btn-remove-restricted,
.btn-remove-active {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-remove-colony:hover,
.btn-remove-restricted:hover,
.btn-remove-active:hover {
  color: var(--rose-400);
}

.btn-remove-colony:active,
.btn-remove-restricted:active,
.btn-remove-active:active {
  transform: scale(0.85);
  transition-duration: var(--transition-press);
}

.colony-chip.success .btn-remove-active:hover {
  color: var(--emerald-300);
}

/* Group Normalizer Preview Box */
.group-normalizer-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.group-normalizer-code {
  font-family: var(--font-mono);
  color: var(--cyan-400);
  font-weight: 700;
  word-break: break-all;
}

/* Photo Order Badge */
.badge-photo-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-400);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Active Zones Box (Colonias de Trabajo) */
.active-zones-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1.25rem;
}

/* Restricted Zones Box */
.restricted-zones-box {
  background: rgba(244, 63, 94, 0.04);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1.25rem;
}

/* ==========================================================================
   TURBO SUB-NAV SEGMENTED CONTROLS (FRACTAL FAST-SWITCH)
   ========================================================================== */
.turbo-subnav-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.45rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 72px;
  z-index: 30;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.turbo-subnav-bar::-webkit-scrollbar {
  display: none;
}

.turbo-subnav-pill {
  flex: 1 1 auto;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.turbo-subnav-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.turbo-subnav-pill:active {
  transform: scale(0.97);
}

.turbo-subnav-pill.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(16, 185, 129, 0.16));
  color: #ffffff;
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.turbo-subnav-pill[data-subtab="zonas"].active,
.turbo-subnav-pill[data-subtab="restringidas"].active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(244, 63, 94, 0.16));
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-toggle-collapsible {
  background: rgba(15, 23, 42, 0.22) !important;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.30) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

.btn-toggle-collapsible:hover {
  background: rgba(22, 33, 58, 0.35) !important;
  border-color: rgba(6, 182, 212, 0.55) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 16px rgba(6, 182, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.btn-toggle-collapsible:active {
  transform: scale(0.99);
}

.turbo-subtab-panel {
  display: none;
}

.turbo-subtab-panel.active {
  display: block;
  animation: turboSubtabIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes turboSubtabIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-card-restricted {
  border-color: rgba(244, 63, 94, 0.25);
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.06);
}



/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-glass-modal);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay:not(.open) {
  display: none !important;
}

.modal-overlay.open {
  display: flex !important;
}

.modal-card {
  background: linear-gradient(160deg, rgba(18, 27, 46, 0.78) 0%, rgba(9, 14, 25, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  position: relative;
  animation: modalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-close-btn:active {
  transform: rotate(90deg) scale(0.9);
  transition-duration: var(--transition-press);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

.form-input:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px var(--emerald-glow), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Payment Methods & MP Native Brick Polish */
.payment-method-box {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.payment-method-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

#modal-mp-brick.modal-overlay {
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#modal-mp-brick .modal-card {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  animation: modalMpIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalMpIn {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Google Sign In Button */
.btn-google {
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-google:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-google:active {
  transform: scale(0.975);
  transition-duration: var(--transition-press);
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.divider-text::before { margin-right: 0.75rem; }
.divider-text::after { margin-left: 0.75rem; }

/* ==========================================================================
   ADMIN PANEL TABLE
   ========================================================================== */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 1.25rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--bg-tertiary);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.admin-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-color: var(--emerald-500); color: var(--emerald-400); }
.toast.error { border-color: var(--rose-500); color: var(--rose-400); }


/* ============================================================================
   CENTRO DE AUTOGESTIÓN Y SOPORTE IA (TURBOSOPORTE)
   ============================================================================ */
.support-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.support-chat-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.support-chat-box {
  height: 290px;
  max-height: 290px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

.support-chat-box::-webkit-scrollbar {
  width: 6px;
}
.support-chat-box::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
.support-chat-box::-webkit-scrollbar-thumb {
  background: var(--cyan-700, #0e7490);
  border-radius: 4px;
}
.support-chat-box::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-500, #06b6d4);
}

.chat-message {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  animation: fadeInChat 0.25s ease-out;
}

@keyframes fadeInChat {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-card);
  flex-shrink: 0;
}

.chat-message.user .chat-avatar {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-500);
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-message.bot .chat-bubble {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #fff;
  text-align: left;
}

/* Carrusel Horizontal de Chips de Preguntas Rápidas */
.chat-quick-chips {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.chat-quick-chips-header {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-quick-chips-hint {
  font-size: 0.68rem;
  color: var(--cyan-400);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.85;
}

.chat-quick-chips-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0.2rem 0.45rem 0.2rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-quick-chips-scroll::-webkit-scrollbar {
  display: none;
}

.btn-chat-chip {
  flex-shrink: 0;
  white-space: nowrap;
  scroll-snap-align: start;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--text-secondary);
  padding: 0.42rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-chat-chip:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan-400);
  color: #fff;
  transform: translateY(-1px);
}

.btn-chat-chip:active {
  transform: translateY(0) scale(0.96);
  transition-duration: var(--transition-press);
}

.btn-chat-chip-urgent {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.45);
  color: #ffe4e6;
  font-weight: 700;
}

.btn-chat-chip-urgent:hover {
  background: rgba(244, 63, 94, 0.28);
  border-color: var(--rose-400);
  color: #fff;
}

.btn-chat-chip-highlight {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.55);
  color: #e0e7ff;
  font-weight: 700;
}

.btn-chat-chip-highlight:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  color: #fff;
}

/* Barra de Entrada de Chat de Soporte (Estilo Mensajería Nativa) */
.support-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 9999px;
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-chat-input-bar:focus-within {
  border-color: var(--cyan-400);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25), 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.btn-support-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-support-icon:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan-400);
  color: #fff;
  transform: scale(1.05);
}

.btn-support-icon:active {
  transform: scale(0.95);
}

.support-chat-input-field {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.92rem;
  padding: 0.55rem 0.35rem;
  font-family: inherit;
}

.support-chat-input-field::placeholder {
  color: #64748b;
  font-size: 0.86rem;
}

.btn-support-send-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--cyan-500, #06b6d4), var(--emerald-500, #10b981));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.35);
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.btn-support-send-circle:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.5);
}

.btn-support-send-circle:active:not(:disabled) {
  transform: scale(0.92);
}

.btn-support-send-circle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  background: #475569;
}

.chat-typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 4px;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--cyan-400);
  border-radius: 50%;
  animation: typingBlink 1.4s infinite both;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}


/* ============================================================================
   CENTRO DE MANDO SUPER-ADMIN (TELEMETRÍA PM2, KILL-SWITCH Y AUDITORÍA IA)
   ============================================================================ */
.admin-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 1.5rem !important;
}

.admin-kpi-grid .metric-card {
  grid-column: span 2 !important; /* Tarjetas 1, 2, 3 ocupan 1/3 (2 de 6 columnas) */
  flex: none !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 1.15rem 1rem !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: visible !important;
}

.admin-kpi-grid .metric-card.metric-card-gcp,
.admin-kpi-grid .metric-card.metric-card-dns {
  grid-column: span 3 !important; /* Tarjetas 4 y 5 de infra ocupan 1/2 (3 de 6 columnas) */
  padding: 1.15rem 1.35rem !important;
}

.admin-kpi-grid .metric-value {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.2rem, 3.2vw, 1.65rem) !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  max-width: 100% !important;
}

.admin-kpi-grid .metric-card-gcp .metric-value,
.admin-kpi-grid .metric-card-dns .metric-value {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.2rem !important;
  font-size: 1.2rem !important;
  white-space: normal !important;
}

.admin-kpi-grid .metric-card-gcp .metric-value span,
.admin-kpi-grid .metric-card-dns .metric-value span {
  max-width: 100% !important;
  line-height: 1.3 !important;
}

.admin-kpi-grid .metric-card-gcp .metric-value span:first-child,
.admin-kpi-grid .metric-card-dns .metric-value span:first-child {
  font-size: clamp(1rem, 1.8vw, 1.25rem) !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}

.admin-kpi-grid .metric-card-gcp .metric-value span:last-child,
.admin-kpi-grid .metric-card-dns .metric-value span:last-child {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.admin-kpi-grid .metric-label {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--text-muted) !important;
  margin-top: 0.45rem !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.admin-base-tabs {
  display: flex !important;
  gap: 0.45rem !important;
  background: rgba(15, 23, 42, 0.75) !important;
  padding: 0.35rem !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-subtle) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  max-width: 100% !important;
}

.admin-base-tabs::-webkit-scrollbar {
  display: none !important;
}

.admin-tab-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid transparent !important;
  user-select: none !important;
}

.btn-kill-switch {
  background: rgba(244, 63, 94, 0.12) !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  color: var(--rose-400) !important;
  padding: 0.28rem 0.65rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  letter-spacing: 0.02em !important;
}

.btn-kill-switch:hover {
  background: rgba(244, 63, 94, 0.28) !important;
  border-color: var(--rose-500) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4) !important;
  transform: translateY(-1px) !important;
}

.btn-kill-switch:active {
  transform: translateY(0) scale(0.96) !important;
  transition-duration: var(--transition-press) !important;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.telemetry-pill.online {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.08);
}

.telemetry-pill.warn {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.08);
}

.telemetry-pill.offline {
  border-color: rgba(244, 63, 94, 0.35);
  color: var(--rose-400);
  background: rgba(244, 63, 94, 0.08);
}

.proof-audit-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.proof-audit-tag.approved {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-400);
}

.proof-audit-tag.pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber-400);
}

.proof-audit-tag.rejected {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--rose-400);
}

.metadata-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* ==========================================================================
   ONBOARDING 3-STEPS SECTION (72H TRIAL CONVERSION FUNNEL)
   ========================================================================== */
.hero-micro-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-micro-trust .dot-sep {
  color: var(--cyan-500);
  opacity: 0.6;
}

.onboarding-scroll-wrapper {
  position: relative;
  height: auto;
  padding: 2.25rem 0 0.5rem;
  margin: 0;
  box-sizing: border-box;
}

.onboarding-sticky-viewport {
  width: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.onboarding-sticky-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.onboarding-sticky-header {
  margin-bottom: 0.65rem;
  width: 100%;
}

.onboarding-sticky-header .badge-live {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
}

.onboarding-sticky-header .section-title {
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.onboarding-sticky-header .section-sub {
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  max-width: 620px;
  margin: 0 auto 0.6rem;
  color: var(--text-secondary);
}

/* Step Navigation Pills Bar */
.onboarding-steps-pills-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 auto;
}

.onboarding-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.onboarding-pill-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.onboarding-pill-btn.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.28);
}

.step-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 800;
}

.onboarding-pill-btn.active .step-pill-badge {
  background: var(--cyan-500);
  color: #0b1120;
}

.onboarding-pill-line {
  width: 14px;
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
}

/* Track Viewport */
.onboarding-track-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.6rem 0;
  box-sizing: border-box;
}

.onboarding-steps-track {
  position: relative;
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
}

.onboarding-step-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 30, 52, 0.22) 0%, rgba(9, 14, 26, 0.28) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.35rem 1.2rem;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 360px;
  max-width: 82vw;
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0.38;
  transform: scale(0.92);
}

.onboarding-step-card.active-card {
  opacity: 1;
  transform: scale(1.02);
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 28px rgba(6, 182, 212, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.onboarding-step-card.step-card-featured {
  background: linear-gradient(145deg, rgba(14, 38, 64, 0.25) 0%, rgba(9, 18, 34, 0.32) 100%);
}

.onboarding-step-card.step-card-featured.active-card {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 32px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.step-badge {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
}

.step-badge.step-badge-highlight {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
  color: var(--cyan-300);
}

.step-badge.step-badge-emerald {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--emerald-400);
}

.step-icon-wrap {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.step-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.step-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.48;
  flex-grow: 1;
  margin-bottom: 0.95rem;
}

.step-card-foot {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step-check {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.onboarding-cta-wrap {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.onboarding-cta-wrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.onboarding-cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .onboarding-scroll-wrapper {
    height: auto;
    padding: 1.5rem 0 0.5rem;
  }
  .onboarding-sticky-viewport {
    height: auto;
    padding: 0;
  }
  .onboarding-sticky-header {
    margin-bottom: 0.35rem;
  }
  .onboarding-sticky-header .section-title {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
    line-height: 1.2;
  }
  .onboarding-sticky-header .section-sub {
    font-size: 0.76rem;
    margin-bottom: 0.35rem;
    line-height: 1.35;
  }
  .onboarding-steps-pills-bar {
    padding: 0.2rem 0.45rem;
    gap: 0.3rem;
  }
  .onboarding-pill-btn {
    padding: 0.22rem 0.6rem;
    font-size: 0.72rem;
  }
  .onboarding-step-card {
    width: 295px;
    max-width: 84vw;
    padding: 0.95rem 0.9rem 0.85rem;
  }
  .step-icon-wrap {
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
  }
  .step-card-title {
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
  }
  .step-card-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }
  .step-card-foot {
    padding-top: 0.5rem;
  }
  .onboarding-cta-wrap {
    margin-top: 0.45rem;
  }
  .onboarding-cta-wrap .btn-lg {
    padding: 0.7rem 1.15rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 320px;
  }
  .onboarding-cta-note {
    font-size: 0.72rem;
    margin-top: 0.25rem;
  }
}

/* ==========================================================================
   INTERACTIVE FAQ SECTION (BOTONES A TARJETAS CONVERSACIONALES)
   ========================================================================== */
.faq-section {
  position: relative;
  padding: 4.5rem 0 3rem;
  z-index: 2;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item-card {
  background: linear-gradient(150deg, rgba(20, 29, 49, 0.22) 0%, rgba(10, 15, 27, 0.28) 100%);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  overflow: hidden;
  align-self: start;
}

.faq-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.faq-item-card.open {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(160deg, rgba(22, 34, 58, 0.28) 0%, rgba(11, 17, 31, 0.35) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), 0 0 28px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
}

.faq-question-btn:active {
  transform: scale(0.985);
  transition-duration: var(--transition-press);
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
}

.faq-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  line-height: 1;
}

.faq-question-text {
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq-toggle-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.faq-item-card.open .faq-toggle-icon,
.faq-row-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.45);
  color: var(--rose-400);
}

.faq-answer-collapse {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.faq-item-card.open .faq-answer-collapse,
.faq-row-item.open .faq-answer-collapse {
  max-height: 500px;
  opacity: 1;
}

.faq-answer-body {
  padding: 0 1.25rem 1.35rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.95rem;
}

/* ==========================================================================
   FAQ BANNER CARDS: 4 VENTANAS DESPLEGABLES (CERRADAS POR DEFECTO)
   ========================================================================== */
.faq-banner-card {
  background: linear-gradient(150deg, rgba(20, 29, 49, 0.20) 0%, rgba(10, 15, 27, 0.26) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.30);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(200%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.faq-banner-card:hover {
  border-color: rgba(52, 211, 153, 0.40);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.faq-banner-card.open {
  background: linear-gradient(150deg, rgba(20, 32, 56, 0.26) 0%, rgba(10, 16, 30, 0.34) 100%);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.40), 0 0 24px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.faq-banner-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s ease, transform var(--transition-fast);
}

.faq-banner-header-btn:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-banner-header-btn:active {
  transform: scale(0.99);
}

.faq-banner-card.open .faq-banner-header-btn {
  background: rgba(16, 185, 129, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-banner-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
}

.faq-banner-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.faq-banner-card.open .faq-banner-chevron {
  transform: rotate(180deg);
  background: rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.7);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

/* DRAWER DESPLEGABLE DE CADA BANNER */
.faq-banner-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.faq-banner-card.open .faq-banner-drawer {
  max-height: 1000px;
  opacity: 1;
}

.faq-banner-drawer-inner {
  background: rgba(8, 13, 24, 0.45);
}

.faq-row-item {
  transition: background 0.2s ease;
}

.faq-row-item.open {
  background: rgba(255, 255, 255, 0.025);
}

.faq-row-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 1.25rem;
}

.faq-row-item .faq-question-btn {
  padding: 1.05rem 1.25rem;
}

.faq-answer-body strong {
  color: #ffffff;
}

.faq-answer-body em {
  color: var(--emerald-400);
  font-style: normal;
  font-weight: 700;
}

.faq-support-bar {
  margin-top: 2.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-top-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ==========================================================================
   MOBILE HAMBURGER MENU & SLIDE-OUT DRAWER
   ========================================================================== */
.btn-mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 101;
}

.btn-mobile-menu:hover,
.btn-mobile-menu:active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-400);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #f8fafc;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-mobile-menu.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.btn-mobile-menu.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.btn-mobile-menu.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  height: 100%;
  height: 100dvh;
  background: linear-gradient(180deg, #0e172a 0%, #070b14 100%);
  border-left: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.12);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.15rem;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-400);
  border-color: rgba(244, 63, 94, 0.35);
}

.mobile-drawer-user-info {
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.mobile-user-details {
  flex: 1;
  min-width: 0;
}

.mobile-user-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-user-role {
  font-size: 0.75rem;
  color: var(--emerald-400);
  font-weight: 600;
  margin-top: 2px;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
  flex: 1;
}

.mobile-nav-heading {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: #fff;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateX(4px);
}

.mobile-drawer-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-support-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.mobile-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE ENGINE FOR MOBILE (ALL TABS & VIEWS)
   ========================================================================== */
@media (max-width: 768px) {
  /* Hide desktop navbar buttons and show mobile hamburger button */
  .nav-actions {
    display: none !important;
  }
  .btn-mobile-menu {
    display: flex !important;
  }

  /* Wrap-safe buttons */
  .btn {
    white-space: normal;
  }
  .opp-cta-btn {
    white-space: normal !important;
    width: 100% !important;
    text-align: center;
  }

  /* HERO METRICS 2 COLUMNS COMPACT & BALANCED */
  .hero-metrics {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: clamp(0.5rem, 2.5vw, 0.85rem) !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto 1.6rem !important;
  }

  .hero-metrics .metric-card {
    flex: 1 1 0 !important;
    max-width: 210px !important;
    min-width: 0 !important;
    padding: clamp(0.55rem, 2.2vw, 0.8rem) clamp(0.25rem, 1.5vw, 0.45rem) !important;
  }

  .metric-value {
    font-size: clamp(0.92rem, 3.8vw, 1.35rem) !important;
    white-space: nowrap !important;
  }

  .metric-label {
    font-size: clamp(0.55rem, 2vw, 0.7rem) !important;
    line-height: 1.25 !important;
    margin-top: 0.25rem !important;
    letter-spacing: 0.02em !important;
  }

  /* Fluid typography on hero */
  .hero-title {
    font-size: clamp(1.75rem, 6.2vw, 2.45rem);
    line-height: 1.18;
  }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Trust micro-pills */
  .hero-micro-trust {
    gap: 0.4rem;
  }
  .hero-micro-trust .dot-sep {
    display: none;
  }
  .hero-micro-trust span:not(.dot-sep) {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.65rem;
    font-size: 0.74rem;
  }

  /* Opportunity section metrics */
  .opp-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .opp-metric-card {
    padding: 0.85rem 0.55rem !important;
    min-width: 0 !important;
  }
  .opp-metric-val {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important;
  }

  /* Live Radar HUD */
  .live-dispatch-hud {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  /* Portal Nav Tabs: Horizontal smooth swipe pills */
  .portal-nav-tabs {
    gap: 0.5rem;
    padding: 6px 4px 0.75rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .portal-nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .portal-nav-tab {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    flex-shrink: 0;
    border-radius: var(--radius-full);
  }

  /* Portal Header & Status Badges */
  .portal-header {
    padding: 1rem;
    gap: 0.75rem;
  }
  .status-badge-lg {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }

  /* Tab 1: Validity Banner, Cashback & Payment Plan Cards */
  .validity-banner {
    flex-direction: column;
    align-items: stretch !important;
    text-align: left;
    padding: 0.85rem 1rem;
  }
  .validity-banner .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Tab 2: Pairing Steps & Code Display */
  .pairing-code-display {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    letter-spacing: 0.25em !important;
  }

  /* Tab 3: Corridors & Zones */
  .corridors-list-grid {
    grid-template-columns: 1fr !important;
  }
  .corridor-header {
    flex-wrap: wrap;
  }
  .corridor-add-colony-row {
    flex-direction: column;
    gap: 0.4rem;
  }
  .corridor-add-colony-row input,
  .corridor-add-colony-row button {
    width: 100%;
  }

  /* Tab 3: Groups Pagination Bar */
  .groups-pagination-bar {
    justify-content: center !important;
  }

  /* Tab 4: Soporte IA Actions Grid */
  .support-actions-grid {
    grid-template-columns: 1fr !important;
  }

  /* Super-Admin View on Mobile: Balanced Responsive Grid */
  #view-admin .admin-kpi-grid,
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  #view-admin .admin-kpi-grid .metric-card,
  .admin-kpi-grid .metric-card {
    grid-column: span 1 !important;
    padding: 0.85rem 0.65rem !important;
  }
  #view-admin .admin-kpi-grid .metric-card:nth-child(3),
  .admin-kpi-grid .metric-card:nth-child(3) {
    grid-column: span 2 !important;
  }
  #view-admin .admin-kpi-grid .metric-card.metric-card-gcp,
  #view-admin .admin-kpi-grid .metric-card.metric-card-dns,
  .admin-kpi-grid .metric-card.metric-card-gcp,
  .admin-kpi-grid .metric-card.metric-card-dns {
    grid-column: span 2 !important;
    padding: 0.95rem 0.85rem !important;
  }
  #view-admin .admin-kpi-grid .metric-value,
  .admin-kpi-grid .metric-value {
    font-size: 1.2rem !important;
  }
  #view-admin .admin-table-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  #view-admin .admin-base-tabs {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  #view-admin .admin-table-wrap {
    background: transparent !important;
    border: none !important;
    margin-top: 0.75rem !important;
    overflow: visible !important;
  }
  #view-admin .admin-table,
  #view-admin .admin-table tbody,
  #view-admin .admin-table tr,
  #view-admin .admin-table td {
    display: block !important;
    width: 100% !important;
  }
  #view-admin .admin-table thead {
    display: none !important;
  }
  #view-admin .admin-table tr {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-radius: var(--radius-lg, 16px) !important;
    padding: 1rem !important;
    margin-bottom: 0.95rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }
  #view-admin .admin-table td {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: transparent !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 0.85rem !important;
    text-align: right !important;
  }
  #view-admin .admin-table td:first-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding-top: 0 !important;
    padding-bottom: 0.7rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-size: 0.95rem !important;
    text-align: left !important;
  }
  #view-admin .admin-table td:last-child {
    border-bottom: none !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0 !important;
    display: block !important;
    text-align: left !important;
  }
  #view-admin .admin-table td[data-label]:not(:first-child):not(:last-child)::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: left;
  }

  /* Modals: Fluid width and scrollable on small screens */
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal-card {
    width: 100% !important;
    max-width: calc(100vw - 1.5rem) !important;
    max-height: calc(100vh - 2.5rem) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 1.5rem 1.15rem !important;
  }

  /* FAQ 8 Questions Mobile Compact Layout */
  .faq-banner-card {
    border-radius: 12px;
  }
  .faq-banner-header-btn {
    padding: 0.95rem 1.05rem;
  }
  .faq-banner-tag {
    font-size: 0.78rem;
    gap: 0.45rem;
  }
  .faq-banner-chevron {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
  }
  .faq-row-item .faq-question-btn {
    padding: 0.85rem 0.95rem;
    gap: 0.65rem;
  }
  .faq-question-text {
    font-size: 0.87rem;
    line-height: 1.35;
  }
  .faq-icon {
    font-size: 1.1rem;
  }
  .faq-toggle-icon {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }
  .faq-row-divider {
    margin: 0 0.95rem;
  }
  .faq-answer-body {
    padding: 0 0.95rem 0.95rem;
    font-size: 0.83rem;
    line-height: 1.55;
    padding-top: 0.75rem;
  }
  .faq-support-bar {
    padding: 1.1rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }

  /* Turbo Subnav Segmented Bar Mobile Craft */
  .turbo-subnav-bar {
    top: 60px;
    padding: 0.28rem;
    gap: 0.3rem;
    border-radius: 12px;
    margin-bottom: 0.95rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .turbo-subnav-pill {
    padding: 0.42rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.35rem;
  }

  /* Copiloto Turbo Mobile Adjustments */
  .btn-fab-turbo-copilot {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 0.9rem !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.78rem !important;
  }
  .turbo-copilot-balloon {
    bottom: calc(7.6rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 0.9rem !important;
    left: 0.9rem !important;
    max-width: 360px !important;
    margin-left: auto !important;
  }
}

/* ==========================================================================
   GLOBO FLOTANTE INTELIGENTE: COPILOTO TURBO (PROPUESTA 1)
   ========================================================================== */
.turbo-copilot-container {
  position: relative;
}

.btn-fab-turbo-copilot {
  position: fixed;
  bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
  right: 1.25rem;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(30, 41, 59, 0.65));
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 0.48rem 0.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(6, 182, 212, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-fab-turbo-copilot:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.70), rgba(51, 65, 85, 0.70));
  border-color: rgba(6, 182, 212, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 22px rgba(6, 182, 212, 0.4);
}

.btn-fab-turbo-copilot:active {
  transform: translateY(0) scale(0.96);
}

.fab-copilot-icon {
  font-size: 1rem;
  line-height: 1;
}

.fab-copilot-label {
  letter-spacing: 0.02em;
}

/* Globo de Diálogo Emergente */
.turbo-copilot-balloon {
  position: fixed;
  bottom: calc(8.4rem + env(safe-area-inset-bottom, 0px));
  right: 1.25rem;
  width: 330px;
  max-width: calc(100vw - 2.5rem);
  z-index: 105;
  background: rgba(11, 18, 34, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(6, 182, 212, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  animation: copilotBalloonIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes copilotBalloonIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.copilot-balloon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.copilot-balloon-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.copilot-balloon-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.copilot-balloon-title {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 700;
}

.btn-close-balloon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  transition: color 0.18s ease;
}

.btn-close-balloon:hover {
  color: #ffffff;
}

.copilot-balloon-body {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.copilot-balloon-tip {
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid var(--emerald-400);
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #a7f3d0;
}

.copilot-tip-icon {
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.copilot-balloon-footer {
  margin-top: 0.85rem;
}

.btn-ack-balloon {
  width: 100%;
  padding: 0.55rem;
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  border: 1px solid var(--emerald-400);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-ack-balloon:hover {
  background: linear-gradient(135deg, #10b981, #047857);
  transform: translateY(-1px);
}

.btn-ack-balloon:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   FROSTED GLASS ARCHITECTURE (Apple VisionOS / Linear Design Standards)
   Translucent, Esmerilado, Specular 1px Lighting & Ambient Neon Absorption
   ========================================================================== */

/* 1. Banner Dinámico Cashback Día 5 */
#portal-cashback-dia5-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(13, 20, 36, 0.20) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.30), 0 0 24px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* 2. Banner de Vinculación Oficial Telegram (Efecto Tipo Fijado) */
#portal-telegram-link-banner {
  position: sticky;
  top: 76px;
  z-index: 25;
  background: linear-gradient(135deg, rgba(8, 25, 45, 0.94) 0%, rgba(13, 22, 38, 0.96) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.40) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-left: 4px solid #38bdf8 !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(20px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.40), 0 0 20px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

#portal-telegram-link-banner:hover {
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 26px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

#portal-telegram-link-banner a#btn-vincular-telegram:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  color: #fff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-1px);
}

/* 3. Header Banner de Configuración Turbo (Pestaña 3) */
#portal-tab-content-turbo > div:first-child {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(13, 20, 36, 0.20) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.30) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 0 20px rgba(16, 185, 129, 0.08) !important;
}

/* 4. Cajas de Rutas, Grupos y Zonas (Glass Interior Paneling) */
.active-zones-box,
.restricted-zones-box,
.corridor-card {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* 5. Pairing Box (Pestaña 2: Conexión Celular) */
.pairing-box {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.20) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* ==========================================================================
   MOTOR DE ULTRA-RENDIMIENTO PARA MÓVILES (OPTIMIZACIÓN 60 FPS PARA BAJA RAM)
   Dispositivos Android / iOS con 2GB-3GB RAM y GPUs limitadas
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Carretera y Fondo Cyber: Visible, Fluida y Acelerada por Hardware en Móviles */
  .cyber-highway-viewport {
    display: block !important;
    opacity: 0.38 !important;
    transform: translateX(-50%) translateZ(0) !important;
    -webkit-transform: translateX(-50%) translateZ(0) !important;
    will-change: transform;
    pointer-events: none !important;
  }

  /* Desactivar rasterizado pesado de drop-shadows SVG en móviles sin perder trazos neón */
  .highway-curb-left,
  .highway-curb-right,
  .highway-dashed-lane-reverse,
  .highway-dashed-lane-forward,
  .highway-divider-center {
    filter: none !important;
  }

  .cyber-grid {
    animation: cyber-grid-drive 14s linear infinite !important;
    transform: perspective(300px) rotateX(70deg) !important;
    opacity: 0.40 !important;
    pointer-events: none !important;
  }

  .cyber-horizon-line {
    opacity: 0.65 !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.45) !important;
    pointer-events: none !important;
  }

  /* 2. Glassmorphism Ultraligero: Evita saturar la memoria VRAM del celular */
  .card,
  .glass-card,
  .glass-panel,
  .modal-card,
  .navbar,
  .faq-banner-card,
  .corridor-card,
  .pairing-box,
  .hero-metrics .metric-card,
  .onboarding-step-card,
  .portal-card,
  .live-feed-card,
  .cyber-glass-box,
  .active-zones-box,
  .restricted-zones-box,
  #portal-telegram-link-banner,
  #portal-tab-content-turbo > div:first-child {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 16, 30, 0.94) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  }

  /* 3. Prevención de VRAM leak (evitar capas aisladas de compositing sin uso) */
  .card, .metric-card, .btn {
    will-change: auto !important;
  }

  /* 4. Scroll 100% Libre, Vertical y Fluido en Android Chrome & iOS Safari (CERO BLOQUEOS) */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: auto !important;
  }

  #view-landing,
  .landing-layout,
  main {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    touch-action: pan-y !important;
  }
}

/* Modo de rendimiento para usuarios con batería baja o accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 5. Fluidez Táctil y Prevención de Auto-Zoom en Dispositivos Móviles (iOS Safari / Android Chrome) */
@media (max-width: 768px) {
  .form-input,
  input[type="text"],
  input[type="search"],
  input[type="tel"],
  input[type="email"],
  select {
    font-size: 16px !important; /* Estándar de oro: evita zoom forzado y parpadeo de pantalla en iOS Safari */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}

/* ==========================================================================
   FOOTER LEGAL & MODAL LEGAL DISCRETO (COMPLIANCE LFPDPPP / PROFECO / META)
   ========================================================================== */
.landing-footer-minimal {
  position: relative;
  z-index: 25;
  width: 100%;
  padding: 2.2rem 1.25rem 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.94) 0%, rgba(4, 7, 14, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.landing-footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: #94a3b8;
}

.landing-footer-links,
.portal-footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-footer-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-footer-link:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-400);
  color: var(--cyan-300);
  transform: translateY(-1px);
}

.footer-sep {
  display: none;
}

.landing-footer-disclaimer {
  max-width: 860px;
  margin: 1.25rem auto 0;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
}

.portal-footer-minimal {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 2.5rem;
  padding: 1.4rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 26, 0.85);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.76rem;
  color: #94a3b8;
}

/* Modal Legal de Alto Impacto & Lectura Confortable */
.modal-card-legal {
  max-width: 720px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.legal-nav-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.legal-nav-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-nav-pill.active {
  background: var(--cyan-500);
  border-color: var(--cyan-400);
  color: #fff;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.legal-body {
  overflow-y: auto;
  padding-right: 0.5rem;
  font-size: 0.83rem;
  line-height: 1.6;
  color: #cbd5e1;
  flex: 1;
}

.legal-body h4 {
  color: #fff;
  font-size: 0.98rem;
  margin: 1.2rem 0 0.4rem;
  font-weight: 800;
}

.legal-body h5 {
  color: var(--cyan-400);
  font-size: 0.88rem;
  margin: 0.85rem 0 0.35rem;
  font-weight: 700;
}

.legal-body p {
  margin-bottom: 0.75rem;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   FASE 3: BANNER DE ATRIBUCIÓN CREADORES VIP (4 DÍAS GRATIS)
   ========================================================================== */
.referral-banner {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.96) 0%, rgba(13, 148, 136, 0.96) 50%, rgba(6, 182, 212, 0.96) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  position: sticky;
  top: 0;
  z-index: 105;
  padding: 0.55rem 0;
  animation: slideDownBanner 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownBanner {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.referral-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.referral-banner-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.referral-banner-gift {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulseGift 2s ease-in-out infinite;
}

@keyframes pulseGift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.referral-banner-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #ffffff;
}

.referral-tag {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #a7f3d0;
  white-space: nowrap;
}

.creator-name-highlight {
  font-weight: 800;
  color: #fef08a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.referral-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.referral-btn-claim {
  background: #ffffff !important;
  color: #065f46 !important;
  font-weight: 800 !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 999px !important;
  border: none !important;
  font-size: 0.78rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.referral-btn-claim:hover {
  transform: scale(1.04);
}

.referral-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  border-radius: 4px;
}

.referral-close-btn:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .referral-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
  .referral-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  .referral-banner-copy {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
}



