/* ==========================================================================
   Baterías JM - Minimalist Light Components
   Clean, Orderly, High-Conversion UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Top Notice Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.4rem 0;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-link {
  color: var(--text-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-link:hover {
  color: var(--brand-primary);
}

/* --------------------------------------------------------------------------
   1. Sticky Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-medium);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-toggle-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-toggle-btn svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   2. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-surface) 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-orange-light);
  border: 1px solid var(--border-orange);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-tagline-text {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-title span.highlight {
  color: var(--brand-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.hero-metric-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-metric-num span {
  color: var(--brand-primary);
}

.hero-metric-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hero Right: Clean Image Visual Card */
.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-img-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-container img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hero-img-container:hover img {
  transform: scale(1.02);
}

.hero-card-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-card-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. Vehicle Battery Finder (Minimalist Form)
   -------------------------------------------------------------------------- */
.finder-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.finder-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1rem;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-label svg {
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
}

.form-select, .form-input {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 500;
  width: 100%;
  transition: all var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Finder Result */
.finder-result-container {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.finder-result-container.active {
  display: block;
}

.finder-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.finder-result-vehicle-info h4 {
  color: var(--text-primary);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.finder-result-specs {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.finder-battery-details h5 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-tag.brand {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-color: var(--border-primary);
}

.badge-tag.orange {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  border-color: var(--border-orange);
}

.badge-tag.critical {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.badge-tag.good {
  background: var(--accent-green-light);
  color: var(--accent-green);
  border-color: rgba(22, 163, 74, 0.25);
}

[data-theme="dark"] .badge-tag.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="dark"] .badge-tag.good {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

/* --------------------------------------------------------------------------
   4. Benefits & Value Proposition (With Real Downloaded Images)
   -------------------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.benefit-img-wrapper {
  width: 100%;
  height: 180px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.benefit-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  padding: 0;
  border-radius: calc(var(--radius-md) - 1px);
}

.benefit-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.benefit-description {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. Interactive Battery Catalog
   -------------------------------------------------------------------------- */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cat-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-tab-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.cat-tab-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.brand-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.brand-chip {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.brand-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.brand-chip.active {
  background: var(--bg-surface-alt);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Trade-In Banner */
.tradein-bar {
  background: var(--accent-green-light);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tradein-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tradein-info svg {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.tradein-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tradein-text strong {
  color: var(--accent-green);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.product-badge-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-orange-light);
  border: 1px solid var(--border-orange);
  color: var(--accent-orange);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.product-header {
  margin-bottom: 0.75rem;
}

.product-brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.2rem;
}

.product-name {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.product-img-box {
  width: 100%;
  height: 136px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.product-img-box img {
  max-height: 100px;
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.product-card:hover .product-img-box img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.spec-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: column;
}

.spec-pill-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.spec-pill-value {
  font-size: 0.825rem;
  color: var(--text-primary);
  font-weight: 700;
}

.product-quote-badge {
  margin-bottom: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   6. Diagnostic Tool
   -------------------------------------------------------------------------- */
.diagnostic-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.quiz-step-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.quiz-option-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-option-card:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-light);
}

.quiz-option-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.quiz-option-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.diag-result-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-medium);
}

.diag-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.diag-status-badge.critical {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.diag-status-badge.warning {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  border: 1px solid var(--border-orange);
}

.diag-status-badge.good {
  background: var(--accent-green-light);
  color: var(--accent-green);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

/* --------------------------------------------------------------------------
   7. Coverage Zones
   -------------------------------------------------------------------------- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.coverage-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.coverage-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.coverage-info h5 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.coverage-city {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.eta-time {
  font-size: 0.925rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.eta-status {
  font-size: 0.725rem;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   8. Testimonials
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.test-stars {
  display: flex;
  gap: 0.2rem;
  color: #f59e0b;
  margin-bottom: 0.85rem;
}

.test-stars svg {
  width: 16px;
  height: 16px;
}

.test-comment {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.test-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.test-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.test-author-vehicle {
  font-size: 0.775rem;
  color: var(--brand-primary);
}

/* --------------------------------------------------------------------------
   9. FAQs
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-item.active {
  border-color: var(--brand-primary);
}

.faq-header {
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--text-primary);
}

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-body {
  padding: 0 1.35rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-body {
  display: block;
}

/* --------------------------------------------------------------------------
   10. Footer (Clean Minimalist)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-medium);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links-list a:hover {
  color: var(--brand-primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.825rem;
}

.payment-methods-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-badge {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   11. Floating WhatsApp & Modal
   -------------------------------------------------------------------------- */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.whatsapp-popup-pill {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.floating-whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.06);
}

.floating-whatsapp-btn svg {
  width: 30px;
  height: 30px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.97);
  transition: transform var(--transition-fast);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   12. Subpages, Breadcrumbs & Detail Components
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.breadcrumbs .sep {
  color: var(--border-strong);
  font-size: 0.75rem;
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 700;
}

.page-hero {
  background: linear-gradient(180deg, var(--bg-surface-alt) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0 2.5rem;
}

.page-hero-inner {
  max-width: 860px;
}

.page-hero-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

/* Grids & Cards */
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-card-icon.orange {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
}

.info-card-icon.green {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
}

.info-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.info-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Process Timeline / Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Technical Specs Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  background: #ffffff;
  margin: 1.5rem 0;
}

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

.tech-table th {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-medium);
  white-space: nowrap;
}

.tech-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table tr:hover td {
  background: var(--bg-subtle);
}

/* Content & Article Formatting */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}

.article-container h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.85rem;
  color: var(--text-primary);
}

.article-container h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--text-primary);
}

.article-container p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
}

.article-container ul, .article-container ol {
  margin: 0.5rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-container li {
  margin-bottom: 0.35rem;
}

.article-highlight-box {
  background: var(--bg-surface-alt);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.article-highlight-box p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. Universal Interactive Image Lightbox Modal
   -------------------------------------------------------------------------- */
.clickable-image,
.product-img-box img,
.benefit-img-wrapper img,
.brand-showcase-img,
.gallery-img,
.article-container img {
  cursor: zoom-in;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.clickable-image:hover,
.product-img-box:hover img,
.benefit-card:hover .benefit-img-wrapper img {
  transform: scale(1.04);
}

.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 40, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.image-lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lightboxZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #ffffff;
  padding: 0.5rem;
}

.image-lightbox-caption {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
}

.image-lightbox-close {
  position: absolute;
  top: -45px;
  right: -10px;
  background: #ffffff;
  color: var(--text-primary);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.image-lightbox-close:hover {
  background: var(--brand-primary);
  color: #ffffff;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   15. Theme Toggle Button & Dark Mode Component Overrides
   -------------------------------------------------------------------------- */
/* ==========================================================================
   15. Theme Toggle Button & Dark Mode Component Overrides (Negro, Gris, Amarillo)
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--border-subtle);
  border-color: #eab308;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Icon visibility */
.theme-toggle-btn .sun-icon {
  display: none;
  color: #facc15;
}

.theme-toggle-btn .moon-icon {
  display: block;
  color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle-btn {
  background: #17171a;
  border-color: #333338;
  color: #facc15;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
  transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: #222226;
  border-color: #facc15;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

/* --------------------------------------------------------------------------
   Dark Mode High-Contrast Automotive Overrides (Black, Graphite & Yellow)
   -------------------------------------------------------------------------- */
[data-theme="dark"] .site-header {
  background: rgba(0, 0, 0, 0.94);
  border-bottom-color: #222226;
}

[data-theme="dark"] .site-header.scrolled {
  border-bottom-color: #333338;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .top-bar {
  background: #000000;
  border-bottom-color: #1a1a1c;
  color: #a1a1aa;
}

[data-theme="dark"] .top-bar-item svg {
  color: #facc15;
}

[data-theme="dark"] .top-bar-link {
  color: #facc15;
}

[data-theme="dark"] .top-bar-link:hover {
  color: #ffffff;
}

[data-theme="dark"] .nav-link {
  color: #a1a1aa;
}

[data-theme="dark"] .nav-link:hover {
  color: #ffffff;
}

[data-theme="dark"] .nav-link.active {
  color: #facc15;
}

[data-theme="dark"] .nav-link.active::after {
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
}

[data-theme="dark"] .mobile-toggle-btn {
  background: #17171a;
  border-color: #333338;
  color: #ffffff;
}

[data-theme="dark"] .mobile-drawer {
  background: #000000;
  border-left-color: #222226;
}

[data-theme="dark"] .mobile-drawer-header {
  border-bottom-color: #222226;
}

[data-theme="dark"] .mobile-drawer-link {
  color: #ffffff;
  border-bottom-color: #1a1a1c;
}

[data-theme="dark"] .mobile-drawer-link:hover {
  color: #facc15;
  background: #121214;
}

[data-theme="dark"] .mobile-drawer-link span {
  color: #facc15;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, #000000 0%, #0d0d0f 100%);
  border-bottom: 1px solid #222226;
}

[data-theme="dark"] .page-hero {
  background: linear-gradient(180deg, #0d0d0f 0%, #000000 100%);
  border-bottom: 1px solid #222226;
}

[data-theme="dark"] .hero-visual-card {
  background: #121214;
  border-color: #222226;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .hero-img-container {
  background: #000000;
  border-color: #222226;
}

[data-theme="dark"] .hero-tagline-box {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.4);
}

[data-theme="dark"] .hero-tagline-text {
  color: #facc15;
}

[data-theme="dark"] .hero-title span.highlight {
  color: #facc15;
}

[data-theme="dark"] .hero-metric-num span {
  color: #facc15;
}

[data-theme="dark"] .hero-card-feature-item svg {
  color: #facc15;
}

[data-theme="dark"] .section-tag,
[data-theme="dark"] .section-tag.brand,
[data-theme="dark"] .section-tag.orange {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.4);
  color: #facc15;
}

[data-theme="dark"] .section-tag.green {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .coverage-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .trust-item,
[data-theme="dark"] .brand-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .diagnostic-step-card,
[data-theme="dark"] .quick-nav-card,
[data-theme="dark"] .feature-card {
  background: #0d0d0f;
  border: 1px solid #222226;
}

[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .info-card:hover,
[data-theme="dark"] .benefit-card:hover,
[data-theme="dark"] .coverage-card:hover,
[data-theme="dark"] .brand-card:hover,
[data-theme="dark"] .service-card:hover {
  border-color: #facc15;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(250, 204, 21, 0.18);
}

[data-theme="dark"] .product-brand-tag {
  color: #facc15;
  font-weight: 800;
}

[data-theme="dark"] .product-name {
  color: #ffffff;
}

[data-theme="dark"] .product-img-box {
  background: #141417;
  border-color: #24242a;
}

[data-theme="dark"] .product-img-box img {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

[data-theme="dark"] .product-badge-float {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.4);
  color: #facc15;
}

[data-theme="dark"] .benefit-img-wrapper {
  background: #17171a;
  border-color: #222226;
}

[data-theme="dark"] .benefit-title,
[data-theme="dark"] .info-card-title {
  color: #ffffff;
}

[data-theme="dark"] .benefit-description,
[data-theme="dark"] .info-card-desc {
  color: #d4d4d8;
}

[data-theme="dark"] .info-card-icon {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}

[data-theme="dark"] .step-number {
  background: #facc15;
  color: #000000;
  font-weight: 800;
}

[data-theme="dark"] .finder-box,
[data-theme="dark"] .diagnostic-card,
[data-theme="dark"] .quiz-container,
[data-theme="dark"] .article-container {
  background: #0d0d0f;
  border-color: #222226;
}

[data-theme="dark"] .form-label {
  color: #d4d4d8;
}

[data-theme="dark"] .form-label svg {
  color: #facc15;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
  background-color: #17171a;
  color: #ffffff;
  border-color: #333338;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus {
  border-color: #facc15;
  background-color: #1e1e24;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

[data-theme="dark"] .form-select option {
  background-color: #17171a;
  color: #ffffff;
}

[data-theme="dark"] .finder-result-card {
  background: #17171a;
  border-color: #222226;
}

[data-theme="dark"] .finder-result-vehicle-info h4 {
  color: #ffffff;
}

[data-theme="dark"] .finder-result-specs {
  color: #d4d4d8;
}

[data-theme="dark"] .tradein-bar {
  background: #0e1711;
  border-color: rgba(74, 222, 128, 0.3);
  color: #ffffff;
}

[data-theme="dark"] .tradein-text {
  color: #ffffff;
}

[data-theme="dark"] .quiz-option-card {
  background: #17171a;
  border-color: #222226;
  color: #ffffff;
}

[data-theme="dark"] .quiz-option-card:hover {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.1);
}

[data-theme="dark"] .quiz-option-title {
  color: #ffffff;
}

[data-theme="dark"] .quiz-option-desc {
  color: #a1a1aa;
}

[data-theme="dark"] .diag-result-card {
  background: #17171a;
  border-color: #333338;
}

[data-theme="dark"] .coverage-info h5 {
  color: #ffffff;
}

[data-theme="dark"] .coverage-city {
  color: #9ca3af;
}

[data-theme="dark"] .eta-time {
  color: #facc15;
}

[data-theme="dark"] .test-stars {
  color: #facc15;
}

[data-theme="dark"] .test-comment {
  color: #d4d4d8;
}

[data-theme="dark"] .test-author-name {
  color: #ffffff;
}

[data-theme="dark"] .test-author-vehicle {
  color: #facc15;
}

[data-theme="dark"] .test-verified-badge {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

[data-theme="dark"] .faq-item {
  background: #0d0d0f;
  border-color: #222226;
}

[data-theme="dark"] .faq-item.active {
  border-color: #facc15;
}

[data-theme="dark"] .faq-header {
  color: #ffffff;
}

[data-theme="dark"] .faq-icon {
  color: #9ca3af;
}

[data-theme="dark"] .faq-item.active .faq-icon {
  color: #facc15;
}

[data-theme="dark"] .faq-body {
  color: #d4d4d8;
}

[data-theme="dark"] .table-responsive {
  background: #0d0d0f;
  border-color: #222226;
}

[data-theme="dark"] .tech-table {
  background: #0d0d0f;
}

[data-theme="dark"] .tech-table th {
  background: #17171a;
  color: #facc15;
  border-bottom: 1px solid #222226;
}

[data-theme="dark"] .tech-table td {
  border-bottom-color: #222226;
  color: #d4d4d8;
}

[data-theme="dark"] .tech-table tbody tr:hover {
  background: #1c1c20;
}

[data-theme="dark"] .article-container h1,
[data-theme="dark"] .article-container h2,
[data-theme="dark"] .article-container h3,
[data-theme="dark"] .article-container h4 {
  color: #ffffff;
}

[data-theme="dark"] .article-container p,
[data-theme="dark"] .article-container li {
  color: #d4d4d8;
}

[data-theme="dark"] .article-highlight-box {
  background: #17171a;
  border-left-color: #facc15;
  color: #ffffff;
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .modal-content {
  background: #0d0d0f;
  border-color: #222226;
  color: #ffffff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .modal-close-btn {
  color: #a1a1aa;
}

[data-theme="dark"] .modal-close-btn:hover {
  color: #facc15;
}

[data-theme="dark"] .breadcrumbs {
  background: rgba(13, 13, 15, 0.8);
  border-color: #222226;
  color: #a1a1aa;
}

[data-theme="dark"] .breadcrumbs a {
  color: #a1a1aa;
}

[data-theme="dark"] .breadcrumbs a:hover {
  color: #facc15;
}

[data-theme="dark"] .breadcrumbs .current {
  color: #facc15;
}

[data-theme="dark"] .brand-filters {
  background: #0d0d0f;
  border-color: #222226;
}

[data-theme="dark"] .brand-chip {
  background: #17171a;
  color: #d4d4d8;
  border-color: #333338;
}

[data-theme="dark"] .brand-chip:hover {
  border-color: #facc15;
  color: #facc15;
}

[data-theme="dark"] .brand-chip.active {
  background: #facc15;
  color: #000000 !important;
  border-color: #facc15;
}

[data-theme="dark"] .cat-tab-btn {
  background: #121214;
  color: #d4d4d8;
  border-color: #333338;
}

[data-theme="dark"] .cat-tab-btn:hover {
  color: #facc15;
  border-color: #facc15;
}

[data-theme="dark"] .cat-tab-btn.active {
  background: #facc15;
  color: #000000 !important;
  border-color: #facc15;
}

[data-theme="dark"] .spec-pill {
  background: #17171a;
  border-color: #222226;
}

[data-theme="dark"] .badge-tag {
  background: #17171a;
  border-color: #222226;
  color: #d4d4d8;
}

[data-theme="dark"] .badge-tag.brand,
[data-theme="dark"] .badge-tag.orange {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.4);
  color: #facc15;
}

[data-theme="dark"] .site-footer {
  background: #000000;
  border-top-color: #222226;
  color: #a1a1aa;
}

[data-theme="dark"] .footer-col-title {
  color: #ffffff;
}

[data-theme="dark"] .footer-links-list a {
  color: #a1a1aa;
}

[data-theme="dark"] .footer-links-list a:hover {
  color: #facc15;
}

[data-theme="dark"] .footer-contact-item svg {
  color: #facc15;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #1a1a1c;
  color: #71717a;
}

[data-theme="dark"] .payment-badge {
  background: #17171a;
  border-color: #222226;
  color: #d4d4d8;
}

[data-theme="dark"] .whatsapp-popup-pill {
  background: #17171a;
  border-color: #333338;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.12));
}

[data-theme="dark"] .image-lightbox-overlay {
  background: rgba(0, 0, 0, 0.94);
}

[data-theme="dark"] .image-lightbox-img {
  background: #17171a;
  border: 1px solid #222226;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .image-lightbox-container {
  background: transparent;
  border: none;
}

[data-theme="dark"] .image-lightbox-caption {
  background: rgba(23, 23, 26, 0.9);
  color: #f4f4f5;
  border: 1px solid #333338;
}

[data-theme="dark"] .image-lightbox-close {
  background: #17171a;
  color: #ffffff;
  border: 1px solid #333338;
}

[data-theme="dark"] .image-lightbox-close:hover {
  background: #facc15;
  color: #000000;
  border-color: #facc15;
}





/* ==========================================================================
   12. AI Virtual Assistant Floating Chatbot Widget (Powered by Gemini)
   ========================================================================== */
.jm-chatbot-trigger {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

[data-theme="dark"] .jm-chatbot-trigger {
  background: #facc15;
  color: #000000;
  border-color: #fef08a;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.35);
}

.jm-chatbot-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.55);
}

[data-theme="dark"] .jm-chatbot-trigger:hover {
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.55);
}

.jm-chatbot-trigger.chat-open {
  transform: rotate(90deg) scale(0.95);
  background: var(--text-secondary);
}

.jm-bot-icon {
  width: 28px;
  height: 28px;
}

.jm-bot-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--accent-green);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: jm-pulse-ring 2s infinite;
}

[data-theme="dark"] .jm-bot-pulse {
  border-color: #17171a;
}

@keyframes jm-pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.jm-bot-trigger-pill {
  position: absolute;
  right: 66px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  pointer-events: none;
  animation: jm-float-pill 3s ease-in-out infinite;
}

@keyframes jm-float-pill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Chatbot Floating Window */
.jm-chatbot-window {
  position: fixed;
  bottom: 156px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 180px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.jm-chatbot-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.jm-chat-header {
  padding: 0.9rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jm-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.jm-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .jm-chat-avatar {
  background: #facc15;
  color: #000000;
}

.jm-chat-avatar svg {
  width: 20px;
  height: 20px;
}

.jm-chat-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jm-bot-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-xs);
  background: var(--accent-orange);
  color: #000000;
  font-weight: 800;
}

.jm-chat-status {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  display: inline-block;
}

.jm-chat-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.jm-chat-close:hover {
  color: var(--text-primary);
  background: var(--bg-surface-alt);
}

/* Messages Stream */
.jm-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-main);
}

.jm-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

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

.jm-chat-msg.user {
  align-self: flex-end;
}

.jm-msg-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
}

.jm-chat-msg.bot .jm-msg-bubble {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

[data-theme="dark"] .jm-chat-msg.bot .jm-msg-bubble {
  background: #1c1c20;
  border-color: #2b2b32;
  color: #f3f4f6;
}

.jm-chat-msg.user .jm-msg-bubble {
  background: var(--brand-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

[data-theme="dark"] .jm-chat-msg.user .jm-msg-bubble {
  background: #facc15;
  color: #000000;
  font-weight: 700;
}

.jm-msg-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding: 0 0.35rem;
}

.jm-chat-msg.user .jm-msg-time {
  align-self: flex-end;
}

.jm-chat-link {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 700;
}

[data-theme="dark"] .jm-chat-link {
  color: #facc15;
}

/* WhatsApp In-Chat CTA Box */
.jm-chat-cta-box {
  margin-top: 0.5rem;
}

.jm-chat-wa-btn {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

/* Quick Prompts Chips */
.jm-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.jm-prompt-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.jm-prompt-chip:hover {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateX(3px);
}

[data-theme="dark"] .jm-prompt-chip:hover {
  background: rgba(250, 204, 21, 0.15);
  border-color: #facc15;
  color: #facc15;
}

/* Typing Indicator */
.jm-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  margin: 0 2px;
  animation: jm-typing-bounce 1.4s infinite ease-in-out both;
}

.jm-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.jm-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes jm-typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Input Area */
.jm-chat-input-area {
  padding: 0.75rem 0.85rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jm-chat-input {
  flex: 1;
  height: 40px;
  background: var(--bg-main);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.jm-chat-input:focus {
  border-color: var(--brand-primary);
}

[data-theme="dark"] .jm-chat-input:focus {
  border-color: #facc15;
}

.jm-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

[data-theme="dark"] .jm-chat-send-btn {
  background: #facc15;
  color: #000000;
}

.jm-chat-send-btn:hover {
  transform: scale(1.06);
}

.jm-chat-footer-note {
  font-size: 0.65rem;
  text-align: center;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem 0.55rem;
  background: var(--bg-surface);
}
