.facebook-comments-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 5px;
    border: 1px solid white;
    max-width: 100%;
    overflow: hidden;
}

.comments-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #4267b2;
    border-bottom: 2px solid #4267b2;
    font-weight: bold;
}

.tab-btn:hover:not(.active) {
    color: #333;
    border-bottom: 2px solid #ccc;
}

.comments-tab-content {
    display: none;
}

.comments-tab-content.active {
    display: block;
}

/* Estilos para la vista de Grid */
.comments-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comments-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.comments {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.comment-column {
    flex: 1;
    min-width: 0;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
    color: #385898;
}

.comment-text {
    margin-bottom: 5px;
    word-wrap: break-word;
}

.comment-date {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.comment-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.load-more-btn {
    padding: 10px 20px;
    background-color: #4267b2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: #365899;
}

.show-less-btn {
    background-color: #f0f0f0;
    color: #333;
}

.show-less-btn:hover {
    background-color: #e0e0e0;
}

/* Estilos para la vista de Slider */
.comments-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.comments-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.slide-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}
.comments-slider-container .slider-nav {
    display: none; /* Oculta las flechas por defecto */
}

.comments-slider-container:hover .slider-nav {
    display: block; /* Muestra las flechas al hacer hover */
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #4267b2;
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .slide-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .comments-row {
        flex-direction: column;
    }

    .comment-column {
        width: 100%;
    }

    .comment-buttons {
        flex-direction: column;
    }

    .slide-content {
        grid-template-columns: 1fr;
    }

    .comments-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: center;
        border-bottom: none;
        border-left: 2px solid transparent;
    }

    .tab-btn.active {
        border-bottom: none;
        border-left: 2px solid #4267b2;
    }
}
