/* ============================================================
   ARMERÍA FORTUNA — Estilos principales (tema claro)
   ============================================================ */

:root {
  --red:       #c8181e;
  --red-dark:  #a01015;
  --blue:      #1a3a8a;
  --blue-dark: #122870;
  --gold:      #b8892a;
  --bg:        #ffffff;
  --bg2:       #f4f5f8;
  --bg3:       #eaecf2;
  --text:      #1a1a2e;
  --text-muted:#5a5a78;
  --border:    #d8dae8;
  --white:     #ffffff;
  --wa-green:  #25D366;
  --wa-hover:  #1da851;
  --shadow-sm: 0 2px 12px rgba(26,58,138,0.08);
  --shadow-md: 0 6px 28px rgba(26,58,138,0.13);
  --radius:    8px;
  --transition:0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section       { padding: 80px 0; background: var(--bg); }
.section-dark  { background: var(--bg2); }

.section-header { text-align: center; margin-bottom: 52px; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 10px;
}
.section-sub   { color: var(--text-muted); font-size: 1.05rem; }
.section-eyebrow {
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.red  { color: var(--red); }
.blue { color: var(--blue); }
.gold { color: var(--gold); }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(200,24,30,0.3); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
}
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-2px); }

.btn-outline-wa {
  background: transparent;
  color: var(--wa-green);
  border: 2px solid var(--wa-green);
}
.btn-outline-wa:hover { background: var(--wa-green); color: var(--white); }

.btn-wa-sm {
  background: var(--wa-green);
  color: var(--white);
  padding: 9px 18px;
  font-size: 0.85rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  transition: var(--transition);
  border: none;
}
.btn-wa-sm:hover { background: var(--wa-hover); transform: translateY(-1px); }

.btn-wa-big {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 16px 28px;
  margin-top: 28px;
  border-radius: var(--radius);
}

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.topbar {
  background: #0d1520;
  padding: 8px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left i { color: #ffd060; }

.topbar-right { display: flex; gap: 14px; }
.topbar-right a {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  transition: var(--transition);
}
.topbar-right a:hover { color: #ffd060; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid var(--border);
  padding: 10px 0;
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid var(--border);
}
.header.scrolled.scrolled-gray {
  background: rgba(255,255,255,0.97);
}

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

/* Logo imagen */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

/* Nav */
.nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-link:hover, .nav-link.active {
  color: var(--red);
  background: rgba(200,24,30,0.07);
}
.header.scrolled .nav-link { color: var(--text-muted); }
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--red);
  background: rgba(200,24,30,0.07);
}

.header-wa { flex-shrink: 0; padding: 9px 20px; font-size: 0.88rem; }
.header-ig { flex-shrink: 0; padding: 9px 20px; font-size: 0.88rem; background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); color: #fff; border-radius: 8px; font-weight: 700; display: flex; align-items: center; gap: 7px; text-decoration: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.header.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Botón carrito header ── */
.cart-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  line-height: 1;
}
.cart-btn:hover { color: var(--red); background: rgba(200,24,30,0.07); }
.header.scrolled .cart-btn { color: var(--text); }
.header.scrolled .cart-btn:hover { color: var(--red); background: rgba(200,24,30,0.07); }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ── Panel carrito ── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1900;
}
.cart-overlay.open { display: block; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 95vw);
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
  z-index: 1950;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 2px solid var(--border);
}
.cart-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-panel-header h3 i { color: var(--red); }
.cart-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 6px;
}
.cart-panel-close:hover { color: var(--red); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.cart-empty {
  color: var(--text-light);
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--light-gray);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; color: var(--text); line-height: 1.3; }
.cart-item-tag  { font-size: 0.75rem; color: var(--red); font-weight: 600; margin-top: 2px; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.cart-qty-btn {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border);
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-qty-btn:hover { border-color: var(--red); color: var(--red); }
.cart-qty-val { font-weight: 700; font-size: 0.9rem; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.95rem;
  padding: 4px 6px;
  flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer {
  padding: 16px 20px 24px;
  border-top: 2px solid var(--border);
  background: var(--white);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text);
}
.cart-total-row strong { font-size: 1.15rem; color: var(--red); }
.cart-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1.5px solid var(--red);
  color: var(--text);
}
.cart-price-row strong { font-size: 1.25rem; color: var(--red); }
.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  border-radius: 10px;
  margin-bottom: 10px;
}
.cart-clear-btn {
  width: 100%;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: var(--transition);
}
.cart-clear-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Botón "Agregar" en tarjetas ── */
.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-add-cart:hover, .btn-add-cart.in-cart {
  background: var(--red);
  color: #fff;
}
.modal-add-cart-btn {
  padding: 12px 20px;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 14px;
}

/* ── Modal confirmar pedido ── */
.checkout-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.checkout-modal-overlay.open { display: flex; }

.checkout-modal {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: min(440px, 92vw);
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
}
.checkout-modal h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.checkout-modal h3 i { color: var(--red); }
.checkout-subtitle {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.checkout-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.checkout-field input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.checkout-field input:focus { border-color: var(--red); }
.checkout-field input.error { border-color: #e53e3e; }
.checkout-time-error {
  color: #e53e3e;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 16px;
  display: block;
}

.checkout-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.checkout-cancel {
  flex: 1;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: inherit;
  transition: var(--transition);
}
.checkout-cancel:hover { border-color: var(--red); color: var(--red); }
.checkout-send-btn {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  font-size: 0.95rem;
  border-radius: 8px;
}

/* ── Botón búsqueda ── */
.search-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.search-btn:hover { color: var(--red); background: rgba(200,24,30,0.07); }
.header.scrolled .search-btn { color: var(--text); }
.header.scrolled .search-btn:hover { color: var(--red); background: rgba(200,24,30,0.07); }

/* ── Overlay de búsqueda ── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
}
.search-overlay.open { display: flex; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 16px;
  width: min(600px, 90vw);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  gap: 10px;
}
.search-box-icon { color: var(--text-light); font-size: 1rem; flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.search-input::placeholder { color: var(--text-light); }
.search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
}
.search-close:hover { color: var(--red); }

.search-results {
  list-style: none;
  background: var(--white);
  border-radius: 12px;
  margin-top: 8px;
  width: min(600px, 90vw);
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 6px 0;
}
.search-results:empty { display: none; }
.search-results li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-results li:hover { background: var(--light-gray); }
.search-result-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--light-gray);
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.search-result-tag  { font-size: 0.78rem; color: var(--red); font-weight: 600; margin-top: 2px; }
.search-no-results  { padding: 18px 16px; color: var(--text-light); font-size: 0.95rem; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: #0d1520;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 0% 60%, rgba(26,58,138,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(0,0,0,0.35) 0%, transparent 50%);
  pointer-events: none;
}

/* Acento geométrico lateral */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(165deg, transparent 45%, rgba(26,58,138,0.07) 100%);
  border-left: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  padding: 60px 20px 60px 60px;
  margin-left: 0;
  margin-right: auto;
}

.hero-eyebrow {
  color: #e01010;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: #e01010;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero-title .gold { color: #e01010; }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  animation: bounce 2s infinite;
  font-size: 1.1rem;
  z-index: 3;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Hero slideshow ── */
.hero-slideshow {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* degradado que funde la imagen con el fondo oscuro (izquierda) */
.hero-slideshow::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to right, #0d1520 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* degradado inferior */
.hero-slideshow::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 28%;
  background: linear-gradient(to top, #0d1520 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 50px 80px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.7));
}

.hero-slide-label {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  z-index: 3;
}

/* ── Hero en móvil: layout horizontal (texto izq. | imagen der.) ── */
@media (max-width: 767px) {
  .hero {
    align-items: center;
    min-height: 100svh;
  }

  .hero::after { display: none; }

  .hero-content {
    max-width: 58% !important;
    padding: 44px 8px 44px 20px !important;
    margin: 0 !important;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
  .hero-eyebrow::before { display: none; }

  .hero-title { font-size: 1.45rem; letter-spacing: 0.5px; }
  .hero-desc  { font-size: 0.82rem; margin-bottom: 20px; }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-btns .btn {
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .hero-slideshow {
    display: flex;
    position: absolute;
    top: 0; right: 0;
    width: 44%;
    height: 100%;
  }

  /* Reducir gradiente lateral para que la imagen no quede tapada */
  .hero-slideshow::before {
    width: 30%;
  }

  .hero-slide {
    padding: 12px 8px 36px;
  }

  .hero-slide img {
    max-height: 65vw;
    max-width: 100%;
    width: 95%;
    object-fit: contain;
  }

  .hero-slide-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    bottom: 48px;
  }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--red); padding: 18px 0; }
.trust-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}
.trust-item i { font-size: 1.2rem; color: #ffd060; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.serv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.serv-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200,24,30,0.12);
}

.serv-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.si-1 { background: rgba(26,58,138,0.1);  color: var(--blue); }
.si-2 { background: rgba(200,24,30,0.1);  color: var(--red); }
.si-3 { background: rgba(184,137,42,0.1); color: var(--gold); }
.si-4 { background: rgba(37,160,60,0.1);  color: #1a9a30; }
.si-5 { background: rgba(26,58,138,0.1);  color: var(--blue); }
.si-6 { background: rgba(200,24,30,0.1);  color: var(--red); }
.si-7 { background: rgba(184,137,42,0.1); color: var(--gold); }

.serv-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.serv-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  flex: 1;
}
.serv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  transition: gap var(--transition);
  margin-top: 6px;
}
.serv-link:hover { gap: 10px; }

/* Tarjeta empavonado expandida */
.serv-card--wide {
  grid-column: 1 / -1;
}
.serv-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin: 12px 0 4px;
}
.serv-media-img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #111;
  max-height: 320px;
  display: block;
  cursor: zoom-in;
}
.img-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.img-lightbox-overlay.active { display: flex; }
.img-lightbox-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.serv-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.serv-video-wrap--landscape { padding-bottom: 56.25%; }
.serv-video-wrap--portrait  { padding-bottom: 177.78%; }
.serv-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.serv-shorts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .serv-media-grid { grid-template-columns: 1fr; }
  .serv-shorts-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.grid-cat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200,24,30,0.12);
}

.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.cat-1 { background: rgba(200,24,30,0.1);  color: var(--red); }
.cat-2 { background: rgba(26,58,138,0.1);  color: var(--blue); }
.cat-3 { background: rgba(37,160,60,0.1);  color: #1a9a30; }
.cat-4 { background: rgba(184,137,42,0.1); color: var(--gold); }
.cat-5 { background: rgba(100,40,140,0.1); color: #7a2aaa; }
.cat-6 { background: rgba(20,120,160,0.1); color: #1480a0; }
.cat-7 { background: rgba(160,100,20,0.1); color: #a05a10; }

.cat-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.cat-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.cat-link {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: gap 0.2s;
}
.cat-card:hover .cat-link { gap: 10px; }

/* ============================================================
   PRODUCTOS
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* === NUEVOS PRODUCTOS (galería horizontal) === */
.nuevos-section {
  margin-bottom: 40px;
}
.nuevos-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  border-left: 4px solid var(--red);
  padding-left: 10px;
}
.nuevos-track {
  position: relative;
  overflow: hidden;
  min-height: 380px; /* fallback hasta que JS mida altura real */
}
.nuevo-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.nuevo-card.slideshow-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  box-shadow: 0 6px 22px rgba(0,0,0,.13);
}
.nuevo-card.slideshow-out {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nuevo-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.nuevo-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.nuevo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nuevo-body {
  padding: 12px 14px 14px;
}
.nuevo-body h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  margin: 4px 0 6px;
  color: var(--text);
}
.nuevo-body .prod-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.nuevo-card .prod-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0;
  margin: 0;
  height: auto;
  background: #ffffff;
}
.nuevo-card .prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Evitar que zoom distorsione las tarjetas nuevas */
.nuevo-card .prod-img.zoom img {
  transform: none;
}
.nuevo-card .prod-body {
  padding: 12px 14px 14px;
}
.nuevo-card .prod-body h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  margin: 4px 0 6px;
}
.nuevo-card { cursor: pointer; }

.grid-prod {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.cat-divider {
  grid-column: 1 / -1;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  padding: 18px 0 8px;
  border-bottom: 3px solid var(--red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 12px;
}
.cat-divider.hidden { display: none; }
.nuevos-section.hidden { display: none; }
.cat-divider--sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  padding: 10px 0 4px;
  border-bottom: 2px solid var(--blue);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.75;
}

.prod-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.prod-card--sold { opacity: 0.65; }
.prod-card--sold .prod-img { position: relative; }
.sold-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #c8181e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.prod-sold-msg {
  color: #c8181e;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 8px;
}
.sold-badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}
.btn-share {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}
/* Desktop: aparece al hacer hover en la tarjeta */
.prod-card:hover .btn-share { opacity: 1; }
.btn-share:hover { opacity: 0.6 !important; background: transparent; }
/* Móvil / táctil: siempre visible */
@media (hover: none) {
  .btn-share { opacity: 1; }
}
.btn-share img { width: 22px; height: 22px; object-fit: contain; display: block; }
.btn-share.copied { opacity: 0.6; background: transparent; }
.prod-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.prod-card.hidden { display: none; }

.prod-img {
  height: 240px;
  min-height: 240px;
  aspect-ratio: 4/3;
  contain: layout style;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.75;
}

/* Tarjeta con foto real */
.prod-img-photo {
  background: #f8f8f8;
  opacity: 1;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.prod-img-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Productos muy pequeños: zoom fuerte (focos, esposas, porta-cartuchos, etc.) */
.prod-img-photo.zoom {
  overflow: hidden;
  padding: 4px;
}
.prod-img-photo.zoom img {
  transform: scale(1.6);
  transform-origin: center center;
  object-fit: contain;
}
/* Productos medianos: centrado uniforme (armas, tazers, correas, cuchilla, aceites) */
.prod-img-photo.center {
  overflow: hidden;
  padding: 8px;
}
.prod-img-photo.center img {
  object-fit: contain;
}
.bg-arma1 { background: linear-gradient(135deg, #f5e8e8, #ffd5d5); color: var(--red); }
.bg-arma2 { background: linear-gradient(135deg, #ece8f5, #ddd5ff); color: #6644bb; }
.bg-arma3 { background: linear-gradient(135deg, #e8eef5, #d5e5ff); color: var(--blue); }
.bg-mun1  { background: linear-gradient(135deg, #f5f0e0, #ffe8b0); color: #aa7700; }
.bg-mun2  { background: linear-gradient(135deg, #e8f5ea, #c8f0cc); color: #1a8830; }
.bg-mun3  { background: linear-gradient(135deg, #f5ede0, #ffd8a8); color: #c06000; }
.bg-seg1  { background: linear-gradient(135deg, #e0f5ea, #b0f0c8); color: #0a8840; }
.bg-seg2  { background: linear-gradient(135deg, #e8e8f5, #d5d8ff); color: var(--blue); }
.bg-seg3  { background: linear-gradient(135deg, #f5e0e8, #ffc0d0); color: #cc2255; }
.bg-tac1  { background: linear-gradient(135deg, #f5f0d5, #ffe898); color: #aa8800; }
.bg-tac2  { background: linear-gradient(135deg, #e0eef5, #b8d8f0); color: #1470a0; }
.bg-tac3  { background: linear-gradient(135deg, #f0e0f5, #e0b8f0); color: #8822aa; }
.bg-tac4  { background: linear-gradient(135deg, #d8f5f0, #a0eedd); color: #0a9080; }
.bg-tac5  { background: linear-gradient(135deg, #f5f5d5, #eeeea0); color: #888800; }
.bg-cut1  { background: linear-gradient(135deg, #f5e0e0, #ffb8b8); color: var(--red); }
.bg-cut2  { background: linear-gradient(135deg, #e8e8f8, #d5d8ff); color: var(--blue); }
.bg-tr1   { background: linear-gradient(135deg, #e0f0e8, #b8e8cc); color: #1a7840; }
.bg-tr2   { background: linear-gradient(135deg, #f0e8e0, #f0d0b0); color: #884020; }

.prod-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prod-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red) !important;
  margin: 4px 0;
  margin: 4px 0 6px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
}
.prod-price-consultar {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue) !important;
  margin: 4px 0;
  letter-spacing: 0.3px;
}
.prod-price-note {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  font-family: 'Lato', sans-serif;
  letter-spacing: 0;
}

.prod-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.prod-body h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.prod-body p { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.prod-card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn-ver-detalle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 700;
  border: 2px solid var(--text); color: var(--text); background: transparent;
  cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-ver-detalle:hover { background: var(--text); color: var(--white); }
.prod-body .btn-wa-sm { align-self: flex-start; }

/* Ficha técnica dentro de la tarjeta */
.prod-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  font-size: 0.8rem;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.prod-specs dt {
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}
.prod-specs dd {
  color: var(--text);
}
.prod-specs .spec-destacado {
  grid-column: 1 / -1;
  color: var(--blue);
  font-style: italic;
  font-size: 0.78rem;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}

/* ── H1 y FAQ de páginas de catálogo ── */
.page-h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.2;
}
.page-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 700px;
}
.breadcrumb-nav {
  display: none;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.breadcrumb-list li { display: flex; align-items: center; color: var(--text-muted); }
.breadcrumb-list li + li::before { content: '›'; margin: 0 8px; color: var(--text-muted); }
.breadcrumb-list a { color: var(--red); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list li:last-child { color: var(--text); font-weight: 600; }

.faq-section {
  margin: 48px 0 36px;
}
.faq-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}
.faq-section details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-section summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2);
}
.faq-section summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--red);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-section details[open] summary::after { content: '−'; }
.faq-section details p {
  padding: 12px 18px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}

.catalog-footer {
  text-align: center;
  margin-top: 52px;
  padding: 36px;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.catalog-footer p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { color: var(--text-muted); line-height: 1.8; }
.about-text strong { color: var(--red); }

.about-years {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 18px;
  padding: 14px 20px;
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-sm);
}
.about-years-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -1px;
}
.about-years-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  max-width: 180px;
}
.about-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.badge i { color: var(--red); }

.about-img-placeholder {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 16px;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 65%);
}
.about-img-placeholder i { font-size: 5rem; color: rgba(255,255,255,0.3); }
.about-img-placeholder p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}
.about-img-placeholder small { color: rgba(255,255,255,0.6); letter-spacing: 1px; }

.about-slideshow {
  border-radius: 16px;
  height: 360px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.about-slide.active { opacity: 1; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.contact-item h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.contact-item a:hover { color: var(--red); }

.contact-map {
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { width: 100%; height: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue);
  color: rgba(255,255,255,0.85);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin: 14px 0 20px;
  max-width: 280px;
  line-height: 1.7;
}

/* Logo en footer */
.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social a:hover { color: var(--white); background: var(--red); border-color: var(--red); }

.footer-links h5 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a, .footer-links span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-links a:hover { color: #ffd060; }
.footer-links i { color: #ffd060; margin-top: 2px; font-size: 0.85rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.float-wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--text);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.float-wa:hover .float-wa-tooltip { opacity: 1; }
.float-wa::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--wa-green);
  opacity: 0.3;
  animation: pulse-wa 2.5s infinite;
}
@keyframes pulse-wa {
  0%   { transform: scale(1);   opacity: 0.3; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   GALERÍA MULTI-FOTO EN TARJETA
   ============================================================ */
.gallery-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 7px 0;
  background: #f4f5f8;
  border-bottom: 1px solid var(--border);
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.gallery-dot.active  { background: var(--red); transform: scale(1.2); }
.gallery-dot:hover   { background: var(--blue); }

/* ============================================================
   MODAL / LIGHTBOX
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 15, 40, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.175,.885,.32,1.1), opacity 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: rotate(90deg);
}

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

/* Lado imagen */
.modal-img-wrap {
  background: #f4f5f8;
  border-radius: 16px 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}
.modal-img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: none;
  transition: transform 0.3s ease;
}
.modal-img.loaded { display: block; }
.modal-img-wrap:hover .modal-img { transform: scale(1.04); }

.modal-img-icon {
  font-size: 5rem;
  opacity: 0.15;
  color: var(--blue);
  display: none;
}
.modal-img-icon.visible { display: flex; }

/* Lado info */
.modal-info {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* Specs en el modal más grandes */
.modal-specs {
  font-size: 0.9rem !important;
  gap: 7px 14px !important;
  border-top: 2px solid var(--border) !important;
  padding-top: 14px !important;
  flex: 1;
}
.modal-specs dt { font-size: 0.82rem; }
.modal-specs .spec-destacado { font-size: 0.85rem !important; padding-top: 8px !important; }

/* Flechas de navegación en el modal */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: var(--transition);
  z-index: 6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.modal-nav-btn:hover  { background: var(--red); color: var(--white); border-color: var(--red); }
.modal-nav-btn.hidden { display: none; }
.modal-nav-prev { left: 10px; }
.modal-nav-next { right: 10px; }

/* Dots del modal */
.modal-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  gap: 7px;
  justify-content: center;
}
.modal-gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.modal-gallery-dot.active { background: var(--red); transform: scale(1.25); }
.modal-gallery-dot:hover  { background: var(--blue); }

/* Responsive modal */
@media (max-width: 640px) {
  .modal-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    opacity: 1 !important;
    background: rgba(255,255,255,0.95);
  }
  .modal-nav-prev { left: 8px; }
  .modal-nav-next { right: 8px; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-img-wrap {
    border-radius: 16px 16px 0 0;
    min-height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .modal-info { padding: 24px 20px 24px; }
  .modal-img { max-height: 200px; background: white; }
  .modal-info h2 { font-size: 1.4rem; }
}

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--red);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */

@media (max-width: 1200px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img-block { display: block; margin-top: 24px; }
  .contact-map { height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .header-wa { display: none; }
  .header-ig  { padding: 8px 10px; font-size: 1rem; }
  .header-ig span { display: none; }
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: #ffffff;
    border-bottom: 2px solid #e0e0e0;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; color: #1a1a1a !important; font-weight: 600; font-size: 0.95rem; }
  .nav-link:hover, .nav-link.active { color: #c8181e !important; background: rgba(200,24,30,0.07); }
  .header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.97) !important; border-bottom: 2px solid var(--border) !important; box-shadow: var(--shadow-md); }
  .header .hamburger span { background: #1a1a2e; }
}

/* ============================================================
   RESPONSIVE — MÓVIL (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .topbar-left span:last-child { display: none; }
  .hamburger { display: flex; }

  /* Header siempre blanco en móvil */
  .header {
    background: rgba(255,255,255,0.97) !important;
    border-bottom: 2px solid var(--border) !important;
    box-shadow: var(--shadow-md);
  }
  .header .hamburger span { background: #1a1a2e; }
  .header .cart-btn,
  .header .search-btn { color: var(--text); }

  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: #ffffff;
    border-bottom: 2px solid #e0e0e0;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; color: #1a1a1a !important; font-weight: 600; }
  .nav-link:hover, .nav-link.active { color: #c8181e !important; background: rgba(200,24,30,0.07); }
  .header { position: sticky; top: 0; z-index: 1000; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.9rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-content { padding: 40px 20px; }
  .grid-cat { grid-template-columns: 1fr; }
  .grid-prod {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .prod-img            { height: 120px; min-height: 0; }
  .prod-body           { padding: 8px 10px 10px; gap: 4px; }
  .prod-body h4        { font-size: 0.82rem; margin: 0; }

  /* Ocultar detalles — solo imagen + nombre + precio en la tarjeta */
  .prod-tag, .prod-specs, .prod-body p:not(.prod-price):not(.prod-price-consultar), .btn-wa-sm { display: none !important; }

  /* Indicador visual de "toca para ver más" */
  .prod-card::after {
    content: 'Ver detalles';
    display: block;
    text-align: center;
    color: var(--red);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 8px;
  }
  .trust-inner { justify-content: flex-start; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: 1; }
  .float-wa { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 1.6rem; }
  .scroll-top { bottom: 88px; right: 20px; }
}

/* ── Bottom sheet de producto (móvil) ── */
.mob-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9500;
  align-items: flex-end;
  justify-content: center;
}
.mob-sheet-overlay.active { display: flex; }

.mob-sheet {
  background: var(--white);
  width: 100%;
  max-height: 88vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  padding: 0 0 32px;
  animation: sheetUp 0.28s ease;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.mob-sheet-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 8px;
}

.mob-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 4px;
}
.mob-sheet-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.mob-sheet-close {
  background: var(--bg2);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}

.mob-sheet-img {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  margin: 8px 20px 8px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
}
.mob-sheet-img img {
  max-height: 190px;
  max-width: 100%;
  object-fit: contain;
  background: #f8f8f8;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.mob-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px 0 4px;
}
.mob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mob-dot.active { background: var(--red); transform: scale(1.3); }

.mob-sheet-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  padding: 0 20px 10px;
}
.mob-sheet-specs { padding: 0 20px; }
.mob-sheet-desc  { padding: 8px 20px 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.mob-sheet-btn   { padding: 16px 20px 0; }
.mob-sheet-btn .btn-wa-sm {
  display: inline-flex !important;
  width: 100%;
  justify-content: center;
  padding: 13px 20px !important;
  font-size: 1rem !important;
  border-radius: 10px;
}

/* Tabla de especificaciones dentro del bottom sheet */
.mob-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 20px 4px;
  width: calc(100% - 40px);
  border-top: 1px solid #e8dae8;
  padding-top: 8px;
}
.mob-spec-label {
  color: #5a5a78;
  font-weight: 700;
  padding: 5px 10px 5px 0;
  white-space: nowrap;
  vertical-align: top;
  width: 40%;
}
.mob-spec-val {
  color: #1a1a2e;
  padding: 5px 0;
  vertical-align: top;
}
.mob-spec-nota {
  color: #1a3a8a;
  font-style: italic;
  font-size: 0.85rem;
  padding: 6px 0 2px;
}
.mob-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  width: 100%;
}

/* ── Navegación lateral de catálogo ── */
#cat-sidenav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#cat-sidenav.visible {
  opacity: 1;
  pointer-events: all;
}
.cat-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 10px 4px 10px;
  border-radius: 20px 0 0 20px;
  background: transparent;
  transition: background 0.2s;
}
.cat-nav-item:hover {
  background: rgba(90, 90, 120, 0.08);
}
.cat-nav-item.active {
  background: rgba(200, 24, 30, 0.07);
}
.cat-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #aaa;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-left: 7px;
}
.cat-nav-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0.45;
  transition: opacity 0.2s, color 0.2s;
}
.cat-nav-item:hover .cat-nav-label {
  opacity: 0.85;
}
.cat-nav-item.active .cat-nav-label {
  opacity: 1;
  color: var(--red);
}
.cat-nav-item.active .cat-nav-dot {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.3);
}
.cat-nav-item:hover .cat-nav-dot {
  border-color: var(--gold);
  background: var(--gold);
}
@media (max-width: 640px) {
  #cat-sidenav { gap: 2px; }
  .cat-nav-item { padding: 3px 8px 3px 8px; }
  .cat-nav-dot  { width: 6px; height: 6px; margin-left: 5px; }
  .cat-nav-label {
    font-size: 0.55rem;
    letter-spacing: 0.3px;
    opacity: 0.4;
  }
}
