
/* ==========================================================
   NAVIDAD SODIMAC V1
   CARRUSEL 7 TARJETAS + BANNER
========================================================== */

/* 01. SECCIÓN FULL WIDTH */

.navidad-regalos {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 40px 0 48px;
  background: #A4111D;
  font-family: 'Lato', Arial, sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}

.navidad-regalos *,
.navidad-regalos *::before,
.navidad-regalos *::after {
  box-sizing: border-box;
}

/* 02. CONTENEDOR */

.navidad-regalos__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ==========================================================
   03. TÍTULO - LATO
========================================================== */

.navidad-regalos__title {
  margin: 0 0 30px;
  padding: 0;
  border: 0;

  font-family: 'Lato', Arial, sans-serif !important;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;

  color: #D4AF37;
  text-align: center;
}


/* 04. CARRUSEL */

.navidad-regalos__carousel {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

/* 05. TRACK */

.navidad-regalos__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;

  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;

  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.navidad-regalos__track::-webkit-scrollbar {
  display: none;
}

/* 06. TARJETAS - 4 VISIBLES */

.navidad-regalos__card {
  display: block;
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  margin: 0;
  padding: 0;
  text-decoration: none;
  scroll-snap-align: start;
  transition: filter .2s ease;
}

.navidad-regalos__card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.navidad-regalos__card:hover {
  filter: brightness(1.08);
}

/* 07. FLECHAS */

.navidad-regalos__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  padding: 0;

  background: #FFFFFF;
  border: 0;
  border-radius: 50%;

  color: #A4111D;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);

  cursor: pointer;
  transition:
    background-color .2s ease,
    color .2s ease,
    opacity .2s ease;
}

.navidad-regalos__arrow:hover {
  background: #D4AF37;
  color: #A4111D;
}

.navidad-regalos__arrow--prev {
  left: -20px;
}

.navidad-regalos__arrow--next {
  right: -20px;
}

.navidad-regalos__arrow:disabled {
  opacity: .35;
  cursor: default;
}

.navidad-regalos__arrow:focus-visible,
.navidad-regalos__card:focus-visible,
.navidad-regalos__banner:focus-visible {
  outline: 3px solid #D4AF37;
  outline-offset: 3px;
}

/* 08. BANNER INFERIOR */

.navidad-regalos__banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  text-decoration: none;
}

.navidad-regalos__banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 09. TABLET */

@media (min-width: 768px) and (max-width: 1199px) {

  .navidad-regalos {
    padding: 32px 0 40px;
  }

  .navidad-regalos__container {
    padding: 0 20px;
  }

  .navidad-regalos__title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .navidad-regalos__track {
    gap: 14px;
  }

  .navidad-regalos__card {
    flex-basis: calc((100% - 28px) / 3);
  }

  .navidad-regalos__arrow--prev {
    left: -12px;
  }

  .navidad-regalos__arrow--next {
    right: -12px;
  }

}

/* 10. MOBILE */

@media (max-width: 767px) {

  .navidad-regalos {
    padding: 28px 0 34px;
  }

  .navidad-regalos__container {
    padding: 0 16px;
  }

  .navidad-regalos__title {
    font-size: 23px;
    line-height: 1.3;
    margin-bottom: 22px;
  }

  .navidad-regalos__track {
    gap: 12px;
  }

  .navidad-regalos__card {
    flex-basis: calc((100% - 12px) / 2);
  }

  .navidad-regalos__carousel {
    margin-bottom: 22px;
  }

  .navidad-regalos__arrow {
    width: 34px;
    height: 34px;
  }

  .navidad-regalos__arrow svg {
    width: 19px;
    height: 19px;
  }

  .navidad-regalos__arrow--prev {
    left: -10px;
  }

  .navidad-regalos__arrow--next {
    right: -10px;
  }

}

/* 11. MOBILE PEQUEÑO */

@media (max-width: 360px) {

  .navidad-regalos__title {
    font-size: 21px;
  }

  .navidad-regalos__track {
    gap: 10px;
  }

  .navidad-regalos__card {
    flex-basis: calc((100% - 10px) / 2);
  }

}

/* 12. MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

  .navidad-regalos__track {
    scroll-behavior: auto;
  }

  .navidad-regalos__card,
  .navidad-regalos__arrow {
    transition: none;
  }

}


/* ==========================================================
   NAVIDAD SODIMAC V2 - VERSIÓN COMPACTA
   Agregar al final del CSS actual
========================================================== */

/* 01. SECCIÓN PRINCIPAL */

.navidad-regalos {
  padding-top: 24px !important;
  padding-bottom: 28px !important;
}

/* 02. ANCHO DEL CONTENIDO */

.navidad-regalos__container {
  max-width: 1050px !important;
  padding-left: 20px;
  padding-right: 20px;
}

/* 03. TÍTULO */

.navidad-regalos__title {
  font-family: 'Lato', Arial, sans-serif !important;
  font-size: 26px !important;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px !important;
}

/* 04. CARRUSEL */

.navidad-regalos__carousel {
  margin-bottom: 18px !important;
}

.navidad-regalos__track {
  gap: 12px !important;
}

/* 05. TARJETAS DESKTOP */

.navidad-regalos__card {
  flex: 0 0 calc((100% - 36px) / 4);
}

/* 06. BANNER */

.navidad-regalos__banner {
  margin: 0;
}

.navidad-regalos__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================
   TABLET
========================================================== */

@media (min-width: 768px) and (max-width: 1199px) {

  .navidad-regalos {
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }

  .navidad-regalos__container {
    max-width: 900px !important;
    padding-left: 18px;
    padding-right: 18px;
  }

  .navidad-regalos__title {
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }

  .navidad-regalos__card {
    flex: 0 0 calc((100% - 24px) / 3);
  }

  .navidad-regalos__carousel {
    margin-bottom: 16px !important;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

  .navidad-regalos {
    padding-top: 18px !important;
    padding-bottom: 22px !important;
  }

  .navidad-regalos__container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navidad-regalos__title {
    font-size: 21px !important;
    margin-bottom: 14px !important;
  }

  .navidad-regalos__track {
    gap: 10px !important;
  }

  .navidad-regalos__card {
    flex: 0 0 calc((100% - 10px) / 2);
  }

  .navidad-regalos__carousel {
    margin-bottom: 14px !important;
  }

  .navidad-regalos__arrow {
    width: 30px;
    height: 30px;
  }

  .navidad-regalos__arrow svg {
    width: 18px;
    height: 18px;
  }
}
