/* templates/components/blog_cta.html */

.blog-cta-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.blog-cta-container a:hover {
    text-decoration: none;
}


/* ===== contact_cta.html ===== */

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
}

.contact-cta .card {
    cursor: pointer;
}


/* ===== google_reviews.html ===== */

.google-reviews-widget {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        padding: 1.5rem 0 !important;
    }

    #reviews-container.row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-behavior: smooth !important;
        gap: 1rem !important;
        padding: 0.5rem 0 !important;
        -ms-overflow-style: none;
        scrollbar-width: thin;
        scrollbar-color: #800020 #f0f0f0;
    }

    #reviews-container.row::-webkit-scrollbar {
        height: 6px;
    }

    #reviews-container.row::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
    }

    #reviews-container.row::-webkit-scrollbar-thumb {
        background: #800020;
        border-radius: 10px;
    }

    #reviews-container>div[class*="col"] {
        flex: 0 0 auto !important;
        width: 280px !important;
        /* Reduced from 350px to fit more reviews */
        max-width: 280px !important;
    }

    .review-card {
        background: white;
        border-radius: 12px;
        padding: 1.25rem;
        height: 280px;
        box-shadow: 0 4px 15px rgba(128, 0, 32, 0.12);
        transition: all 0.3s ease;
        border: 2px solid #f0f0f0;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
    }

    .review-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #800020 0%, #FF6B35 50%, #800020 100%);
    }

    .review-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(128, 0, 32, 0.25);
        border-color: #800020;
    }

    .review-author {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #800020 0%, #ff6b35 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .review-author-info h5 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: #333;
    }

    .review-date {
        font-size: 0.75rem;
        color: #999;
    }

    .review-rating {
        color: #ffc107;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .review-text {
        color: #555;
        line-height: 1.6;
        font-size: 0.875rem;
        overflow-y: auto;
        flex-grow: 1;
        padding-right: 0.5rem;
        margin-bottom: 0;
    }

    .review-text::-webkit-scrollbar {
        width: 4px;
    }

    .review-text::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }

    .review-text::-webkit-scrollbar-thumb {
        background: #800020;
        border-radius: 4px;
    }

    /* Botones de navegación */
    .scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(128, 0, 32, 0.9);
        color: white;
        border: none;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
    }

    .scroll-btn:hover {
        background: rgba(255, 107, 53, 0.9);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }

    .scroll-btn-left {
        left: -20px;
    }

    .scroll-btn-right {
        right: -20px;
    }

    @media (max-width: 768px) {
        .scroll-btn {
            width: 35px;
            height: 35px;
            font-size: 0.9rem;
        }

        .scroll-btn-left {
            left: 5px;
        }

        .scroll-btn-right {
            right: 5px;
        }
    }

    @media (max-width: 768px) {
        #reviews-container>div[class*="col"] {
            width: 260px !important;
            max-width: 260px !important;
        }

        .review-card {
            padding: 1.25rem;
            height: 260px;
        }

        .google-reviews-widget {
            padding: 1rem 0 !important;
        }

        .rating-summary-compact {
            gap: 1rem !important;
            padding: 0.5rem 1rem !important;
        }

        #average-rating {
            font-size: 2rem !important;
        }

        .review-author-info h5 {
            font-size: 0.85rem !important;
        }

        .review-text {
            font-size: 0.8rem !important;
        }
    }

    .google-rating-summary {
        background: white;
        border-radius: 20px;
        padding: 2rem 3rem;
        display: inline-block;
        box-shadow: 0 8px 25px rgba(128, 0, 32, 0.15);
        border: 2px solid rgba(128, 0, 32, 0.1);
        animation: pulseGlow 3s ease-in-out infinite;
    }

    @keyframes pulseGlow {

        0%,
        100% {
            box-shadow: 0 8px 25px rgba(128, 0, 32, 0.15);
        }

        50% {
            box-shadow: 0 12px 35px rgba(128, 0, 32, 0.25);
        }
    }

    .rating-number-container {
        text-align: center;
    }
