@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- DESIGN SYSTEM TOKENS (PRESET: PREMIUM LIGHT MODE / EDITORIAL MINIMAL) --- */
:root {
  --bg-primary: #F8FAFC;       /* Slate 50 — fondo limpio tipo SaaS premium */
  --bg-secondary: #FFFFFF;     /* Blanco puro para cards y contenedores */
  --bg-tertiary: #F1F5F9;      /* Slate 100 para fondos secundarios */
  --bg-elevated: #E2E8F0;      /* Slate 200 para focus y hover */
  
  --text-primary: #0D1B2A;     /* Azul Marino Oscuro — autoridad y profesionalismo */
  --text-secondary: #1E293B;   /* Slate 800 — subtextos con alto contraste */
  --text-tertiary: #64748B;    /* Slate 500 — placeholders y labels apagadas */
  
  --accent-primary: #2563EB;   /* Azul Eléctrico — acción primaria, CTAs, botones */
  --accent-secondary: #22C55E; /* Verde Esmeralda — éxito, garantía, glow ready */
  --accent-error: #EF4444;     /* Red 500 — error, cancelado, reporte */
  
  --border-subtle: rgba(13, 27, 42, 0.05);
  --border-default: rgba(13, 27, 42, 0.08);
  --border-hover: rgba(13, 27, 42, 0.16);
  
  --accent-glow: rgba(37, 99, 235, 0.10);      /* Glow azul para CTAs activos */
  --accent-blue-glow: rgba(34, 197, 94, 0.10); /* Glow verde para estados de éxito */
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --z-base: 0;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;

  /* --- SPACING SCALE --- */
  --section-gap: 80px;        /* Espacio entre secciones principales */
  --section-padding-y: 72px;  /* Padding vertical interno de sección */
  --section-padding-y-sm: 48px; /* Padding vertical reducido */
}

/* --- RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* --- GLASS LAYOUTS & CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px 0 rgba(9, 9, 11, 0.03);
  transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px 0 rgba(9, 9, 11, 0.06);
}

/* --- HEADER TICKER (VELOCIDAD SUAVE Y TRANSICIÓN EXTRALENTA) --- */
.live-ticker {
  background: var(--text-primary);
  color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-slide 60s linear infinite; /* Gapless smooth scroll */
  will-change: transform;
}

.ticker-item {
  display: inline-block;
  padding: 0 48px;
  color: #a1a1aa; /* Gris claro en fondo oscuro */
}

.ticker-item span.success {
  color: var(--accent-primary);
  font-weight: 700;
}

.ticker-item span.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse-glow 1.5s infinite alternate;
}

/* --- NAVIGATION HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(250, 249, 246, 0.85); /* Fondo crema con transparencia */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
  z-index: var(--z-sticky);
  transition: background 0.3s var(--ease-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-icon {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(9, 9, 11, 0.04);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 8px;
  padding-top: 8px;
  margin-top: 0;       /* ← eliminado el gap que cerraba el menú */
  box-shadow: 0 10px 30px rgba(9, 9, 11, 0.06);
  display: none;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  /* Puente invisible de 12px sobre el menú para que el hover no se rompa */
  border-top: 12px solid transparent;
  background-clip: padding-box;
}

/* Pseudo-elemento de puente: cubre el gap entre el trigger y el menú */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-item {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-dropdown-item:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  gap: 8px;
}

.btn-primary {
  background: var(--text-primary); /* Botón principal negro en light mode */
  color: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(9, 9, 11, 0.25);
  background: #27272a;
}

.btn-primary.btn-glow-ready {
  animation: btn-glow-pulse 2.2s infinite ease-in-out;
  border-color: var(--accent-primary) !important;
  background: var(--accent-primary) !important;
  color: #ffffff !important;
}

@keyframes btn-glow-pulse {
  0% {
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
    transform: scale(1);
  }
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
}

.btn-accent {
  background: var(--accent-secondary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  background: #1d4ed8;
}


/* ================================================
   SISTEMA DE ESPACIADO DE SECCIONES
   Todas las secciones del landing deben usar
   .page-section para consistencia vertical.
   ================================================ */
.page-section {
  padding: var(--section-padding-y) 0;
}

.page-section--flush {
  padding: var(--section-padding-y-sm) 0;
}

/* --- BENTO HERO SECTION --- */

.hero-section {
  padding: 60px 0 0 0;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 55%;
  left: -187px;
  transform: translateY(-50%);
  width: 750px;
  height: 750px;
  background-image: url('assets/watermark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.035;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 991px) {
  .hero-section::after {
    width: 400px;
    height: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.02;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.hero-tag span.badge {
  background: var(--accent-glow);
  color: var(--accent-primary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span.glow {
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

/* --- SEARCH & AUTOCOMPLETE WIDGET --- */
.search-widget {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 56px;
  transition: all 0.3s var(--ease-smooth);
}

.search-input-wrap:focus-within {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 1px var(--accent-secondary), 0 8px 24px rgba(9, 9, 11, 0.05);
}

.search-input-wrap svg {
  color: var(--text-tertiary);
  margin-right: 12px;
}

.search-input {
  flex: 1;
  height: 100%;
  font-size: 16px;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  margin-top: 8px;
  box-shadow: 0 12px 40px rgba(9, 9, 11, 0.08);
  z-index: var(--z-overlay);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.search-results-group {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.search-results-group:last-child {
  border-bottom: none;
}

.search-group-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 6px 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.search-result-item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-result-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.search-result-item span.category {
  font-size: 11px;
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* --- THE 3-STEP UNLOCK WIZARD --- */
.wizard-box {
  padding: 32px;
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

.wizard-title {
  font-size: 20px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.wizard-step-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  white-space: nowrap;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}


.wizard-steps-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.step-indicator-item {
  flex: 1;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}

.step-indicator-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--accent-primary);
  animation: fill-width 0.4s var(--ease-smooth) forwards;
}

.step-indicator-item.completed {
  background: var(--accent-primary);
}

.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
}

/* Form Groups and Selects */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-select-wrap, .form-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 52px;
  transition: all 0.3s var(--ease-smooth);
}

.form-select-wrap:focus-within, .form-input-wrap:focus-within {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--text-primary);
}

.form-select-wrap select {
  width: 100%;
  height: 100%;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  appearance: none;
}

.form-input-wrap input {
  width: 100%;
  height: 100%;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
}

/* Grid of Brand Buttons (Quick Select with Generated Images) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.brand-select-btn {
  height: 84px; /* Un poco más alto para soportar las imágenes */
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px;
}

.brand-select-btn img.brand-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  transition: transform 0.3s var(--ease-smooth);
}

.brand-select-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.brand-select-btn:hover img.brand-img {
  transform: translateY(-2px) scale(1.05);
}

@keyframes brand-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.88); }
  65%  { transform: scale(1.12); }
  85%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.brand-select-btn.selected {
  border-color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.07);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 4px 12px rgba(16, 185, 129, 0.12);
}

.brand-select-btn.selected img.brand-img {
  animation: brand-pop 0.38s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Service Options Grid */
.service-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.service-option-card {
  border: 1px solid var(--border-default);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-option-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.service-option-card.selected {
  border: 2.5px solid var(--accent-primary);
  background: rgba(37, 99, 235, 0.07);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13), 0 4px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.status-option-card:hover {
  border-color: var(--border-hover) !important;
  background: var(--bg-secondary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,27,42,0.04);
}

.status-option-card.active-clean {
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.02) !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.08) !important;
}

.status-option-card.active-unpaid {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.02) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08) !important;
}

.status-option-card.active-blacklist {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.02) !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08) !important;
}

.status-option-card.active-unknown {
  border-color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.02) !important;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08) !important;
}


/* ── Scan Provider Cards ─────────────────────────────── */
.scan-provider-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(10px);
  animation: scan-card-enter 0.4s var(--ease-smooth) forwards;
}

#wizard-scan-cards {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

@keyframes scan-card-enter {
  to { opacity: 1; transform: translateY(0); }
}

.scan-provider-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.scan-status-chip {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.scan-status-chip.scanning {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-primary);
}

.scan-status-chip.ok {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  animation: chip-resolve 0.22s ease forwards;
}

.scan-status-chip.fail {
  background: rgba(239, 68, 68, 0.06);
  color: var(--accent-error);
  animation: chip-resolve 0.22s ease forwards;
}

.scan-status-chip.winner {
  background: rgba(234, 179, 8, 0.14);
  color: #92400e;
  animation: chip-resolve 0.22s ease forwards;
}

@keyframes chip-resolve {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.scan-spin {
  display: inline-block;
  animation: spin-anim 0.8s linear infinite;
}

@keyframes spin-anim {
  to { transform: rotate(360deg); }
}

.scan-success-banner {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1.5px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  animation: scan-card-enter 0.35s var(--ease-smooth) forwards;
}

@keyframes scan-container-exit {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

.scan-container-exiting {
  animation: scan-container-exit 0.35s ease forwards;
  pointer-events: none;
}

.service-card-info {
  flex: 1;
  min-width: 0;
}

.service-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.service-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
}

.meta-eta {
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-success {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-card-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-align: right;
  margin-left: 16px;
}

.price-free {
  color: var(--accent-primary);
}

/* Wizard Buttons Container */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

/* --- LIVE ETA & SIMULATORS IN HERO --- */
.hero-live-status {
  padding: 24px;
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.live-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.live-status-header span.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
}

.live-status-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.status-stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.pulse-green-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite ease-in-out;
  flex-shrink: 0;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-value.success-rate {
  color: var(--accent-primary);
}

.stat-value.eta {
  color: var(--accent-secondary);
}

/* Live success logs inside hero */
.live-logs-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 150px;
  overflow-y: hidden;
  position: relative;
}

.live-logs-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
  pointer-events: none;
}

.log-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  animation: slide-up 0.4s var(--ease-smooth);
}

.log-device {
  font-weight: 600;
  color: var(--text-primary);
}

.log-status {
  color: var(--accent-primary);
  font-weight: 700;
}

/* --- DIAGNOSTIC ASSISTANT SECTION --- */
.bento-section {
  /* padding viene de .page-section */
}

.section-header {
  margin-bottom: 48px;
  max-width: 600px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

/* Diagnostic Box */
.diagnostic-box {
  padding: 40px;
  border-color: var(--border-default);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.diagnostic-box:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4) !important;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.08) !important;
}

.simulator-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.simulator-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.6) !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12) !important;
}


.diagnostic-content-pane {
  display: none;
}

.diagnostic-content-pane.active {
  display: block;
  animation: fade-in 0.4s var(--ease-smooth);
}

.diag-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.diag-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 14px;
}

.diag-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.diag-option-btn {
  border: 1px solid var(--border-default);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diag-option-btn:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.diag-option-title {
  font-size: 15px;
  font-weight: 700;
}

.diag-option-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.diag-result-card {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.diag-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.diag-result-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.diagnostic-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* Small Bento Cards */
.bento-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bento-card {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.bento-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- SERVICES GRID CATALOGUE --- */
.services-section {
  /* padding viene de .page-section */
  border-top: 1px solid var(--border-default);
}

.services-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.filter-btn:hover, .filter-btn.active {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-secondary);
  border-color: var(--text-primary);
}

/* ── Catalog scroll wrapper ── */
.catalog-scroll-wrapper {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 6px 8px 2px; /* Margen de respiro arriba/abajo para la elevación de las tarjetas en hover */
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}
.catalog-scroll-wrapper::-webkit-scrollbar {
  width: 5px;
}
.catalog-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.catalog-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 99px;
}

/* ── Catalog 4-col grid ── */
.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.catalog-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  position: relative;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.08);
  border-color: var(--border-hover);
}

/* ── Pagination ── */
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.catalog-page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.catalog-page-btn:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}
.catalog-page-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.catalog-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.catalog-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-count-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.catalog-category-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  /* color e background se aplican dinámicamente por JS */
}

.catalog-brand-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 99px;
  /* color, bg y border se aplican dinámicamente por JS */
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 99px;
  border: 1.5px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.chip-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.chip-toggle.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.catalog-card-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.catalog-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.catalog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-default);
  padding-top: 16px;
  margin-top: 16px;
}

.catalog-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

/* --- Dynamic Views System (Router) --- */
.view-container {
  display: none;
  animation: fade-in 0.4s var(--ease-smooth);
}

.view-container.active {
  display: block;
}

/* --- PIZZA TRACKER VIEW --- */
.tracker-view {
  padding: 60px 0 100px 0;
}

.tracker-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.tracker-main-box {
  padding: 40px;
}

.tracker-side-box {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tracker-header {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tracker-id-title {
  font-size: 28px;
  margin-bottom: 4px;
}

.tracker-meta-info {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.tracker-meta-info span.badge {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.tracker-meta-info span.badge.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-secondary);
}

.tracker-meta-info span.badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
}

/* Pizza Tracker Step Flow */
.pizza-flow {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pizza-flow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 11px;
  bottom: 8px;
  width: 2px;
  background: var(--bg-elevated);
  z-index: 1;
}

.pizza-step {
  position: relative;
}

.pizza-node {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--bg-elevated);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-smooth);
}

.pizza-step.active .pizza-node {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-blue-glow);
}

.pizza-step.active .pizza-node::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse-glow 1s infinite alternate;
}

.pizza-step.completed .pizza-node {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
}

.pizza-step.completed .pizza-node::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.pizza-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.pizza-step.active .pizza-step-title {
  color: var(--text-primary);
}

.pizza-step.completed .pizza-step-title {
  color: var(--text-primary);
}

.pizza-step-desc {
  font-size: 13px;
  color: var(--text-tertiary);
}

.pizza-step.active .pizza-step-desc {
  color: var(--text-secondary);
}

/* Status Log Entries */
.tracker-logs {
  border-top: 1px solid var(--border-default);
  padding-top: 32px;
  margin-top: 32px;
}

.tracker-logs-title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tracker-log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}

.tracker-log-row {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}

.tracker-log-time {
  font-weight: 700;
  color: var(--accent-secondary);
}

/* --- CLIENT & ADMIN PANEL PANES --- */
.panel-layout {
  padding: 40px 0 80px 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

.panel-sidebar {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.panel-side-link:hover, .panel-side-link.active {
  color: var(--text-primary);
  background: rgba(9, 9, 11, 0.04);
}

.panel-side-link.active {
  border-left: 2px solid var(--text-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 700;
}

.panel-content-box {
  padding: 40px;
  min-height: 500px;
}

.panel-section-pane {
  display: none;
}

.panel-section-pane.active {
  display: block;
}

/* Table Design */
.panel-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  margin-top: 16px;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.panel-table th {
  background: var(--bg-tertiary);
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
}

.panel-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.panel-table tr:last-child td {
  border-bottom: none;
}

.panel-table tr:hover td {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Base badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Status Badge Classes */
.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.completado {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
}

.badge-status.procesando {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-secondary);
}

.badge-status.cancelado {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-error);
}

.badge-status.espera {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge-status.pendiente {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

/* Support ticket messages flow */
.ticket-chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
}

.chat-bubble.client {
  background: var(--text-primary);
  color: var(--bg-secondary);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-bubble.agent {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble-meta {
  font-size: 9px;
  color: var(--text-tertiary);
  margin-top: 4px;
  text-align: right;
}

/* --- HELP CENTER (BASE DE CONOCIMIENTOS) --- */
.help-view {
  padding: 60px 0 100px 0;
}

.help-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.help-category-card {
  padding: 24px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
}

.help-category-card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}

.help-category-card span.icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-accordion {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.faq-accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(9, 9, 11, 0.01);
  transition: all 0.3s var(--ease-smooth);
}

.faq-accordion-header:hover {
  background: rgba(9, 9, 11, 0.03);
}

.faq-accordion-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.faq-accordion-header span.arrow {
  transition: transform 0.3s var(--ease-smooth);
}

.faq-accordion.open .faq-accordion-header span.arrow {
  transform: rotate(180deg);
}

.faq-accordion-content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.48s ease-in-out, padding 0.38s ease-in-out, border-color 0.3s ease;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid transparent;
}

.faq-accordion.open .faq-accordion-content {
  padding: 20px 24px;
  /* max-height se aplica via JS con el scrollHeight real */
  border-top-color: var(--border-default);
}

/* --- BLOG SEO VIEW --- */
.blog-view {
  padding: 60px 0 100px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-post-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  cursor: pointer;
}

.blog-post-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  font-weight: 600;
}

.blog-post-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.blog-post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Full post reader overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 90%;
  max-height: 85%;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(9, 9, 11, 0.08);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-smooth);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-smooth);
}

.modal-close-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Stripe elements custom style */
/* Payment gateway tabs */
.payment-tab {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-default);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.payment-tab:hover {
  border-color: #2563EB;
  color: #2563EB;
}
.payment-tab.active {
  border-color: #2563EB;
  color: #2563EB;
  background: rgba(37,99,235,0.07);
}

/* Stripe Payment Element host */
#stripe-payment-element iframe {
  border-radius: 10px;
}

/* Contact views */
.contact-view {
  padding: 60px 0 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* --- FOOTER AS A MANIFESTO --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-manifesto-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 500px;
}

.footer-manifesto-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 550px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-links-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links-list a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-default);
  padding-top: 32px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  font-weight: 550;
}

.footer-stats-badge span.green-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-primary);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

@keyframes pulse-dot {
  0%   { transform: scale(1);    opacity: 1;    box-shadow: 0 0 0px #22C55E; }
  50%  { transform: scale(1.4);  opacity: 0.5;  box-shadow: 0 0 10px #22C55E; }
  100% { transform: scale(1);    opacity: 1;    box-shadow: 0 0 0px #22C55E; }
}

@keyframes fill-width {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes slide-up {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(-33.33%); } /* JS lo sobreescribe con píxeles exactos */
}

/* --- MOBILE FIRST RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-section {
    padding: 32px 0 0;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .services-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .catalog-scroll-wrapper {
    max-height: 480px;
  }
  .tracker-grid {
    grid-template-columns: 1fr;
  }
  .panel-layout {
    grid-template-columns: 1fr;
  }
  .panel-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-default);
  }
  .panel-side-link {
    white-space: nowrap;
    padding: 8px 12px;
  }
  .panel-side-link.active {
    border-left: none;
    border-bottom: 2px solid var(--text-primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .catalog-scroll-wrapper {
    max-height: 400px;
  }
  .catalog-card {
    min-height: 160px;
    padding: 14px;
  }
  .catalog-pagination {
    gap: 4px;
  }
  .catalog-page-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .help-categories-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 32px;
  }
  .wizard-box {
    padding: 16px;
  }
  .panel-content-box {
    padding: 20px;
  }
  .modal-box {
    padding: 24px;
  }
  .site-header {
    padding: 0 12px;
  }
  .live-ticker {
    font-size: 9px;
  }
  .live-status-stats {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  /* ── NAV MOBILE ── */
  .nav-container {
    height: 58px;
  }
  .logo img {
    height: 40px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-btn-guide {
    padding: 8px 10px;
    font-size: 0; /* Ocultar texto, solo mostrar emoji */
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-btn-guide span {
    font-size: 16px;
    margin: 0;
  }
  .nav-actions .btn-primary {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* ── HERO SECTION MOBILE ── */
  .hero-section {
    padding: 20px 0 0;
  }
  .container {
    padding: 0 16px;
  }
  .hero-tag {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ── WIZARD MOBILE ── */
  .wizard-box {
    padding: 14px;
    border-radius: var(--radius-md);
  }
  .wizard-title {
    font-size: 15px;
    gap: 8px;
  }
  .wizard-title-row {
    margin-bottom: 12px;
  }
  .wizard-step-counter {
    font-size: 10px;
    padding: 3px 8px;
    white-space: nowrap;
  }
  .wizard-steps-indicator {
    gap: 4px;
    margin-bottom: 16px;
  }
  .step-indicator-item {
    height: 3px;
  }
  .wizard-footer {
    padding-top: 12px;
    margin-top: 12px;
  }
  .wizard-footer .btn {
    font-size: 13px;
    padding: 10px 18px;
  }

  /* ── BRAND GRID MOBILE ── */
  .brand-select-btn {
    height: 70px;
    padding: 6px 4px;
    font-size: 10px;
    gap: 5px;
  }
  .brand-select-btn img.brand-img {
    width: 28px;
    height: 28px;
  }

  /* ── HERO MARQUEE MOBILE ── */
  .hero-brand-marquee-wrap {
    padding: 12px 0 24px;
    margin-top: 12px;
  }
  .hero-marquee-label {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .marquee-item {
    padding: 6px 10px;
    gap: 8px;
  }
  .marquee-brand-logo {
    width: 22px;
    height: 22px;
  }
  .marquee-brand-name {
    font-size: 12px;
  }
  .marquee-brand-stats {
    font-size: 10px;
  }

  /* ── CATALOG CARDS MOBILE ── */
  .catalog-card {
    padding: 12px;
    min-height: 140px;
  }
  .catalog-card-title {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .catalog-card-desc {
    font-size: 11px;
  }
  .catalog-card-footer {
    padding-top: 10px;
    gap: 8px;
  }
  .catalog-price {
    font-size: 14px;
  }

  /* ── BENTO / STATS SECTION MOBILE ── */
  .page-section {
    padding: 32px 0;
  }
  .section-title {
    font-size: 22px;
  }
  .section-subtitle {
    font-size: 13px;
  }

  /* ── GLOBAL GLASS PANEL MOBILE ── */
  .glass-panel {
    border-radius: var(--radius-md);
  }
}

/* --- EXTRA SMALL (≤380px) --- */
@media (max-width: 380px) {
  .hero-title {
    font-size: 24px;
  }
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .wizard-step-counter {
    font-size: 9px;
  }
  .services-catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* --- TOUR VIRTUAL SPOTLIGHT OVERLAY --- */
.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.tour-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tour-highlight {
  position: relative !important;
  z-index: 9990 !important;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.25), 0 0 0 4px var(--accent-secondary) !important;
  background: var(--bg-secondary) !important;
  border-color: var(--accent-secondary) !important;
  transition: box-shadow 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth) !important;
}

#tour-tooltip {
  z-index: 9999 !important;
  border-color: var(--accent-secondary) !important;
}

/* --- ELEVACIÓN DINÁMICA DE CABECERA DURANTE EL TOUR --- */
.site-header.tour-active-header {
  z-index: 10000 !important;
}

/* --- WIDGET FLOTANTE DE SIMULACIÓN DE ROL (DEMO) --- */
#demo-role-widget {
  display: none; /* Oculto en producción */
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(9, 9, 11, 0.06);
  z-index: 9950;
  width: 160px;
  transition: all 0.3s var(--ease-smooth);
}
#demo-role-widget:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(9, 9, 11, 0.1);
  transform: translateY(-2px);
}

/* --- TOAST DE NOTIFICACIÓN DE WHATSAPP MOCK --- */
#whatsapp-notification-toast {
  position: fixed;
  top: -160px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-left: 5px solid #25D366;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 15px 40px rgba(9, 9, 11, 0.12);
  z-index: 12000;
  width: 330px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  opacity: 0;
  cursor: pointer;
}
#whatsapp-notification-toast.active {
  transform: translateY(200px);
  opacity: 1;
}
.wa-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.wa-toast-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- CLIENT LOGIN INTERFACE --- */
.client-login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  padding: 40px 0;
  width: 100%;
}
.login-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  box-shadow: 0 15px 40px rgba(9, 9, 11, 0.03);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-smooth);
}
.login-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(9, 9, 11, 0.06);
}

/* --- HERO BRAND MARQUEE WRAPPER (inside hero section) --- */
.hero-brand-marquee-wrap {
  width: 100%;
  border-top: 1px solid var(--border-default);
  padding: 20px 0 40px;
  margin-top: 20px;
  overflow-x: hidden;
  overflow-y: visible;
}

.hero-marquee-label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

/* --- BRAND MARQUEE STYLE --- */
.brand-marquee-section {

  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 32px 0;
  background: var(--bg-secondary);
}

.marquee-wrapper {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: 6px; /* respiro para el translateY del hover */
}

.marquee-content {
  display: inline-flex; /* inline-flex: se expande al ancho real del contenido */
  gap: 24px;
  animation: marquee-scroll 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  transition: all 0.3s var(--ease-smooth);
}

.marquee-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.04);
}

.marquee-brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.marquee-brand-info {
  display: flex;
  flex-direction: column;
}

.marquee-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.marquee-brand-stats {
  font-size: 10px;
  color: var(--accent-primary);
  font-weight: 600;
}

/* Hover glows for marcas */
.marquee-item[data-brand="apple"]:hover {
  box-shadow: 0 8px 30px rgba(161, 161, 170, 0.2);
  border-color: #a1a1aa;
}
.marquee-item[data-brand="samsung"]:hover {
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
  border-color: var(--accent-secondary);
}
.marquee-item[data-brand="xiaomi"]:hover {
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.2);
  border-color: #f97316;
}
.marquee-item[data-brand="motorola"]:hover {
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
}
.marquee-item[data-brand="huawei"]:hover {
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.2);
  border-color: var(--accent-error);
}
.marquee-item[data-brand="google"]:hover {
  box-shadow: 0 8px 30px rgba(234, 179, 8, 0.2);
  border-color: #eab308;
}
.marquee-item[data-brand="oppo"]:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
  border-color: var(--accent-primary);
}
.marquee-item[data-brand="vivo"]:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
  border-color: #2563EB;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- CARRIER SELECTION COLLAPSE (step 3 wizard) --- */
@keyframes carrier-chip-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.13); box-shadow: 0 0 0 4px rgba(37,99,235,0.18); }
  65%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.carrier-chip-pop {
  animation: carrier-chip-pop 0.38s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

#carrier-extras {
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  max-height: 500px;
  opacity: 1;
}
#carrier-extras.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

#carrier-confirmed {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(37,99,235,0.05);
  border: 1.5px solid rgba(37,99,235,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 4px;
  animation: fadeInUp 0.28s ease forwards;
}
#carrier-confirmed.visible {
  display: flex;
}

#carrier-confirmed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* --- PHONE SIMULATOR --- */
.phone-mock-wrapper {
  padding: 10px;
}

.phone-mock-body {
  width: 200px;
  height: 330px;
  background: #18181b;
  border-radius: var(--radius-xl);
  border: 4px solid #3f3f46;
  position: relative;
  box-shadow: 0 20px 50px rgba(9, 9, 11, 0.15),
              inset 0 0 10px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 12px 6px;
  overflow: hidden;
  animation: float-phone 4s ease-in-out infinite;
}

.phone-camera-notch {
  width: 50px;
  height: 12px;
  background: #000;
  border-radius: var(--radius-pill);
  margin: 0 auto 10px auto;
  position: relative;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.screen-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  box-sizing: border-box;
}

.lock-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: transparent;
  transition: all 0.2s var(--ease-smooth);
}

.pin-dot.filled {
  background: var(--text-primary);
  border-color: var(--text-primary);
  transform: scale(1.2);
}

#sim-status-log {
  font-family: 'Courier New', Courier, monospace;
  background: #09090b;
  color: #22c55e;
  border-radius: var(--radius-sm);
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
  text-shadow: 0 0 2px rgba(34, 197, 94, 0.5);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(37, 99, 235, 0.1);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float-phone {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes shake-lock {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px) rotate(-3deg); }
  40%, 80% { transform: translateX(6px) rotate(3deg); }
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  }
}

/* --- REVIEWS BENTO GRID --- */
.reviews-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.bento-w-2 {
  grid-column: span 2;
}

.badge-status {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.completado {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-primary);
}

.badge-status.procesando {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-secondary);
}

/* Responsive grid overrides */
@media (max-width: 1024px) {
  .reviews-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-w-2 {
    grid-column: span 1;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* --- OPTIMIZATIONS & NEW UX COMPONENTS --- */

/* Hero CTA Button Hover Effects */
.hero-cta-group .btn-primary {
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), background-color 0.2s var(--ease-smooth);
}
.hero-cta-group .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  background-color: #059669; /* Slightly darker emerald */
}
.hero-cta-group .btn-primary:active {
  transform: translateY(0);
}

/* FAQ Accordion Styling */
.faq-accordion-item {
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
.faq-accordion-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}
.faq-accordion-item.active {
  border-color: var(--accent-secondary);
  background: var(--bg-secondary);
}
.faq-accordion-item.active .faq-answer-content {
  display: block !important;
}
.faq-accordion-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Popular Catalog Card Badge & Highlight */
.catalog-card.popular-highlight {
  border: 2px solid var(--accent-secondary) !important;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.04), var(--bg-secondary)) !important;
}
.badge-popular {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
  z-index: 2;
  white-space: nowrap;
}

/* Glow & Pulse Animation for Wizard Card */
@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(1);
  }
}

.wizard-box.glow-pulse-active {
  animation: glow-pulse 1.6s cubic-bezier(0.25, 1, 0.5, 1) 1;
  border-color: var(--accent-primary) !important;
}

/* --- FILE UPLOAD ZONE & PREVIEW --- */
.file-upload-zone {
  border: 2px dashed var(--border-hover);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  margin-top: 8px;
}

.file-upload-zone:hover {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.file-upload-content svg {
  color: var(--text-tertiary);
  transition: color 0.3s;
}

.file-upload-zone:hover .file-upload-content svg {
  color: var(--accent-primary);
}

.file-upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.file-upload-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.05);
}

/* --- ADMIN SCREENSHOT LIGHTBOX MODAL --- */
.screenshot-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-overlay);
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s var(--ease-smooth);
}

.screenshot-modal.active {
  display: flex;
}

.screenshot-modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  padding: 24px;
  border-radius: var(--radius-lg);
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(9, 9, 11, 0.3);
}

.screenshot-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-tertiary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.screenshot-modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.screenshot-modal-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}

/* Autocomplete Dropdown overlay for Step 2 */
.model-search-wrapper {
  position: relative;
}

.model-dropdown-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 6px;
  box-shadow: var(--shadow-lg);
}

.dropdown-option-item {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-default);
  transition: background 0.2s ease;
}

.dropdown-option-item:last-child {
  border-bottom: none;
}

.dropdown-option-item:hover {
  background: var(--bg-tertiary);
}

.dropdown-option-item.selected {
  background: var(--bg-primary);
  color: var(--accent-primary);
  font-weight: 600;
}



/* ── ADMIN MARCAS & COMPANIAS ── */
.logo-admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.logo-admin-row:hover {
  border-color: var(--border-default);
}

.logo-admin-preview {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs, 4px);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-upload-btn {
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
  transition: background 0.15s;
  line-height: 1;
  user-select: none;
}

.logo-upload-btn:hover {
  background: var(--bg-tertiary);
}

/* ── DIAGNÓSTICO INTELIGENTE ── */
.diag-back-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 0 0 10px 0;
  display: block;
  transition: color 0.15s;
}
.diag-back-btn:hover { color: var(--accent-primary); }

.diag-option-icon {
  font-size: 26px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.diag-option-img-btn { flex-direction: column; gap: 6px; }

.diag-option-img-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.diag-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.diag-brand-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  text-align: center;
  line-height: 1.2;
}
.diag-brand-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.diag-locktype-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── CATALOG BRAND CHIPS ── */
.catalog-brand-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 4px 0;
}

.catalog-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border-default);
  background: var(--bg-secondary);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.catalog-brand-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.catalog-brand-chip.active {
  border-color: var(--accent-primary);
  background: rgba(37,99,235,0.08);
  color: var(--accent-primary);
}

@media (max-width: 640px) {
  .diag-brand-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .diag-brand-btn { padding: 8px 4px; font-size: 10px; }
  .catalog-brand-chips-row { gap: 5px; }
  .catalog-brand-chip { padding: 3px 10px; font-size: 10px; }
}

/* ── DIAGNÓSTICO — TARJETAS DE RESULTADO INTELIGENTE ── */
.diag-result-service-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.diag-result-service-card:hover {
  border-color: var(--accent-primary);
}

/* ── CHAT WIDGET ── */
#chat-widget-btn:hover { transform: scale(1.08); }
#chat-widget-panel { display: none; flex-direction: column; }
#chat-widget-panel.open { display: flex; }
#chat-messages-list { scrollbar-width: thin; scrollbar-color: var(--border-subtle) transparent; }

@keyframes chat-dot {
  0%, 60%, 100% { opacity: 0.2; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1.1); }
}

@keyframes chat-ping {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes btn-sweep {
  0%   { left: -80%; }
  100% { left: 130%; }
}

.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -80%;
  width: 45%;
  height: 120%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.38) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.btn-shine:hover::after {
  animation: btn-sweep 0.55s ease forwards;
}
.btn-shine:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
  transform: translateY(-1px);
}

#chat-widget-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22), rgba(255,255,255,0));
  pointer-events: none;
}

@keyframes chat-label-pop {
  0%   { opacity: 0; transform: translateX(12px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Auto-ocultar label después de 6s */
#chat-label-bubble {
  animation: chat-label-pop 0.4s ease 1.5s both, chat-label-hide 0.3s ease 6s forwards;
}

@keyframes chat-label-hide {
  to { opacity: 0; pointer-events: none; }
}
