/* ═══════════════════════════════════════════════════════════════
   RDCB Reviews v1.1 - Multi-platform Double Carousel
   Plugin CSS – Prefijo rdcb-
   ═══════════════════════════════════════════════════════════════ */

/* ── Sección principal ────────────────────────────────────────── */
.rdcb-testimonial-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2b0000, #000104);
    color: #fff !important;
    padding: 80px 0;
    border-radius: 0;
}

/* ── Canvas de partículas ─────────────────────────────────────── */
#rdcb-particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.rdcb-testimonial-section > * {
    position: relative;
    z-index: 2;
}

/* ── Header ───────────────────────────────────────────────────── */
.rdcb-section-header {
    margin-bottom: 40px;
}

.rdcb-subtitle {
    color: #aaa !important;
    letter-spacing: 2px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
}

.rdcb-title {
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

/* ── Container ────────────────────────────────────────────────── */
.rdcb-container-reviews {
    max-width: 1800px;
    margin: 60px auto;
    padding: 0 15px;
}

.rdcb-row {
    width: 100%;
}

.rdcb-col {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   TARJETA DE TESTIMONIO
   ═══════════════════════════════════════════════════════════════ */
.rdcb-testimonial-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    color: #fff !important;
    max-width: 500px;
    height: 280px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    /* border-top se aplica inline desde PHP según la plataforma */
}

.rdcb-testimonial-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.rdcb-testimonial-item p {
    color: #ddd !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    flex: 1 !important;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.rdcb-testimonial-item p::-webkit-scrollbar {
    width: 4px;
}

.rdcb-testimonial-item p::-webkit-scrollbar-track {
    background: transparent;
}

.rdcb-testimonial-item p::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   BADGE DE PLATAFORMA (Google / Yelp / Nextdoor)
   ═══════════════════════════════════════════════════════════════ */
.rdcb-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 14px !important;
    width: fit-content;
    /* background y color se aplican inline desde PHP */
}

.rdcb-badge-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 0 !important;
    border: none !important;
    animation: none !important;
    filter: none !important;
}

/* ── Glow sutil por plataforma en hover ───────────────────────── */
.rdcb-source-google:hover {
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.2);
}



.rdcb-source-yelp:hover {
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.2);
}

.rdcb-source-nextdoor:hover {
    box-shadow: 0 0 20px rgba(142, 213, 0, 0.2);
}


/* ═══════════════════════════════════════════════════════════════
   AUTOR
   ═══════════════════════════════════════════════════════════════ */
.rdcb-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.rdcb-author > img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border-width: 2px;
    border-style: solid;
    /* border-color se aplica inline desde PHP */
    animation: rdcb-glow 2s infinite alternate;
}

@keyframes rdcb-glow {
    from {
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    }
}

.rdcb-author h6 {
    margin: 0;
    font-weight: 700;
    color: #fff !important;
    font-size: 15px !important;
}

.rdcb-author span {
    color: #aaa !important;
    font-size: 13px !important;
}

/* ── Reviews info ─────────────────────────────────────────────── */
.rdcb-reviews-info {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

/* ── Estrellas ─────────────────────────────────────────────────── */
.rdcb-stars {
    color: #fdd835;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}


/* ═══════════════════════════════════════════════════════════════
   SWIPER OVERRIDES
   ═══════════════════════════════════════════════════════════════ */
.rdcb-slider-1,
.rdcb-slider-2 {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.rdcb-slider-1 .swiper-wrapper,
.rdcb-slider-2 .swiper-wrapper {
    transition-timing-function: linear !important;
    display: flex !important;
    align-items: stretch !important;
}

.rdcb-slider-1 .swiper-slide,
.rdcb-slider-2 .swiper-slide {
    height: auto;
}

/* ═══════════════════════════════════════════════════════════════
   BOTONES DE PLATAFORMA
   ═══════════════════════════════════════════════════════════════ */
.rdcb-container-btn {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.rdcb-container-btn .rdcb-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
}

.rdcb-col-4 {
    flex: 1;
    min-width: 0;
}

.rdcb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.rdcb-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.rdcb-btn:hover::before {
    opacity: 1;
}

.rdcb-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    text-decoration: none !important;
}

/* Google */
.rdcb-btn-google {
    border-left-color: #4285F4;
}

.rdcb-btn-google:hover {
    background: rgba(66, 133, 244, 0.15);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.2);
}

/* Yelp */
.rdcb-btn-yelp {
    border-left-color: #FF1A1A;
}

.rdcb-btn-yelp:hover {
    background: rgba(255, 26, 26, 0.15);
    box-shadow: 0 8px 30px rgba(255, 26, 26, 0.2);
}

/* Nextdoor */
.rdcb-btn-nextdoor {
    border-left-color: #8ED500;
}

.rdcb-btn-nextdoor:hover {
    background: rgba(142, 213, 0, 0.15);
    box-shadow: 0 8px 30px rgba(142, 213, 0, 0.2);
}

.rdcb-btn .rdcb-btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .rdcb-testimonial-section {
        padding: 50px 0;
    }

    .rdcb-title {
        font-size: 22px;
    }

    .rdcb-container-reviews {
        margin: 40px auto;
    }

    .rdcb-testimonial-item {
        height: 250px;
        padding: 18px;
    }

    .rdcb-source-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .rdcb-container-btn .rdcb-row {
        flex-direction: column;
        gap: 12px;
    }

    .rdcb-btn {
        font-size: 12px;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .rdcb-title {
        font-size: 18px;
    }

    .rdcb-subtitle {
        font-size: 12px;
    }

    .rdcb-testimonial-item p {
        font-size: 13px;
    }

    .rdcb-testimonial-item {
        height: 220px;
    }

    .rdcb-source-badge {
        font-size: 10px;
    }
}
