/* ============================================
   CARROSSEL DE PRINTS - PROVA SOCIAL
   ============================================ */

.whatsapp-carousel-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.whatsapp-carousel-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(15, 58, 125, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.carousel-container {
    position: relative;
    z-index: 1;
}

.carousel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.carousel-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.carousel-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Carrossel Principal */
.carousel-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 58, 125, 0.3);
    background: white;
    cursor: pointer;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: white;
    padding: 0;
}

/* Badge de Prova Social */
.social-proof-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0F3A7D 0%, #1e5a96 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(15, 58, 125, 0.3);
}

.social-proof-badge i {
    font-size: 1rem;
}

/* Controles do Carrossel */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(15, 58, 125, 0.3);
}

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

.carousel-btn.prev::before {
    content: '‹';
}

.carousel-btn.next::before {
    content: '›';
}

/* Indicadores de Slides */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(15, 58, 125, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 58, 125, 0.3);
}

.indicator:hover {
    background: rgba(15, 58, 125, 0.4);
}

/* Contador de Slides */
.carousel-counter {
    text-align: center;
    margin-top: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* ============================================
   LIGHTBOX - VISUALIZAÇÃO EM TELA CHEIA
   ============================================ */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    z-index: 1001;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.carousel-item.entering {
    animation: slideIn 0.6s ease-in-out;
}

.carousel-item.leaving {
    animation: slideOut 0.6s ease-in-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .whatsapp-carousel-section {
        padding: 3rem 0;
    }

    .carousel-header h2 {
        font-size: 2rem;
    }

    .carousel-inner {
        height: 500px;
        border-radius: 15px;
    }

    .carousel-controls {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .social-proof-badge {
        top: 15px;
        right: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }

    .lightbox-nav {
        padding: 0.8rem 1.2rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-header h2 {
        font-size: 1.5rem;
    }

    .carousel-header p {
        font-size: 0.95rem;
    }

    .carousel-inner {
        height: 450px;
        border-radius: 12px;
    }

    .carousel-controls {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-indicators {
        gap: 0.4rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 25px;
    }

    .carousel-counter {
        font-size: 0.85rem;
    }

    .lightbox-nav {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    .lightbox-counter {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}
