/* Estilos solo para templates/shop/home.html (evitar inline en la vista). */

.home-hero {
  background-image: url("../../img/bienvenida.webp");
  filter: brightness(1.0);
  overflow-x: hidden;
}

.hero-section.home-hero {
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 8px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 8px), transparent 100%);
}

.hero-title-track {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-section .masked-text {
  color: #cccccc;
  background-image: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #cccccc;
  animation: heroTitleGlow 2.4s ease-in-out infinite;
  filter: none;
  -webkit-text-stroke: 4px #5c0e14;
  paint-order: stroke fill;
}

@keyframes heroTitleGlow {
  0%, 100% {
    text-shadow:
      0 3px 0 #5c0e14,
      0 6px 12px rgba(0, 0, 0, 0.85),
      0 10px 22px rgba(0, 0, 0, 0.55),
      0 0 10px rgba(220, 53, 69, 0.35);
  }
  50% {
    text-shadow:
      0 4px 0 #7a1218,
      0 8px 16px rgba(0, 0, 0, 0.95),
      0 14px 28px rgba(0, 0, 0, 0.65),
      0 0 22px rgba(220, 53, 69, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section .masked-text {
    animation: none;
    text-shadow:
      0 3px 0 #5c0e14,
      0 8px 16px rgba(0, 0, 0, 0.9),
      0 0 14px rgba(220, 53, 69, 0.45);
  }

  .security-badge {
    animation: none;
  }
}

.home-category {
  background-size: cover;
  background-position: center;
}

.home-category--equipamiento {
  background-image: url("../../img/banner1.webp");
}

.home-category--accesorios {
  background-image: url("../../img/banner3.webp");
}

.home-category--maletas {
  background-image: url("../../img/banner2.webp");
}

.category-banner .overlay span {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.offer-card .product-card-image-link {
  display: block;
  position: relative;
}

.best-seller-placeholder-link {
  display: block;
  width: 100%;
  height: 100%;
}

.offers-section .btn.btn-view-detail {
  background: linear-gradient(135deg, #f25d6c 0%, #ad3a4c 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px rgba(242, 93, 108, 0.38);
}

.offers-section .btn.btn-view-detail:hover {
  background: linear-gradient(135deg, #ff7a86 0%, #c44d5e 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(242, 93, 108, 0.48);
}

.best-sellers-section .btn.best-seller-btn {
  background: linear-gradient(135deg, #f25d6c 0%, #ad3a4c 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(242, 93, 108, 0.4);
}

.best-sellers-section .btn.best-seller-btn:hover {
  background: linear-gradient(135deg, #ff7a86 0%, #c44d5e 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(242, 93, 108, 0.5);
}

.offers-section .btn-offers-action {
  background: linear-gradient(135deg, #dc3545 0%, #7a1a28 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(220, 53, 69, 0.32);
}

.offers-section .btn-offers-action:hover {
  background: linear-gradient(135deg, #e04555 0%, #8f1d2c 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(220, 53, 69, 0.4);
}

.offers-section .btn-offers-action:last-child {
  background: linear-gradient(135deg, #3a1820 0%, #1c1214 72%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.offers-section .btn-offers-action:last-child:hover {
  background: linear-gradient(135deg, #4c202a 0%, #2a1518 72%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.offers-section + .separator,
.service-banner + .separator {
  height: 2px;
  margin: 1.25rem 0;
  background: linear-gradient(90deg, transparent, #1c1214 16%, #dc3545 50%, #1c1214 84%, transparent);
}

.best-sellers-section .best-seller-card {
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(220, 53, 69, 0.46), transparent 68%),
    linear-gradient(165deg, #1c1214 0%, #121418 58%, #1a1012 100%);
  border: 1px solid rgba(220, 53, 69, 0.45);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.best-sellers-section .best-seller-info-section {
  border-left-color: rgba(220, 53, 69, 0.35);
}

.best-sellers-section .best-seller-info h3,
.best-sellers-section .best-seller-price .price-normal {
  color: #fff;
}

.best-sellers-section .best-seller-info .product-short-desc,
.best-sellers-section .best-seller-price .price-original {
  color: rgba(255, 255, 255, 0.68);
}

.best-sellers-section .best-seller-price .price-offer {
  color: #ff5c6c;
}

.best-sellers-section .carousel-main-container {
  background: transparent;
}

.best-sellers-section .carousel-main {
  background: transparent;
}

.best-sellers-section .carousel-thumb {
  background-color: transparent;
  background-image: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.12) 46%,
    rgba(255, 255, 255, 0.04) 74%,
    transparent 100%
  );
}

.best-sellers-section .carousel-thumb {
  object-fit: contain;
}

/* Banner de seguridad: 40% más chico (máx. 290px) y línea a cada lado */
.security-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 2rem 0;
  line-height: 0;
}

.security-banner + .brands-banner {
  margin-top: 0;
  padding-top: 0;
}

.security-banner__head {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.security-banner__spacer {
  flex: 1 1 0;
}

.security-banner__line {
  flex: 1 1 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1c1214 18%, #dc3545);
}

.security-banner__line--end {
  background: linear-gradient(90deg, #dc3545, #1c1214 82%, transparent);
}

.security-banner__image {
  display: block;
  flex: 0 0 auto;
  width: min(31.05%, 290px);
  max-width: 290px;
  height: auto;
  margin: 0 1.25rem;
}

@media (max-width: 768px) {
  .security-banner__image {
    width: min(40.365%, 377px);
    max-width: 377px;
  }
}

.security-badges {
  --security-badge-gap: calc(clamp(0.35rem, 2vw, 0.8rem) + 30px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--security-badge-gap);
  width: min(100%, 520px);
  padding: 0 0.75rem;
}

.security-badge-slot {
  position: relative;
  display: flex;
  flex: 0 1 auto;
}

.security-badge-slot:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--security-badge-gap) / -2);
  width: 1px;
  height: 10px;
  transform: translate(50%, -50%);
  background: rgba(28, 18, 20, 0.16);
  pointer-events: none;
}

.security-badge {
  display: block;
  width: clamp(32px, 9.8vw, 52px);
  height: auto;
  flex: 0 1 auto;
  object-fit: contain;
  transform-origin: center;
  animation: securityBadgePulse 7.5s ease-in-out infinite;
}

.security-badge-slot:nth-child(2) .security-badge { animation-delay: 1.5s; }
.security-badge-slot:nth-child(3) .security-badge { animation-delay: 3s; }
.security-badge-slot:nth-child(4) .security-badge { animation-delay: 4.5s; }
.security-badge-slot:nth-child(5) .security-badge { animation-delay: 6s; }

@keyframes securityBadgePulse {
  0%, 18%, 100% {
    transform: scale(1);
  }
  9% {
    transform: scale(1.14);
  }
}
