/* Elementor widget styles for Favorites TRAE */

/* Reset comunes para evitar herencia de estilos globales (Elementor/tema) */
.ft-elementor-button {
    color: initial !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.ft-elementor-button .ft-icon,
.ft-elementor-button i,
.ft-elementor-button svg {
    color: initial !important;
    fill: initial !important;
    stroke: initial !important;
}

/* Ocultar/mostrar iconos - Reglas con mayor especificidad */
.ft-elementor-button.ft-is-favorite .ft-inactive {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}

.ft-elementor-button:not(.ft-is-favorite) .ft-active {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}

.ft-elementor-button.ft-is-favorite .ft-active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ft-elementor-button:not(.ft-is-favorite) .ft-inactive {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.ft-elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    border: none;
    transition: all 0.3s ease;
    overflow: visible;
    line-height: 1 !important;
    text-decoration: none;
    box-sizing: border-box;
}

.ft-elementor-button .ft-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1 !important;
    margin: 0 !important;
}

.ft-elementor-button img,
.ft-elementor-button svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    object-fit: contain;
    line-height: 1 !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.ft-elementor-button:hover img,
.ft-elementor-button:hover svg {
    transform: scale(1.1);
}

/* Custom animations */
@keyframes favorites-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.ft-elementor-button.ft-is-favorite .ft-active img,
.ft-elementor-button.ft-is-favorite .ft-active svg {
    animation: favorites-pulse 0.5s ease-in-out;
}
