/* Comments for travel One Styles */
.comments-travel-description {
    font-size: 16px;
    color: #ecf0f1;
    text-align: center;
    margin: 20px 0 0 0;
    padding: 0;
    line-height: 1.6;
}

.comments-travel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    min-width: 1200px;
    background-color: #2c3e50;
}

.comments-travel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comments-travel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comments-travel-item {
    position: absolute;
    width: 60%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.comments-travel-card {
    width: 100%;
    background: #34495e;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.comments-travel-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    border: 3px solid #2c3e50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comments-travel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.comments-travel-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.comments-travel-title {
    font-size: 18px;
    font-weight: 700;
    color: #ecf0f1;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.comments-travel-title a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comments-travel-title a:hover {
    color: #bdc3c7;
}

.comments-travel-stars {
    text-align: center;
}

.comments-travel-stars .icon-stars {
    width: 160px;
    height: auto;
    opacity: 0.8;
}

.comments-travel-excerpt {
    font-size: 14px;
    color: #bdc3c7;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
    text-align: center;
}


/* Posicionamiento de las tarjetas - mostrar solo 3 elementos */
.comments-travel-item[data-index="0"] {
    transform: translateX(-60%) scale(0.43);
    z-index: 1;
    opacity: 0.4;
    filter: grayscale(100%) brightness(0.7);
}

.comments-travel-item[data-index="0"] .comments-travel-card {
    background: #7f8c8d;
    box-shadow: none;
}

.comments-travel-item[data-index="1"] {
    transform: translateX(0) scale(1);
    z-index: 3;
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

.comments-travel-item[data-index="1"] .comments-travel-card {
    background: #34495e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.comments-travel-item[data-index="2"] {
    transform: translateX(60%) scale(0.43);
    z-index: 1;
    opacity: 0.4;
    filter: grayscale(100%) brightness(0.7);
}

.comments-travel-item[data-index="2"] .comments-travel-card {
    background: #7f8c8d;
    box-shadow: none;
}

/* Ocultar elementos adicionales (índices 3, 4, 5, etc.) */
.comments-travel-item[data-index="3"],
.comments-travel-item[data-index="4"],
.comments-travel-item[data-index="5"],
.comments-travel-item[data-index="6"],
.comments-travel-item[data-index="7"],
.comments-travel-item[data-index="8"],
.comments-travel-item[data-index="9"] {
    opacity: 0;
    z-index: 0;
    transform: translateX(0) scale(0);
    pointer-events: none;
}

/* Estados activos */
.comments-travel-item.active {
    transform: translateX(0) scale(1) !important;
    z-index: 3 !important;
    opacity: 1 !important;
    filter: grayscale(0%) brightness(1) !important;
}

.comments-travel-item.active .comments-travel-card {
    background: #34495e !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.comments-travel-item.prev {
    transform: translateX(-60%) scale(0.43) !important;
    z-index: 1 !important;
    opacity: 0.4 !important;
    filter: grayscale(100%) brightness(0.7) !important;
}

.comments-travel-item.prev .comments-travel-card {
    background: transparent !important;
    box-shadow: none !important;
}

.comments-travel-item.next {
    transform: translateX(60%) scale(0.43) !important;
    z-index: 1 !important;
    opacity: 0.4 !important;
    filter: grayscale(100%) brightness(0.7) !important;
}

.comments-travel-item.next .comments-travel-card {
    background: transparent !important;
    box-shadow: none !important;
}

/* Botones de navegación */
.comments-travel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c3e50;
    border: 2px solid #ecf0f1;
    color: #ecf0f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comments-travel-nav:hover {
    background: #34495e;
    color: #ecf0f1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.5);
}

.comments-travel-prev {
    left: 16%;
}

.comments-travel-next {
    right: 16%;
}

.comments-travel-nav svg {
    width: 24px;
    height: 24px;
}

/* Efectos hover */
.comments-travel-item:hover .comments-travel-avatar img {
    transform: scale(1.1);
}

.comments-travel-item:hover .comments-travel-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .comments-travel-container {
        padding: 20px 0;
        min-width: auto;
    }
    
    .comments-travel-item {
        width: 60%;
    }
    
    .comments-travel-avatar {
        width: 80px;
        height: 80px;
        margin: 15px auto;
    }
    
    .comments-travel-content {
        padding: 20px;
    }
    
    .comments-travel-title {
        font-size: 16px;
    }
    
    .comments-travel-excerpt {
        font-size: 13px;
    }
    
    .comments-travel-nav {
        width: 40px;
        height: 40px;
    }
    
    .comments-travel-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .comments-travel-prev {
        left: 16%;
    }
    
    .comments-travel-next {
        right: 16%;
    }
    
    /* Ajustar posicionamiento en móvil */
    .comments-travel-item[data-index="0"] {
        transform: translateX(-100%);
    }
    
    .comments-travel-item[data-index="2"] {
        transform: translateX(100%);
    }
    
    .comments-travel-item.prev {
        transform: translateX(-100%) !important;
    }
    
    .comments-travel-item.next {
        transform: translateX(100%) !important;
    }
}

@media (max-width: 480px) {
    
    .comments-travel-item {
        width: 60%;
    }
    
    .comments-travel-avatar {
        width: 70px;
        height: 70px;
        margin: 12px auto;
    }
    
    .comments-travel-content {
        padding: 15px;
    }
    
    .comments-travel-title {
        font-size: 14px;
    }
    
    .comments-travel-excerpt {
        font-size: 12px;
    }
    
    /* Ajustar posicionamiento en móvil pequeño */
    .comments-travel-item[data-index="0"] {
        transform: translateX(-100%);
    }
    
    .comments-travel-item[data-index="2"] {
        transform: translateX(100%);
    }
    
    .comments-travel-item.prev {
        transform: translateX(-100%) !important;
    }
    
    .comments-travel-item.next {
        transform: translateX(100%) !important;
    }
}
