/* ODM — Ingeniería y Manufactura — Custom Styles */

:root {
  --color-primary:   #1B3A6B;
  --color-dark:      #0D2040;
  --color-accent:    #D4920A;
  --color-accent2:   #C0392B;
  --color-gray:      #E8E8E8;
  --color-text:      #2C3E50;
  --color-bg:        #F5F5F5;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Navbar transition ── */
#navbar {
  transition: background-color 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background-color: var(--color-dark) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* ── Hero overlay ── */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(13, 32, 64, 0.75) 0%,
    rgba(27, 58, 107, 0.55) 100%
  );
}

/* ── Stats counter animation ── */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ── Product card hover ── */
.product-card {
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 58, 107, 0.18);
}

/* ── Chatbot widget ── */
#chatbot-panel {
  transition: opacity 0.25s, transform 0.25s;
}
#chatbot-panel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.chat-bubble-bot {
  background: #e8eef7;
  border-radius: 0 12px 12px 12px;
}
.chat-bubble-user {
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px 0 12px 12px;
}

/* ── Section divider ── */
.section-divider {
  width: 56px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ── Badge category ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Form focus ring ── */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.15);
}

/* ── Scroll-to-top button ── */
#scroll-top {
  transition: opacity 0.3s;
}

/* ── Mobile menu ── */
#mobile-menu {
  transition: max-height 0.3s ease;
}

/* ── Lucide icons sizing helper ── */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}

/* ── Print: hide nav/chat ── */
@media print {
  #navbar, #chatbot-btn, #chatbot-panel, #scroll-top { display: none !important; }
}
