/* ========================================== */
/* CONTENEDORES PRINCIPALES (#banners-home)   */
/* ========================================== */
.banners-home-wrapper {
  width: 100%;
  max-width: 1280px;
  padding: 0 clamp(32px, 6vw, 72px);
  margin: 32px auto;
}

.banners-home-brands-section {
  width: 100%;
  max-width: 1280px;
  padding: 0 clamp(32px, 6vw, 72px);
  margin: 24px auto 48px;
  overflow: hidden;
}

.banners-home-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
}

.banners-home-main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 720 1 0;
  min-width: 0;
}

.banners-home-main-carousel {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 720 / 460;
  height: auto;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.banners-home-main-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.banners-home-slide {
  min-width: 100%;
  height: 100%;
}

.banners-home-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banners-home-slider-btn {
  position: absolute;
  pointer-events: auto;
  touch-action: manipulation;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 32px;
  background-color: var(--ico-azul);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #fff;
  font-size: 0;
  line-height: 0;
}

.banners-home-slider-btn .ico-home-slider-chevron {
  display: block;
  width: 7px;
  height: 14px;
  flex-shrink: 0;
}

.banners-home-slider-btn.prev {
  left: 16px;
}

.banners-home-slider-btn.next {
  right: 16px;
}

.banners-home-dots.main-dots {
  display: none;
  margin-top: 12px;
}

.banners-home-mini-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5%;
  flex: 400 1 0;
  min-width: 0;
}

.banners-home-mini-banner {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 400 / 220;
  height: auto;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.banners-home-mini-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banners-home-hover-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banners-home-mini-banner:hover .banners-home-hover-overlay {
  opacity: 1;
}

.banners-home-btn-ver-mas {
  display: inline-flex;
  padding: 8px 20px;
  align-items: center;
  gap: 8px;
  border-radius: 26px;
  background: var(--ico-verde);
  color: white;
  font-weight: bold;
  transform: translateY(15px);
  transition: transform 0.3s ease;
  font-family: 'Avenir Next LT Pro';
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.banners-home-mini-banner:hover .banners-home-btn-ver-mas {
  transform: translateY(0);
}

.banners-home-brands-container {
  width: 100%;
  overflow: hidden;
}

.banners-home-brands-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease-in-out;
}

.banners-home-brand-item {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  margin: 24px 0;
}

.banners-home-brand-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.banners-home-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.banners-home-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ico-celeste);
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s;
}

.banners-home-dot.active {
  background-color: var(--ico-celeste);
}

.banners-home-main-track,
.banners-home-brands-track {
  cursor: grab;
  touch-action: pan-y;
}

.banners-home-main-track:active,
.banners-home-brands-track:active {
  cursor: grabbing;
}

.banners-home-slide img,
.banners-home-brand-item img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banners-home-brand-item img {
  object-fit: contain;
}

@media (max-width: 1024px) and (min-width: 451px) {
  .banners-home-wrapper {
    margin: 16px auto;
    padding: 0 24px;
  }

  .banners-home-grid {
    display: block;
  }

  .banners-home-mini-wrapper {
    display: none;
  }

  .banners-home-main-container {
    width: 100%;
    align-items: center;
  }

  .banners-home-main-carousel {
    width: 100%;
    max-width: 720px;
    height: 460px;
    border-radius: 10px;
  }

  .banners-home-slider-btn {
    display: none;
  }

  .banners-home-dots.main-dots {
    display: flex;
  }

  .banners-home-brands-section {
    margin: 24px auto;
    padding: 0 24px;
  }

  .banners-home-brand-item {
    width: 100px;
    height: 42px;
  }
}

@media (max-width: 451px) {
  .banners-home-wrapper {
    margin: 16px auto;
    padding: 0 24px;
  }

  .banners-home-grid {
    display: block;
  }

  .banners-home-mini-wrapper {
    display: none;
  }

  .banners-home-main-container {
    width: 100%;
    align-items: center;
  }

  .banners-home-main-carousel {
    width: min(327px, calc(100vw - 48px));
    max-width: 327px;
    height: 200px;
    border-radius: 6px;
  }

  .banners-home-slider-btn {
    display: none;
  }

  .banners-home-dots.main-dots {
    display: flex;
  }

  .banners-home-brands-section {
    margin: 24px auto 32px;
    padding: 0 24px;
  }

  .banners-home-brand-item {
    width: 100px;
    height: 42px;
  }
}


/* RT Fix 2026-06-16: Home B2B mobile - slider principal y marcas según maqueta */
@media (max-width: 451px) {
  #banners-home {
    background: #F6F9FA !important;
  }

  #banners-home .banners-home-wrapper {
    width: 100% !important;
    margin: 16px auto 0 !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
  }

  #banners-home .banners-home-main-carousel {
    width: 100% !important;
    max-width: 327px !important;
    height: 200px !important;
    aspect-ratio: auto !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  #banners-home .banners-home-slide,
  #banners-home .banners-home-slide a,
  #banners-home .banners-home-slide picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  #banners-home .banners-home-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  #banners-home .banners-home-dots.main-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 13px 0 0 !important;
  }

  #banners-home .banners-home-brands-section {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 24px auto 32px !important;
    padding: 0 24px !important;
    overflow: hidden !important;
  }

  #banners-home .banners-home-brands-container {
    width: 100% !important;
    overflow: hidden !important;
  }

  #banners-home .banners-home-brands-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 24px !important;
    width: auto !important;
    margin: 0 !important;
  }

  #banners-home .banners-home-brand-item {
    flex: 0 0 100px !important;
    width: 100px !important;
    height: 42px !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #banners-home .banners-home-brand-item a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #banners-home .banners-home-brand-item img {
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  #banners-home #brands-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 13px 0 0 !important;
  }
}


/* RT Fix 2026-06-16: Home B2B mobile - ocultar bullets/óvalos extra del slider */
@media (max-width: 451px) {
  #banners-home .banners-home-dots.main-dots > button:not(.banners-home-dot),
  #banners-home .banners-home-dots.main-dots > li,
  #banners-home .banners-home-dots.main-dots > span:not(.banners-home-dot),
  #banners-home .banners-home-dots.main-dots > *:not(.banners-home-dot) {
    display: none !important;
  }

  #banners-home .banners-home-dots.main-dots .banners-home-dot,
  #banners-home #brands-dots .banners-home-dot {
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid #459CD6 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  #banners-home .banners-home-dots.main-dots .banners-home-dot.active,
  #banners-home #brands-dots .banners-home-dot.active {
    background: #459CD6 !important;
  }
}


/* RT Fix 2026-06-16: Home B2B mobile - fondo blanco en bloque de slider y marcas según maqueta */
@media (max-width: 451px) {
  #banners-home,
  #banners-home .banners-home-wrapper,
  #banners-home .banners-home-brands-section,
  #banners-home .banners-home-brands-container {
    background: #ffffff !important;
  }
}


/* RT Fix 2026-06-16: Home B2B - el bloque hero/marcas debe ir sobre fondo blanco */
.icofoods-home-business,
.icofoods-home-business #banners-home,
.icofoods-home-business #banners-home .banners-home-wrapper,
.icofoods-home-business #banners-home .banners-home-grid,
.icofoods-home-business #banners-home .banners-home-main-container,
.icofoods-home-business #banners-home .banners-home-brands-section,
.icofoods-home-business #banners-home .banners-home-brands-container {
  background: #ffffff !important;
}

.icofoods-home-business #banners-home {
  margin: 0 !important;
  padding: 32px 0 48px !important;
}

.icofoods-home-business #banners-home + #contadores-home {
  margin-top: 0 !important;
}

@media (max-width: 451px) {
  .icofoods-home-business #banners-home {
    padding: 16px 0 32px !important;
  }
}

/* RT Fix 2026-07-02: Home B2B mobile - tamaño exacto del slider según maqueta */
@media (max-width: 451px) {
  .icofoods-home-business #banners-home .banners-home-wrapper {
    width: 100% !important;
    max-width: none !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    margin-top: 16px !important;
    box-sizing: border-box !important;
  }

  .icofoods-home-business #banners-home .banners-home-main-container,
  .icofoods-home-business #banners-home .banners-home-grid {
    width: 100% !important;
    max-width: none !important;
  }

  .icofoods-home-business #banners-home .banners-home-main-carousel {
    width: min(327px, calc(100vw - 48px)) !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 327 / 200 !important;
    min-height: 0 !important;
    border-radius: 6px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  .icofoods-home-business #banners-home .banners-home-main-track,
  .icofoods-home-business #banners-home .banners-home-slide,
  .icofoods-home-business #banners-home .banners-home-slide a,
  .icofoods-home-business #banners-home .banners-home-slide picture,
  .icofoods-home-business #banners-home .banners-home-slide img {
    width: 100% !important;
    height: 100% !important;
  }

  .icofoods-home-business #banners-home .banners-home-slide img {
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* =========================================================
   ICO Foods - Flechas del slider principal casi transparentes
   Aplicado a Home B2B y B2C.
========================================================= */
.icofoods-home-business #banners-home .banners-home-slider-btn,
.icofoods-home-home #banners-home .banners-home-slider-btn,
.icofoods-home-business #banners-home-prev,
.icofoods-home-business #banners-home-next,
.icofoods-home-home #banners-home-prev,
.icofoods-home-home #banners-home-next {
    background: rgba(11, 68, 96, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease !important;
}

.icofoods-home-business #banners-home .banners-home-slider-btn .ico-home-slider-chevron,
.icofoods-home-home #banners-home .banners-home-slider-btn .ico-home-slider-chevron,
.icofoods-home-business #banners-home-prev .ico-home-slider-chevron,
.icofoods-home-business #banners-home-next .ico-home-slider-chevron,
.icofoods-home-home #banners-home-prev .ico-home-slider-chevron,
.icofoods-home-home #banners-home-next .ico-home-slider-chevron {
    opacity: 0.34 !important;
    transition: opacity 0.2s ease !important;
}

.icofoods-home-business #banners-home .banners-home-slider-btn:hover,
.icofoods-home-business #banners-home .banners-home-slider-btn:focus-visible,
.icofoods-home-home #banners-home .banners-home-slider-btn:hover,
.icofoods-home-home #banners-home .banners-home-slider-btn:focus-visible,
.icofoods-home-business #banners-home-prev:hover,
.icofoods-home-business #banners-home-next:hover,
.icofoods-home-home #banners-home-prev:hover,
.icofoods-home-home #banners-home-next:hover {
    background: rgba(11, 68, 96, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
}

.icofoods-home-business #banners-home .banners-home-slider-btn:hover .ico-home-slider-chevron,
.icofoods-home-business #banners-home .banners-home-slider-btn:focus-visible .ico-home-slider-chevron,
.icofoods-home-home #banners-home .banners-home-slider-btn:hover .ico-home-slider-chevron,
.icofoods-home-home #banners-home .banners-home-slider-btn:focus-visible .ico-home-slider-chevron,
.icofoods-home-business #banners-home-prev:hover .ico-home-slider-chevron,
.icofoods-home-business #banners-home-next:hover .ico-home-slider-chevron,
.icofoods-home-home #banners-home-prev:hover .ico-home-slider-chevron,
.icofoods-home-home #banners-home-next:hover .ico-home-slider-chevron {
    opacity: 0.62 !important;
}



/* RT Fix 2026-08-04: Home B2B mobile - dots debajo del banner y swipe táctil. */
@media (max-width: 451px) {
  .icofoods-home-business #banners-home .banners-home-main-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .icofoods-home-business #banners-home .banners-home-main-carousel {
    position: relative !important;
    flex: 0 0 auto !important;
    touch-action: pan-y !important;
    overscroll-behavior-x: contain !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }

  .icofoods-home-business #banners-home .banners-home-main-track {
    will-change: transform;
    touch-action: pan-y !important;
  }

  .icofoods-home-business #banners-home .banners-home-dots.main-dots {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 10px !important;
    margin: 20px 0 0 !important;
    padding: 0 0 4px !important;
    z-index: 1 !important;
  }
}

@media (max-width: 1024px) and (min-width: 451px) {
  .banners-home-dots.main-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
}

.banners-home-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  max-width: 10px;
  max-height: 10px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  background-color: #ffffff !important;
  border: 1px solid #459CD6 !important;
}

.banners-home-dot.active {
  background-color: var(--ico-celeste) !important;
}

/* Ajuste dots hero: 10x10 reales en tablet/mobile. */
@media (max-width: 1024px) and (min-width: 451px) {
  #banners-home .banners-home-dots.main-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
}

#banners-home .banners-home-dots.main-dots > .banners-home-dot {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  max-width: 10px !important;
  max-height: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  flex: 0 0 10px !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  background-color: #ffffff !important;
  border: 1px solid #459CD6 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#banners-home .banners-home-dots.main-dots > .banners-home-dot.active {
  background-color: var(--ico-celeste) !important;
}
