/* ==============================> PLANTILLA DE PRODUCTO */

.wd-single-price .price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
}

.single-product form:not(.variations_form).cart {
    flex-wrap: nowrap;
}

.single-product form.variations_form .woocommerce-variation-add-to-cart {
    flex-wrap: nowrap;
}

/* BOTON DE WHATSAPP EN FICHA DE PRODUCTO */

.btn-wsp-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: var(--btn-accented-brd-radius);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
    transition: background 0.3s;
    height: auto;
    max-width: fit-content;
}

.btn-wsp-product:hover {
    background-color: #128C7E;
    color: white;
}

.btn-wsp-product i {
    margin-right: 5px;
    font-size: 16px;
}

/* RESPONSIVE */

@media(max-width: 768px) {
    .single-product form.cart {
        flex-wrap: wrap;
    }
}



/* ==============================> ADMIN PRODUCTO APILABLE */

.show_if_producto_apilable {
    display: none;
}

/* ==============================> PROGRESO DASHBOARD MI CUENTA */

.progreso-apilables-dashboard {
    margin-bottom: 16px !important;
    border-radius: 8px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progreso-apilables-dashboard h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid var(--e-global-color-primary);
    padding-bottom: 10px;
}

.progreso-item {
    background: #f9f9f9;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.progreso-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.progreso-header {
    margin-bottom: 15px;
}

.progreso-producto-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progreso-imagen {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.progreso-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.progreso-item:hover .progreso-imagen img {
    transform: scale(1.1);
}

.progreso-texto h4 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #333;
}

.progreso-contador {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 600;
}

/* -> BARRA DE PROGRESO */

.progreso-barra-container {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progreso-barra {
    height: 100%;
    background: linear-gradient(90deg, var(--e-global-color-primary), #00a8ff);
    border-radius: 10px;
    transition: width 0.6s ease;
    animation: progressAnimation 1s ease-in-out;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

/* -> INFORMACIÓN ADICIONAL */

.progreso-info-adicional {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.estado-completo {
    background: #4caf50;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.estado-pendiente {
    background: #ff9800;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.expiracion {
    background: #f5f5f5;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
}

/* ==============================> SECCIÓN PRODUCTOS APILABLES */

.productos-apilables-container {
    padding: 20px 0;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.productos-apilables-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.descripcion-beneficio {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

/* -> GRID DE PRODUCTOS */

.productos-apilables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.producto-apilable-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto-apilable-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: var(--e-global-color-primary);
}

.producto-imagen {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.producto-apilable-item:hover .producto-imagen img {
    transform: scale(1.08);
}

.producto-info {
    padding: 20px;
}

.producto-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    line-height: 18px;
}

.producto-precio {
    font-size: 18px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    margin-bottom: 8px;
}

/* -> BENEFICIO ACTIVO */

.producto-beneficio {
    margin-bottom: 15px;
}

.beneficio-activo {
    display: inline-block;
    background: #eeffee;
    color: #4caf50;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: shine 3s infinite;
}

@keyframes shine {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
}

/* -> BOTÓN VER PRODUCTO */

.ver-producto-btn {
    display: inline-block;
    width: 100%;
    background: var(--e-global-color-primary);
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ver-producto-btn:hover {
    background: #0056b3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* -> PAGINACIÓN */

.productos-apilables-paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.productos-apilables-paginacion .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.productos-apilables-paginacion .page-numbers:hover {
    background: var(--e-global-color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.productos-apilables-paginacion .page-numbers.current {
    background: var(--e-global-color-primary);
    color: #ffffff;
}

/* ==============================> RESPONSIVE MÓVIL */

@media (max-width: 768px) {
    .progreso-apilables-dashboard {
        padding: 20px 15px;
    }

    .progreso-apilables-dashboard h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .progreso-item {
        padding: 15px;
    }

    .progreso-producto-info {
        gap: 12px;
    }

    .progreso-imagen {
        width: 50px;
        height: 50px;
    }

    .progreso-texto h4 {
        font-size: 14px;
    }

    .progreso-contador {
        font-size: 13px;
    }

    .progreso-info-adicional {
        flex-direction: column;
        align-items: flex-start;
    }

    .productos-apilables-container h2 {
        font-size: 22px;
    }

    .descripcion-beneficio {
        font-size: 14px;
    }

    .productos-apilables-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .producto-imagen {
        height: 240px;
    }

    .producto-info {
        padding: 15px;
    }

    .producto-info h3 {
        font-size: 16px;
        min-height: auto;
    }

    .producto-precio {
        font-size: 18px;
    }

    .beneficio-activo {
        font-size: 12px;
        padding: 6px 12px;
    }

    .ver-producto-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .productos-apilables-paginacion {
        flex-wrap: wrap;
        gap: 6px;
    }

    .productos-apilables-paginacion .page-numbers {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .productos-apilables-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .producto-imagen {
        height: 260px;
    }
}

@media (min-width: 1025px) {
    .productos-apilables-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .productos-apilables-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}