/* ===== VARIABLES ===== */
:root {
  --red:        #C8102E;
  --red-dark:   #9B0D22;
  --red-light:  #E8192E;
  --black:      #111111;
  --gray-dark:  #333333;
  --gray-mid:   #777777;
  --gray-light: #F2F2F2;
  --white:      #FFFFFF;
  --border:     #E0E0E0;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;
  --nav-h:      70px;
  --top-h:      38px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--black);
  color: var(--white);
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-left span,
.topbar-right span { color: #aaa; }
.topbar-left a,
.topbar-right a {
  color: #ddd;
  transition: color .2s;
}
.topbar-left a:hover,
.topbar-right a:hover { color: var(--red-light); }
/* margin-left:auto mantiene el bloque a la derecha aunque no haya .topbar-left */
.topbar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.topbar-right a { display: flex; align-items: center; gap: 6px; }
.topbar-sep { color: #555; }

/* ===== NAVBAR ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
nav {
  height: var(--nav-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 32px;
}
.logo-placeholder {
  width: 54px;
  height: 54px;
  background: var(--gray-light);
  border: 2px dashed #ccc;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #999;
  text-align: center;
  line-height: 1.3;
}
.logo-placeholder svg { margin-bottom: 3px; opacity: .4; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .brand { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--red); letter-spacing: 1px; line-height: 1; }
.logo-text .sub   { font-family: var(--font-head); font-size: 11px; font-weight: 600; color: var(--gray-mid); letter-spacing: 4px; text-transform: uppercase; margin-top: 2px; }

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: var(--nav-h);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  transition: color .2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a { color: var(--red); }
.nav-menu > li > a .chevron {
  font-size: 10px;
  transition: transform .2s;
}
.nav-menu > li:hover > a .chevron { transform: rotate(180deg); }
.nav-menu > li > a.active { color: var(--red); border-bottom: 3px solid var(--red); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-top: 3px solid var(--red);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.nav-menu > li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s, padding-left .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--gray-light); color: var(--red); padding-left: 26px; }
.dropdown li a .dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.search-form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--red); }
.search-form input {
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 13px;
  width: 160px;
  font-family: var(--font-body);
}
.search-form button {
  background: var(--red);
  color: var(--white);
  padding: 7px 12px;
  font-size: 14px;
  transition: background .2s;
}
.search-form button:hover { background: var(--red-dark); }

.btn-login, .btn-cart {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.3px;
  transition: all .2s;
}
.btn-login {
  border: 1.5px solid var(--black);
  color: var(--black);
}
.btn-login:hover { border-color: var(--red); color: var(--red); }
.btn-cart {
  background: var(--red);
  color: var(--white);
  position: relative;
}
.btn-cart:hover { background: var(--red-dark); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--black);
  color: var(--white);
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--black);
}
.slides-track {
  display: flex;
  transition: transform .6s cubic-bezier(.77,0,.18,1);
}
.slide {
  min-width: 100%;
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.slide-1 { background: linear-gradient(120deg, #1a1a1a 0%, #2d0a0a 50%, #4a0010 100%); }
.slide-2 { background: linear-gradient(120deg, #0a0a1a 0%, #0d1a2d 50%, #1a3045 100%); }
.slide-3 { background: linear-gradient(120deg, #0a1a0a 0%, #0d2a1a 50%, #1a3a28 100%); }

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%);
  z-index: 1;
}
.slide-ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.slide-ph-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 64px;
  max-width: 560px;
}
.slide-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.slide-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.slide-title span { color: var(--red-light); }
.slide-desc {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  line-height: 1.6;
}
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.slide-cta:hover { background: var(--red-dark); transform: translateY(-2px); }

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .2s;
  cursor: pointer;
}
.slide-arrow:hover { background: var(--red); border-color: var(--red); }
.slide-arrow.prev { left: 20px; }
.slide-arrow.next { right: 20px; }

.slide-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.active { background: var(--red); transform: scale(1.3); }

/* ===== HERO INFORMATIVO =====
   Sin imagen de fondo no hay nada que "dejar ver" a la derecha: el texto se
   centra y ocupa el ancho útil, y la altura se ajusta al contenido.
   La descripción nunca se oculta — aquí el texto ES el contenido. */
.hero-info .slide {
  height: auto;
  min-height: 360px;
  padding: 52px 0 64px;      /* el extra inferior deja aire para los dots */
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-info .slide-content {
  max-width: 900px;
  padding: 0 72px;           /* no se encima con las flechas */
}
.hero-info .slide-title {
  font-size: clamp(30px, 4vw, 50px);
  margin-bottom: 18px;
}
.hero-info .slide-desc {
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 26px;
}
/* La capa oscura original es lateral (para fotos); aquí conviene pareja */
.hero-info .slide::before {
  background: linear-gradient(to bottom, rgba(0,0,0,.42) 0%, rgba(0,0,0,.22) 100%);
}

@media (max-width: 900px) {
  .hero-info .slide-arrow { display: none; }
  .hero-info .slide-content { padding: 0 32px; }
}
@media (max-width: 768px) {
  .hero-info .slide { min-height: 0; padding: 40px 0 58px; }
  .hero-info .slide-content { padding: 0 22px; max-width: 100%; }
  .hero-info .slide-title { font-size: 27px; }
  .hero-info .slide-desc {
    display: block;          /* en móvil el texto informativo debe verse */
    font-size: 14.5px;
    margin-bottom: 22px;
  }
}
@media (max-width: 480px) {
  .hero-info .slide-title { font-size: 23px; }
  .hero-info .slide-desc { font-size: 13.5px; }
}

/* ===== PROMO STRIP ===== */
.promo-strip {
  background: var(--red);
  padding: 14px 24px;
}
.promo-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.promo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}
.promo-item svg { flex-shrink: 0; opacity: .9; }
.promo-sep { width: 1px; height: 28px; background: rgba(255,255,255,.3); }

/* ===== MAIN SECTION ===== */
.main-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px 60px;
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
/* Modo informativo: sin la columna de categorías el video queda solo.
   Se centra a un ancho cómodo — a 1280px el 16:9 daría 720px de alto. */
.section-grid-solo {
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
}
.section-grid-solo .section-label,
.section-grid-solo .section-title { text-align: center; }

.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
  line-height: 1.1;
}

/* ===== CATEGORY CARDS ===== */
.categories-col { display: flex; flex-direction: column; gap: 16px; }

.cat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  overflow: hidden;
  position: relative;
}
.cat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .25s;
}
.cat-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateX(4px); }
.cat-card:hover::before { transform: scaleY(1); }

.cat-icon {
  width: 72px; height: 72px;
  flex-shrink: 0;
  background: var(--gray-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.cat-body { flex: 1; }
.cat-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 4px;
}
.cat-desc { font-size: 13px; color: var(--gray-mid); line-height: 1.5; margin-bottom: 12px; }
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background .2s;
}
.cat-btn:hover { background: var(--red-dark); }

/* ===== VIDEO ===== */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  object-fit: cover;
}
.video-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-mid);
  text-align: center;
}
.video-note code {
  background: var(--gray-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--red);
}

/* ===== FEATURED PRODUCTS ===== */
.products-section {
  background: var(--gray-light);
  padding: 52px 24px;
}
.products-inner { max-width: 1280px; margin: 0 auto; }
.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.view-all {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
}
.view-all:hover { border-color: var(--red); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prod-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.prod-img {
  background: var(--gray-light);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.prod-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-icono {
  font-size: 48px;
  line-height: 1;
}
.prod-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.prod-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.prod-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.prod-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.2;
}
.prod-sku { font-size: 11px; color: #aaa; margin-bottom: auto; }
.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.prod-price {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
}
.prod-add {
  background: var(--black);
  color: var(--white);
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .2s;
}
.prod-add:hover { background: var(--red); }

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  color: rgba(255,255,255,.75);
  padding: 52px 24px 0;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
/* Modo informativo: sin la columna de categorías el footer va a 3 columnas.
   Sin esto quedaría una celda vacía a la derecha. */
.footer-grid-info { grid-template-columns: 2fr 1fr 1.2fr; }
.footer-brand .logo-text .brand { font-size: 26px; }
.footer-brand .logo-text .sub { color: #888; }
.footer-desc { font-size: 13.5px; line-height: 1.7; color: #aaa; margin: 16px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.soc-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .2s, opacity .2s;
}
.soc-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.soc-btn:hover { transform: scale(1.1); opacity: .85; }
.soc-facebook  { background: #1877F2; }
.soc-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.soc-youtube   { background: #FF0000; }
.soc-linkedin  { background: #0A66C2; }
.soc-whatsapp  { background: #25D366; }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13.5px;
  color: #aaa;
  transition: color .2s, padding-left .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a::before { content: '›'; color: var(--red); font-size: 16px; line-height: 1; }
.footer-col ul a:hover { color: var(--white); padding-left: 4px; }

.footer-contact li { display: flex; gap: 10px; font-size: 13.5px; color: #aaa; margin-bottom: 12px; }
.footer-contact li svg { flex-shrink: 0; margin-top: 2px; }
/* Teléfono y correo son enlaces, pero aquí ya hay icono: sin la flecha '›' de la lista */
.footer-contact ul a { display: inline; font-size: 13.5px; color: #aaa; }
.footer-contact ul a::before { content: none; }
.footer-contact ul a:hover { color: var(--white); padding-left: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 12px; color: #666; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: #666; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--red); }

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.77,0,.18,1);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.drawer-overlay.show { opacity: 1; pointer-events: all; }

.drawer-head {
  background: var(--black);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head .logo-text .brand { font-size: 18px; }
.drawer-head .logo-text .sub   { color: #888; }
.drawer-close {
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.drawer-search {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-search-form {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.drawer-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font-body);
}
.drawer-search-form button {
  background: var(--red);
  color: var(--white);
  padding: 9px 14px;
}
.drawer-nav { flex: 1; }
.drawer-nav > li { border-bottom: 1px solid var(--border); }
.drawer-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  transition: color .2s, background .2s;
}
.drawer-nav > li > a:hover { color: var(--red); background: var(--gray-light); }
.drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s;
  background: var(--gray-light);
}
.drawer-sub.open { max-height: 500px; }
.drawer-sub li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 13.5px;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.drawer-sub li:last-child a { border-bottom: none; }
.drawer-sub li a:hover { color: var(--red); }
.drawer-sub li a .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.drawer-actions {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.drawer-actions .btn-login { justify-content: center; border: 1.5px solid var(--black); padding: 11px 16px; border-radius: 6px; font-size: 14px; }
.drawer-actions .btn-cart  { justify-content: center; background: var(--red); color: var(--white); padding: 11px 16px; border-radius: 6px; font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .topbar { display: none; }
  .nav-menu, .nav-actions { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 16px; }
  .logo-wrap { margin-right: auto; }

  .slide { height: 320px; }
  .slide-content { padding: 0 20px; max-width: 90%; }
  .slide-title { font-size: 26px; }
  .slide-desc { display: none; }

  .main-section { padding: 32px 16px 40px; }
  .section-grid { grid-template-columns: 1fr; gap: 32px; }
  .video-col { order: -1; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .products-section { padding: 36px 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .promo-strip { padding: 10px 16px; }
  .promo-inner { gap: 16px; }
  .promo-sep { display: none; }
}

@media (max-width: 480px) {
  .slide { height: 260px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-img { height: 120px; }
  .prod-icono { font-size: 36px; }
}

/* ===== QUIÉNES SOMOS ===== */
.qs-hero {
  background: var(--black);
  padding: 72px 24px;
  text-align: center;
}
.qs-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.qs-hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 1px;
}
.qs-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 520px;
}

/* Misión / Visión */
.qs-mv-section {
  padding: 56px 24px;
  background: var(--white);
}
.qs-mv-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.qs-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s, transform .2s;
}
.qs-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.qs-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qs-card-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qs-card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 0.5px;
}
.qs-card-text {
  font-size: 14.5px;
  color: var(--gray-mid);
  line-height: 1.75;
}

/* Valores */
.qs-valores-section {
  background: var(--gray-light);
  padding: 60px 24px;
}
.qs-valores-inner { max-width: 1100px; margin: 0 auto; }
.qs-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.qs-valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.qs-valor-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.qs-valor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.qs-valor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--red); }
.qs-valor-card:hover::before { transform: scaleX(1); }
.qs-valor-icon {
  width: 40px;
  height: 40px;
  background: rgba(200, 16, 46, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.qs-valor-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 0.3px;
}
.qs-valor-desc {
  font-size: 13.5px;
  color: var(--gray-mid);
  line-height: 1.65;
}

/* CTA */
.qs-cta {
  background: var(--red);
  padding: 64px 24px;
  text-align: center;
}
.qs-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.qs-cta-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.qs-cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}
.qs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--red);
  padding: 13px 32px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
  transition: background .2s, transform .2s;
}
.qs-cta-btn:hover { background: var(--gray-light); transform: translateY(-2px); }

/* Responsive quiénes somos */
@media (max-width: 768px) {
  .qs-hero { padding: 48px 20px; }
  .qs-mv-grid { grid-template-columns: 1fr; gap: 20px; }
  .qs-mv-section { padding: 40px 20px; }
  .qs-valores-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .qs-valores-section { padding: 44px 20px; }
  .qs-cta { padding: 48px 20px; }
}

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

/* ===== BOTÓN SUBIR ===== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover { background: var(--red-dark); }

@media (max-width: 768px) {
  #back-to-top { bottom: 20px; right: 16px; width: 42px; height: 42px; }
}

/* ===== MODAL LOGIN ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-top: 4px solid var(--red);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  padding: 36px 40px;
  position: relative;
  transform: translateY(-20px) scale(0.97);
  transition: transform .25s;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray-mid);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--red); color: var(--white); }
.modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}
.modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #b91c1c;
  margin-bottom: 18px;
}
.modal-form .form-group { margin-bottom: 16px; }
.modal-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 6px;
}
.modal-form input[type="email"],
.modal-form input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--black);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.modal-form input[type="email"]:focus,
.modal-form input[type="password"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.10);
}
.modal-form input.input-error { border-color: var(--red); }
.modal-form .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.modal-form .form-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.modal-form .form-check label {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-mid);
  cursor: pointer;
  margin: 0;
}
.btn-submit-login {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 8px;
  transition: background .2s, transform .1s;
}
.btn-submit-login:hover { background: var(--red-dark); }
.btn-submit-login:active { transform: scale(0.98); }
.modal-help {
  text-align: center;
  font-size: 12px;
  color: var(--gray-mid);
  margin-top: 20px;
}

@media (max-width: 480px) {
  .modal-box { padding: 28px 24px; }
}

/* ===== BUSCADOR ===== */
.srch-hero {
  background: var(--black);
  padding: 52px 24px 48px;
}
.srch-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.srch-hero-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.srch-hero-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  border: 2px solid transparent;
  transition: border-color .2s;
}
.srch-hero-form:focus-within {
  border-color: var(--red);
}
.srch-hero-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--black);
}
.srch-hero-form button {
  background: var(--red);
  color: var(--white);
  padding: 14px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.srch-hero-form button:hover { background: var(--red-dark); }

/* Layout 2 columnas */
.srch-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.srch-sidebar {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.srch-filter-group {
  margin-bottom: 28px;
}
.srch-filter-group:last-of-type {
  margin-bottom: 0;
}
.srch-filter-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}
.srch-filter-list { display: flex; flex-direction: column; gap: 2px; }
.srch-filter-link {
  display: block;
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--gray-dark);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.srch-filter-link:hover {
  background: var(--gray-light);
  color: var(--red);
}
.srch-filter-link.active {
  background: rgba(200, 16, 46, 0.08);
  color: var(--red);
  font-weight: 600;
}
.srch-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--gray-mid);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  transition: color .2s, border-color .2s;
}
.srch-clear-btn:hover { color: var(--red); border-color: var(--red); }

/* Main results */
.srch-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}
.srch-count {
  font-size: 14px;
  color: var(--gray-mid);
}
.srch-count strong {
  color: var(--black);
  font-weight: 700;
}
.srch-query { color: var(--gray-mid); }
.srch-query em { color: var(--black); font-style: normal; font-weight: 600; }

.srch-active-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.srch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--red);
  border: 1.5px solid rgba(200, 16, 46, 0.2);
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.srch-chip a {
  color: var(--red);
  line-height: 1;
  font-size: 11px;
  opacity: .7;
  transition: opacity .15s;
}
.srch-chip a:hover { opacity: 1; }

/* Grid de resultados */
.srch-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Badge stock */
.srch-badge-stock {
  background: #16a34a !important;
}

/* Sustancia activa */
.srch-sustancia {
  font-size: 11.5px;
  color: var(--gray-mid);
  margin-top: 2px;
  font-style: italic;
}

/* CTA link */
.srch-cta-link {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  font-family: var(--font-head);
  text-decoration: none;
  transition: color .2s;
}
.srch-cta-link:hover { color: var(--red-dark); }

/* Empty state */
.srch-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 24px;
  text-align: center;
}
.srch-empty-icon { font-size: 56px; line-height: 1; }
.srch-empty-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
}
.srch-empty-desc {
  font-size: 15px;
  color: var(--gray-mid);
  max-width: 400px;
  line-height: 1.6;
}

/* Paginación */
.srch-pagination { margin-top: 36px; display: flex; justify-content: center; }
.srch-pag-nav { display: flex; align-items: center; gap: 4px; }
.srch-pag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-dark);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: background .15s, color .15s, border-color .15s;
}
.srch-pag-btn:hover:not(.disabled):not(.current) {
  background: var(--gray-light);
  color: var(--red);
  border-color: var(--red);
}
.srch-pag-btn.current {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.srch-pag-btn.disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* Responsive buscador */
@media (max-width: 1024px) {
  .srch-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .srch-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
    gap: 0;
  }
  .srch-sidebar {
    position: static;
    margin-bottom: 24px;
    padding: 16px;
  }
  .srch-filter-group { margin-bottom: 18px; }
  .srch-filter-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .srch-filter-link { padding: 5px 12px; font-size: 13px; border: 1.5px solid var(--border); }
  .srch-filter-link.active { border-color: var(--red); }
  .srch-filter-title { font-size: 10px; }
  .srch-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .srch-hero { padding: 36px 16px 32px; }
  .srch-hero-form button { padding: 14px 16px; font-size: 13px; }
  .srch-hero-form button svg { display: none; }
}

@media (max-width: 480px) {
  .srch-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .srch-hero-title { font-size: 24px; }
}

/* ===== PÁGINAS LEGALES (aviso de privacidad, términos y condiciones) ===== */
.legal-section {
  background: var(--white);
  padding: 56px 24px 72px;
}
.legal-inner {
  max-width: 820px;
  margin: 0 auto;
}
.legal-updated {
  font-size: 13px;
  color: var(--gray-mid);
  border-left: 3px solid var(--red);
  padding-left: 14px;
  margin-bottom: 36px;
}
.legal-block { margin-bottom: 34px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block h2 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}
.legal-block h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.3px;
  margin: 20px 0 8px;
}
.legal-block p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block strong { color: var(--black); font-weight: 600; }
.legal-block a { color: var(--red); text-decoration: underline; }
.legal-block a:hover { color: var(--red-dark); }
.legal-block ul {
  margin: 4px 0 14px;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-block ul li {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.7;
  display: flex;
  gap: 10px;
}
.legal-block ul li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 9px;
}

/* Recuadro de contacto al pie del documento */
.legal-contact {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 26px 28px;
  margin-top: 40px;
}
.legal-contact h2 { border-bottom: none; padding-bottom: 0; }
.legal-contact p { margin-bottom: 6px; }

@media (max-width: 768px) {
  .legal-section { padding: 36px 18px 52px; }
  .legal-block h2 { font-size: 18px; }
  .legal-block p,
  .legal-block ul li { font-size: 14.5px; }
  .legal-contact { padding: 22px 20px; }
}
