/* tri.css - Estilos minimalistas para TripAdvisor y Google */

/* Selector de Plataforma */
.platform-selector {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.platform-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #5f6368;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
    outline: none;
}

.platform-btn:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

.platform-btn.active.tripadvisor {
    background: #00aa6c;
    color: #fff;
    border-color: #00aa6c;
}

.platform-btn.active.google {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

/* Contenedor */
.testimonials-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 15px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Tarjeta Base */
.testimonial-card {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card.hidden {
    display: none;
}

/* Estilos TripAdvisor */
.testimonial-card.tripadvisor {
    border: 1px solid #e7e7e7;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.testimonial-card.tripadvisor:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-color: #00aa6c;
}

.testimonial-card.tripadvisor .star.filled {
    color: #00aa6c;
}

/* Estilos Google */
.testimonial-card.google {
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px rgba(60,64,67,0.15);
}

.testimonial-card.google:hover {
    box-shadow: 0 2px 6px rgba(60,64,67,0.25);
}

.testimonial-card.google .star.filled {
    color: #fbbc04;
}

/* Header */
.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-info {
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.name {
    font-weight: 600;
    color: #202124;
    font-size: 13px;
    margin-bottom: 2px;
}

.date {
    font-size: 11px;
    color: #5f6368;
}

/* Rating */
.rating-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #dadce0;
    font-size: 14px;
    line-height: 1;
}

.rating-text {
    font-size: 11px;
    color: #5f6368;
    margin-left: 6px;
    font-weight: 500;
}

/* Contenido */
.testimonial-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #202124;
    line-height: 1.4;
}

.testimonial-message {
    font-size: 12px;
    color: #3c4043;
    line-height: 1.5;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* Footer */
.testimonial-footer {
    border-top: 1px solid #e8eaed;
    padding-top: 10px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tripadvisor-link,
.google-link {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
    opacity: 0.85;
}

.tripadvisor-link:hover,
.google-link:hover {
    opacity: 1;
}

.tripadvisor-logo {
    height: 12px;
    width: auto;
    display: block;
    max-width: 50px;
}

.google-logo {
    height: 18px;
    width: 18px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .platform-selector {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .testimonials-container {
        margin-bottom: 24px;
    }
    
    .testimonial-card {
        padding: 14px;
    }
    
    .platform-selector {
        margin-bottom: 14px;
        gap: 8px;
    }
    
    .platform-btn {
        padding: 7px 16px;
        font-size: 12px;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
    }
}
