/* === Sistema de Likes === */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}
.like-btn:hover {
    border-color: #426e86;
    color: #426e86;
    background: #f0f6f9;
}
.like-btn.liked {
    border-color: #426e86;
    color: #426e86;
    background: #f0f6f9;
}
.like-btn.liked .like-icon {
    animation: likePopIn 0.4s ease;
}
.like-btn .like-icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.like-btn:hover .like-icon {
    transform: scale(1.15);
}
.like-btn .like-count {
    font-weight: 600;
    min-width: 12px;
    text-align: center;
}

/* Ícono: mano pulgar arriba con Font Awesome */
.like-btn .like-icon::before {
    font-family: 'Font Awesome 6 Free';
    content: '\f164';
    font-weight: 400;
}
.like-btn.liked .like-icon::before {
    font-weight: 900;
}

/* Contenedor del like en artículos */
.article-like-wrapper {
    margin-top: 8px;
}

/* Like al final del artículo - visible y centrado */
.article-like-end {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Forzar centrado dentro de contenedores Elementor */
.elementor-widget-wrap > .article-like-end,
.elementor-widget-container > .article-like-end,
.elementor-column > .article-like-end,
div > .article-like-end {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}
.article-like-end .like-btn {
    padding: 10px 24px;
    font-size: 15px;
}
.article-like-end .like-icon {
    font-size: 20px;
}
.article-like-end::before {
    content: '¿Te resultó útil este artículo?';
    display: block;
    margin-bottom: 12px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    color: #888;
}

/* En el grid del blog */
.grid-item-metadata .like-btn {
    padding: 4px 10px;
    font-size: 12px;
}
.grid-item-metadata .like-btn .like-icon {
    font-size: 14px;
}

@keyframes likePopIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
