/**
 * ============================================================================
 * GIJ PARTS MINING — ESTILOS TÉCNICOS INDUSTRIALES B2B
 * Inversiones GIJ Martínez S.A.C.
 * ============================================================================
 */

:root {
  --primary: #d97706;
  --primary-hover: #b45309;
  --primary-light: #fef3c7;
  --primary-accent: #ff5000;
  
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: #334155;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --status-success: #10b981;
  --status-success-light: #d1fae5;
  --status-warning: #f59e0b;
  --status-warning-light: #fef3c7;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --container-max: 1240px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
  background-color: #0b1120;
  color: #94a3b8;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
}

.top-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-2lines {
  background-color: #0b1120;
  color: #cbd5e1;
  font-size: 11.5px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-lines-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
}

.top-bar-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  line-height: 1.45;
}

.top-bar-row-1 {
  padding-bottom: 3px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-row-2 {
  padding-top: 1px;
}

.top-bar-row.align-right {
  justify-content: flex-end;
}

.top-bar-row.align-left {
  justify-content: flex-start;
}

.top-bar-row.align-split {
  justify-content: space-between;
}

.top-bar-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.top-bar-item strong {
  color: #f8fafc;
}

.top-bar-2lines a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar-2lines a:hover {
  color: var(--primary);
}

/* --- Insignias Llamativas 24/7 y Emergencias en Cabecera --- */
.top-bar-notice-left {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
}

.top-bar-notice-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.top-bar-notice-center {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
}

.top-bar-badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  padding: 2.5px 11px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.top-bar-badge-247 .tag-pill-247 {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-bar-badge-247 strong {
  color: #ffffff;
  font-weight: 700;
}

/* Radar Beacon Pulse */
.pulse-beacon {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 3px;
  flex-shrink: 0;
}

.pulse-beacon .beacon-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.pulse-beacon .beacon-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.6);
  animation: beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Insignia de Emergencias */
.top-bar-badge-emergency {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.22), rgba(239, 68, 68, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  padding: 2.5px 11px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.top-bar-badge-emergency:hover {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.38), rgba(239, 68, 68, 0.3));
  border-color: #f59e0b;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.top-bar-badge-emergency .tag-pill-alert {
  background: #f59e0b;
  color: #0f172a;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.top-bar-badge-emergency strong {
  color: #ffffff;
  font-weight: 700;
}

.top-bar-badge-emergency .btn-coordinar {
  background: #25d366;
  color: #ffffff !important;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  box-shadow: 0 1px 4px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-bar-badge-emergency:hover .btn-coordinar {
  background: #20ba5a;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .top-bar-row {
    flex-wrap: wrap;
  }
  .top-bar-notice-left, .top-bar-notice-right, .top-bar-notice-center {
    margin: 2px 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .top-bar-badge-247, .top-bar-badge-emergency {
    font-size: 11px;
    padding: 3px 9px;
  }
}


.site-header {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #e2e8f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 0;
}

.brand-logo img {
  height: var(--logo-height, 88px);
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
  transition: transform 0.2s ease, height 0.2s ease;
}

.brand-logo:hover img {
  transform: scale(1.02);
}

/* Navegación Principal */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

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

.nav-link-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 10px 0;
  display: none;
  z-index: 1000;
}

.nav-link-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  transition: background 0.2s;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

/* ==========================================================================
   NAVEGACIÓN VERTICAL (ÍCONO ARRIBA + TEXTO ABAJO)
   Optimiza la altura del encabezado para alinearse con logotipos grandes (~88px)
   ========================================================================== */
.main-nav.nav-vertical {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.main-nav.nav-vertical .nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 64px;
  border-radius: 8px;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  background: transparent;
}

.main-nav.nav-vertical .nav-link .nav-icon {
  font-size: 20px;
  color: var(--primary);
  line-height: 1;
  display: block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.main-nav.nav-vertical .nav-link:hover .nav-icon {
  transform: translateY(-2px);
  color: var(--primary-hover);
}

.main-nav.nav-vertical .nav-link .nav-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.2px;
}

.main-nav.nav-vertical .nav-link:hover {
  background-color: #fef3c7;
  color: var(--primary-hover);
}

.main-nav.nav-vertical .nav-link.active {
  background-color: #fffbeb;
  border-bottom: 3px solid var(--primary);
  border-radius: 8px 8px 0 0;
}

.main-nav.nav-vertical .nav-link.active .nav-icon {
  color: var(--primary);
}

.main-nav.nav-vertical .nav-link.active .nav-text {
  color: #b45309;
}

.main-nav.nav-vertical .dropdown-arrow {
  font-size: 9px;
  opacity: 0.75;
}

.main-nav.nav-vertical .nav-link-dropdown:hover .dropdown-menu {
  display: block;
  top: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-quote-tray {
  background-color: var(--dark);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--dark-border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-quote-tray:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.quote-count-badge {
  background-color: var(--primary-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
}

/* Elementos de Navegación Móvil (Ocultos por defecto en Desktop) */
.mobile-nav-header,
.mobile-nav-footer,
.mobile-nav-backdrop,
.btn-subnav-toggle {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--dark);
  cursor: pointer;
}

/* Header Actions en Modo Vertical */
.header-actions.actions-vertical .btn-quote-tray {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 64px;
  gap: 3px;
  position: relative;
  border-radius: 8px;
}

.header-actions.actions-vertical .btn-quote-tray .nav-icon {
  font-size: 19px;
  line-height: 1;
}

.header-actions.actions-vertical .btn-quote-tray .nav-text {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

.header-actions.actions-vertical .btn-quote-tray .quote-count-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10px;
  padding: 2px 6px;
}

.header-actions.actions-vertical .btn-header-cotizar {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  min-height: 64px;
  gap: 3px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.25);
  transition: all 0.2s ease;
}

.header-actions.actions-vertical .btn-header-cotizar:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.header-actions.actions-vertical .btn-header-cotizar .nav-icon {
  font-size: 18px;
  line-height: 1;
}

.header-actions.actions-vertical .btn-header-cotizar .nav-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

/* ==========================================================================
   HERO B2B SECTION
   ========================================================================== */
.hero-b2b {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.92) 100%), url('../img/machinery/1-MT2010-Dumper-Epiroc.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
}

/* Hero 2-Column Grid */
.hero-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

/* ========== HERO PRODUCT SLIDER ========== */
.hero-slider-wrap {
  width: 420px;
  flex-shrink: 0;
}

.hero-slider-header {
  margin-bottom: 14px;
}

.hero-slider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #fbbf24;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide-card {
  min-width: 100%;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-slide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(217, 119, 6, 0.4);
}

.hero-slide-img-link {
  display: block;
  position: relative;
  height: 300px;
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.hero-slide-img-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s;
}

.hero-slide-card:hover .hero-slide-img-link img {
  transform: scale(1.08);
}

.hero-slide-brand {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-slide-info {
  padding: 16px;
}

.hero-slide-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-slide-title:hover {
  color: var(--primary);
}

.hero-slide-part {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-slide-part i {
  color: var(--primary);
  font-size: 12px;
}

.hero-slide-cat {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
}

.hero-slide-btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateX(3px);
}

/* Slider Controls */
.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.hero-slider-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hero-slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-slider-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 9999px;
}

/* Responsive: Slider */
@media (max-width: 1100px) {
  .hero-slider-wrap {
    width: 380px;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    flex-direction: column;
    gap: 30px;
  }
  .hero-slider-wrap {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 576px) {
  .hero-slider-wrap {
    max-width: 100%;
  }
  .hero-slide-img-link {
    height: 220px;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-title strong {
  color: var(--primary);
  font-weight: 900;
}

.hero-subtitle {
  font-size: 18px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Buscador Rápido del Hero */
.hero-search-box {
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px 16px;
  color: var(--dark);
  font-family: inherit;
}

.hero-search-input::placeholder {
  color: #94a3b8;
}

.btn-hero-search {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-hero-search:hover {
  background-color: var(--primary-hover);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.hero-highlights {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  flex-wrap: wrap;
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
}

.hero-highlight-item i {
  color: var(--primary);
  font-size: 18px;
}

/* ==========================================================================
   SECCIONES Y TÍTULOS
   ========================================================================== */
.section {
  padding: 60px 0;
}

.section-dark {
  background-color: var(--dark);
  color: #ffffff;
}

.section-gray {
  background-color: #f1f5f9;
}

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

.section-pretitle {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 6px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

.section-dark .section-desc {
  color: #94a3b8;
}

/* ==========================================================================
   CATEGORÍAS DE REPUESTOS (GRID)
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.category-img-wrap {
  height: 170px;
  position: relative;
  background-color: #f1f5f9;
  overflow: hidden;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-img-wrap img {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.category-badge.pending {
  background-color: rgba(180, 83, 9, 0.9);
}

.category-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.category-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.category-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   PRODUCTOS (CARDS B2B TÉCNICAS)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

.product-card-img-wrap {
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.product-card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.badge-condition {
  background: var(--dark);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}

.badge-brand {
  background: var(--primary-light);
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid #fde68a;
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-part-number-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.product-compat-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}

.product-compat-preview strong {
  color: var(--dark);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.btn-card-quote {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-card-quote:hover {
  background-color: var(--primary-hover);
}

.btn-card-add {
  background-color: #f1f5f9;
  color: var(--dark);
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-card-add:hover {
  background-color: #e2e8f0;
  color: var(--dark);
}

/* ==========================================================================
   FICHA DE PRODUCTO DETALLADA
   ========================================================================== */
.breadcrumb-nav {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main-img {
  height: 380px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.gallery-main-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.thumb-item {
  width: 70px;
  height: 70px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  background: #ffffff;
}

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

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-detail-category {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}

.product-detail-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 16px;
}

.product-part-box-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.part-meta {
  display: flex;
  flex-direction: column;
}

.part-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.part-meta-code {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}

.btn-copy-code {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-copy-code:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.meta-item {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #f1f5f9;
}

.meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.meta-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.btn-rfq-large {
  background-color: var(--primary);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition: background 0.2s;
}

.btn-rfq-large:hover {
  background-color: var(--primary-hover);
}

.btn-add-tray-large {
  background-color: var(--dark);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-add-tray-large:hover {
  background-color: var(--dark-surface);
}

.btn-whatsapp-direct {
  background-color: var(--whatsapp);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-whatsapp-direct:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
}

/* Tabs Técnicas / Tablas */
.tech-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.tech-specs-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.tech-specs-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.tech-specs-table td.spec-name {
  font-weight: 700;
  color: var(--dark);
  width: 35%;
}

/* ==========================================================================
   MODAL DE COTIZACIÓN (RFQ FORM)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: var(--dark);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--primary);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-product-summary {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-prod-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.summary-prod-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.form-label span.req {
  color: #ef4444;
}

.form-control {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.file-upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-box:hover {
  border-color: var(--primary);
  background: #fef3c7;
}

.file-upload-box input[type="file"] {
  display: none;
}

.file-preview-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   DRAWER "MI LISTA DE COTIZACIÓN"
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

.quote-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.quote-drawer.open {
  right: 0;
}

.drawer-header {
  background: var(--dark);
  color: #ffffff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--primary);
}

.drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.drawer-close:hover {
  color: #ffffff;
}

.drawer-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.drawer-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  position: relative;
}

.drawer-item-img {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-color);
  object-fit: contain;
}

.drawer-item-info {
  flex: 1;
}

.drawer-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.drawer-item-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
}

.drawer-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-qty {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

.drawer-qty-val {
  font-size: 13px;
  font-weight: 800;
}

.drawer-remove-item {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
}

.drawer-remove-item:hover {
  color: #ef4444;
}

.drawer-footer {
  background: #f8fafc;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-drawer-checkout {
  background: var(--primary);
  color: #ffffff;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-drawer-checkout:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   MARCAS & EQUIPOS
   ========================================================================== */
.brands-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.brand-logo-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  filter: grayscale(40%);
  transition: all 0.2s ease;
}

.brand-logo-card:hover {
  filter: grayscale(0%);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.brand-logo-card img {
  max-height: 40px;
  width: auto;
  max-width: 130px;
}

/* ==========================================================================
   FOOTER B2B
   ========================================================================== */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 60px 0 20px;
  border-top: 4px solid var(--primary);
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cbd5e1;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--whatsapp);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.25s, background-color 0.25s;
}

.floating-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
  transform: scale(1.08);
}

/* ==========================================================================
   ÍCONO Y BOTÓN FLOTANTE 24/7 (SERVICIO CONTINUO)
   ========================================================================== */
.floating-247-widget {
  position: fixed;
  right: 20px;
  top: 50vh;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: right 0.3s ease, opacity 0.3s ease;
}

/* Modo Anclado al Contenido de la Página */
.floating-247-widget.mode-page_content {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Modo Fijo en el Medio */
.floating-247-widget.mode-fixed_middle {
  position: fixed;
  right: 20px;
  top: 50vh;
  transform: translateY(-50%);
}

.floating-247-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35), 0 0 0 3px rgba(245, 158, 11, 0.2);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
  animation: float247Glow 3s ease-in-out infinite;
}

.floating-247-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 26px rgba(217, 119, 6, 0.55), 0 0 0 6px rgba(245, 158, 11, 0.35);
}

.floating-247-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

/* Tooltip emergente elegante al hover */
.floating-247-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  border: 1px solid rgba(217, 119, 6, 0.4);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  z-index: 1000;
}

.floating-247-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

.floating-247-btn:hover .floating-247-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.floating-247-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #10b981;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

@keyframes float247Glow {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35), 0 0 0 3px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.55), 0 0 0 6px rgba(245, 158, 11, 0.35);
  }
}

@media (max-width: 768px) {
  .floating-247-widget {
    right: 12px;
  }
  .floating-247-btn {
    width: 56px;
    height: 56px;
    border-width: 2px;
  }
  .floating-247-img {
    width: 44px;
    height: 44px;
  }
  .floating-247-tooltip {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE QUERIES — OPTIMIZACIÓN MÓVIL TOTAL (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 992px) {
  /* Evitar desplazamiento horizontal accidental */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Bloqueo de scroll en pantalla cuando el menú móvil está desplegado */
  body.nav-menu-open {
    overflow: hidden !important;
    touch-action: none;
  }

  /* Header Container */
  .header-inner {
    padding: 8px 0;
    gap: 8px;
  }

  .brand-logo {
    padding: 0;
    max-width: 55%;
  }

  .brand-logo img {
    height: 46px !important;
    max-width: 100% !important;
    object-fit: contain;
  }

  /* Acciones de Cabecera en Móvil: Mi Lista compacta + Botón Hamburguesa */
  .header-actions {
    gap: 8px;
    align-items: center;
  }

  .header-actions .btn-header-cotizar {
    display: none !important; /* Prominentemente accesible dentro del menú móvil */
  }

  .header-actions .btn-quote-tray,
  .header-actions.actions-vertical .btn-quote-tray {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    gap: 5px !important;
    border-radius: 6px !important;
    background: var(--dark) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  .header-actions .btn-quote-tray:hover,
  .header-actions.actions-vertical .btn-quote-tray:hover {
    background: var(--primary) !important;
  }

  .header-actions.actions-vertical .btn-quote-tray .nav-icon {
    font-size: 15px !important;
    line-height: 1 !important;
  }

  .header-actions.actions-vertical .btn-quote-tray .nav-text {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    display: inline !important;
    line-height: 1 !important;
  }

  .header-actions.actions-vertical .btn-quote-tray .quote-count-badge {
    position: static !important;
    padding: 1px 6px !important;
    font-size: 10px !important;
    border-radius: 9999px !important;
    margin-left: 2px !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    background: #f8fafc !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    color: var(--dark) !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
  }

  .mobile-menu-toggle:hover {
    background: #e2e8f0 !important;
    color: var(--primary) !important;
  }

  /* Backdrop Oscuro de Fondo */
  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
  }

  /* Menú de Navegación Móvil (Drawer Lateral Deslizante) */
  .main-nav,
  .main-nav.nav-vertical,
  .main-nav.nav-horizontal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(340px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.35) !important;
    border-bottom: none !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .main-nav.open,
  .main-nav.nav-vertical.open,
  .main-nav.nav-horizontal.open {
    display: flex !important;
    transform: translateX(0) !important;
  }

  /* Cabecera del Drawer Móvil */
  .mobile-nav-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--dark, #0f172a);
    color: #ffffff;
    border-bottom: 3px solid var(--primary);
    flex-shrink: 0;
  }

  .mobile-nav-header .mobile-nav-brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
  }

  .mobile-nav-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .mobile-nav-close:hover {
    background: var(--primary);
    color: #ffffff;
  }

  /* Enlaces de Navegación en Móvil */
  .main-nav .nav-link,
  .main-nav.nav-vertical .nav-link,
  .main-nav.nav-horizontal .nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: auto !important;
    width: 100% !important;
    padding: 14px 18px !important;
    gap: 12px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
    color: var(--dark) !important;
    text-decoration: none !important;
  }

  .main-nav .nav-link .nav-icon,
  .main-nav.nav-vertical .nav-link .nav-icon {
    font-size: 17px !important;
    width: 22px !important;
    text-align: center !important;
    color: var(--primary) !important;
    transform: none !important;
    flex-shrink: 0 !important;
  }

  .main-nav .nav-link .nav-text,
  .main-nav.nav-vertical .nav-link .nav-text {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    flex: 1 !important;
  }

  .main-nav .nav-link:hover,
  .main-nav .nav-link.active,
  .main-nav.nav-vertical .nav-link:hover,
  .main-nav.nav-vertical .nav-link.active {
    background: #fffbeb !important;
    color: var(--primary) !important;
    border-left: 4px solid var(--primary) !important;
    padding-left: 14px !important;
  }

  /* Dropdown Acordeón en Móvil */
  .dropdown-trigger-row {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .dropdown-trigger-row .nav-link {
    border-bottom: none !important;
    flex: 1;
  }

  .btn-subnav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: transparent;
    border: none;
    border-left: 1px solid #f1f5f9;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .btn-subnav-toggle:hover {
    background: #f8fafc;
  }

  .nav-link-dropdown.dropdown-open .btn-subnav-toggle i {
    transform: rotate(180deg);
  }

  .nav-link-dropdown {
    width: 100%;
  }

  .nav-link-dropdown .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: #f8fafc !important;
    padding: 0 !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .nav-link-dropdown.dropdown-open .dropdown-menu {
    display: block !important;
    animation: fadeInSubmenu 0.2s ease forwards;
  }

  @keyframes fadeInSubmenu {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 18px 10px 42px !important;
    font-size: 13px !important;
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
  }

  .dropdown-item:hover {
    background: #e2e8f0 !important;
    color: var(--primary) !important;
  }

  /* Pie del Drawer Móvil */
  .mobile-nav-footer {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 18px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
  }

  .mobile-menu-quote-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
  }

  .mobile-menu-whatsapp-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
  }

  .mobile-menu-whatsapp-btn:hover {
    background: #1eb956;
    color: #ffffff;
  }

  /* Grid en Móvil */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 25px !important;
    line-height: 1.25 !important;
  }
  
  .hero-subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  .hero-search-box {
    flex-direction: column !important;
  }
  
  .btn-hero-search {
    width: 100% !important;
    justify-content: center !important;
  }

  .categories-grid {
    grid-template-columns: 1fr !important;
  }
  
  .products-grid {
    grid-template-columns: 1fr !important;
  }
  
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  
  .form-group.full-width {
    grid-column: span 1 !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  
  .product-card-actions {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .top-bar-2lines {
    font-size: 10.5px;
    padding: 6px 0;
  }
  .top-bar-row {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 6px;
    text-align: center;
  }
  .top-bar-group {
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .top-bar-notice-right {
    width: 100%;
    justify-content: center;
  }
  .top-bar-badge-emergency {
    font-size: 10px;
    padding: 3px 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .floating-247-widget {
    right: 12px !important;
    z-index: 800 !important;
  }
  .floating-247-btn {
    width: 50px !important;
    height: 50px !important;
  }
  .floating-247-img {
    width: 38px !important;
    height: 38px !important;
  }
  .floating-247-tooltip {
    display: none !important;
  }
  .btn-whatsapp-floating {
    z-index: 800 !important;
    width: 50px !important;
    height: 50px !important;
    bottom: 18px !important;
    right: 14px !important;
  }
  .btn-whatsapp-floating i {
    font-size: 26px !important;
  }
}
