/* Estilos para a seção de avatares */
.avatars-section {
    padding: 80px 0;
    background-color: #12022B;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Estilos para o carrossel de avatares */
.avatars-carousel {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    height: 400px;
    background: #12022B;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.avatar-slide {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
    display: none;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.avatar-slide.active {
    opacity: 1;
    z-index: 1;
}

.avatar-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    margin: 0 auto;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Controles de navegação */
.carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    margin-top: 20px;
}

.carousel-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #9333EA;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.carousel-controls button:hover {
    background-color: #7e22ce;
    transform: scale(1.1);
}

.carousel-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Ajustes para o container de avatares */
.avatars-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    align-items: center;
}

/* Layout para desktop */
@media (min-width: 992px) {
    .avatars-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 40px !important;
        min-height: 70vh !important;
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 40px 20px !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }
    
    .avatars-content {
        flex: 1 !important;
        max-width: 50% !important;
        margin-bottom: 0 !important;
        padding-right: 20px !important;
    }
    
    .avatars-carousel {
        flex: 0 0 45% !important;
        max-width: 500px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        min-height: 500px !important;
        background: #12022B !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    .avatar-slide {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        right: 20px !important;
        bottom: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0 !important;
        transition: opacity 0.6s ease-in-out !important;
    }
    
    .avatar-slide.active {
        opacity: 1 !important;
    }
    
    .avatar-slide img {
        max-height: 400px !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        border-radius: 4px !important;
    }
}

.avatars-content {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.avatars-text h2.section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 2.5rem !important;
    color: #9333EA !important;
    text-align: left;
    margin: 0 0 2.5rem 0 !important;
    padding: 0 0 1rem 0 !important;
    position: relative;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    display: block;
}

.avatars-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #9333EA;
    border-radius: 3px;
}

.avatars-text h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 25px 0 15px;
}

.avatars-text p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.avatar-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.avatar-benefits li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.avatar-benefits li:before {
    content: '✓';
    color: #9333EA;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.avatar-cta {
    background: rgba(147, 51, 234, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 3px solid #9333EA;
}

.cta-text {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.cta-text i {
    color: #9333EA;
    margin-right: 10px;
}

/* Carrossel */
.avatars-carousel {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #12022B;
    padding: 15px;
    box-sizing: border-box;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsividade */
@media (max-width: 1199px) {
    .avatars-container {
        max-width: 960px;
    }
    
    .avatars-text h2.section-title {
        font-size: 2.2rem !important;
        margin-bottom: 2.1875rem !important;
    }
}

@media (max-width: 991px) {
    .avatars-text h2.section-title {
        font-size: 2rem !important;
        margin-bottom: 1.875rem !important;
    }
}

@media (max-width: 767px) {
    .avatars-text h2.section-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5625rem !important;
        padding-bottom: 0.9375rem !important;
    }
}

@media (max-width: 480px) {
    .avatars-text h2.section-title {
        font-size: 1.6rem !important;
        margin-bottom: 1.25rem !important;
    }
}

@media (min-width: 768px) {
    .avatars-container {
        flex-direction: row;
        gap: 60px;
        align-items: center;
        justify-content: center;
        min-height: 70vh;
    }
    
    .avatars-content {
        flex: 1;
        max-width: 600px;
        margin-bottom: 0;
        padding-right: 20px;
    }
    
    .avatars-carousel {
        flex: 1;
        max-width: 500px;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .avatars-section {
        padding: 20px 5px 10px 5px !important;
    }
    
    .avatars-carousel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        background: transparent !important;
        box-shadow: none !important;
        min-height: 380px !important;
        margin-top: -20px !important;
        margin-bottom: 0 !important;
        transform: scale(1.1) !important;
        transform-origin: top center !important;
    }
    
    .avatars-text h2 {
        font-size: 1.8rem;
    }
    
    .avatars-text h3 {
        font-size: 1.3rem;
    }
    
    .avatar-slide img {
        max-height: 340px;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    .carousel-controls {
        gap: 10px !important;
        margin-top: 10px !important;
    }
    
    .carousel-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
    }
    
    .carousel-btn i {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .avatars-section {
        padding: 15px 5px 5px 5px !important;
    }
    
    .avatars-text h2 {
        font-size: 1.6rem !important;
        margin: 0 0 10px 0 !important;
        padding: 0 0 10px 0 !important;
    }
    
    .avatars-carousel {
        width: 100% !important;
        padding: 15px !important;
        min-height: 350px !important;
        margin: -15px auto 0 auto !important;
        transform: scale(1.1) !important;
        transform-origin: top center !important;
    }
    
    .avatars-text h2 {
        font-size: 1.6rem;
    }
    
    .avatars-text h3 {
        font-size: 1.2rem;
    }
    
    .avatars-text p,
    .avatar-benefits li {
        font-size: 0.95rem;
    }
    
    .avatar-slide img {
        max-height: 320px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .carousel-controls {
        gap: 12px;
        margin-top: 12px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Exibe os controles apenas em desktop */
@media (min-width: 992px) {
    .avatars-section .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
    }
    
    .avatars-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
        padding: 40px 0;
    }
    
    /* Ajustes para o conteúdo dos avatares */
    .avatars-content {
        flex: 1;
        max-width: 600px;
    }
    
    /* Ajustes para o carrossel */
    .avatars-carousel {
        width: 100%;
        max-width: 400px;
        margin: 0;
        padding: 20px;
        position: relative;
    }
    
    /* Container do carrossel */
    .avatars-carousel-container {
        width: 100%;
        max-width: 400px;
        position: relative;
        margin: 0;
        padding: 0;
    }
    
    /* Estilo dos controles do carrossel */
    .avatars-section .carousel-controls {
        display: flex !important;
        margin: 20px 0 0 0 !important;
        padding: 15px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 1000 !important;
    }
    
    /* Ajusta o posicionamento do container de avatares */
    .avatars-carousel-container {
        margin-bottom: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Estilo dos botões de navegação - Sobrescreve apenas o necessário para desktop */
    .avatars-section .carousel-btn {
        /* Mantém os mesmos estilos da base */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .carousel-btn:hover {
        background: none !important;
        color: white !important;
        opacity: 1 !important;
        transform: none;
        box-shadow: none !important;
    }
    
    .carousel-btn:active {
        transform: scale(0.95);
    }
    
    /* Garante que os botões específicos do carrossel de avatares sejam visíveis */
    .prev-avatar,
    .next-avatar,
    .pause-avatar {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #9333EA !important;
        color: white !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        justify-content: center !important;
        align-items: center !important;
        cursor: pointer !important;
        border: 2px solid white !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
        transition: all 0.3s ease !important;
    }
    
    .prev-avatar:hover,
    .next-avatar:hover,
    .pause-avatar:hover {
        transform: scale(1.1) !important;
        background: #7e22ce !important;
    }
    
    .carousel-btn i {
        font-size: 14px;
        line-height: 1;
    }
    
    .carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }
}

/* Estilos base dos botões do carrossel - aplica a todos os dispositivos */
.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #9333EA;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    margin: 0 5px;
    padding: 0;
    outline: none;
    box-shadow: none;
}

.carousel-btn i {
    font-size: 14px;
    line-height: 1;
}

.carousel-btn:hover {
    background: none;
    color: white;
    opacity: 1;
    transform: none;
}

.carousel-btn:active {
    transform: scale(0.95);
    background: #7d1ed1;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Estilos para telas muito pequenas */
@media (max-width: 480px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .carousel-controls {
        gap: 25px;
        max-width: 250px;
    }
}

.benefits-list {
    margin: 25px 0;
    padding-left: 25px;
}

.benefits-list li {
    margin-bottom: 12px;
    position: relative;
    list-style-type: none;
    padding-left: 35px;
}

.benefits-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #9333EA;
    font-weight: bold;
    font-size: 1.2rem;
}

.avatar-cta {
    background: rgba(147, 51, 234, 0.1);
    border-left: 4px solid #9333EA;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.avatar-cta p {
    margin: 0;
    color: #E9D5FF;
    line-height: 1.6;
    font-size: 1.05rem;
}

.avatar-cta strong {
    color: white;
    font-weight: 600;
}

.avatar-cta:hover {
    background: rgba(147, 51, 234, 0.2);
    transform: translateX(5px);
}

/* Exibe controles apenas no desktop */
@media (min-width: 768px) {
    .carousel-controls {
        display: flex !important;
    }

    /* Move os controles para fora do carrossel no desktop */
    .avatars-carousel .carousel-controls {
        position: static;
        margin-top: 30px !important;
    }
    .avatars-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

@media (min-width: 992px) {
    .avatars-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .avatars-text {
        flex: 1;
        padding-right: 40px;
    }
    
    .avatars-carousel-container {
        flex: 1;
        max-width: 500px;
        margin: 0;
    }
    
    /* Exibe controles do carrossel no desktop */
    .carousel-controls {
        display: flex !important;
        margin-top: 20px;
    }
}

@media (max-width: 991px) {
    .avatars-text h2 {
        font-size: 1.8rem;
        margin-top: 0;
    }
    
    .avatars-text p {
        font-size: 1rem;
    }
    
    .avatars-carousel-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Mostra controles do carrossel apenas em mobile */
    .carousel-controls {
        display: flex !important; /* Força a exibição no mobile */
        justify-content: center;
        gap: 20px;
        margin: 20px auto 0;
        padding: 10px 20px;
        background-color: rgba(147, 51, 234, 0.3);
        border-radius: 30px;
        max-width: 280px;
    }
    
    /* Estilo dos botões no mobile */
    .carousel-btn {
        display: flex !important; /* Força a exibição dos botões */
        width: 45px;
        height: 45px;
    }
}
