/* =============================================
   SJTM MECATRONIC — CSS CORREGIDO FINAL
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --rojo: #E02020;
  --rojo-dark: #B01010;
  --rojo-muted: rgba(224, 32, 32, 0.08);
  --negro: #0A0A0A;
  --carbon: #111214;
  --grafito: #1E2024;
  --zinc: #2C2F35;
  --plata: #F4F5F7;
  --gris-claro: #EAECF0;
  --gris-texto: #6C7280;
  --verde: #16A34A;
  --radio: 12px;
  --radio-lg: 20px;
  --radio-pill: 999px;
  --trans: all 0.22s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--plata);
  color: var(--negro);
  min-height: 100vh;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rojo); border-radius: 3px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--carbon);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.7rem;
  padding: 0.45rem 0;
}
.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar-left, .top-bar-right {
  display: flex;
  gap: 1.2rem;
  color: #aaa;
}
.top-bar-left i, .top-bar-right i {
  margin-right: 4px;
  color: var(--rojo);
}
.top-bar-left strong { color: #fff; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--carbon);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
}
.logo-wrap img { height: 50px; }
.logo-main {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 1px;
}
.logo-sub {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--rojo);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #aaa;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  transition: var(--trans);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active { color: #fff; background: var(--rojo); }

/* Acciones */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.btn-bolsa {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--grafito);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--trans);
}
.btn-bolsa:hover { background: var(--zinc); color: #fff; }
.bag-badge {
  background: var(--rojo);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle {
  display: none;
  background: var(--grafito);
  border: 1px solid rgba(255,255,255,0.1);
  width: 38px;
  height: 38px;
  border-radius: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== GLOBAL SEARCH ===== */
.global-search {
  flex: 1;
  max-width: 320px;
  position: relative;
  margin: 0 1rem;
}
.global-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.85rem;
  pointer-events: none;
}
.global-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.3rem;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--grafito);
  color: #fff;
  font-size: 0.8rem;
  transition: var(--trans);
}
.global-search input:focus {
  outline: none;
  border-color: var(--rojo);
  background: var(--carbon);
}
.global-search input::placeholder { color: #666; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0a0c10 0%, #14161c 100%);
  padding: 5rem 2rem;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(224,32,32,0.12);
  border: 1px solid rgba(224,32,32,0.25);
  color: #ff6b6b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--rojo); }
.hero-desc {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rojo);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  border: none;
  transition: var(--trans);
}
.btn-primary:hover { background: var(--rojo-dark); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: #ddd;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); color: #fff; }
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
}
.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.hero-stat-label { font-size: 0.75rem; color: #666; margin-top: 0.3rem; }

/* ===== STRIP ===== */
.strip {
  background: #fff;
  border-bottom: 1px solid var(--gris-claro);
}
.strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem;
}
.strip-icon {
  width: 40px;
  height: 40px;
  background: var(--rojo-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rojo);
  font-size: 1rem;
}
.strip-text strong { display: block; font-size: 0.82rem; }
.strip-text small { font-size: 0.73rem; color: var(--gris-texto); }

/* ===== SECTIONS GENERAL ===== */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
}
.section-head p { font-size: 0.85rem; color: var(--gris-texto); }
.ver-todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rojo);
  cursor: pointer;
  background: none;
  border: none;
}
.ver-todo:hover { gap: 10px; }

/* ===== CATEGORÍAS GRID ===== */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: #fff;
  border: 1px solid #eef2f5;
  border-radius: 16px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
}
.cat-card:hover {
  border-color: var(--rojo);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.cat-icon {
  width: 48px;
  height: 48px;
  background: #f8f9fa;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.1rem;
  color: var(--rojo);
}
.cat-name { font-weight: 700; font-size: 0.8rem; margin-bottom: 0.2rem; }
.cat-count { font-size: 0.7rem; color: #999; }

/* ===== PRODUCTOS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.prod-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef2f5;
  transition: var(--trans);
  overflow: hidden;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: #ddd;
}
.prod-img-wrap {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-icon-placeholder { text-align: center; }
.prod-icon-placeholder i {
  font-size: 2rem;
  color: var(--rojo);
  opacity: 0.7;
}
.prod-icon-placeholder span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 0.3rem;
}
.prod-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--verde);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 40px;
}
.prod-body { padding: 1rem; }
.prod-marca {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--rojo);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.prod-nombre {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.prod-codigo { font-size: 0.7rem; color: #aaa; font-family: monospace; }
.prod-footer {
  padding: 0.8rem 1rem;
  border-top: 1px solid #eef2f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.consultar-btn {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--gris-texto);
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-add {
  width: 34px;
  height: 34px;
  background: var(--rojo);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: var(--trans);
}
.btn-add:hover { background: var(--rojo-dark); transform: scale(1.05); }
.btn-add.added { background: var(--verde); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--carbon);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 2rem;
}
.cta-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.cta-text p { color: #888; font-size: 0.88rem; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 40px;
  text-decoration: none;
  transition: var(--trans);
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }

/* ===== AC BANNER ===== */
.ac-banner {
  display: flex;
  margin: 1.5rem 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, #0f1117 60%, #1a0a0a 100%);
  border: 1px solid rgba(220,38,38,.25);
}
.ac-left-bar {
  width: 5px;
  flex-shrink: 0;
  background: var(--rojo);
}
.ac-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  flex: 1;
  flex-wrap: wrap;
}
.ac-icon {
  font-size: 2.4rem;
  color: #60cfff;
}
.ac-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.ac-text p { font-size: 0.85rem; color: rgba(255,255,255,.6); }
.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
}

/* ===== CATÁLOGO LAYOUT ===== */
.catalogo-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}
.sidebar {
  background: #fff;
  border: 1px solid var(--gris-claro);
  border-radius: 20px;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.sidebar-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.sidebar-title button {
  font-size: 0.72rem;
  color: var(--rojo);
  background: none;
  border: none;
  cursor: pointer;
}
.filter-group { margin-bottom: 1.25rem; }
.filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 0.6rem;
  display: block;
}
.search-input-wrap { position: relative; }
.search-input-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}
.search-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  border: 1px solid var(--gris-claro);
  border-radius: 12px;
  font-size: 0.82rem;
  background: var(--plata);
  transition: var(--trans);
}
.search-input:focus { border-color: var(--rojo); background: #fff; outline: none; }
.catalog-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.catalog-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}
.catalog-count { font-size: 0.82rem; color: var(--gris-texto); }

/* ===== PAGINACIÓN ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gris-claro);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: var(--trans);
}
.page-btn:hover { border-color: var(--rojo); color: var(--rojo); }
.page-btn.active { background: var(--rojo); border-color: var(--rojo); color: #fff; }

/* ===== FILTER DROPDOWN ===== */
.fdd-wrap { position: relative; width: 100%; }
.fdd-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: var(--plata);
  border: 1px solid var(--gris-claro);
  border-radius: 12px;
  cursor: pointer;
}
.fdd-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--gris-claro);
  border-radius: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 300;
  transition: all 0.2s;
}
.fdd-list.fdd-open {
  max-height: 280px;
  overflow-y: auto;
  opacity: 1;
  padding: 0.3rem 0;
}
.fdd-item {
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.fdd-item:hover { background: var(--rojo-muted); color: var(--rojo); }
.fdd-item.fdd-active { color: var(--rojo); font-weight: 700; background: var(--rojo-muted); }

/* ===== MODAL BOLSA ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gris-claro);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-close {
  width: 32px;
  height: 32px;
  background: var(--plata);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.modal-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gris-claro);
  display: flex;
  gap: 0.75rem;
}
.bag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gris-claro);
}
.bag-item-info { flex: 1; }
.bag-item-name { font-size: 0.82rem; font-weight: 600; }
.bag-item-meta { font-size: 0.72rem; color: var(--gris-texto); }
.bag-item-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--gris-claro);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.qty-num { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.bag-item-remove {
  background: var(--plata);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-clear {
  padding: 0.65rem 1rem;
  border: 1px solid var(--gris-claro);
  border-radius: 40px;
  background: #fff;
  cursor: pointer;
}
.empty-bag { text-align: center; padding: 2.5rem 0; color: var(--gris-texto); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}
.toast {
  background: var(--carbon);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  border-left: 3px solid var(--verde);
  margin-bottom: 0.5rem;
}

/* ===== PÁGINAS: CATEGORÍAS, TRAYECTORIA, CONTACTO ===== */
.page-hero {
  background: var(--carbon);
  padding: 4rem 2rem;
}
.page-hero-inner { max-width: 1400px; margin: 0 auto; }
.page-hero-badge {
  display: inline-flex;
  background: rgba(224,32,32,0.15);
  border: 1px solid rgba(224,32,32,0.3);
  color: #ff8080;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  margin-bottom: 1.25rem;
}
.page-hero-inner h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
}
.page-hero-inner h1 span { color: var(--rojo); }
.page-hero-inner p { color: #888; font-size: 0.92rem; margin-top: 0.75rem; }

.cats-page-section { max-width: 1400px; margin: 0 auto; padding: 2rem; }
.cats-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}
.cat-card-lg {
  background: #fff;
  border: 1px solid var(--gris-claro);
  border-radius: 20px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
}
.cat-card-lg:hover {
  border-color: var(--rojo);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.cat-icon-lg {
  width: 52px;
  height: 52px;
  background: var(--plata);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
  color: var(--rojo);
}
.cat-name-lg { font-weight: 700; font-size: 0.82rem; }
.cat-count-lg { font-size: 0.72rem; color: var(--gris-texto); }
.cat-ver {
  font-size: 0.7rem;
  color: var(--rojo);
  opacity: 0;
  transition: var(--trans);
}
.cat-card-lg:hover .cat-ver { opacity: 1; }

.tray-section { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.stat-block {
  background: var(--carbon);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
}
.stat-block i { font-size: 1.2rem; color: var(--rojo); margin-bottom: 0.5rem; display: block; }
.stat-block .num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.stat-block .lbl { font-size: 0.75rem; color: #666; margin-top: 0.3rem; }
.tray-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.tray-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.tray-text p { color: var(--gris-texto); font-size: 0.88rem; line-height: 1.75; margin-bottom: 0.85rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.mv-card {
  background: var(--plata);
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 3px solid var(--rojo);
}
.mv-card strong { font-weight: 700; display: block; margin-bottom: 0.4rem; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rojo), transparent);
}
.tl-item { position: relative; margin-bottom: 2rem; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--rojo);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--rojo-muted);
}
.tl-year {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 40px;
  margin-bottom: 0.5rem;
}
.tl-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.tl-desc { font-size: 0.82rem; color: var(--gris-texto); }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.valor-card {
  background: #fff;
  border: 1px solid var(--gris-claro);
  border-radius: 20px;
  padding: 1.5rem;
}
.valor-card i { font-size: 1.2rem; color: var(--rojo); margin-bottom: 0.75rem; display: block; }
.valor-card h4 { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.35rem; }
.valor-card p { font-size: 0.78rem; color: var(--gris-texto); }

.marcas-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.marca-tag {
  background: var(--carbon);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 12px;
}

.contacto-nueva-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}
.contacto-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.contacto-info p { color: var(--gris-texto); font-size: 0.88rem; margin-bottom: 1rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item-icon {
  width: 38px;
  height: 38px;
  background: var(--rojo-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rojo);
}
.contact-item-text strong { display: block; font-size: 0.78rem; }
.contact-item-text span { font-size: 0.82rem; color: var(--gris-texto); }
.redes-titulo {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 1.5rem 0 0.85rem;
}
.redes-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.red-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s;
}
.red-btn:hover { transform: translateY(-2px); }
.red-wa { background: #25D366; }
.red-fb { background: #1877F2; }
.red-tt { background: #000000; }
.red-gmaps { background: #EA4335; }
.red-mail { background: #555; }

.contacto-mapa-wrap {
  background: #fff;
  border: 1px solid var(--gris-claro);
  border-radius: 16px;
  padding: 1.25rem;
}
.mapa-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mapa-label i { color: var(--rojo); }
.mapa-iframe {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  border: none;
}
.mapa-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--rojo);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.75rem;
  width: 100%;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--carbon);
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer-brand p { color: #888; font-size: 0.8rem; line-height: 1.6; margin: 1rem 0; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 45px; }
.footer-socials { display: flex; gap: 0.6rem; }
.social-btn {
  width: 36px;
  height: 36px;
  background: var(--grafito);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  transition: var(--trans);
}
.social-btn:hover { background: var(--rojo); color: #fff; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-link, .footer-cat-link {
  color: #888;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
}
.footer-link:hover, .footer-cat-link:hover { color: #fff; }
.contact-list li {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 0.8rem;
}
.contact-list li i { color: var(--rojo); margin-top: 2px; }
.pago-tag {
  background: var(--grafito);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #ccc;
  display: inline-block;
}
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.7rem;
  color: #555;
}

/* ===== RESPONSIVE UNIFICADO ===== */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .catalogo-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .tray-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .contacto-nueva-layout { grid-template-columns: 1fr; }
  .global-search { max-width: 200px; margin: 0 0.5rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--carbon);
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 199;
  }
  .menu-toggle { display: flex; }
  
  .global-search {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0 0;
    order: 3;
  }
  .nav-inner { flex-wrap: wrap; padding: 0.6rem 1rem; }
  
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .cta-banner { flex-direction: column; margin: 0 1rem; }
  .ac-banner { margin: 1.5rem 1rem 0; }
  .ac-content { flex-direction: column; align-items: flex-start; }
  .ac-btn { width: 100%; justify-content: center; }
  .top-bar-inner { flex-direction: column; text-align: center; padding: 0.3rem 1rem; }
  .top-bar-left, .top-bar-right { gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0.6rem 1rem; }
  .section { padding: 2rem 1rem; }
  .catalogo-layout { padding: 1rem; }
  .hero { padding: 3rem 1rem; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .cats-page-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Arreglar desbordamiento de estadísticas en móvil */
@media (max-width: 700px) {
  .stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    overflow-x: hidden;
  }
  .stat-block {
    padding: 1rem;
    width: 100%;
  }
  .tray-section {
    overflow-x: hidden;
    padding: 1rem;
  }
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 1rem; /* Aumenta el espacio arriba y abajo */
  }
  .hero-desc {
    font-size: 0.95rem; /* Texto un poco más grande */
    line-height: 1.5;
  }
  .hero-badge {
    margin-bottom: 1rem;
  }
}