/* ==============================> Estilos de Categorías */

.categorias_inicio .category-image-wrapp {
    border-radius: 100% !important;
    border: 3px solid transparent;
    padding: 16px !important;
}

.categorias_inicio .category-grid-item:hover .category-image-wrapp {
    border-color: var(--e-global-color-primary);
}

.categorias_inicio .wd-autoheight,
.categorias_inicio .wd-autoheight .wd-carousel-item {
    display: inline !important;
}

@media(max-width: 768px) {

    .categorias_inicio .wd-autoheight,
    .categorias_inicio .wd-autoheight .wd-carousel-item {
        display: inherit !important;
    }
}


/* ==============================> BANDERA DE PERU EN CAMPO TELEFONO */
.elementor-field-group-telefono {
    position: relative;
}

.elementor-field-group-telefono input[name="form_fields[telefono]"] {
    background-image: url('https://izumiled.com/wp-content/uploads/2026/08/b-peru.png');
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 20px 14px;
    padding-left: 40px !important;
}

/* -> Ajuste responsive */
@media (max-width: 768px) {
    .elementor-field-group-telefono input[name="form_fields[telefono]"] {
        background-position: 10px center;
        background-size: 18px 12px;
        padding-left: 36px !important;
    }
}

/* ==============================> CARRUSEL DE TEXTOS INFINITO */

.wd-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    opacity: 0;
    animation: wd-marquee-fadein 1.6s ease forwards;
}

.wd-marquee-container:before {
    background: linear-gradient(90deg, var(--e-global-color-secondary) 0, rgba(20, 20, 20, 0));
    content: "";
    height: 100%;
    position: absolute;
    width: 12.5rem;
    z-index: 2;
    pointer-events: none;
    left: 0;
    top: 0;
}

.wd-marquee-container:after {
    background: linear-gradient(90deg, var(--e-global-color-secondary) 0, rgba(20, 20, 20, 0));
    content: "";
    height: 100%;
    position: absolute;
    width: 12.5rem;
    z-index: 2;
    pointer-events: none;
    right: 0;
    top: 0;
    transform: rotate(180deg);
}

/* -> ANIMACIÓN DE ENTRADA */

@keyframes wd-marquee-fadein {
    to {
        opacity: 1;
    }
}

/* -> PISTA DE DESPLAZAMIENTO */

.wd-marquee-track {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.wd-marquee-track:hover {
    animation-play-state: paused;
}

.elementor-widget-wd_product_categories .category-image img {
    transform: scale(0.8);
}

/* -> ITEMS INDIVIDUALES */

.wd-marquee-item {
    display: inline-block;
    color: #fff;
    opacity: 0.8;
    font-size: 14px;
    font-weight: 500;
    padding: 0 16px;
    transition: color 0.4s ease, transform 0.8s ease;
}

.wd-marquee-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* -> ANIMACIÓN DE SCROLL */

@keyframes wd-scroll-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--scroll-amount));
    }
}

/* -> RESPONSIVE TABLET */

@media (max-width: 768px) {
    .wd-marquee-container {
        padding: 8px 0;
    }

    .wd-marquee-item {
        font-size: 13px;
        padding: 0 20px;
    }
}