:root {
  --red:        #E10600;
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid:   #D9D9D9;
  --gray-text:  #666666;
  --green:      #2E8B57;
  --font:       'DM Sans', sans-serif;
}

.descuento-efectivo-bar {
  width: 100%;
  height: 32px;
  background: var(--red);
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.descuento-efectivo-track {
  display: inline-flex;
  align-items: center;
  height: 32px;
  white-space: nowrap;
  animation: descuento-efectivo-scroll 60s linear infinite;
  will-change: transform;
}
.descuento-efectivo-track span {
  display: inline-block;
  padding: 0 36px;
  color: var(--white);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
@keyframes descuento-efectivo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

header {
  background: var(--black);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 20px;
}

.logo          { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon     { width: 200px; height: 140px; position: relative; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
  color: var(--white);
  font-size: 11px; font-weight: 500;
  line-height: 1.3; text-transform: uppercase; letter-spacing: 0.5px;
}

.search-bar { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 0; }
.search-input-wrap {
  flex: 1;
  display: flex; align-items: center;
  background: #1C1C1C;
  border: 1px solid #2e2e2e;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 12px; height: 40px; gap: 8px;
}
.search-input-wrap svg         { flex-shrink: 0; }
.search-input-wrap input {
  border: none; outline: none;
  font-family: var(--font); font-size: 13px;
  color: #e0e0e0; width: 100%; background: transparent;
}
.search-input-wrap input::placeholder { color: #666; }

.btn-buscar {
  background: var(--red); color: var(--white);
  border: none; padding: 0 20px; height: 40px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  letter-spacing: 1px; cursor: pointer;
  border-radius: 0 4px 4px 0;
  text-transform: uppercase; transition: background 0.15s;
}
.btn-buscar:hover { background: #c50500; }

.search-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  border: none; padding: 0 16px; height: 40px;
  border-radius: 4px; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  transition: background 0.15s;
}
.cart-btn:hover { background: #c50500; }
.cart-btn .cart-count {
  background: var(--white); color: var(--red);
  border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

body > nav {
  background: var(--black);
  border-top: 1px solid #222;
  padding: 0 40px;
  display: flex; align-items: center;
  height: 40px; gap: 32px;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
body > nav a {
  color: var(--white); font-size: 13px; font-weight: 500;
  padding: 4px 0; transition: color 0.15s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
body > nav a:hover  { color: var(--red); }
body > nav a.active { color: var(--red); border-bottom: 2px solid var(--red); }

footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 40px 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 400px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
}

.footer-logo-col {}

.footer-logo-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
}

.footer-social-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #ccc; margin-bottom: 7px;
  text-decoration: none;
}
.footer-social a:hover { color: var(--red); }

.social-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--red); display: inline-block;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  color: #ccc; font-size: 12px;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.15s; text-decoration: none;
}
.footer-col ul li a:hover { color: var(--red); }
.footer-col ul li a::before { content: '›'; color: var(--red); font-size: 14px; }

footer .contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
footer .contact-icon {
  width: 32px; height: 32px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
footer .contact-icon svg { width: 15px; height: 15px; fill: white; }
footer .contact-text strong {
  font-size: 13px; font-weight: 700; color: var(--white);
  display: block; margin-bottom: 2px;
}
footer .contact-text span { font-size: 12px; color: #aaa; }

footer .payment-tags { display: flex; flex-wrap: wrap; gap: 8px; }
footer .payment-tag {
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px; color: #ccc;
  background: transparent;
  transition: border-color 0.15s, color 0.15s;
  cursor: default;
}
footer .payment-tag:hover { border-color: #888; color: var(--white); }

.footer-bottom {
  padding-top: 20px;
  font-size: 11px;
  color: #555;
  text-align: left;
}

@media (min-width: 768px) and (max-width: 1024px) {
  header { padding: 0 24px; gap: 16px; }
  .logo-icon { width: 150px; height: 105px; }
  .search-bar { max-width: 300px; }

  body > nav {
    padding: 0 24px;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body > nav::-webkit-scrollbar { display: none; }

  footer { padding: 40px 24px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-logo-col { grid-column: 1 / -1; }
}

@media (max-width: 767px) {

  header {
    flex-wrap: nowrap;
    height: 64px;
    padding: 0 16px;
    gap: 8px;
    position: relative;
  }

  .search-toggle-btn {
    display: flex;
    order: 1;
    width: 44px;
    height: 44px;
  }
  .search-toggle-btn svg { width: 20px; height: 20px; }

  .logo { order: 2; }
  .logo-icon { width: 92px; height: 64px; }

  .cart-btn {
    order: 3;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .cart-label { display: none; }
  .cart-btn .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
  }

  .search-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 10px 16px;
    background: var(--black);
    z-index: 50;
  }
  .search-bar.is-open { display: flex; }
  .search-input-wrap, .btn-buscar { height: 44px; }

  body > nav {
    height: auto;
    padding: 8px 16px;
    gap: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body > nav::-webkit-scrollbar { display: none; }
  body > nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    padding: 0 2px;
  }

  footer { padding: 32px 16px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }

  .footer-logo-col { display: flex; flex-direction: column; align-items: center; }
  .footer-logo-img { width: 130px; height: 130px; }
  .footer-social-label { text-align: center; }
  .footer-social { align-items: center; }
  .footer-social a { min-height: 44px; padding: 6px 0; margin-bottom: 0; justify-content: center; }

  .footer-col { display: flex; flex-direction: column; align-items: center; }
  .footer-col ul { align-items: center; }
  .footer-col ul li a { min-height: 44px; padding: 8px 0; justify-content: center; }

  .footer-col:has(.contact-item) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    row-gap: 12px;
    column-gap: 12px;
  }
  .footer-col:has(.contact-item) h4 { flex-basis: 100%; }
  footer .contact-item { margin-bottom: 0; flex: 0 1 auto; min-width: 0; gap: 8px; }
  footer .contact-item .contact-text span { word-break: break-word; }

  footer .payment-tags { justify-content: center; }

  .footer-bottom { text-align: center; }
}
