/* Estilos para o carousel com Swiper */
.carousel-modern {
    position: relative;
    padding-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    /* Previne scroll horizontal */
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
}

/* Container do Swiper */
.swiper-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px 60px 60px; /* Espaço para botões e paginação */
    /* Previne seleção de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Previne overflow horizontal */
    overflow: hidden;
    box-sizing: border-box;
    /* Melhorias para touch */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    will-change: transform;
    /* Melhorias de performance */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Título do carousel */
.carousel-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.1;
    
    padding-top: 3rem;
    padding-bottom: 3rem;
    
    color: var(--preto-texto);
    background: linear-gradient(135deg, var(--cor-da-marca) 0%, #FF6100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--cor-da-marca), #FF6100);
    border-radius: 2px;
}

.carousel-description {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    color: var(--preto-texto);
    max-width: 800px;
    margin: 0 auto 1.6rem auto;
    padding: 0 1rem;
    font-family: var(--font-inter);
}

/* Slides do Swiper */
.swiper-slide {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Previne seleção de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Melhorias para touch */
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
    will-change: transform;
    /* Permite clique no slide */
    pointer-events: auto;
    /* Melhorias de performance */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.swiper-slide:hover {
    transform: scale(1.02);
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    /* Previne interferência com touch do carousel */
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Melhorias de performance */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Botões de navegação do Swiper */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.95);
    width: 60px;
    height: 60px;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #FF6100;
    font-weight: bold;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Previne seleção de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Previne highlight de toque */
    -webkit-tap-highlight-color: transparent;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    color: #FF6100;
}

.swiper-button-next:active,
.swiper-button-prev:active {
    transform: scale(0.95);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #FF6100 !important;
}

/* Esconder botões quando não há mais slides */
.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Força as cores da marca */
.swiper-button-next,
.swiper-button-prev {
    color: #FF6100 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    color: #FF6100 !important;
}

.swiper-pagination-bullet {
    background-color: #FF6100 !important;
}

.swiper-pagination-bullet-active {
    background-color: #FF6100 !important;
}

/* Paginação do Swiper */
.swiper-pagination {
    bottom: 20px;
}

.swiper-pagination-bullet {
    background: #FF6100 !important;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #FF6100 !important;
    opacity: 1;
    transform: scale(1.2);
}

/* Modal para visualização das imagens */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 40%;
    max-height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--cor-da-marca) 0%, #FF6100 100%);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: linear-gradient(135deg, #FF6100 0%, var(--cor-da-marca) 100%);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--cor-da-marca) 0%, #FF6100 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: linear-gradient(135deg, #FF6100 0%, var(--cor-da-marca) 100%);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Estilos para a seção de informações dos painéis */
.carousel-info {
    margin-top: 1.5rem;
    padding: 0 1rem 4rem 1rem;
}

.info-section {
    margin-bottom: 3rem;
    text-align: center;
}

.info-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--preto-texto);
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--cor-da-marca) 0%, #FF6100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--preto-texto);
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    font-weight: 400;
}

.features-section {
    background: linear-gradient(135deg, rgba(255, 97, 0, 0.05) 0%, rgba(255, 97, 0, 0.1) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 0 auto;
    max-width: 800px;
    border: 1px solid rgba(255, 97, 0, 0.1);
}

.features-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--preto-texto);
    margin-bottom: 1.5rem;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.features-list li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--preto-texto);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cor-da-marca);
    font-weight: bold;
    font-size: 1.2rem;
}

.features-note {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--preto-texto);
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}

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

    .swiper-container {
        padding: 0 40px 50px 40px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-description {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
        margin: 0 auto 1.2rem auto;
        padding: 0 0.5rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1.8rem;
    }

    .modal-content {
        max-width: 90%;
        max-height: 60%;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }

    /* Estilos responsivos para a seção de informações */
    .carousel-info {
        margin-top: 0rem;
        padding: 0 0.5rem 4rem 0.5rem;
    }

    .info-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        padding-top: 2rem;
    }

    .info-description {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0 auto 1rem auto;
    }

    .features-section {
        padding: 1.5rem;
        margin: 0 auto;
    }

    .features-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .features-list li {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        padding-left: 1.5rem;
    }

    .features-note {
        font-size: 0.9rem;
    }
}

@media (max-width: 430px) {
    .swiper-container {
        padding: 0 30px 40px 30px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
        border-radius: 7px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1.6rem;
    }

    .modal-content {
        max-width: 95%;
        max-height: 50%;
    }
}

/* Configurações específicas para dispositivos iOS */
@supports (-webkit-touch-callout: none) {
    .swiper-container {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        /* Melhorias específicas para iOS */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .swiper-slide {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        /* Melhorias específicas para iOS */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .swiper-slide img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        pointer-events: none;
        /* Melhorias específicas para iOS */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .image-modal {
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-close,
    .modal-nav {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}