/**
 * Google Reviews Carousel - Styles
 * Diseño transparente integrado con video de fondo
 * Mejor Llame a Roberto
 */

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

#google-reviews-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(0, 10, 20, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========================================
   HEADER
   ======================================== */

.reviews-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.google-logo {
    height: 24px;
    opacity: 0.9;
}

.reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.reviews-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ========================================
   ESTRELLAS
   ======================================== */

.star {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
}

.star.filled {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.review-stars .star {
    font-size: 16px;
}

/* ========================================
   CARRUSEL
   ======================================== */

.carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

/* ========================================
   CARDS DE RESEÑAS
   ======================================== */

.review-card {
    flex: 0 0 calc(33.333% - 13.33px); /* 3 cards por fila */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.review-author-info {
    flex: 1;
}

.review-author {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.review-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 0.85rem;
}

.review-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.read-more-btn:hover {
    color: #00e4ff;
    text-decoration: underline;
}

.review-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-style: italic;
}

/* ========================================
   BOTONES DE NAVEGACIÓN
   ======================================== */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* ========================================
   DOTS (INDICADORES)
   ======================================== */

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   ERROR STATE
   ======================================== */

.reviews-error {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.reviews-error p {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 13.33px); /* 3 cards en tablet también */
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */

@media (max-width: 768px) {
    #google-reviews-carousel {
        padding: 30px 15px;
        border-radius: 15px;
    }
    
    .reviews-header {
        margin-bottom: 25px;
    }
    
    .reviews-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .google-logo {
        height: 20px;
    }
    
    .rating-number {
        font-size: 1.1rem;
    }
    
    .reviews-count {
        font-size: 0.9rem;
    }
    
    /* Carrusel tipo Instagram en móvil */
    .review-card {
        flex: 0 0 100%;
        min-height: 140px;
        padding: 15px;
    }
    
    .carousel-track {
        gap: 15px;
    }
    
    /* Ocultar botones en móvil */
    .carousel-btn {
        display: none;
    }
    
    .review-avatar {
        width: 42px;
        height: 42px;
    }
    
    .review-author {
        font-size: 0.95rem;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
    
    .review-date {
        font-size: 0.8rem;
    }
    
    .carousel-dots {
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 24px;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.review-card {
    animation: fadeIn 0.5s ease-out;
}

/* Touch feedback para móvil */
@media (hover: none) {
    .review-card:active {
        transform: scale(0.98);
    }
    
    .dot:active {
        transform: scale(1.3);
    }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-track {
        transition: none;
    }
}

/* Focus visible para navegación con teclado */
.carousel-btn:focus-visible,
.dot:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* ========================================
   GOOGLE CARD - Card especial "Ver todas"
   ======================================== */

.google-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 180, 255, 0.08));
    border: 1px solid rgba(0, 212, 255, 0.25);
    min-height: 140px;
}

.google-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.google-card-logo {
    height: 24px;
    opacity: 0.9;
}

.google-card-rating-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
}

.google-card-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.google-card-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.google-card-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00d4ff, #00b8ff);
    color: #0a1628;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.google-card-button:hover {
    background: linear-gradient(135deg, #00e4ff, #00c8ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.google-card-button:active {
    transform: translateY(0);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .google-card {
        min-height: 200px;
    }
    
    .google-card-content {
        gap: 12px;
    }
    
    .google-card-logo {
        height: 24px;
    }
    
    .google-card-text {
        font-size: 1rem;
    }
    
    .google-card-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

