/* ========================================== */
/* 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;
    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;
}

.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: #0B446099;
    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;
    }
}


/* ========================================== */
/* SECCIÓN INFORMACION (#banners-info)        */
/* ========================================== */
#banners-info {
    width: 100%;
    max-width: 1280px;
    margin: 32px auto 40px;
    padding: 0 clamp(32px, 6vw, 72px);
}

.banners-info-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--ICO-Azul, #0B4460);
    border-radius: 6px;
    padding: 16px 48px;
    position: relative;
    height: 104px;
}

.banners-info-viewport {
    width: 100%;
    overflow: hidden;
}

.banners-info-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.banners-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    height: auto;
}

.banners-info-divider {
    width: 1px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.3);
}

.banners-info-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.banners-info-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.banners-info-title {
    color: #FFF;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.banners-info-text {
    color: #B3C6CE;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

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

/* ========================================== */
/* RESPONSIVE - MOBILE                        */
/* ========================================== */
@media (max-width: 1024px) {
    #banners-info {
        padding: 0;
        margin: 24px 0 0;
    }

    .banners-info-wrapper {
        border-radius: 0;
        padding: 0;
        height: auto;
    }

    .banners-info-viewport {
        padding: 40px 0;
        height: 185px;
    }

    .banners-info-track {
        justify-content: flex-start;
        gap: 0;
        transition: transform 0.4s ease-in-out;
    }

    .banners-info-card {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .banners-info-divider.d-desktop {
        display: none;
    }

    .banners-info-slider-btn {
        display: inline-flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #459CD6;
        border: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 3;
    }

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

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

/* =========================================================
   FIX ICO Foods B2C - Flechas banner principal en blanco
========================================================= */
.banners-home-slider-btn,
.banners-home-slider-btn.prev,
.banners-home-slider-btn.next,
#banners-home-prev,
#banners-home-next {
    color: #FFFFFF !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.banners-home-slider-btn:hover,
.banners-home-slider-btn:focus,
#banners-home-prev:hover,
#banners-home-next:hover,
#banners-home-prev:focus,
#banners-home-next:focus {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* =========================================================
   FIX ICO Foods B2C - Banner principal flechas perfectas
   Círculo azul correcto + flecha blanca centrada
========================================================= */
.banners-home-slider-btn,
.banners-home-slider-btn.prev,
.banners-home-slider-btn.next,
#banners-home-prev,
#banners-home-next {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: #0B4460 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.banners-home-slider-btn::before,
#banners-home-prev::before,
#banners-home-next::before {
    content: none !important;
    display: none !important;
}

.banners-home-slider-btn .ico-home-slider-chevron,
#banners-home-prev .ico-home-slider-chevron,
#banners-home-next .ico-home-slider-chevron {
    display: block !important;
    width: 7px !important;
    height: 14px !important;
    flex: 0 0 auto !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;
}

/* =========================================================
   ICO Foods B2C - Ocultar flechas del slider principal
   en tablet y mobile. La navegación queda mediante dots/swipe.
========================================================= */
@media (max-width: 1024px) {
    body.icofoods-home-home #banners-home .banners-home-slider-btn,
    body.icofoods-home-home #banners-home-prev,
    body.icofoods-home-home #banners-home-next,
    .icofoods-home-home #banners-home .banners-home-slider-btn,
    .icofoods-home-home #banners-home-prev,
    .icofoods-home-home #banners-home-next {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}


/* =========================================================
   RT Fix 2026-07-30: Home B2C mobile - hero como B2B,
   sin controles ovalados y con dots verdes del perfil hogar.
========================================================= */
@media (max-width: 451px) {
    .icofoods-home-home #banners-home,
    .icofoods-home-home #banners-home .banners-home-wrapper,
    .icofoods-home-home #banners-home .banners-home-main-container {
        background: #FFFFFF !important;
    }

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

    .icofoods-home-home #banners-home .banners-home-grid {
        display: block !important;
    }

    .icofoods-home-home #banners-home .banners-home-mini-wrapper {
        display: none !important;
    }

    .icofoods-home-home #banners-home .banners-home-main-container {
        width: 100% !important;
        min-width: 0 !important;
        align-items: center !important;
    }

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

    .icofoods-home-home #banners-home .banners-home-main-track {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
    }

    .icofoods-home-home #banners-home .banners-home-slide,
    .icofoods-home-home #banners-home .banners-home-slide > a,
    .icofoods-home-home #banners-home .banners-home-slide picture {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .icofoods-home-home #banners-home .banners-home-slide img {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .icofoods-home-home #banners-home .banners-home-dots.main-dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 10px !important;
        margin: 13px 0 0 !important;
        padding: 0 !important;
        color: #0B4460 !important;
    }

    .icofoods-home-home #banners-home .banners-home-dots.main-dots > button,
    .icofoods-home-home #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;
        border: 1px solid #0B4460 !important;
        border-radius: 50% !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        cursor: pointer !important;
    }

    .icofoods-home-home #banners-home .banners-home-dots.main-dots > button.active,
    .icofoods-home-home #banners-home .banners-home-dots.main-dots > .banners-home-dot.active {
        background: #0B4460 !important;
    }
}

/* RT Fix 2026-08-03: dots del hero B2C mobile en azul corporativo. */


/* =========================================================
   RT Fix 2026-08-04: Hero B2C mobile — dots debajo de la
   imagen y navegación horizontal por swipe con el dedo.
========================================================= */
@media (max-width: 451px) {
    .icofoods-home-home #banners-home .banners-home-main-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        row-gap: 24px !important;
    }

    .icofoods-home-home #banners-home .banners-home-main-carousel,
    .icofoods-home-home #banners-home .banners-home-main-track {
        touch-action: pan-y pinch-zoom !important;
        overscroll-behavior-x: contain !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    .icofoods-home-home #banners-home .banners-home-main-track {
        cursor: grab !important;
        will-change: transform !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }

    .icofoods-home-home #banners-home .banners-home-main-track:active {
        cursor: grabbing !important;
    }

    .icofoods-home-home #banners-home .banners-home-slide,
    .icofoods-home-home #banners-home .banners-home-slide > a,
    .icofoods-home-home #banners-home .banners-home-slide picture {
        touch-action: pan-y pinch-zoom !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    .icofoods-home-home #banners-home .banners-home-slide img {
        pointer-events: none !important;
        -webkit-user-drag: none !important;
    }

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

/* =========================================================
   RT Fix 2026-08-10: Hero B2C desktop — flechas clickeables.
   Evita que el track/enlace del banner capture el click.
========================================================= */
@media (min-width: 1025px) {
    .icofoods-home-home #banners-home .banners-home-main-track {
        position: relative;
        z-index: 1;
    }

    .icofoods-home-home #banners-home .banners-home-slider-btn,
    .icofoods-home-home #banners-home-prev,
    .icofoods-home-home #banners-home-next {
        z-index: 30 !important;
        pointer-events: auto !important;
        touch-action: manipulation !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 var(--ico-azul, #0B4460) !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-azul, #0B4460) !important;
}
