/*
* MENU
*/
.menu__ifu {
    position: relative;
}

.menu__ifu::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Material Symbols Outlined";
    content: '\e46e';
    font-size: 24px;
    font-weight: 400;
}



/*
* MENU
*/
.anchor-menu {
    position: sticky;
    top: 70px;
    padding: 20px 0;
    z-index: 99;
}


@media screen and (max-width: 960px) {
    .anchor-menu {
        top: 60px;
        padding: 10px 0;
    }

    .anchor-menu ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }



    .anchor-menu li {
        flex: 0 0 auto;
        /* mantiene ancho fijo por ítem */
    }

}



/*
* BADGE TEXT
*/
.badge--text {
    border: 2px solid var(--orange-action);
    padding: 8px;
    font-weight: 700;
    border-radius: 8px;
}


/*
* PRODUCT CARD
*/
.product--card-home {
    padding: 35px;
}

.product--card-home .product__card-container {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.product--card-home .product__card-container .button {
    margin-top: 20px;
}



/*
* PRODUCT GALLERY
*/
.product__gallery {
    display: flex;
    gap: 20px;
    max-width: 800px;
    align-items: start;
}

.product__gallery-main {
    width: 500px;
    height: 500px;
    position: relative;
}

.product__gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product__gallery-thumbnails {
    width: 100px;
    height: 500px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.product__gallery-thumbnails .swiper-slide {
    height: 100px;
    width: 100px;
    opacity: 0.5;
    margin-bottom: 10px;
}

.product__gallery-thumbnails .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--tertirary-blue);
}

.product__gallery-thumbnails .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .product__gallery-thumbnails .swiper-slide img:hover {
    cursor: pointer;
} */

.swiper-scroll-shadow-top,
.swiper-scroll-shadow-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-scroll-shadow-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
}

.swiper-scroll-shadow-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
}

.swiper-shadow-visible {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-blue);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
}

@media (max-width: 768px) {

    .product__gallery-main .swiper-slide {
        width: 100% !important;
        height: 100% !important;
    }

    .product__gallery-main .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product__gallery-container {
        width: 100%;
        overflow-x: hidden;
    }

    .product__gallery {
        flex-direction: column;
        align-items: center;
    }

    .product__gallery-main {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product__gallery-thumbnails {
        width: 100%;
        height: auto;
        margin-top: 20px;
        order: 2;
    }

    .product__gallery-thumbnails .swiper-slide {
        width: auto !important
    }

    .product__gallery-thumbnails .swiper-wrapper {
        display: flex;
        flex-direction: row;
    }

    .product__gallery-thumbnails .swiper-slide {
        width: 80px;
        height: 80px !important;
        margin-right: 10px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}





/*
* PRODUCT HIGHTLIGHTS/HOTPOINTS
*/
.products--hightlights-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.product__item {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 50px;
    /* transform: translateY(40px); */
    transition: all 0.3s ease;
}

.product__item.active {
    opacity: 1;
    visibility: visible;
    /* transform: translateY(0); */
}

.product__item-left {
    flex-basis: calc(30% - 40px);
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
}

.product__item-right {
    flex-basis: calc(70% - 40px);
}

.product__item-right .menu__models {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 50px;
}

.product__item-right .menu__models li {
    position: relative;
    padding: 10px;
    cursor: pointer;
}

.product__item-right .menu__models li.active {
    color: white;
    pointer-events: none;
}

.product__item-right .menu__models li.active:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 10px;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background-color: var(--primary-blue);
    z-index: -1;
}

.product__hotpoints-img {
    width: 400px;
    height: 400px;
    position: relative;
}

.product__hotpoints-img img.product__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product__hotpoints-img img.product__ellipse-bg {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    width: 95%;
}

.product__hotpoints-img .hotpoint__wrapper {
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.product__hotpoints-img .hotpoint__wrapper.active {
    pointer-events: none;
}

.product__hotpoints-img .hotpoint {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    background-color: var(--orange-action);
    border-radius: 50%;
}

.product__hotpoints-img .hotpoint:after {
    position: absolute;
    content: '';
    width: 26px;
    height: 26px;
    top: 50%;
    left: 51%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--orange-action);
    border-radius: 50%;
}

.product__hotpoints-img .hotpoint__wrapper.active .hotpoint:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--orange-action);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 1s infinite;
}


.product__hotpoints {
    display: flex;
    justify-items: center;
}

.product__hotpoints-content {
    position: relative;
    width: 300px;
}

.product__hotpoints-content-item {
    height: 100%;
    position: absolute;
    visibility: hidden;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-end;
    padding-bottom: 40px;
}

.product__hotpoints-content-item.active {
    /* display: block; */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.product__hotpoints-content-item ul {
    padding-left: 25px;
    margin-top: 10px;
}

.product__hotpoints-content-item img {
    width: 100%;
    margin-bottom: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(1.7);
        opacity: 0;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}


@media screen and (max-width: 1110px) {
    .products--hightlights-container {
        height: 700px;
    }

    .product__item {
        display: flex;
        flex-flow: column nowrap;
        justify-content: space-between;
        gap: 50px;
    }

    .product__item-left {
        flex-basis: 100%;
        display: block;
    }

    .product__item-right {
        flex-basis: 100%;
    }

    .product__hotpoints {
        display: flex;
        justify-items: center;
        justify-content: space-between;
    }
}


@media screen and (max-width: 768px) {
    .product__hotpoints-scroll {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }


    .product__hotpoints {
        min-width: max-content;
        /* importante */
        display: flex;
        flex-direction: row;
        gap: 40px;
    }

    .product__hotpoints-content {
        flex: 0 0 auto;
        width: 250px;
        position: relative;
    }

    .product__hotpoints-content-item {
        position: relative;
        /* quitar absolute en móvil */
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        padding-bottom: 0;
    }

    .product__hotpoints-content-item:not(.active) {
        display: none;
    }
}


/*
######################### FLEX ICONS #########################
*/
.flex--icons-content {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px;
}

.flex--icons-content img {
    margin: 0;
    transition: transform 0.3s ease;
}

.flex--icons-content:hover img {
    transform: scale(1.1);
}

.flex__icons-right .flex__icon-title {
    margin-bottom: 10px;
}


/*
######################### DISTRIBUTORS MAP #########################
*/
#country-content .row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#country-content .row .large-4 {
    flex-basis: calc(30% - 20px);
}

#country-content .row .large-8 {
    flex-basis: calc(70% - 20px);
}


.distributor-item {
    display: flex;
    border-bottom: 1px solid #333333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.distributor-item img {
    max-width: 140px;
    max-height: 140px;
    width: 100%;
    height: auto;
}

.distributor-item a {
    color: var(--tertirary-blue);
}


#country-content .distributor-item .large-text-left {
    flex-basis: calc(30% - 20px);
    font-size: 14px;
    color: var(--primary-blue);
}

#country-content .distributor-item .large-text-right {
    font-size: 14px;
}



/*
* PAGE IFUS
*/
/* Filtros */
.ifu-filters {
    margin: 20px 0;
}

/* Categorías */
.category-title {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.category-title h3 {
    margin: 0;
}

/* Posts */
.ifu-post {
    /*     padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff; */
    margin-bottom: 15px;
}

.ifu-post details {
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    border-radius: 8px;
}

.ifu-post details[open] {
    background-color: #f1f1f5;
}

/* Detalles de cada post */
.ifu-post details summary {
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.ifu-post summary h4 {
    display: inline;
    margin: 0;
}

/* Contenido desplegable */
.ifu-content {
    margin-top: 15px;
}

.ifu-content p {
    margin: 10px 0;
}

/* Versiones */
.ifu-version {
    margin-top: 20px;
}

.ifu-version p {
    margin: 5px 0;
}

.ifu-current {
    padding: 5px;
    margin-left: 8px;
    font-size: 12px;
    background-color: var(--orange-action);
    color: white;
    border-radius: 10px;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}


/* Lista de archivos */
.ifu-files {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 15px;
}

.ifu-files li {
    font-size: 15px;
}

.ifu-files a {
    text-decoration: none;
    color: var(--secondary-blue);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.ifu-files a i {
    margin-right: 5px;
}

.ifu-files a:hover {
    color: var(--tertirary-blue);
}

.ifu-files span {
    color: #d9534f;
    font-style: italic;
}





/*
* EMBED VIDEOS
*/
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background-color: #000;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
    background-color: #000;
    object-fit: cover;
}

@media (max-width: 768px) {
    .wp-block-embed.is-type-video {
        padding-bottom: 56.25%;
    }
}



/*
* DISTRIBUTORS
*/
#distributor select {
    margin: 10px 0 20px;
}

#distributor .row {
    display: flex;
    gap: 25px;
}

#distributor img {
    width: 100%;
    height: auto;
}