/* ========================================
   CONFORTOCARE - CARROSSEL COMPLETO
   Inclui: Por Que Escolher + Carrossel Infinito
======================================== */

/* ========================================
   BLOCO 1 - SEÇÃO POR QUE ESCOLHER (CARROSSEL CENTRALIZADO)
======================================== */
.why-choose {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Container do Carrossel */
.why-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

/* Gradientes nas bordas */
.why-carousel-wrapper::before,
.why-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.why-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.why-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

/* Track do Carrossel */
.why-carousel-wrapper[data-direction="left"] .why-carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll-why-left 50s linear infinite;
    width: fit-content;
}

.why-carousel-wrapper[data-direction="right"] .why-carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll-why-right 50s linear infinite;
    width: fit-content;
}


/* Cards do Carrossel */
.why-carousel-wrapper .why-card {
    flex-shrink: 0;
    width: 320px;
    background: var(--bg-primary);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-carousel-wrapper .why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}




.why-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s ease;
}



.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.why-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animações do Por Que Escolher */
@keyframes scroll-why-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-320px * 6 - 30px * 6));
    }
}

@keyframes scroll-why-right {
    0% {
        transform: translateX(calc(-320px * 6 - 30px * 6));
    }
    100% {
        transform: translateX(0);
    }
}

/* ========================================
   BLOCO 2 - SEÇÃO CARROSSEL INFINITO
======================================== */
.highlights-carousel-section {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.highlights-carousel-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
/* ========================================
   SEÇÃO BENEFÍCIOS SEPARADA
======================================== */
.highlights-benefits-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.highlights-benefits-section .section-label {
    text-align: center;
    margin-bottom: 50px;
}

.highlights-benefits-section .section-label span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlights-benefits-section .section-label h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-primary);
    margin-top: 10px;
    line-height: 1.2;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefits-grid .feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px 25px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefits-grid .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.benefits-grid .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.benefits-grid .feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.benefits-grid .feature-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefits-grid .feature-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.benefits-grid .feature-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Seção do Carrossel de Produtos */
.products-carousel-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.products-carousel-section .carousel-label {
    text-align: center;
    margin-bottom: 50px;
}

.products-carousel-section .carousel-label span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding: 10px 30px;
    background: white;
    border-radius: 30px;
    border: 2px solid var(--border-subtle);
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .highlights-benefits-section .section-label h2 {
        font-size: 36px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    .highlights-benefits-section {
        padding: 60px 0;
    }
    
    .highlights-benefits-section .section-label {
        margin-bottom: 40px;
    }
    
    .highlights-benefits-section .section-label h2 {
        font-size: 32px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefits-grid .feature-card {
        padding: 35px 25px;
    }
    
    .benefits-grid .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .benefits-grid .feature-content h3 {
        font-size: 18px;
    }
    
    .benefits-grid .feature-content p {
        font-size: 14px;
    }
    
    .products-carousel-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .highlights-benefits-section .section-label h2 {
        font-size: 28px;
    }
    
    .benefits-grid .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
}
/* ========================================
   BLOCO 3 - COLUNA ESQUERDA (CARDS EM LINHA)
======================================== */
.highlights-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.section-label {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 15px;
}

.section-label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-label h2 {
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-top: 5px;
}

.highlights-cards .feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlights-cards .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.highlights-cards .feature-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s ease;
}

.highlights-cards .feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.highlights-cards .feature-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.highlights-cards .feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ========================================
   BLOCO 4 - COLUNA DIREITA (CARROSSEL)
======================================== */
.carousel-column {
    position: relative;
}

.carousel-label {
    text-align: center;
    margin-bottom: 30px;
}

.carousel-label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-elevated);
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
}

.infinite-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.infinite-carousel-wrapper::before,
.infinite-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.infinite-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.infinite-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.infinite-carousel-wrapper[data-direction="left"] .infinite-carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll-to-left 40s linear infinite;
    width: fit-content;
}

.infinite-carousel-wrapper[data-direction="right"] .infinite-carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll-to-right 40s linear infinite;
    width: fit-content;
}

.infinite-carousel-wrapper:hover .infinite-carousel-track {
    animation-play-state: paused;
}

.infinite-carousel-item {
    flex-shrink: 0;
    width: 380px;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--border-color);
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.infinite-carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.infinite-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.infinite-carousel-item:hover img {
    transform: scale(1.1);
}

.carousel-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.infinite-carousel-item:hover .carousel-item-overlay {
    transform: translateY(0);
}

.carousel-item-overlay h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.carousel-item-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   BLOCO 5 - ANIMAÇÕES DO CARROSSEL DE PRODUTOS
======================================== */
@keyframes scroll-to-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-380px * 6 - 30px * 6));
    }
}

@keyframes scroll-to-right {
    0% {
        transform: translateX(calc(-380px * 6 - 30px * 6));
    }
    100% {
        transform: translateX(0);
    }
}

/* ========================================
   BLOCO 6 - RESPONSIVE TABLET (1024px)
======================================== */
@media (max-width: 1024px) {
    /* Por Que Escolher - Carrossel */
    .why-carousel-wrapper .why-card {
        width: 280px;
    }

    @keyframes scroll-why-left {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 6 - 30px * 6));
        }
    }

    @keyframes scroll-why-right {
        0% {
            transform: translateX(calc(-280px * 6 - 30px * 6));
        }
        100% {
            transform: translateX(0);
        }
    }

    /* Carrossel Infinito */
    .highlights-carousel-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .highlights-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        display: grid;
    }

    .section-label {
        grid-column: 1 / -1;
    }

    .infinite-carousel-item {
        width: 320px;
        height: 200px;
    }

    @keyframes scroll-to-left {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-320px * 6 - 30px * 6));
        }
    }

    @keyframes scroll-to-right {
        0% {
            transform: translateX(calc(-320px * 6 - 30px * 6));
        }
        100% {
            transform: translateX(0);
        }
    }
}

/* ========================================
   BLOCO 7 - RESPONSIVE MOBILE (768px)
======================================== */
@media (max-width: 768px) {
    /* Por Que Escolher - Mobile */
    .why-choose {
        padding: 40px 0 50px;
    }

    .why-carousel-wrapper {
        padding: 20px 0;
        margin: 0 -20px;
    }

    .why-carousel-wrapper::before,
    .why-carousel-wrapper::after {
        width: 40px;
    }

    .why-carousel-wrapper .why-card {
        width: 260px;
        padding: 30px 20px;
    }

    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .why-card h3 {
        font-size: 18px;
    }

    .why-card p {
        font-size: 14px;
    }

    .why-carousel-wrapper[data-direction="left"] .why-carousel-track {
        gap: 15px;
        animation: scroll-why-mobile-left 40s linear infinite;
    }

    .why-carousel-wrapper[data-direction="right"] .why-carousel-track {
        gap: 15px;
        animation: scroll-why-mobile-right 40s linear infinite;
    }

    @keyframes scroll-why-mobile-left {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-260px * 6 - 15px * 6));
        }
    }

    @keyframes scroll-why-mobile-right {
        0% {
            transform: translateX(calc(-260px * 6 - 15px * 6));
        }
        100% {
            transform: translateX(0);
        }
    }

    /* Carrossel Infinito - Mobile */
    .highlights-carousel-section {
        padding: 35px 0;
        margin-top: -35px;
    }

    .highlights-carousel-grid {
        gap: 30px;
    }

    .section-label {
        margin-bottom: 20px;
        text-align: center;
    }

    .section-label h2 {
        font-size: 26px;
    }

    /* Ocultar cards de benefícios no mobile */
    .highlights-cards {
        display: none !important;
    }

    .carousel-label span {
        font-size: 12px;
        padding: 6px 16px;
    }

    .infinite-carousel-wrapper {
        padding: 25px 0;
        margin: 0 -20px;
    }

    .infinite-carousel-wrapper::before,
    .infinite-carousel-wrapper::after {
        width: 40px;
    }

    .infinite-carousel-item {
        width: 260px;
        height: 165px;
        border-radius: 15px;
        border-width: 2px;
    }

    .infinite-carousel-wrapper[data-direction="left"] .infinite-carousel-track {
        gap: 15px;
        animation: scroll-to-left-mobile 35s linear infinite;
    }

    .infinite-carousel-wrapper[data-direction="right"] .infinite-carousel-track {
        gap: 15px;
        animation: scroll-to-right-mobile 35s linear infinite;
    }

    @keyframes scroll-to-left-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-260px * 6 - 15px * 6));
        }
    }

    @keyframes scroll-to-right-mobile {
        0% {
            transform: translateX(calc(-260px * 6 - 15px * 6));
        }
        100% {
            transform: translateX(0);
        }
    }

    .carousel-item-overlay {
        padding: 15px;
    }

    .carousel-item-overlay h4 {
        font-size: 15px;
    }

    .carousel-item-overlay p {
        font-size: 12px;
    }
}

/* ========================================
   BLOCO 8 - RESPONSIVE MOBILE SMALL (480px)
======================================== */
@media (max-width: 480px) {
    .why-carousel-wrapper .why-card {
        width: 220px;
        padding: 25px 18px;
    }

    .why-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .why-card h3 {
        font-size: 17px;
    }

    .why-card p {
        font-size: 13px;
    }

    @keyframes scroll-why-mobile-left {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-220px * 6 - 15px * 6));
        }
    }

    @keyframes scroll-why-mobile-right {
        0% {
            transform: translateX(calc(-220px * 6 - 15px * 6));
        }
        100% {
            transform: translateX(0);
        }
    }

    .section-label h2 {
        font-size: 24px;
    }

    .highlights-cards {
        height: 210px;
    }

    .highlights-cards .feature-card {
        top: 75px;
        padding: 20px;
    }

    .infinite-carousel-item {
        width: 220px;
        height: 140px;
    }

    @keyframes scroll-to-left-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-220px * 6 - 15px * 6));
        }
    }

    @keyframes scroll-to-right-mobile {
        0% {
            transform: translateX(calc(-220px * 6 - 15px * 6));
        }
        100% {
            transform: translateX(0);
        }
    }
}

/* ========================================
   BLOCO 9 - ANIMAÇÕES DE ENTRADA (DESKTOP)
======================================== */
@media (min-width: 769px) {
    .highlights-cards .feature-card {
        opacity: 0;
        animation: fadeInLeft 0.6s ease forwards;
    }

    .highlights-cards .feature-card:nth-child(2) { animation-delay: 0.1s; }
    .highlights-cards .feature-card:nth-child(3) { animation-delay: 0.2s; }
    .highlights-cards .feature-card:nth-child(4) { animation-delay: 0.3s; }
    .highlights-cards .feature-card:nth-child(5) { animation-delay: 0.4s; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}