/* comments.css */
#comunidad .comments-section {
    padding: 80px 20px;
    background: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

#comunidad .comments-container {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#comunidad .comments-header {
    text-align: center;
}

#comunidad .comments-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #ff8c00;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#comunidad .comments-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Form Styles */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.comment-form input,
.comment-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

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

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    background: #ff8c00;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    text-transform: uppercase;
}

.btn-submit:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

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

.comment-error {
    color: rgba(255, 140, 0, .85);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Comments List */
#comunidad .comments-list-wrapper {
    position: relative;
    margin-top: 20px;
}

#comunidad .comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: max-height 0.5s ease;
    overflow: hidden;
}

#comunidad .comments-list.collapsed {
    max-height: 600px;
    /* Adjust according to 5 comments */
}

.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ff8c00;
    padding: 20px;
    border-radius: 0 16px 16px 0;
    animation: fadeIn 0.5s ease backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.comment-author {
    font-weight: 700;
    color: #ff8c00;
    font-family: 'Montserrat', sans-serif;
}

.comment-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.comment-body {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Overlay & Actions */
#comunidad .comments-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(10, 10, 10, 0.9));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#comunidad .comments-list.collapsed+#comunidad .comments-overlay {
    opacity: 1;
}

#comunidad .comments-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-load-more {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 10px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    border-color: #ff8c00;
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    #comunidad .comments-container {
        padding: 25px;
    }

    #comunidad .comments-header h2 {
        font-size: 1.8rem;
    }

    .btn-submit {
        width: 100%;
    }
}
