/* ═══════════════════════════════════════════════════
   URBANOWNER — MAIN STYLESHEET
   Purple / White / Glassmorphism Theme
═══════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────── */
:root {
  --p900: #2e1065;
  --p800: #3b0764;
  --p700: #4c1d95;
  --p600: #5b21b6;
  --p500: #7c3aed;
  --p400: #8b5cf6;
  --p300: #a78bfa;
  --p200: #c4b5fd;
  --p100: #ede9fe;
  --p50:  #f5f3ff;

  --accent: #a855f7;
  --accent-light: #d8b4fe;

  --white: #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --amber: #f59e0b;
  --amber-light: #fef3c7;

  --glass-bg: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.22);
  --glass-shadow: 0 8px 32px rgba(76,29,149,0.18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --sidebar-w: 260px;
  --sidebar-collapsed: 70px;
  --topbar-h: 70px;

  --font: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); color: var(--gray-800); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
img { max-width: 100%; }

/* ─── UTILITIES ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }

/* ══════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════ */

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px;
  height: 70px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 20px rgba(76,29,149,0.1);
}
.navbar.scrolled .nav-links a,
.navbar.scrolled .logo .logo-u { color: var(--gray-700); }
.navbar.scrolled .btn-ghost-sm { color: var(--p500); border-color: var(--p500); }

.nav-inner {
  width: 100%; display: flex; align-items: center; gap: 40px;
}
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px; }
.logo-u { color: var(--white); }
.logo-o { color: var(--p200); }
.navbar.scrolled .logo-u { color: var(--p600); }
.navbar.scrolled .logo-o { color: var(--p400); }

.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--white); }

.nav-cta { display: flex; gap: 12px; align-items: center; margin-left: 24px; }
.btn-ghost-sm {
  padding: 8px 20px; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.7); color: var(--white);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-ghost-sm:hover { background: rgba(255,255,255,0.15); }
.btn-primary-sm {
  padding: 8px 20px; border-radius: 50px;
  background: var(--white); color: var(--p600);
  font-size: 0.875rem; font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
/* Líneas oscuras cuando el navbar se vuelve blanco al hacer scroll */
.navbar.scrolled .hamburger span { background: var(--p700); }

/* ─── CURSOR GLOW ────────────────────────────────── */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, rgba(168,85,247,0.08) 40%, transparent 70%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.cursor-glow.visible { opacity: 1; }

/* Partículas canvas */
.hero-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d0517 0%, #1e0a3c 25%, var(--p700) 60%, var(--accent) 100%);
  display: flex; align-items: center;
  padding: 100px 40px 60px;
}
/* Shimmer line animado en la parte superior del hero */
.hero::before {
  content: '';
  position: absolute; top: 0; left: -100%; right: -100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.8), rgba(255,255,255,0.6), rgba(168,85,247,0.8), transparent);
  animation: shimmerLine 4s linear infinite;
  z-index: 2;
}
@keyframes shimmerLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Blur blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.4; pointer-events: none;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--p400), var(--p600));
  top: -250px; right: -150px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent), #7c3aed);
  bottom: -150px; left: -100px;
  animation: blobFloat 11s ease-in-out infinite reverse;
}
.blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #1a0533, var(--p800));
  top: 35%; left: 38%;
  animation: blobFloat 13s ease-in-out infinite 2s;
  opacity: 0.6;
}
/* Blob negro extra para profundidad */
.blob-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,0,0,0.7), transparent);
  top: 20%; left: 5%;
  animation: blobFloat 15s ease-in-out infinite 4s;
  filter: blur(60px); opacity: 0.5;
}

@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1) rotate(0deg); }
  33%      { transform: translate(30px,-25px) scale(1.06) rotate(3deg); }
  66%      { transform: translate(-20px,15px) scale(0.96) rotate(-2deg); }
}

/* ─── HERO TEXT — entrada animada ────────────────── */
.hero-tag   { animation: fadeSlideDown 0.7s ease both; }
.hero-title { animation: fadeSlideDown 0.7s ease 0.15s both; }
.hero-sub   { animation: fadeSlideDown 0.7s ease 0.3s both; }
.hero-actions { animation: fadeSlideDown 0.7s ease 0.45s both; }
.hero-cards   { animation: fadeSlideLeft 0.8s ease 0.3s both; }

@keyframes fadeSlideDown {
  from { opacity:0; transform: translateY(-24px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity:0; transform: translateX(40px); }
  to   { opacity:1; transform: translateX(0); }
}

/* Título con gradiente animado */
.hero-title em {
  font-style: italic;
  background: linear-gradient(90deg, var(--p200), #fff, var(--p300), var(--accent-light), var(--p200));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 5s linear infinite;
}
@keyframes gradientText {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--p100); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--p200); }

.hero-sub {
  color: rgba(255,255,255,0.8); font-size: 1.05rem;
  max-width: 480px; margin-bottom: 36px; font-weight: 400;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 32px; border-radius: 50px;
  background: var(--white); color: var(--p600);
  font-weight: 700; font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(0,0,0,0.3); }

.btn-ghost-outline {
  padding: 14px 32px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6); color: var(--white);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-block;
}
.btn-ghost-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* Floating stat cards */
.hero-cards { position: relative; display: flex; flex-direction: column; gap: 16px; }

.stat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  color: var(--white);
  width: fit-content;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 16px 48px rgba(139,92,246,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.card-float-1 { animation: cardFloat 6s ease-in-out infinite; }
.card-float-2 { animation: cardFloat 6s ease-in-out infinite 1.5s; margin-left: 40px; }
.card-float-3 { animation: cardFloat 6s ease-in-out infinite 3s; margin-left: 20px; }

@keyframes cardFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(0.5deg); }
}

.sc-icon { font-size: 1.8rem; }
.sc-body { display: flex; flex-direction: column; }
.sc-val { font-size: 1.3rem; font-weight: 800; }
.sc-lbl { font-size: 0.78rem; opacity: 0.8; font-weight: 500; }

/* Hero dashboard preview */
.hero-dash-preview {
  background: rgba(5,0,20,0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.1), inset 0 1px 0 rgba(255,255,255,0.07);
  animation: dashPulse 4s ease-in-out infinite;
}
@keyframes dashPulse {
  0%,100% { box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.1); }
  50%      { box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 30px rgba(139,92,246,0.25); }
}
/* Barras con animación de carga */
.hdp-bar {
  animation: barGrow 1s ease both;
  transform-origin: bottom;
}
.hdp-bar:nth-child(1) { animation-delay: 0.1s; }
.hdp-bar:nth-child(2) { animation-delay: 0.2s; }
.hdp-bar:nth-child(3) { animation-delay: 0.3s; }
.hdp-bar:nth-child(4) { animation-delay: 0.4s; }
.hdp-bar:nth-child(5) { animation-delay: 0.5s; }
.hdp-bar:nth-child(6) { animation-delay: 0.6s; }
@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
.hdp-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; font-size: 0.75rem; color: rgba(255,255,255,0.7);
}
.hdp-dots { display: flex; gap: 4px; }
.hdp-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.hdp-dots span:first-child { background: #ff5f56; }
.hdp-dots span:nth-child(2) { background: #febc2e; }
.hdp-dots span:last-child { background: #28c840; }

.hdp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.hdp-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
}
.hdp-n { font-weight: 800; font-size: 1rem; color: var(--white); }
.hdp-l { font-size: 0.7rem; color: rgba(255,255,255,0.7); }

.hdp-bars { display: flex; align-items: flex-end; gap: 4px; height: 50px; margin-bottom: 12px; }
.hdp-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  height: var(--h);
  background: linear-gradient(to top, rgba(255,255,255,0.5), rgba(255,255,255,0.8));
}

.hdp-rows { display: flex; flex-direction: column; gap: 6px; }
.hdp-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: rgba(255,255,255,0.85);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.badge-paid { background: rgba(16,185,129,0.3); color: #6ee7b7; padding: 2px 7px; border-radius: 20px; font-size: 0.68rem; font-weight: 600; }
.badge-pend { background: rgba(245,158,11,0.3); color: #fcd34d; padding: 2px 7px; border-radius: 20px; font-size: 0.68rem; font-weight: 600; }

/* ─── STATS BAR ──────────────────────────────────── */
.stats-bar {
  background: var(--p700);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; gap: 24px; }
.stat-item h3 { font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.stat-item p  { color: var(--p200); font-size: 0.875rem; font-weight: 500; }

/* ─── SECTION HEADER ─────────────────────────────── */
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: var(--p100); color: var(--p600);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.section-head p  { color: var(--gray-500); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ─── STATS BAR — negro elegante ─────────────────── */
.stats-bar {
  background: linear-gradient(135deg, #080010 0%, #0f0020 50%, #0a0015 100%);
  padding: 60px 0; position: relative; overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139,92,246,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(168,85,247,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.stats-bar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), rgba(255,255,255,0.3), rgba(139,92,246,0.6), transparent);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; gap: 24px; position: relative; }
.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(139,92,246,0.15);
  transition: transform 0.3s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { transform: translateY(-4px); }
.stat-item h3 { font-size: 2.4rem; font-weight: 900; color: var(--white); margin-bottom: 6px; letter-spacing: -1px; }
.stat-item p  { color: rgba(196,181,253,0.8); font-size: 0.875rem; font-weight: 500; }

/* ─── SERVICES ───────────────────────────────────── */
.services { padding: 100px 0; background: var(--gray-50); position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; padding-top: 36px; }

.svc-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; position: relative;
  border: 1.5px solid var(--gray-200);
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 14px;
  transform-style: preserve-3d;
}
.svc-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139,92,246,0.04), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.svc-card:hover {
  border-color: var(--p300);
  box-shadow: 0 24px 60px rgba(124,58,237,0.15), 0 0 0 1px rgba(139,92,246,0.1);
  transform: translateY(-8px) scale(1.01);
}
.svc-card:hover::after { opacity: 1; }
.svc-card.featured {
  background: linear-gradient(145deg, #0f0022 0%, var(--p800) 40%, var(--p600) 100%);
  border-color: rgba(139,92,246,0.4);
  color: var(--white);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.svc-card.featured:hover {
  box-shadow: 0 28px 70px rgba(0,0,0,0.5), 0 0 40px rgba(139,92,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ── Popular label wrapper (used in pricing grid) ── */
.popular-wrap {
  position: relative;
}
.popular-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #78350f;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245,158,11,.45);
  z-index: 2;
  animation: popularPulse 2.4s ease-in-out infinite;
}
@keyframes popularPulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
    box-shadow: 0 4px 16px rgba(245,158,11,.45);
  }
  50% {
    transform: translateX(-50%) translateY(-4px) scale(1.06);
    box-shadow: 0 8px 28px rgba(245,158,11,.7);
  }
}
.svc-icon { font-size: 2.4rem; }
.svc-card h3 { font-size: 1.25rem; font-weight: 700; }
.svc-card p  { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }
.svc-card ul { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-card ul li { font-size: 0.875rem; padding-left: 16px; position: relative; opacity: 0.85; }
.svc-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--p300); font-weight: 700; }
.svc-card.featured ul li::before { color: var(--p200); }

.svc-btn {
  display: inline-block; padding: 12px 24px; border-radius: 50px;
  background: var(--p100); color: var(--p600);
  font-weight: 700; font-size: 0.875rem;
  transition: all var(--transition); text-align: center; margin-top: 8px;
}
.svc-card.featured .svc-btn { background: rgba(255,255,255,0.2); color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.svc-btn:hover { transform: translateX(4px); }
.svc-card.featured .svc-btn:hover { background: rgba(255,255,255,0.3); }

/* ─── FEATURES ───────────────────────────────────── */
.features { padding: 100px 0; background: var(--white); overflow: hidden; }
.features-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.features-text { display: flex; flex-direction: column; gap: 20px; }
.features-text h2 { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; color: var(--gray-900); line-height: 1.2; }
.features-text p  { color: var(--gray-500); font-size: 1rem; }

.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--p100); color: var(--p600);
  font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.feat h4 { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
.feat p  { font-size: 0.875rem; color: var(--gray-500); }

.features-visual { position: relative; }
.fv-blur-1, .fv-blur-2 { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.fv-blur-1 { width: 300px; height: 300px; background: var(--p200); top: -50px; right: -50px; opacity: 0.4; }
.fv-blur-2 { width: 200px; height: 200px; background: var(--accent-light); bottom: -30px; left: -30px; opacity: 0.4; }

/* Mock window */
.mock-window {
  position: relative; z-index: 1;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(124,58,237,0.2);
  overflow: hidden; border: 1px solid var(--gray-200);
}
.mock-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--gray-100); border-bottom: 1px solid var(--gray-200);
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mock-dots span:nth-child(1) { background: #ff5f56; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:nth-child(3) { background: #28c840; }
.mock-title { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; }
.mock-body { display: flex; }
.mock-sidebar { width: 120px; background: var(--p700); padding: 16px 8px; display: flex; flex-direction: column; gap: 4px; }
.ms-item { padding: 8px 10px; border-radius: 8px; font-size: 0.7rem; color: rgba(255,255,255,0.7); cursor: default; }
.ms-item.active { background: rgba(255,255,255,0.15); color: var(--white); font-weight: 600; }
.mock-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mc { background: var(--gray-100); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; align-items: center; }
.mc.accent { background: var(--p100); }
.mc-n { font-size: 0.95rem; font-weight: 800; color: var(--gray-900); }
.mc.accent .mc-n { color: var(--p600); }
.mc-l { font-size: 0.65rem; color: var(--gray-500); }
.mock-chart { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.mc-bar { flex: 1; border-radius: 4px 4px 0 0; height: var(--h); background: linear-gradient(to top, var(--p600), var(--p300)); }
.mock-list { display: flex; flex-direction: column; gap: 6px; }
.ml-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--gray-700); padding: 4px 0; border-bottom: 1px solid var(--gray-100); }
.ml-paid { background: var(--green-light); color: #065f46; padding: 2px 7px; border-radius: 20px; font-size: 0.65rem; font-weight: 700; }
.ml-pend { background: var(--amber-light); color: #92400e; padding: 2px 7px; border-radius: 20px; font-size: 0.65rem; font-weight: 700; }

/* ─── HOW IT WORKS ───────────────────────────────── */
.how-it-works { padding: 100px 0; background: var(--p50); }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; align-items: start; }
.step { text-align: center; padding: 0 16px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--p500); color: var(--white);
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.step p  { font-size: 0.875rem; color: var(--gray-500); line-height: 1.5; }
.step-connector { align-self: center; height: 2px; width: 40px; background: var(--p200); margin-top: -24px; }

/* ─── CTA SECTION ────────────────────────────────── */
.cta-section { padding: 80px 0; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--p700), var(--p500), var(--accent));
  border-radius: var(--radius-xl); padding: 70px 60px;
  text-align: center;
}
.cta-blob-1, .cta-blob-2 { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.cta-blob-1 { width: 300px; height: 300px; background: var(--p300); top: -80px; right: -60px; opacity: 0.5; }
.cta-blob-2 { width: 200px; height: 200px; background: var(--accent); bottom: -60px; left: -40px; opacity: 0.5; }
.cta-inner { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-card p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { padding: 14px 32px; border-radius: 50px; background: var(--white); color: var(--p600); font-weight: 700; transition: all var(--transition); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.btn-outline-white { padding: 14px 32px; border-radius: 50px; border: 2px solid rgba(255,255,255,0.7); color: var(--white); font-weight: 600; transition: all var(--transition); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ─── ANIMACIONES GLOBALES DE REVEAL ─────────────── */
.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.reveal-up    { transform: translateY(40px); }
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.92); }
.reveal.visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

/* Shimmer en botones primarios */
.btn-primary, .btn-white, .btn-primary-sm {
  position: relative; overflow: hidden;
}
.btn-primary::after, .btn-white::after, .btn-primary-sm::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after, .btn-white:hover::after, .btn-primary-sm:hover::after {
  left: 150%;
}

/* Glow en botones add del dashboard */
.btn-add {
  position: relative; overflow: hidden;
}
.btn-add::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
}
.btn-add:hover::after { left: 150%; }

/* KPI cards con entrada animada en el dashboard */
.kpi-card {
  animation: kpiEntrance 0.5s cubic-bezier(.4,0,.2,1) both;
}
.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.12s; }
.kpi-card:nth-child(3) { animation-delay: 0.19s; }
.kpi-card:nth-child(4) { animation-delay: 0.26s; }
@keyframes kpiEntrance {
  from { opacity:0; transform: translateY(16px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* Dash-cards con entrada */
.dash-card {
  animation: kpiEntrance 0.5s cubic-bezier(.4,0,.2,1) 0.2s both;
}

/* Sidebar link hover mejorado */
.sb-link {
  position: relative; overflow: hidden;
}
.sb-link::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--p400), var(--accent));
  transform: scaleY(0); transition: transform 0.25s ease;
  border-radius: 0 3px 3px 0;
}
.sb-link:hover::before, .sb-link.active::before { transform: scaleY(1); }

/* ─── CTA — negro premium ─────────────────────────── */
.cta-card {
  background: linear-gradient(145deg, #06000f 0%, #130030 40%, var(--p800) 100%) !important;
  border: 1px solid rgba(139,92,246,0.3) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* ─── CONTACTO ──────────────────────────────────── */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0d001f 0%, #1a0038 40%, #050008 100%);
  border-top: 2px solid #000;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 70%);
  pointer-events: none;
}
.contact-section .section-title { color: var(--white); }
.contact-section .section-sub {
  color: rgba(255,255,255,.65);
  max-width: 480px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
}
.contact-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(139,92,246,.25);
  background: rgba(30, 5, 60, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  min-width: 320px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card:hover::before { opacity: 1; }

.contact-wa { }
.contact-wa::before { background: linear-gradient(135deg, rgba(37,211,102,.15), transparent); }
.contact-wa:hover { border-color: rgba(37,211,102,.5); box-shadow: 0 12px 40px rgba(37,211,102,.2); }
.contact-wa .contact-icon { color: #25d366; background: rgba(37,211,102,.12); }

.contact-email::before { background: linear-gradient(135deg, rgba(139,92,246,.2), transparent); }
.contact-email:hover { border-color: rgba(139,92,246,.5); box-shadow: 0 12px 40px rgba(139,92,246,.25); }
.contact-email .contact-icon { color: var(--p300); background: rgba(139,92,246,.12); }

.contact-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
}
.contact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.contact-arrow {
  font-size: 1.3rem;
  color: rgba(255,255,255,.3);
  transition: all var(--transition);
}
.contact-card:hover .contact-arrow {
  color: var(--white);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { min-width: unset; width: 100%; max-width: 400px; padding: 22px 24px; }
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer { background: #050008; padding: 70px 0 0; color: rgba(255,255,255,0.7); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-u { color: var(--white); }
.footer-brand .logo-o { color: var(--p300); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 16px; font-size: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--p300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.825rem;
}
.footer-links-bottom { display: flex; gap: 20px; }
.footer-links-bottom a:hover { color: var(--p300); }

/* ══════════════════════════════════════════════════
   AUTH PAGE (login.html)
══════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: stretch;
  background: linear-gradient(135deg, var(--p900), var(--p700));
  position: relative; overflow: hidden;
}

.auth-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.3; pointer-events: none;
}
.auth-blob-1 { width: 500px; height: 500px; background: var(--p400); top: -150px; right: -100px; }
.auth-blob-2 { width: 350px; height: 350px; background: var(--accent); bottom: -100px; left: -80px; }
.auth-blob-3 { width: 250px; height: 250px; background: var(--p200); top: 50%; left: 35%; }

.auth-back {
  position: fixed; top: 20px; left: 24px; z-index: 100;
  color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500;
  padding: 8px 16px; border-radius: 50px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}
.auth-back:hover { color: var(--white); background: rgba(255,255,255,0.18); }

.auth-wrapper { display: flex; width: 100%; position: relative; z-index: 1; }

/* Left branding panel */
.auth-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 80px 60px; color: var(--white);
}
.al-content { max-width: 420px; }
.al-content .logo { font-size: 1.8rem; font-weight: 800; margin-bottom: 28px; display: block; }
.al-content .logo-u { color: var(--white); }
.al-content .logo-o { color: var(--p200); }
.al-content h2 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.al-content p  { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 28px; }

.al-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.al-feat { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.al-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: var(--white); flex-shrink: 0;
}
.al-stats { display: flex; gap: 28px; }
.al-stat { display: flex; flex-direction: column; }
.al-stat strong { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.al-stat span   { font-size: 0.75rem; color: rgba(255,255,255,0.65); }

/* Right form panel */
.auth-right {
  width: 480px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  border-radius: 0;
}

.auth-card { width: 100%; max-width: 380px; }

.auth-tabs { display: flex; background: var(--gray-100); border-radius: 10px; padding: 4px; margin-bottom: 28px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--gray-500);
  transition: all var(--transition); text-align: center;
}
.auth-tab.active { background: var(--white); color: var(--p600); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-header h3 { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.form-header p  { font-size: 0.875rem; color: var(--gray-500); }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.825rem; font-weight: 600; color: var(--gray-700); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 12px; font-size: 0.9rem; pointer-events: none; }
.input-wrap input {
  width: 100%; padding: 11px 12px 11px 36px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--gray-900);
  transition: all var(--transition);
  background: var(--white);
}
.input-wrap input:focus { outline: none; border-color: var(--p400); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.toggle-pass { position: absolute; right: 12px; font-size: 0.9rem; opacity: 0.5; }
.toggle-pass:hover { opacity: 1; }

.form-row { display: flex; justify-content: space-between; align-items: center; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.825rem; color: var(--gray-600); cursor: pointer; }
.checkbox-label input { margin-top: 2px; accent-color: var(--p500); }
.checkbox-label a { color: var(--p500); font-weight: 600; }

.forgot-link { font-size: 0.8rem; color: var(--p500); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }
.terms-check { line-height: 1.5; }

.form-error { display: none; background: var(--red-light); color: var(--red); border-radius: 8px; padding: 10px 14px; font-size: 0.825rem; font-weight: 500; }
.form-error.show { display: block; }

.btn-auth {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--p600), var(--p500));
  color: var(--white); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(124,58,237,0.4); }
.btn-auth:active { transform: translateY(0); }

.btn-spinner { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-switch { text-align: center; font-size: 0.825rem; color: var(--gray-500); }
.auth-switch a { color: var(--p500); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.demo-hint {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--p50); border: 1px dashed var(--p200);
  font-size: 0.8rem; color: var(--gray-500);
}
.demo-hint button { color: var(--p600); font-weight: 700; font-size: 0.8rem; }
.demo-hint button:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   APP / DASHBOARD (dashboard.html)
══════════════════════════════════════════════════ */
.app-page {
  display: flex; min-height: 100vh;
  background: var(--gray-50);
}

/* ─── SIDEBAR ────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh; position: fixed; left: 0; top: 0; z-index: 200;
  background: linear-gradient(180deg, var(--p800) 0%, var(--p700) 100%);
  display: flex; flex-direction: column;
  transition: width var(--transition);
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .sb-label { opacity: 0; width: 0; overflow: hidden; }
.sidebar.collapsed .sb-badge { display: none; }
.sidebar.collapsed .sb-section-label { opacity: 0; }
.sidebar.collapsed .sb-user-info { display: none; }
.sidebar.collapsed .sb-header .logo { opacity: 0; width: 0; }
.sidebar.collapsed .sb-collapse { transform: rotate(180deg); }

.sb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sb-header .logo { font-size: 1.3rem; font-weight: 800; white-space: nowrap; overflow: hidden; }
.sb-header .logo-u { color: var(--white); }
.sb-header .logo-o { color: var(--p200); }
.sb-collapse {
  color: rgba(255,255,255,0.6); font-size: 1.2rem; padding: 4px;
  border-radius: 6px; transition: all var(--transition); flex-shrink: 0;
}
.sb-collapse:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.sb-nav { flex: 1; padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sb-section-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
  padding: 12px 10px 6px; white-space: nowrap; overflow: hidden;
  transition: opacity var(--transition);
}
.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px; border-radius: 10px;
  color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition); position: relative;
  white-space: nowrap;
}
.sb-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sb-link.active { background: rgba(255,255,255,0.15); color: var(--white); font-weight: 600; }
.sb-link.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 2px; background: var(--p200);
}
.sb-icon { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }
.sb-label { transition: opacity var(--transition), width var(--transition); }
.sb-badge {
  margin-left: auto; background: var(--p400); color: var(--white);
  font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 20px;
  min-width: 22px; text-align: center;
}
.sb-badge.pending { background: var(--amber); color: #78350f; }

.sb-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
}
.sb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p400), var(--accent));
  color: var(--white); font-weight: 700; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sb-user-info { flex: 1; overflow: hidden; }
.sb-user-name  { display: block; font-size: 0.825rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-role  { font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.sb-logout { color: rgba(255,255,255,0.5); font-size: 1rem; padding: 6px; border-radius: 6px; transition: all var(--transition); flex-shrink: 0; }
.sb-logout:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; }

/* ─── TOP BAR ────────────────────────────────────── */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0; overflow-x: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}
.app-main.expanded { margin-left: var(--sidebar-collapsed); }

.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tb-left { display: flex; align-items: center; gap: 14px; }
.tb-menu { font-size: 1.2rem; color: var(--gray-500); padding: 6px; border-radius: 6px; display: none; }
.tb-menu:hover { background: var(--gray-100); color: var(--gray-800); }
.tb-title { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); }

.tb-right { display: flex; align-items: center; gap: 12px; }
.tb-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-100); border-radius: 50px;
  padding: 8px 16px; border: 1.5px solid transparent;
  transition: all var(--transition);
}
.tb-search:focus-within { border-color: var(--p300); background: var(--white); box-shadow: 0 0 0 3px rgba(124,58,237,0.08); }
.tb-search input { border: none; background: none; font-size: 0.875rem; color: var(--gray-700); outline: none; width: 200px; }
.tb-search span { color: var(--gray-400); font-size: 0.9rem; }

.tb-icon-btn { position: relative; padding: 8px; border-radius: 50%; color: var(--gray-500); font-size: 1.1rem; transition: all var(--transition); }
.tb-icon-btn:hover { background: var(--gray-100); color: var(--gray-800); }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: none; }
.notif-dot.show { display: block; }
.notif-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 300px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 200; max-height: 380px; overflow-y: auto; }
.notif-panel.show { display: block; }
.notif-header { padding: 12px 16px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); border-bottom: 1px solid var(--gray-100); }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: background var(--transition); }
.notif-item:hover { background: var(--gray-50); }
.notif-item:last-child { border-bottom: none; }
.notif-item-title { font-size: .875rem; font-weight: 600; color: var(--gray-900); }
.notif-item-sub { font-size: .78rem; color: var(--gray-500); margin: 2px 0 5px; }
.notif-item-tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.notif-item-tag.overdue { background: var(--red-light); color: var(--red); }
.notif-item-tag.grace { background: var(--amber-light); color: #92400e; }
.notif-item-tag.pending { background: var(--p100); color: var(--p600); }
.notif-empty { padding: 20px 16px; text-align: center; font-size: .875rem; color: var(--gray-500); }

.tb-user-menu { position: relative; }
.tb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p500), var(--accent));
  color: var(--white); font-weight: 700; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid var(--p200);
}
.tb-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--gray-200);
  padding: 8px; min-width: 160px; z-index: 200;
}
.tb-dropdown.show { display: block; }
.tb-dropdown a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: 0.875rem; color: var(--gray-700);
  transition: all var(--transition);
}
.tb-dropdown a:hover { background: var(--gray-100); color: var(--gray-900); }

/* ─── VIEW CONTAINER ─────────────────────────────── */
.view-container { flex: 1; padding: 28px; }

/* ─── DASHBOARD VIEW ─────────────────────────────── */
.dash-welcome { margin-bottom: 28px; }
.dash-welcome h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.dash-welcome p  { color: var(--gray-500); font-size: 0.9rem; margin-top: 4px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.kpi-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--gray-200);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.kpi-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-2px); }
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--p500), var(--accent));
}
.kpi-card.green::before { background: linear-gradient(90deg, var(--green), #34d399); }
.kpi-card.amber::before { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.kpi-card.red::before   { background: linear-gradient(90deg, var(--red), #f87171); }

.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.kpi-icon { font-size: 1.5rem; }
.kpi-change { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.kpi-change.up   { background: var(--green-light); color: #065f46; }
.kpi-change.down { background: var(--red-light); color: #991b1b; }
.kpi-change.neutral { background: var(--gray-100); color: var(--gray-500); }
.kpi-value { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); }
.kpi-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }

.mini-kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 22px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.dash-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--gray-200);
}
.dash-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.dash-card-header a { font-size: 0.8rem; color: var(--p500); font-weight: 600; }
.dash-card-header a:hover { text-decoration: underline; }

/* Chart wrapper */
.chart-wrapper { position: relative; height: 220px; }

/* ─── TABLES ─────────────────────────────────────── */
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 10px 14px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gray-500); background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.data-table td { padding: 13px 14px; font-size: 0.875rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--p50); }
.data-table .td-name { font-weight: 600; color: var(--gray-900); }
.data-table .td-amount { font-weight: 700; color: var(--gray-900); }

/* ─── STATUS BADGES ──────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.badge-success { background: var(--green-light); color: #065f46; }
.badge-warning { background: var(--amber-light); color: #92400e; }
.badge-danger  { background: var(--red-light); color: #991b1b; }
.badge-info    { background: var(--p100); color: var(--p700); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─── PROPERTY STATUS INDICATOR ──────────────────── */
.prop-type { display: flex; align-items: center; gap: 8px; }
.prop-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--p500), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  flex-shrink: 0;
}

/* ─── SECTION HEADER ROW ─────────────────────────── */
.view-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.view-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); }
.view-header-right { display: flex; align-items: center; gap: 10px; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer;
}
.btn-add {
  background: linear-gradient(135deg, var(--p600), var(--p500));
  color: var(--white); box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(124,58,237,0.4); }
.btn-secondary { background: var(--white); color: var(--gray-700); border: 1.5px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--p300); color: var(--p600); background: var(--p50); }
.btn-danger { background: var(--red-light); color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ─── FILTER BAR ─────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-search {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 9px 14px;
}
.filter-search input { border: none; background: none; font-size: 0.875rem; color: var(--gray-800); outline: none; flex: 1; }
.filter-select {
  background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 0.875rem; color: var(--gray-700);
  outline: none; cursor: pointer; transition: all var(--transition);
}
.filter-select:focus { border-color: var(--p300); }

/* ─── PROPERTY CARDS VIEW ────────────────────────── */
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 18px; }
.prop-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); overflow: hidden;
  transition: all var(--transition);
}
.prop-card:hover { border-color: var(--p300); box-shadow: 0 8px 25px rgba(124,58,237,0.1); transform: translateY(-2px); }
.prop-card-header {
  background: linear-gradient(135deg, var(--p700), var(--p500));
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-start;
}
.prop-card-type { font-size: 2rem; }
.prop-card-status { }
.prop-card-body { padding: 18px 20px; }
.prop-card-name { font-weight: 800; font-size: 1rem; color: var(--gray-900); margin-bottom: 4px; }
.prop-card-addr { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 14px; }
.prop-card-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pci-item { }
.pci-label { font-size: 0.7rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.pci-val   { font-size: 0.9rem; color: var(--gray-800); font-weight: 600; }
.prop-card-actions { display: flex; gap: 8px; border-top: 1px solid var(--gray-100); padding-top: 14px; }

/* ─── MODALS ─────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  width: 90%; max-width: 560px; max-height: 90vh;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(10px); } to { opacity:1; transform:none; } }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); }
.modal-close { color: var(--gray-400); font-size: 1.1rem; padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── FORMS ──────────────────────────────────────── */
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-row-modal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--gray-900); background: var(--white);
  transition: all var(--transition); font-family: var(--font);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--p400); box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-group-modal { display: flex; flex-direction: column; }

/* ─── TOASTS ─────────────────────────────────────── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-left: 4px solid var(--p500);
  min-width: 280px; max-width: 360px;
  animation: toastIn 0.3s ease;
  font-size: 0.875rem; color: var(--gray-800); font-weight: 500;
}
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }
.toast.warning { border-color: var(--amber); }
@keyframes toastIn { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:none; } }
@keyframes toastOut { to { opacity:0; transform:translateX(110%); } }
.toast.removing { animation: toastOut 0.3s ease forwards; }
.toast-icon { font-size: 1.1rem; }
.toast-msg { flex: 1; }
.toast-close { color: var(--gray-400); font-size: 0.8rem; cursor: pointer; padding: 2px 4px; }

/* ─── EMPTY STATE ────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--gray-400);
}
.empty-state .es-icon { font-size: 3rem; margin-bottom: 14px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p  { font-size: 0.875rem; margin-bottom: 20px; }

/* ─── REPORTS VIEW ───────────────────────────────── */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; }
.report-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; border: 1.5px solid var(--gray-200);
  text-align: center; transition: all var(--transition);
  cursor: pointer;
}
.report-card:hover { border-color: var(--p300); box-shadow: 0 8px 25px rgba(124,58,237,0.1); transform: translateY(-2px); }
.report-icon { font-size: 2.5rem; margin-bottom: 12px; }
.report-title { font-weight: 700; color: var(--gray-800); margin-bottom: 6px; font-size: 0.95rem; }
.report-desc  { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

/* ─── SETTINGS VIEW ──────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.settings-nav { background: var(--white); border-radius: var(--radius); padding: 8px; border: 1px solid var(--gray-200); height: fit-content; }
.settings-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; font-size: 0.875rem;
  color: var(--gray-600); cursor: pointer; transition: all var(--transition);
}
.settings-nav-item:hover { background: var(--gray-50); color: var(--gray-900); }
.settings-nav-item.active { background: var(--p100); color: var(--p600); font-weight: 600; }
.settings-panel { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--gray-200); min-width: 0; }
.settings-panel h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.settings-section { border-top: 1px solid var(--gray-100); padding-top: 22px; margin-top: 22px; }
.settings-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.settings-nav-item { user-select: none; }

/* ─── LOADING ────────────────────────────────────── */
.loading-overlay { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--p100); border-top-color: var(--p500); border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ─── PAGINATION ─────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 8px; padding: 14px 0 0; justify-content: flex-end; }
.page-btn {
  width: 34px; height: 34px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 600; color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); border: 1.5px solid var(--gray-200);
}
.page-btn:hover { border-color: var(--p300); color: var(--p600); }
.page-btn.active { background: var(--p500); color: var(--white); border-color: var(--p500); }

/* ─── DONUT CHART LEGEND ─────────────────────────── */
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--gray-600); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  /* Dashboard: reducir a 2 columnas en pantallas intermedias */
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .mini-kpi-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-cards { display: flex; flex-direction: row; flex-wrap: wrap; }
  .hero-dash-preview { display: none; }
  .card-float-1,.card-float-2,.card-float-3 { margin-left: 0; animation: none; }
  .features-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .step-connector { display: none; }
  /* Mock window: ocultar sidebar para que entre en pantalla */
  .mock-sidebar { display: none; }
  .mock-window { max-width: 100%; }
  .pricing-grid { gap: 16px; }
  .comm-explainer { flex-direction: column; gap: 24px; }
}

@media (max-width: 768px) {
  /* ── Navbar ── */
  .navbar { padding: 0 16px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  /* ── Secciones landing: evitar desbordamiento ── */
  .services, .features, .how-it-works,
  .pricing-section, .cta-section, .stats-bar { overflow: hidden; }
  .sec-orb { display: none; }

  /* ── PERFORMANCE: desactivar features pesadas en móvil ── */
  /* Aurora: filter:blur en 5 divs grandes destruye la GPU móvil */
  .page-aurora { display: none; }
  /* Canvas partículas: se oculta (JS ya no lo inicia en móvil) */
  .hero-particles { display: none; }
  /* Cursor glow: no existe en touch */
  .cursor-glow { display: none; }
  /* Desactivar animaciones CSS costosas en móvil */
  .pa-blob { animation: none !important; }
  @keyframes stepPulse { 0%,100% { opacity:.4; } }
  /* Reducir transiciones para que se sientan más rápidas */
  :root { --transition: 0.15s ease; }

  /* ── Hero ── */
  .hero { padding: 80px 16px 40px; overflow: hidden; }
  .hero-title { font-size: 2rem; line-height: 1.25; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions a { text-align: center; width: 100%; box-sizing: border-box; }
  .hero-cards { display: none; } /* ocultar tarjetas flotantes en móvil */

  /* ── Stats bar ── */
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }

  /* ── Services ── */
  .services { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card { padding: 28px 20px; }
  .svc-card.featured { order: -1; } /* Featured primero en móvil */
  .popular-wrap { order: -1; } /* Popular pricing primero en móvil */

  /* ── Features ── */
  .features { padding: 70px 0; }
  .features-inner { grid-template-columns: 1fr; gap: 32px; }
  .features-visual { display: none; } /* Ocultar mock en móvil, priorizar contenido */
  .features-text .btn-primary { display: block; text-align: center; width: 100%; box-sizing: border-box; }
  .feat { padding: 12px 14px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 1.6rem; }

  /* ── How it works ── */
  .how-it-works { padding: 70px 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 24px 18px; overflow: hidden; }
  .step-connector,
  .step-connector::after,
  .step-connector::before { display: none !important; width: 0 !important; height: 0 !important; padding: 0 !important; }

  /* ── Pricing ── */
  .pricing-section { padding: 70px 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 14px; }
  .pricing-card { padding: 28px 22px; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-5px); }
  .comm-explainer { flex-direction: column; padding: 20px 16px; gap: 20px; }
  .ce-example { padding: 16px; }
  /* Filas: label a la izquierda con ancho fijo, valor a la derecha alineado */
  .ce-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
  }
  .ce-row .label { white-space: normal; line-height: 1.4; }
  .ce-row .value {
    text-align: right;
    white-space: nowrap;
    font-size: 0.9rem;
  }
  .ce-row .value.net { font-size: 0.9rem; }
  .ce-row:last-child { padding-top: 12px; }

  /* ── CTA ── */
  .cta-card { padding: 40px 20px; }
  .cta-inner h2 { font-size: 1.4rem; }
  .cta-btns { flex-direction: column; gap: 12px; }
  .cta-btns a { text-align: center; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* ── Dashboard — layout base ── */
  .auth-left { display: none; }
  .auth-right { width: 100%; border-radius: 0; padding: 32px 20px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sb-overlay { display: none; }
  .sb-overlay.show { display: block; }
  .app-main { margin-left: 0 !important; width: 100%; overflow-x: hidden; }
  .tb-menu { display: flex; }
  .tb-search { display: none; }
  .view-container { padding: 10px; overflow-x: hidden; }
  .topbar { padding: 0 12px; }
  .form-row-modal { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .tb-title { font-size: 1rem; }
  .tb-right { gap: 8px; }

  /* ── Welcome ── */
  .dash-welcome { margin-bottom: 14px; }
  .dash-welcome h2 { font-size: 1.1rem; }
  .dash-welcome p  { font-size: 0.8rem; }

  /* ── Sub-banner ── */
  .sub-banner { flex-wrap: wrap; gap: 4px; padding: 10px 12px; font-size: 0.78rem; }
  .sub-link { margin-left: 0; width: 100%; font-size: 0.75rem; }

  /* ── KPI grid: 2 columnas compactas ── */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
  .kpi-card { padding: 12px 10px; overflow: visible; }
  .kpi-top  { margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
  .kpi-icon { font-size: 1.1rem; }
  .kpi-change { font-size: 0.6rem; padding: 2px 5px; max-width: 100%; }
  /* Valor: escala automáticamente al ancho disponible */
  .kpi-value {
    font-size: clamp(0.9rem, 4.5vw, 1.2rem);
    word-break: break-all;
    line-height: 1.2;
  }
  .kpi-label { font-size: 0.7rem; margin-top: 2px; line-height: 1.3; }

  /* ── Grids: una columna ── */
  .mini-kpi-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
  .dash-grid   { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .dash-grid-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-card   { padding: 14px 12px; }
  .dash-card-header { margin-bottom: 10px; }
  .dash-card-header h3 { font-size: 0.9rem; }

  /* ── Mini KPIs ── */
  .mini-kpi { padding: 10px 12px; gap: 8px; }
  .mini-kpi-val { font-size: 1.1rem; }
  .mini-kpi-lbl { font-size: 0.7rem; }
  .mini-kpi-icon { font-size: 1.3rem; }

  /* ── Commission summary bar ── */
  .comm-summary-bar { flex-direction: column; }
  .csb-item { padding: 10px 14px; }
  .csb-sep  { display: none; }
  .csb-val  { font-size: 1rem; }
  .csb-lbl  { font-size: 0.7rem; }

  /* ── Tablas: scroll horizontal ── */
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
  .data-table { min-width: 480px; }
  .data-table th { padding: 8px 10px; font-size: 0.7rem; }
  .data-table td { padding: 10px 10px; font-size: 0.78rem; }
}

/* ══════════════════════════════════════════════════
   MODO OSCURO
══════════════════════════════════════════════════ */
[data-theme="dark"] {
  --white:     #16162a;
  --gray-50:   #1e1e35;
  --gray-100:  #252540;
  --gray-200:  #2e2e50;
  --gray-300:  #3d3d65;
  --gray-400:  #6b6b9a;
  --gray-500:  #8888b8;
  --gray-600:  #a0a0c8;
  --gray-700:  #c4c4e0;
  --gray-800:  #dcdcf0;
  --gray-900:  #f0f0ff;
  --p50:       #1a1030;
  --p100:      #221540;
  --green-light: #0a2e1e;
  --red-light:   #2e0a0a;
  --amber-light: #2e2000;
  --glass-bg:    rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.10);
}

[data-theme="dark"] body { background: #0d0d1a; color: #dcdcf0; }

/* Topbar */
[data-theme="dark"] .topbar {
  background: #12121f;
  border-bottom-color: #2e2e50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-theme="dark"] .tb-search { background: #1e1e35; }
[data-theme="dark"] .tb-search input { color: #dcdcf0; }
[data-theme="dark"] .tb-icon-btn:hover { background: #252540; }
[data-theme="dark"] .tb-dropdown { background: #1a1a2e; border-color: #2e2e50; }
[data-theme="dark"] .tb-dropdown a:hover { background: #252540; }
[data-theme="dark"] .tb-menu:hover { background: #252540; }

/* Cards y paneles */
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .dash-card,
[data-theme="dark"] .mini-kpi,
[data-theme="dark"] .settings-section,
[data-theme="dark"] .plan-card,
[data-theme="dark"] .comm-summary-bar,
[data-theme="dark"] .fh-card,
[data-theme="dark"] .report-card,
[data-theme="dark"] .activity-item,
[data-theme="dark"] .prop-card,
[data-theme="dark"] .cal-card,
[data-theme="dark"] .billing-tab-content {
  background: #1a1a2e;
  border-color: #2e2e50;
}
[data-theme="dark"] .dash-card-header h3 { color: #e0e0f8; }

/* Tablas */
[data-theme="dark"] .data-table th { background: #1e1e35; color: #8888b8; border-bottom-color: #2e2e50; }
[data-theme="dark"] .data-table td { border-bottom-color: #252540; color: #c4c4e0; }
[data-theme="dark"] .data-table tr:hover td { background: rgba(139,92,246,0.08); }
[data-theme="dark"] .data-table .td-name,
[data-theme="dark"] .data-table .td-amount { color: #e0e0f8; }

/* Inputs y forms */
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #1e1e35 !important;
  border-color: #2e2e50 !important;
  color: #dcdcf0 !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #6b6b9a !important; }
[data-theme="dark"] .form-group label { color: #a0a0c8; }

/* Modal */
[data-theme="dark"] .modal-box { background: #1a1a2e; }
[data-theme="dark"] .modal-header { border-bottom-color: #2e2e50; }
[data-theme="dark"] .modal-header h3 { color: #f0f0ff; }

/* View container */
[data-theme="dark"] .view-container { background: #0d0d1a; }

/* Notificaciones */
[data-theme="dark"] .notif-panel { background: #1a1a2e; border-color: #2e2e50; }
[data-theme="dark"] .notif-item { border-bottom-color: #252540; }
[data-theme="dark"] .notif-item:hover { background: #252540; }
[data-theme="dark"] .notif-item-title { color: #e0e0f8; }
[data-theme="dark"] .notif-header { border-bottom-color: #2e2e50; }

/* Subtítulos y textos */
[data-theme="dark"] .tb-title { color: #e0e0f8; }
[data-theme="dark"] .dash-welcome h2 { color: #f0f0ff; }
[data-theme="dark"] .kpi-value { color: #f0f0ff; }
[data-theme="dark"] .view-header h2 { color: #f0f0ff; }

/* Sub-banner */
[data-theme="dark"] .sub-banner {
  background: linear-gradient(135deg, #1a1030, #221540);
  border-color: var(--p500);
}

/* Botón toggle tema */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; border: none;
  background: var(--gray-100); color: var(--gray-600);
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--gray-200); transform: rotate(20deg); }
[data-theme="dark"] .theme-toggle { background: #252540; color: #f0f0ff; }
[data-theme="dark"] .theme-toggle:hover { background: #2e2e50; }

@media (max-width: 480px) {
  /* ── Layout general ── */
  .container { padding: 0 16px; }

  /* ── Hero ── */
  .hero { padding: 72px 16px 36px; }
  .hero-title { font-size: 1.75rem; }
  .hero-tag { font-size: 0.75rem; }

  /* ── Stats ── */
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item h3 { font-size: 1.5rem; }

  /* ── Steps ── */
  .step-num { width: 50px; height: 50px; font-size: 1rem; }

  /* ── Pricing ── */
  .price-amount { font-size: 2.2rem; }
  .pricing-card { padding: 22px 18px; }
  .pricing-grid { max-width: 100%; }

  /* ── Dashboard ── */
  .mini-kpi-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .kpi-card { padding: 10px 8px; }
  .kpi-value { font-size: clamp(0.85rem, 4vw, 1.1rem); }
  .kpi-label { font-size: 0.65rem; }
  .dash-grid-3 { grid-template-columns: 1fr; }
  .dash-welcome h2 { font-size: 0.95rem; }
  .cta-card { padding: 32px 16px; }
  .auth-card { padding: 28px 18px; }
  .view-container { padding: 8px; }
  .data-table { min-width: 420px; }

  /* ── Botones ── */
  .btn-primary, .btn-ghost-outline {
    padding: 13px 24px; font-size: 0.9rem;
  }
  .section-head h2 { font-size: 1.5rem; }
  .section-head p { font-size: 0.9rem; }
}

/* ══════════════════════════════════════════════════
   MONETIZATION & COMMISSION COMPONENTS
══════════════════════════════════════════════════ */

/* ─── SUBSCRIPTION BANNER (dashboard topmost) ────── */
.sub-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--p700), var(--p600));
  color: var(--white); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 20px; font-size: 0.875rem;
}
.sub-icon { font-size: 1.1rem; }
.sub-banner strong { color: var(--p200); }
.sub-link { margin-left: auto; color: var(--p200); font-weight: 600; white-space: nowrap; font-size: 0.8rem; }
.sub-link:hover { color: var(--white); text-decoration: underline; }

/* ─── KPI CARD PURPLE VARIANT ─────────────────────── */
.kpi-card.purple::before { background: linear-gradient(90deg, var(--p500), var(--accent)); }

/* ─── MINI KPI STRIP ──────────────────────────────── */
.mini-kpi {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; border: 1px solid var(--gray-200);
}
.mini-kpi-icon { font-size: 1.6rem; }
.mini-kpi-val { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.mini-kpi-lbl { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }

/* ─── COMMISSION SUMMARY BAR ──────────────────────── */
.comm-summary-bar {
  display: flex; align-items: center; gap: 0;
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--p200); margin-bottom: 20px; overflow: hidden;
}
.csb-item {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 22px;
}
.csb-sep {
  font-size: 1.4rem; color: var(--gray-300); padding: 0 4px;
  flex-shrink: 0;
}
.csb-lbl { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; }
.csb-val { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); }
.csb-val.comm { color: var(--p500); }
.csb-val.net  { color: var(--green); }

/* ─── COMMISSION INFO STRIP ───────────────────────── */
.comm-info-strip {
  display: flex; align-items: center; gap: 10px;
  background: var(--p50); border: 1px solid var(--p200);
  border-radius: var(--radius-sm); padding: 10px 16px;
  margin-bottom: 18px; font-size: 0.85rem; color: var(--gray-600);
}
.comm-info-strip strong { color: var(--p600); }
.comm-info-strip a { margin-left: auto; color: var(--p500); font-weight: 600; white-space: nowrap; }
.comm-info-strip a:hover { text-decoration: underline; }

/* ─── PROPERTY COMMISSION BREAKDOWN ──────────────── */
.prop-comm-breakdown {
  background: var(--gray-50); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.pcb-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--gray-600);
  padding-bottom: 6px; border-bottom: 1px solid var(--gray-200);
}
.pcb-row:last-child { border-bottom: none; padding-bottom: 0; }
.pcb-row.comm { color: var(--p500); }
.pcb-row.net  { color: var(--green); font-weight: 700; font-size: 0.9rem; border-top: 1px solid var(--gray-200); padding-top: 6px; margin-top: 2px; }
.pcb-amount { font-weight: 700; }

/* ─── COMMISSION PREVIEW (modal) ──────────────────── */
.comm-preview {
  background: linear-gradient(135deg, var(--p50), #f0fdf4);
  border: 1.5px solid var(--p200); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.cp-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.84rem; color: var(--gray-700); padding: 5px 0;
  border-bottom: 1px solid rgba(124,58,237,0.1);
}
.cp-row:last-child { border-bottom: none; }
.cp-row.comm { color: var(--p500); font-weight: 600; }
.cp-row.net  {
  color: var(--green); font-weight: 800; font-size: 0.95rem;
  border-top: 1.5px solid var(--p200); padding-top: 8px; margin-top: 4px;
}
.cp-row span:last-child { font-weight: 700; }

/* ─── FORM WARNINGS ───────────────────────────────── */
.form-warning {
  display: none; background: var(--amber-light);
  border: 1px solid var(--amber); color: #78350f;
  border-radius: 8px; padding: 10px 14px;
  font-size: 0.825rem; font-weight: 500; line-height: 1.5;
}
.form-warning.show { display: block; }

/* ─── FINANCE HEADLINE CARDS ──────────────────────── */
.finance-headline {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 22px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 20px rgba(124,58,237,0.1);
}
.fh-card {
  flex: 1; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.fh-card.gross { background: var(--white); border: 1.5px solid var(--gray-200); }
.fh-card.comm  { background: var(--p50);  border: 1.5px solid var(--p200); }
.fh-card.net   { background: #f0fdf4;     border: 1.5px solid #a7f3d0; }
.fh-arrow {
  font-size: 1.4rem; color: var(--gray-300); padding: 0 8px;
  background: var(--white); display: flex; align-items: center;
  border-top: 1.5px solid var(--gray-200); border-bottom: 1.5px solid var(--gray-200);
}
.fh-label { font-size: 0.78rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }
.fh-value { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); }
.fh-card.comm .fh-value { color: var(--p600); }
.fh-card.net  .fh-value { color: var(--green); }
.fh-sub { font-size: 0.75rem; color: var(--gray-400); }

/* ─── PENDING COMMISSION ALERT ────────────────────── */
.pending-comm-alert {
  display: flex; align-items: center; gap: 12px;
  background: var(--amber-light); border: 1px solid var(--amber);
  border-radius: var(--radius-sm); padding: 12px 16px;
  margin-bottom: 20px; font-size: 0.875rem; color: #78350f;
}
.pending-comm-alert strong { color: #92400e; }
.pending-comm-alert a { margin-left: auto; color: #92400e; font-weight: 700; white-space: nowrap; }

/* ─── ACTIVITY LOG ────────────────────────────────── */
.activity-log { display: flex; flex-direction: column; }
.activity-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.activity-item:last-child { border-bottom: none; }
.ai-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--p50); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.ai-body { flex: 1; }
.ai-desc { font-size: 0.875rem; color: var(--gray-800); font-weight: 500; }
.ai-meta { font-size: 0.75rem; color: var(--gray-400); margin-top: 3px; }
.ai-time { font-size: 0.75rem; color: var(--gray-400); white-space: nowrap; margin-top: 2px; }

/* ─── SUBSCRIPTION DETAIL CARD ────────────────────── */
.sub-detail-card {
  background: var(--p50); border: 1.5px solid var(--p200);
  border-radius: var(--radius); padding: 20px;
}

/* ─── LANDING: PRICING SECTION ────────────────────── */
.pricing-section { padding: 100px 0; background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 44px; }

.pricing-card {
  border-radius: var(--radius-lg); padding: 36px 28px;
  border: 1.5px solid var(--gray-200); position: relative;
  display: flex; flex-direction: column; gap: 20px;
  transition: all var(--transition);
}
.pricing-card:hover { border-color: var(--p300); box-shadow: 0 16px 40px rgba(124,58,237,0.1); transform: translateY(-3px); }
.pricing-card.popular {
  background: linear-gradient(135deg, var(--p700), var(--p500));
  border-color: var(--p400); color: var(--white);
  transform: scale(1.04);
}
.pricing-card.popular:hover { transform: scale(1.04) translateY(-3px); }

/* popular label: see .popular-label above */
.pricing-plan { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--p500); }
.pricing-card.popular .pricing-plan { color: var(--p200); }
.pricing-name { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.pricing-card.popular .pricing-name { color: var(--white); }
.pricing-price { display: flex; align-items: flex-end; gap: 4px; }
.price-amount { font-size: 2.8rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.pricing-card.popular .price-amount { color: var(--white); }
.price-period { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 6px; }
.pricing-card.popular .price-period { color: rgba(255,255,255,0.7); }
.pricing-commission {
  background: var(--p100); border-radius: 10px; padding: 12px 16px;
  font-size: 0.875rem; color: var(--p700); font-weight: 600; text-align: center;
}
.pricing-card.popular .pricing-commission {
  background: rgba(255,255,255,0.15); color: var(--white);
}
.pricing-commission strong { color: var(--p500); }
.pricing-card.popular .pricing-commission strong { color: var(--p200); }

.pricing-feats { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-feat { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--gray-600); }
.pricing-feat span:first-child { color: var(--p400); font-weight: 700; }
.pricing-card.popular .pricing-feat { color: rgba(255,255,255,0.85); }
.pricing-card.popular .pricing-feat span:first-child { color: var(--p200); }

.pricing-btn {
  display: block; text-align: center; padding: 13px;
  border-radius: 50px; font-weight: 700; font-size: 0.9rem;
  background: var(--p100); color: var(--p600);
  transition: all var(--transition);
}
.pricing-card.popular .pricing-btn {
  background: var(--white); color: var(--p600);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.pricing-btn:hover { transform: translateY(-2px); }
.pricing-card.popular .pricing-btn:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* ─── COMMISSION EXPLAINER ────────────────────────── */
.comm-explainer {
  background: var(--p50); border-radius: var(--radius-xl);
  padding: 60px; margin-top: 60px; display: flex; gap: 60px; align-items: center;
}
.ce-text { flex: 1; }
.ce-text h3 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.ce-text p  { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; }
.ce-example {
  flex: 1; background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; border: 1.5px solid var(--p200);
  box-shadow: 0 8px 25px rgba(124,58,237,0.1);
}
.ce-example h4 { font-size: 0.85rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.ce-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}
.ce-row:last-child { border-bottom: none; padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--p200); }
.ce-row .label { color: var(--gray-600); }
.ce-row .value { font-weight: 700; color: var(--gray-900); }
.ce-row .value.comm { color: var(--p500); }
.ce-row .value.net  { color: var(--green); font-size: 0.9rem; }

/* ─── RESPONSIVE ADDITIONS ────────────────────────── */
@media (max-width: 1024px) {
  .finance-headline { flex-direction: column; }
  .fh-arrow { padding: 4px 0; transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .comm-explainer { flex-direction: column; padding: 36px; gap: 28px; }
  .comm-summary-bar { flex-direction: column; }
  .csb-sep { transform: rotate(90deg); }
}

/* ══════════════════════════════════════════════════════
   SECTION REDESIGN — Dark & Vibrant
══════════════════════════════════════════════════════ */

/* Orbes decorativos reutilizables */
.sec-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
  opacity: 0.18;
}
.sec-orb-tl  { width: 600px; height: 600px; top: -200px; left: -150px;  background: radial-gradient(circle, var(--p500), transparent); }
.sec-orb-br  { width: 500px; height: 500px; bottom: -150px; right: -100px; background: radial-gradient(circle, var(--p400), transparent); }
.sec-orb-center { width: 800px; height: 400px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(ellipse, var(--p600), transparent); }

/* ─── SERVICES REDESIGN ─────────────────────────── */
.services {
  background: linear-gradient(180deg, #080010 0%, #120025 50%, #1a0035 100%);
  position: relative; overflow: hidden;
}
.services .section-head h2 { color: #fff; }
.services .section-head p  { color: rgba(196,181,253,.7); }
.services .section-tag { background: rgba(139,92,246,.25); color: var(--p200); border: 1px solid rgba(139,92,246,.3); }

.svc-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(139,92,246,.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06);
}
.svc-card h3 { color: #fff; }
.svc-card p  { color: rgba(196,181,253,.75); }
.svc-card ul li { color: rgba(255,255,255,.8); }
.svc-card ul li::before { color: var(--p300); }
.svc-card:hover {
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 24px 60px rgba(124,58,237,.25), 0 0 0 1px rgba(139,92,246,.2), inset 0 1px 0 rgba(255,255,255,.1);
  transform: translateY(-8px) scale(1.02);
}
.svc-btn {
  background: rgba(139,92,246,.2);
  color: var(--p200);
  border: 1.5px solid rgba(139,92,246,.4);
}
.svc-btn:hover { background: rgba(139,92,246,.35); color: #fff; }

.svc-card.featured {
  background: linear-gradient(145deg, #0f0022 0%, var(--p800) 40%, var(--p600) 100%);
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(139,92,246,.2), inset 0 1px 0 rgba(255,255,255,.1);
}
.svc-card.featured:hover {
  box-shadow: 0 28px 70px rgba(0,0,0,.6), 0 0 60px rgba(139,92,246,.35), inset 0 1px 0 rgba(255,255,255,.15);
}

/* ─── FEATURES REDESIGN ─────────────────────────── */
.features {
  background: linear-gradient(160deg, #06000e 0%, #100020 60%, #0a0018 100%);
  position: relative; overflow: hidden;
}
.features::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.12), transparent 70%);
  top: -200px; right: -200px; pointer-events: none;
}
.features-text h2 { color: #fff; }
.features-text > p { color: rgba(196,181,253,.7); }
.features-text .btn-primary { box-shadow: 0 8px 30px rgba(124,58,237,.4); }

.feat-check {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--p600), var(--p400));
  color: #fff; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(139,92,246,.5);
}
.feat h4 { color: #fff; }
.feat p  { color: rgba(196,181,253,.65); }
.feat { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(139,92,246,.12); transition: all .25s; }
.feat:hover { background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.25); transform: translateX(4px); }

.fv-blur-1 { background: var(--p400); opacity: 0.3; }
.fv-blur-2 { background: #06b6d4;     opacity: 0.25; }

/* ─── HOW IT WORKS REDESIGN ─────────────────────── */
.how-it-works {
  background: linear-gradient(180deg, #0e001e 0%, #160030 50%, #0a0015 100%);
  position: relative;
}
.how-it-works .section-head h2 { color: #fff; }
.how-it-works .section-tag { background: rgba(139,92,246,.25); color: var(--p200); border: 1px solid rgba(139,92,246,.3); }

.step {
  background: rgba(20, 5, 45, 0.8);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 20px; padding: 32px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s ease;
  position: relative; z-index: 1;
}
.step:hover {
  background: rgba(139,92,246,.1);
  border-color: rgba(139,92,246,.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.3), 0 0 30px rgba(139,92,246,.15);
}
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p600), var(--p400));
  color: #fff; font-weight: 900; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative;
  box-shadow: 0 0 0 6px rgba(139,92,246,.15), 0 0 30px rgba(139,92,246,.4);
}
.step-num::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(139,92,246,.3);
  animation: stepPulse 2.5s ease-in-out infinite;
}
@keyframes stepPulse {
  0%,100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.15); opacity: 0; }
}
.step h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.step p  { color: rgba(196,181,253,.7); font-size: .875rem; line-height: 1.6; }

.step-connector {
  display: flex; align-items: center; justify-content: center;
  padding-top: 30px;
}
.step-connector::after {
  content: '';
  width: 40px; height: 2px;
  background: linear-gradient(90deg, rgba(139,92,246,.6), rgba(167,139,250,.3));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(139,92,246,.4);
}

/* ─── PRICING REDESIGN ──────────────────────────── */
.pricing-section {
  background: linear-gradient(180deg, #0a0015 0%, #140028 50%, #0d001f 100%);
  position: relative; overflow: hidden;
}
.pricing-section .section-head h2 { color: #fff; }
.pricing-section .section-head p  { color: rgba(196,181,253,.7); }
.pricing-section .section-tag { background: rgba(139,92,246,.25); color: var(--p200); border: 1px solid rgba(139,92,246,.3); }
.pricing-section .section-head strong { color: var(--p300); }

.pricing-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(139,92,246,.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
  color: #fff;
}
.pricing-card:hover {
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 30px rgba(139,92,246,.15);
  transform: translateY(-5px);
}
.pricing-card .pricing-plan  { color: var(--p300); }
.pricing-card .pricing-name  { color: #fff; }
.pricing-card .price-amount  { color: #fff; }
.pricing-card .price-period  { color: rgba(196,181,253,.6); }
.pricing-card .pricing-commission {
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.25);
  color: var(--p200);
}
.pricing-card .pricing-feat  { color: rgba(255,255,255,.8); }
.pricing-card .pricing-feat span:first-child { color: var(--p300); }
.pricing-card .pricing-feat span[style*="opacity"] { color: rgba(255,255,255,.3); }

.pricing-card.popular {
  background: linear-gradient(145deg, #1a0040 0%, var(--p700) 50%, var(--p500) 100%);
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 0 0 1px rgba(167,139,250,.3), 0 24px 60px rgba(0,0,0,.5), 0 0 50px rgba(139,92,246,.25);
  transform: scale(1.05);
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); }
.pricing-card.popular .pricing-commission {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

.pricing-btn {
  display: block; text-align: center;
  padding: 13px 24px; border-radius: 50px;
  font-weight: 700; font-size: .875rem;
  background: rgba(139,92,246,.2);
  color: var(--p200); border: 1.5px solid rgba(139,92,246,.4);
  transition: all .25s; text-decoration: none;
}
.pricing-btn:hover { background: rgba(139,92,246,.4); color: #fff; transform: translateY(-2px); }
.pricing-card.popular .pricing-btn {
  background: rgba(255,255,255,.2);
  color: #fff; border-color: rgba(255,255,255,.4);
}
.pricing-card.popular .pricing-btn:hover { background: rgba(255,255,255,.35); }

/* ─── COMMISSION EXPLAINER — estilo claro original ── */
.comm-explainer {
  background: #fff;
  border: 1px solid var(--gray-200);
  backdrop-filter: none;
  box-shadow: 0 4px 24px rgba(76,29,149,.08);
}
.ce-text h3 { color: var(--gray-900); }
.ce-text p  { color: var(--gray-600); }
.ce-example {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
.ce-example h4 { color: var(--gray-500); }
.ce-row { border-bottom-color: var(--gray-200); }
.ce-row:last-child { border-top-color: var(--gray-200); }
.ce-row .label { color: var(--gray-600); }
.ce-row .value { color: var(--gray-900); }
.ce-row .value.comm { color: var(--red); }
.ce-row .value.net  { color: var(--green); }

/* ══════════════════════════════════════════════════
   AURORA DE FONDO — una sola tela oscura y continua
   Los blobs animados fluyen detrás de todas las
   secciones, eliminando cualquier corte visible.
══════════════════════════════════════════════════ */

/* ─── BASE ───────────────────────────────────────── */
body.landing { background: #05000e; }

/* ─── AURORA FIJA (page-aurora) ──────────────────── */
.page-aurora {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.pa-blob {
  position: absolute; border-radius: 50%;
  filter: blur(140px);
  will-change: transform; opacity: 1;
}
/* Blob 1 — morado fuerte, esquina superior izquierda */
.pa-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(109,40,217,.38) 0%, transparent 65%);
  top: -20%; left: -12%;
  animation: pa1 24s ease-in-out infinite alternate;
}
/* Blob 2 — violeta claro, costado derecho */
.pa-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,.28) 0%, transparent 65%);
  top: 22%; right: -10%;
  animation: pa2 30s ease-in-out infinite alternate;
}
/* Blob 3 — índigo profundo, centro-izquierda */
.pa-3 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(76,29,149,.22) 0%, transparent 65%);
  top: 50%; left: 10%;
  animation: pa3 22s ease-in-out infinite alternate;
}
/* Blob 4 — lavanda, parte inferior derecha */
.pa-4 {
  width: 750px; height: 750px;
  background: radial-gradient(circle, rgba(168,85,247,.2) 0%, transparent 65%);
  bottom: 0; right: 15%;
  animation: pa4 27s ease-in-out infinite alternate;
}
/* Blob 5 — acento cian sutil, centro */
.pa-5 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 65%);
  top: 38%; left: 38%;
  animation: pa5 19s ease-in-out infinite alternate;
}
@keyframes pa1 { to { transform: translate(220px, 280px) scale(1.12); } }
@keyframes pa2 { to { transform: translate(-240px, 200px) scale(0.88); } }
@keyframes pa3 { to { transform: translate(180px, -220px) scale(1.18); } }
@keyframes pa4 { to { transform: translate(-160px, -180px) scale(1.08); } }
@keyframes pa5 { to { transform: translate(-100px, 140px) scale(0.8); } }

/* ─── SECCIONES: encima de la aurora, sin fondo propio ─ */
.stats-bar, .services, .features, .how-it-works,
.pricing-section, .cta-section {
  background: transparent !important;
  position: relative; z-index: 1;
}

/* Hero: desvanece su fondo hacia el oscuro base */
.hero {
  z-index: 1; position: relative;
}
.hero::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to bottom, transparent 0%, #05000e 100%);
  pointer-events: none; z-index: 2;
}

/* Stats-bar: conserva la línea shimmer superior */
.stats-bar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(139,92,246,.6),
    rgba(255,255,255,.3),
    rgba(139,92,246,.6),
    transparent);
}

/* Features glow-blob (keep) */
.features::before {
  background: radial-gradient(circle, rgba(139,92,246,.08), transparent 70%);
}

/* CTA section: posición relativa para ::before posible */
.cta-section { position: relative; }

/* ─── SPOTLIGHT EN TARJETAS ──────────────────────── */
/*  Glow que sigue el cursor; JS inyecta --sx / --sy  */
.svc-card,
.step,
.pricing-card,
.feat,
.stat-item {
  --sx: 50%; --sy: 50%;
  position: relative; overflow: hidden;
}

/* Capa de spotlight (antes de contenido) */
.svc-card::before,
.step::before,
.pricing-card::before,
.feat::before,
.stat-item::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    circle at var(--sx) var(--sy),
    rgba(167,139,250,.22) 0%,
    rgba(139,92,246,.08) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.svc-card:hover::before,
.step:hover::before,
.pricing-card:hover::before,
.feat:hover::before,
.stat-item:hover::before  { opacity: 1; }

/* El contenido queda siempre encima del spotlight */
.svc-card > *,
.step > *,
.pricing-card > *,
.feat > *,
.stat-item > * { position: relative; z-index: 1; }

/* Glow extra en borde al hacer hover */
.svc-card:hover,
.step:hover,
.pricing-card:hover {
  box-shadow:
    0 0 0 1px rgba(167,139,250,.35),
    0 20px 50px rgba(0,0,0,.45),
    0 0 40px rgba(139,92,246,.18);
}

/* ─── SECCIÓN STATS: texto siempre visible ───────── */
.stat-item h3 { color: #fff; }
.stat-item p  { color: rgba(196,181,253,.8); }

/* ══════════════════════════════════════════════════
   OPTIMIZACIONES DE RENDIMIENTO GENERAL
══════════════════════════════════════════════════ */

/* content-visibility eliminado — causaba recorte de tarjetas en Firefox/Safari */

/* Reducir repaint en blobs animados */
.pa-blob {
  will-change: transform;
  transform: translateZ(0); /* fuerza capa GPU */
}

/* Reducir blur de aurora en desktop para mejor rendimiento */
.pa-blob { filter: blur(100px); } /* reducido de 140px a 100px */

/* Optimizar animaciones del hero */
.blob { will-change: transform; }
.hero-particles { will-change: auto; }

/* Fuentes: usar fallback system mientras cargan Google Fonts */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Evitar re-layout en imágenes (no hay, pero por si se agregan) */
img { width: auto; height: auto; }

/* ─── MENÚ MÓVIL ─────────────────────────────────── */
.navbar.mobile-open {
  height: auto;
  background: #160030 !important;
  backdrop-filter: none;
}

/* nav-inner se convierte en columna */
.navbar.mobile-open .nav-inner {
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-bottom: 20px;
}

/* Logo y hamburger se quedan en la primera fila */
.navbar.mobile-open .nav-inner .logo    { order: 1; }
.navbar.mobile-open .nav-inner .hamburger { order: 2; margin-left: auto; }

/* Links: ancho completo, debajo del logo */
.navbar.mobile-open .nav-links {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  order: 3;
  gap: 0;
  padding: 6px 0 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.navbar.mobile-open .nav-links li { list-style: none; width: 100%; }
.navbar.mobile-open .nav-links a {
  display: block;
  padding: 13px 0;
  font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.navbar.mobile-open .nav-links li:last-child a { border-bottom: none; }

/* Botones: ancho completo, pegados debajo de links */
.navbar.mobile-open .nav-cta {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  order: 4;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.navbar.mobile-open .nav-cta .btn-ghost-sm,
.navbar.mobile-open .nav-cta .btn-primary-sm {
  display: block;
  text-align: center;
  width: 80%;
  margin: 0 auto;
  position: relative;
  left: -3%;
  padding: 13px;
  font-size: 0.95rem;
  border-radius: 50px;
  box-sizing: border-box;
}
.navbar.mobile-open .nav-cta .btn-primary-sm {
  background: var(--p500);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.navbar.mobile-open .nav-cta .btn-ghost-sm {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.3);
}
