/* ═══════════════════════════════════════════════════════════════
   SECCIÓN DE COMENTARIOS - PREMIUM REDESIGN
   ═══════════════════════════════════════════════════════════════ */

.blog-comments-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fafbfc;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
}

.blog-comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #ff6b00;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─── Formulario de comentarios ─── */
.blog-comment-form {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f2;
    transition: border-color 0.3s;
}

.blog-comment-form:hover,
.blog-comment-form:focus-within {
    border-color: #ff6b00;
    box-shadow: 0 3px 12px rgba(255, 107, 0, 0.08);
}

.blog-comment-form h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
}

.blog-comment-form .form-group {
    margin-bottom: 0.8rem;
}

.blog-comment-form input,
.blog-comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e0e4e8;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-family: inherit;
    background: #fafbfc;
    box-sizing: border-box;
}

.blog-comment-form input:focus,
.blog-comment-form textarea:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.08);
    background: white;
}

.blog-comment-form input::placeholder,
.blog-comment-form textarea::placeholder {
    color: #adb5bd;
    font-size: 0.85rem;
}

.blog-comment-form textarea {
    min-height: 80px;
    resize: vertical;
}

.blog-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25);
    letter-spacing: 0.3px;
}

.blog-comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.blog-comment-submit:active {
    transform: translateY(0);
}

/* ─── Lista de comentarios ─── */
.blog-comments-list {
    margin-top: 1rem;
}

.blog-comment-item {
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border-left: 3px solid #ff6b00;
    transition: all 0.2s;
}

.blog-comment-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
}

.blog-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0f2f4;
}

.blog-comment-author {
    font-weight: 700;
    color: #ff6b00;
    font-size: 0.9rem;
}

.blog-comment-date {
    color: #adb5bd;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-comment-text {
    color: #495057;
    line-height: 1.5;
    font-size: 0.9rem;
}

.blog-comments-empty {
    text-align: center;
    padding: 1.5rem;
    color: #adb5bd;
    font-style: italic;
    font-size: 0.9rem;
}

.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b00;
    border-radius: 50%;
    animation: spin-small 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.3rem;
}

@keyframes spin-small {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .blog-comments-section {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
    }

    .blog-comments-title {
        font-size: 1rem;
    }

    .blog-comment-form {
        padding: 0.8rem;
    }

    .blog-comment-form textarea {
        min-height: 60px;
    }

    .blog-comment-author {
        font-size: 0.85rem;
    }

    .blog-comment-text {
        font-size: 0.85rem;
    }

    .blog-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .blog-comment-date {
        font-size: 0.7rem;
    }
}