/* ============================================================
   GNOSIS DIGITAL — SISTEMA DE DISEÑO PREMIUM 2026
   Archivo maestro de variables, componentes y utilidades.
   ============================================================ */

/* === SECCIÓN: Variables de Diseño (Paleta + Tipografía + Sombras) === */
:root {
  /* Fondos — Light base (Claridad y limpieza) */
  --bg-primary:     #FFFFFF;
  --bg-secondary:   #F8FAFC;
  --bg-tertiary:    #F1F5F9;
  --bg-glass:       rgba(255, 255, 255, 0.85);
  --bg-glass-hover: rgba(255, 255, 255, 0.95);
  --bg-glass-active: #FFFFFF;

  /* Acento Principal — Azul Zafiro (Seguridad y Tecnología) */
  --accent-gold:      #0F52BA;
  --accent-gold-dark:  #0C4296;
  --accent-gold-glow: rgba(15, 82, 186, 0.15);

  /* Acento Secundario — Gris Oscuro */
  --accent-silver:    #475569;
  --accent-cyan:      #334155; 
  --accent-cyan-glow: rgba(51, 65, 85, 0.15);

  /* Acento Terciario — Azul Eléctrico (Vanguardia) */
  --accent-emerald:   #2563EB;

  /* Tipografía */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colores de Texto */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;

  /* Bordes */
  --border-subtle:  rgba(15, 23, 42, 0.08);
  --border-gold:    rgba(15, 82, 186, 0.3);
  --border-cyan:    rgba(51, 65, 85, 0.2);

  /* Semáforo CRM */
  --status-green:   #10B981;
  --status-yellow:  #F59E0B;
  --status-red:     #EF4444;

  /* Sombras (Adaptadas para fondos claros) */
  --shadow-card:    0 8px 30px rgba(15, 23, 42, 0.05);
  --shadow-gold:    0 8px 24px rgba(15, 82, 186, 0.25);
  --shadow-cyan:    0 8px 24px rgba(51, 65, 85, 0.15);
  --shadow-lg:      0 12px 40px rgba(15, 23, 42, 0.08);

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* Transiciones */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === DARK MODE OVERRIDES === */
[data-theme="dark"] {
  --bg-primary:     #0B1120;
  --bg-secondary:   #0F172A;
  --bg-tertiary:    #1E293B;
  --bg-glass:       rgba(15, 23, 42, 0.7);
  --bg-glass-hover: rgba(30, 41, 59, 0.8);
  --bg-glass-active: rgba(30, 41, 59, 0.95);

  --accent-gold:      #3B82F6; /* Sapphire más brillante para fondo oscuro */
  --accent-gold-dark: #2563EB;
  --accent-gold-glow: rgba(59, 130, 246, 0.25);

  --accent-silver:    #94A3B8;
  --accent-cyan:      #475569;
  --accent-cyan-glow: rgba(71, 85, 105, 0.2);

  --accent-emerald:   #60A5FA;

  --text-primary:   #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted:     #94A3B8;

  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-gold:    rgba(59, 130, 246, 0.35);
  --border-cyan:    rgba(255, 255, 255, 0.1);

  --shadow-card:    0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-gold:    0 8px 24px rgba(59, 130, 246, 0.2);
  --shadow-cyan:    0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:      0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(11, 17, 32, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}



/* === SECCIÓN: Reset y Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevents layout shift when scrollbar appears/disappears between pages */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* === SECCIÓN: Tipografía === */
h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gold { color: var(--accent-gold); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-muted { color: var(--text-muted); }

.font-heading { font-family: 'Inter', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }


/* === SECCIÓN: Layout y Contenedores === */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

.full-screen {
  min-height: 100svh;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
}


/* === SECCIÓN: Glassmorphism Cards === */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.card-glass:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.card-glass-static {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}


/* === SECCIÓN: Botones === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #FFFFFF !important;  /* guaranteed white text on any background */
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 32px rgba(201, 168, 76, 0.4);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.btn-ghost:hover {
  background: rgba(201, 168, 76, 0.08);
  transform: scale(1.02);
}

.btn-ghost:active {
  transform: scale(0.97);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--accent-cyan), #1E293B);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: var(--shadow-cyan);
}

.btn-cyan:hover {
  transform: scale(1.03);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.35);
}

.btn-emerald {
  background: var(--accent-emerald);
  color: #FFFFFF;
  font-weight: 700;
}

.btn-emerald:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(0, 200, 150, 0.3);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* === SECCIÓN: Precio Badge === */
.price-badge {
  color: var(--accent-gold);
  text-shadow: var(--shadow-gold);
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.price-badge-sm {
  color: var(--accent-gold);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}


/* === SECCIÓN: Badges y Tags === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.badge-cyan {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
}

.badge-silver {
  background: rgba(168, 178, 189, 0.1);
  color: var(--accent-silver);
  border: 1px solid rgba(168, 178, 189, 0.2);
}

.badge-emerald {
  background: rgba(0, 200, 150, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 200, 150, 0.25);
}

.badge-red {
  background: rgba(224, 85, 85, 0.1);
  color: var(--status-red);
  border: 1px solid rgba(224, 85, 85, 0.25);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}


/* === SECCIÓN: Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Lock the container to prevent any reflow when active link changes */
  min-height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-text .dot {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;       /* prevent wrapping = no reflow */
  flex-shrink: 0;             /* don't compress when space is tight */
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Lock CTA button width so it's identical on every page */
.nav-cta .btn {
  white-space: nowrap;
  min-width: max-content;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 10001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Slide Panel */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-secondary);
  z-index: 10000;
  padding: 80px 30px 30px;
  transition: right 0.4s var(--ease-out);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-panel.open {
  right: 0;
}

.mobile-nav-panel a {
  display: block;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.mobile-nav-panel a:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 968px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}


/* === SECCIÓN: Hero === */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-mesh {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at top right, var(--accent-gold-glow), transparent 60%);
  pointer-events: none;
}

.hero-mesh-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 40%;
  background: radial-gradient(ellipse at bottom left, var(--accent-cyan-glow), transparent 60%);
  pointer-events: none;
}

/* Static luminous particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.particle-gold {
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow), 0 0 40px var(--accent-gold-glow);
}

.particle-cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow), 0 0 40px var(--accent-cyan-glow);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-stat .stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

@media (max-width: 640px) {
  .hero-stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }
}


/* === SECCIÓN: Carrusel de Nichos === */
.niche-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.niche-carousel::-webkit-scrollbar {
  height: 6px;
}

.niche-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.niche-carousel::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

.niche-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.niche-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.niche-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}


/* === SECCIÓN: Pricing Cards === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-card.highlighted {
  transform: scale(1.05);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold), var(--shadow-card);
  z-index: 2;
}

.pricing-card .popular-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--accent-gold);
  color: #050505;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pricing-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pricing-price {
  margin-bottom: 20px;
}

.pricing-target {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features li .check {
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-not-included li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-not-included li .cross {
  color: var(--text-muted);
  flex-shrink: 0;
}

.plan-warning {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--status-yellow);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

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

  .pricing-card.highlighted {
    transform: none;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr); /* 2-col on mobile for fast scan */
  }
  .pricing-card h3 { font-size: 0.95rem; }
  .pricing-card {
    padding: 20px 16px;
  }
}
@media (max-width: 400px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}


/* === SECCIÓN: Plans MRR === */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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


/* === SECCIÓN: Cotizador A la Carta === */
.quoter-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quoter-module {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.quoter-module:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-gold);
}

.quoter-module.selected {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--accent-gold);
}

.quoter-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  color: transparent;
}

.quoter-module.selected .quoter-checkbox {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #050505;
}

.quoter-module-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.quoter-module-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.quoter-module-price {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.quoter-summary {
  position: sticky;
  top: 100px;
}

.quoter-total {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
}

.quoter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.quoter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--accent-gold);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quoter-chip:hover {
  background: rgba(201, 168, 76, 0.2);
}

.quoter-chip .chip-remove {
  font-size: 0.9rem;
  opacity: 0.7;
}

.quoter-suggestion {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border-gold);
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-top: 16px;
  display: none;
  line-height: 1.5;
}

.quoter-suggestion.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.quoter-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .quoter-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .quoter-modules {
    grid-template-columns: 1fr;
  }
}


/* === SECCIÓN: Acordeón === */
.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--bg-glass);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  gap: 16px;
}

.accordion-header:hover {
  background: var(--bg-glass-hover);
}

.accordion-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.accordion-body-inner {
  padding: 0 24px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}


/* === SECCIÓN: Footer === */
.footer {
  padding: 80px 0 30px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-brand .footer-logo .dot {
  color: var(--accent-gold);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* === SECCIÓN: WhatsApp Flotante === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(0, 200, 150, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 200, 150, 0.5);
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--border-subtle);
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}


/* === SECCIÓN: Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.modal-header h3 {
  font-size: 1.2rem;
}

.modal-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 28px 28px;
}


/* === SECCIÓN: Formularios === */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}


/* === SECCIÓN: Tablas (Admin/Vendor) === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: var(--bg-glass);
}


/* === SECCIÓN: Admin Sidebar === */
.admin-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.sidebar-link.active {
  color: var(--accent-gold);
  background: rgba(201, 168, 76, 0.08);
}

.sidebar-link svg,
.sidebar-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 24px;
  background: var(--bg-primary);
  min-height: 100vh;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--accent-gold);
}

.bottom-nav-item i {
  font-size: 1.2rem;
}

@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding-bottom: 80px;
  }

  .bottom-nav {
    display: block;
  }
}


/* === SECCIÓN: Bento Metrics === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bento-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card .bento-icon {
  font-size: 1.8rem;
}

.bento-card .bento-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bento-card .bento-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bento-card .bento-trend {
  font-size: 0.75rem;
  font-weight: 600;
}

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


/* === SECCIÓN: Kanban === */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 500px;
}

.kanban-column {
  min-width: 280px;
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.kanban-column-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kanban-column-header .col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.kanban-column-header h4 {
  font-size: 0.85rem;
  font-weight: 700;
  flex: 1;
}

.kanban-column-header .col-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 2px 8px;
  border-radius: 10px;
}

.kanban-cards {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100px;
}

.kanban-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: grab;
  transition: all 0.2s ease;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.kanban-card.drag-over {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.05);
}

.kanban-card .card-client {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.kanban-card .card-business {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.kanban-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kanban-card .card-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--status-yellow);
}

.kanban-card .card-timer.urgent {
  color: var(--status-red);
  animation: pulse-red 2s infinite;
}


/* === SECCIÓN: Semáforo CRM === */
.traffic-light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.traffic-green  { background: var(--status-green); box-shadow: 0 0 8px rgba(0, 200, 150, 0.4); }
.traffic-yellow { background: var(--status-yellow); box-shadow: 0 0 8px rgba(240, 165, 0, 0.4); }
.traffic-red    { background: var(--status-red); box-shadow: 0 0 8px rgba(224, 85, 85, 0.4); }


/* === SECCIÓN: Animaciones === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-gold-glow); }
  50%      { box-shadow: 0 0 0 12px transparent; }
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-number-exit {
  animation: slideDown 0.2s ease forwards;
}

.animate-number-enter {
  animation: slideUp 0.2s ease forwards;
}


/* === SECCIÓN: Utilidades === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }


/* === SECCIÓN: Page Header (Subpáginas) === */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  background: var(--bg-primary);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, var(--accent-gold-glow), transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.page-hero p {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}


/* === SECCIÓN: Responsive Global === */
@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .container {
    padding: 0 16px;
  }
}


/* === Logo Auto-Swap for Dark Mode === */
html[data-theme="dark"] img[src$="logo_gnosis.png"] {
    content: url('../../logo_gnosis_dark.jpg');
}


/* === Boton de tema y arreglar los colores === */
.theme-toggle-btn {
    color: var(--text-primary); 
}

[data-theme="dark"] .theme-toggle-btn {
    color: var(--text-primary);
}

.theme-toggle-icon {
    font-size: 1.2rem;
}
