/* ==========================================================================
   Baterías JM - Responsive Styles (Light Minimalist)
   ========================================================================== */

/* Mobile Bottom Sticky Action Bar (Emergency Click-to-Call & WhatsApp) */
.mobile-sticky-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-medium);
  padding: 0.65rem 1rem env(safe-area-inset-bottom, 0.65rem);
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .mobile-sticky-action-bar {
  background: rgba(0, 0, 0, 0.96);
  border-top-color: #222226;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.9);
}

.mobile-sticky-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.65rem;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: center;
}

.mobile-sticky-btn.call {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

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

.mobile-sticky-btn.whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.mobile-sticky-btn svg {
  width: 18px;
  height: 18px;
}


/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  list-style: none;
  margin-bottom: 2rem;
}

.mobile-drawer-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

/* Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-metrics-grid {
    max-width: 480px;
    margin: 0 auto;
  }

  .finder-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .finder-form-grid .btn {
    grid-column: span 2;
  }

  .finder-result-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions .btn-secondary, .header-actions .btn-whatsapp {
    display: none;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .mobile-sticky-action-bar {
    display: block;
  }

  body {
    padding-bottom: 68px;
  }

  .floating-whatsapp-widget {
    bottom: 80px;
    right: 16px;
  }

  .tradein-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

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

  .finder-form-grid .btn {
    grid-column: span 1;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: center;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive positioning for Chatbot */
  .jm-chatbot-trigger {
    bottom: 146px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .jm-chatbot-trigger .jm-bot-icon {
    width: 24px;
    height: 24px;
  }
  .jm-bot-trigger-pill {
    display: none;
  }
  .jm-chatbot-window {
    bottom: 80px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    height: calc(100vh - 160px);
  }

}
