/* ===============================================================
   Estilos para la Sección de Comentarios
   =============================================================== */

/* --- Contenedor Principal --- */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.comments-title,
#reply-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* --- Lista de Comentarios --- */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}
.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 2rem;
}
.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* --- Avatar --- */
.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* --- Cuerpo del Comentario --- */
.comment-body {
    flex: 1;
}
.comment-meta {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}
.comment-author .fn {
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    font-style: normal;
}
.comment-metadata a {
    color: #777;
    text-decoration: none;
}
.comment-metadata a:hover {
    text-decoration: underline;
}

.comment-content {
    line-height: 1.7;
}

.reply .comment-reply-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #0073aa;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.reply .comment-reply-link:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* --- Formulario de Comentarios --- */
.comment-form {
    margin-top: 3rem;
}
.comment-form p {
    margin-bottom: 1.5rem;
}
.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}
.comment-form .form-submit .submit {
    /* Hereda de .btn, .btn-primary */
    padding: 12px 24px;
    font-size: 1rem;
}
.logged-in-as a {
    color: #0073aa;
    font-weight: 500;
}
.no-comments {
    text-align: center;
    color: #777;
    margin-top: 2rem;
    font-style: italic;
}
