/* =========================================================
   ULTRAPC - CAMPAÑAS Y ETIQUETAS PROMOCIONALES
   ========================================================= */


/* =========================================================
   DÍA DEL PADRE
   ========================================================= */

/* Catálogo / miniaturas */
.archive #día-del-padre,
.home #día-del-padre,
.tax-product_cat #día-del-padre,
.woocommerce-shop #día-del-padre {
    position: absolute;
    top: 1px;
    left: 100px;

    display: inline-block;

    padding: 3px 6px;

    background: linear-gradient(135deg, #9e0d20, #ce1831);
    color: #fff;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;

    box-shadow: 0 2px 8px rgba(228,26,53,.4);

    animation: ultrapc-pulse-promo 2s infinite;
}


/* Ficha de producto */
.single-product #día-del-padre {
    display: inline-block;

    padding: 5px 10px;

    background: linear-gradient(135deg, #9e0d20, #ce1831);
    color: #fff;

    border-radius: 6px;

    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;

    box-shadow: 0 2px 8px rgba(228,26,53,.4);

    animation: ultrapc-pulse-promo 2s infinite;
}


#día-del-padre::before {
    content: "👔 ";
}


/* =========================================================
   PORCENTAJE / OFERTA
   ========================================================= */

.onsale {
    width: 75px !important;
    height: 75px !important;

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

    background: linear-gradient(135deg, #ff0000, #ff4d4d) !important;
    color: #fff !important;

    border-radius: 50% !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    box-shadow: 0 4px 12px rgba(255,0,0,.4) !important;

    animation: ultrapc-pulse-promo 2s infinite;
}


.porcentaje {
    width: 25px !important;
    height: 25px !important;

    align-items: center !important;
    justify-content: center !important;

    background: linear-gradient(135deg, #ff0000, #ff4d4d) !important;
    color: #fff !important;

    border-radius: 50% !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    box-shadow: 0 4px 12px rgba(255,0,0,.4) !important;

    animation: ultrapc-pulse-promo 2s infinite;
}


@keyframes ultrapc-pulse-promo {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


/* =========================================================
   DÍA DEL NIÑO
   ========================================================= */


/* =========================================================
   CATÁLOGO / MINIATURAS
   ========================================================= */

.archive #día-del-niño,
.home #día-del-niño,
.tax-product_cat #día-del-niño,
.woocommerce-shop #día-del-niño {
    position: absolute;

    top: 2px;
    left: 95px;

    z-index: 100;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    overflow: hidden;

    padding: 5px 12px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;

    background:
        linear-gradient(
            135deg,
            rgba(8,27,18,.96) 0%,
            rgba(18,52,35,.96) 55%,
            rgba(12,38,25,.96) 100%
        );

    border: 1px solid rgba(0,235,86,.65);

    clip-path: polygon(
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%,
        0 8px
    );

    box-shadow:
        inset 0 0 18px rgba(0,235,86,.20),
        inset 0 0 30px rgba(217,0,43,.10),
        0 0 8px rgba(0,235,86,.90),
        0 0 18px rgba(0,235,86,.60),
        0 0 25px rgba(217,0,43,.40),
        0 0 40px rgba(217,0,43,.20);

    animation: ultrapc-dia-nino-glow 2.8s ease-in-out infinite;
}


/* =========================================================
   FICHA DE PRODUCTO
   ========================================================= */

.single-product #día-del-niño {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    overflow: hidden;

    padding: 8px 16px;

    color: #fff;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;

    background:
        linear-gradient(
            135deg,
            rgba(8,27,18,.96) 0%,
            rgba(18,52,35,.96) 55%,
            rgba(12,38,25,.96) 100%
        );

    border: 1px solid rgba(0,235,86,.65);

    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );

    box-shadow:
        inset 0 0 18px rgba(0,235,86,.20),
        inset 0 0 30px rgba(217,0,43,.10),
        0 0 8px rgba(0,235,86,.90),
        0 0 18px rgba(0,235,86,.60),
        0 0 25px rgba(217,0,43,.40),
        0 0 40px rgba(217,0,43,.20);

    animation: ultrapc-dia-nino-glow 2.8s ease-in-out infinite;
}


/* Icono */
#día-del-niño::before {
    content: "🎁";

    font-size: 1.15em;

    filter:
        drop-shadow(0 0 5px #00eb56)
        drop-shadow(0 0 12px #00eb56)
        drop-shadow(0 0 22px #d9002b);
}


/* Destello */
#día-del-niño::after {
    content: "";

    position: absolute;

    top: -60%;
    left: -45%;

    width: 35%;
    height: 230%;

    transform: rotate(25deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.45),
            transparent
        );

    animation: ultrapc-dia-nino-shine 3.5s linear infinite;
}


/* Línea RGB */
.archive #día-del-niño,
.single-product #día-del-niño {
    border-bottom: 2px solid transparent;

    border-image:
        linear-gradient(
            90deg,
            #00eb56,
            #ff465f,
            #d9002b
        ) 1;
}


/* =========================================================
   ANIMACIONES DÍA DEL NIÑO
   ========================================================= */

@keyframes ultrapc-dia-nino-glow {

    0%,
    100% {
        transform: scale(1);

        box-shadow:
            inset 0 0 18px rgba(0,235,86,.20),
            inset 0 0 30px rgba(217,0,43,.10),
            0 0 10px rgba(0,235,86,.70),
            0 0 18px rgba(0,235,86,.50),
            0 0 25px rgba(217,0,43,.35);
    }

    50% {
        transform: scale(1.05);

        box-shadow:
            inset 0 0 25px rgba(0,235,86,.35),
            inset 0 0 45px rgba(217,0,43,.18),
            0 0 15px rgba(0,235,86,1),
            0 0 30px rgba(0,235,86,.80),
            0 0 40px rgba(217,0,43,.70),
            0 0 60px rgba(217,0,43,.35);
    }
}


@keyframes ultrapc-dia-nino-shine {

    from {
        left: -45%;
    }

    to {
        left: 135%;
    }
}
