/**
 * Hero Bootstrap Carousel - Ella 3.0
 * Estilos específicos para o carrossel Bootstrap do hero
 */
#hero-carousel-home {
    /* Container principal do carrossel */
    #hero-desktop-carousel,
    #hero-mobile-carousel {
        height: 100%;
        position: relative;
    }

    /* Slides do carrossel */
    .carousel-item {
        height: 100%;
        transition: transform 0.6s ease-in-out;
    }

    /* Indicadores - apenas mobile, posicionados abaixo do carrossel */
    .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        justify-content: center;
        display: flex;
        gap: 8px;
        z-index: 15;
        list-style: none;
        padding: 0;
    }

    .carousel-indicators [data-bs-target] {
        background-color: #ffc107;
        border: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        opacity: 0.6;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .carousel-indicators .active {
        background-color: #0d47a1;
        opacity: 1;
        transform: scale(1.2);
    }

    .carousel-indicators [data-bs-target]:hover {
        opacity: 0.8;
        transform: scale(1.1);
    }

    /* Controles de navegação (setas) - apenas desktop */
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        background-color: #ffc107;
        border-radius: 50%;
        color: white;
        transition: all 0.3s ease;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-control-prev {
        left: 20px;
    }

    .carousel-control-next {
        right: 20px;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: #e6a800;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-size: 18px;
        width: 18px;
        height: 18px;
    }

    /* Esconder indicadores no desktop */
    #hero-desktop-carousel .carousel-indicators {
        display: none !important;
    }

    /* Mostrar indicadores apenas no mobile */
    #hero-mobile-carousel .carousel-indicators {
        display: flex !important;
        position: absolute !important;
        bottom: -40px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 15 !important;
    }

    /* Garantir que os bullets sejam visíveis */
    #hero-mobile .carousel-indicators {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Esconder controles de navegação no mobile */
    #hero-mobile-carousel .carousel-control-prev,
    #hero-mobile-carousel .carousel-control-next {
        display: none !important;
    }

    /* Mostrar controles apenas no desktop */
    #hero-desktop-carousel .carousel-control-prev,
    #hero-desktop-carousel .carousel-control-next {
        display: flex !important;
    }


    /* Acessibilidade */
    .carousel-control-prev:focus,
    .carousel-control-next:focus,
    .carousel-indicators [data-bs-target]:focus {
        outline: 2px solid #0d47a1;
        outline-offset: 2px;
    }

    /* Transições suaves */
    .carousel-item {
        transition: transform 0.6s ease-in-out;
    }

    /* Garantir que os backgrounds funcionem */
    .widget-hero-home-background,
    .widget-hero-home-background-mobile,
    .widget-hero-home-background-campaign-desktop,
    .widget-hero-home-background-campaign-mobile {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* Backgrounds específicos para o carrossel Bootstrap */
    #hero-desktop-carousel.widget-hero-home-background {
        background: url('../images/hero-background.png') no-repeat center center #505050 !important;
        background-size: cover !important;
    }

    #hero-mobile-carousel.widget-hero-home-background-mobile {
        background: url('../images/hero-background-mobile.png') no-repeat center center #505050 !important;
        background-size: cover !important;
    }

    /* Backgrounds dos slides individuais */
    .carousel-item.widget-hero-home-background-campaign-desktop {
        background: url('../images/campanhas/mes-do-cliente-desktop.png') no-repeat center center #505050 !important;
        background-size: cover !important;
    }

    .carousel-item.widget-hero-home-background-campaign-mobile {
        background: url('../images/campanhas/mes-do-cliente-mobile.png') no-repeat center center #505050 !important;
        background-size: cover !important;
    }

    /* Garantir que o primeiro slide mobile tenha o background correto */
    #hero-mobile-carousel .carousel-item.active:first-child {
        background: url('../images/hero-background-mobile.png') no-repeat center center #505050 !important;
        background-size: cover !important;
    }

    /* Cores do texto */
    .widget-hero-home-background,
    .widget-hero-home-background-campaign-desktop {
        color: #fff !important;
    }

    .widget-hero-home-background-mobile,
    .widget-hero-home-background-campaign-mobile {
        color: #00205C !important;
    }

    /* Títulos do hero com sombra para melhor legibilidade */
    .hero-content-box h1, .hero-content-box h2, .hero-content-box h3, .hero-content-box h4, .hero-content-box h5, .hero-content-box h6 {
        color: #ffffff !important;
        text-shadow: rgba(0, 0, 0, 0.65) 1px 1px 4px;
        font-weight: 700;
    }

    .hero-mobile-content h1, .hero-mobile-content h2, .hero-mobile-content h3, .hero-mobile-content h4, .hero-mobile-content h5, .hero-mobile-content h6 {
        color: #ffffff !important;
        text-shadow: rgba(0, 0, 0, 0.65) 1px 1px 4px;
    }

    /* Ajustes específicos para o mobile - aparência exata como na imagem de produção */
    #hero-mobile {
        background: none; /* Remove background do container principal */
        position: relative;
        overflow: visible; /* Permite que os bullets sejam visíveis */
        height: 350px;
        padding-bottom: 50px;
        width: 100%; /* Garante largura total da tela */
        max-width: 100%; /* Previne que seja maior que a tela */
    }

    .hero-mobile-content {
        padding: 15px;
        position: relative;
        z-index: 10;
        width: 100%; /* Ocupa toda a largura disponível */
        max-width: 100%; /* Não pode ser maior que o container */
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        box-sizing: border-box;
    }

    .conheca-ella-buttons {
        margin-bottom: 15px;
        text-align: right;
    }

    /* Estilos específicos para o slide 1 do mobile (conteúdo alinhado à direita, mas com margem para não ficar oculto) */
    .hero-mobile-content-slide1 {
        text-align: right;
        margin-left: auto;
        align-items: flex-end;
        width: auto; /* Largura automática baseada no conteúdo */
        max-width: calc(100% - 40px); /* Largura máxima considerando as margens */
        padding-right: 15px; /* Espaço à direita para evitar corte */
        box-sizing: border-box;
    }

    /* Estilos específicos para o slide 2 do mobile (layout normal, com margem para não ficar oculto) */
    .hero-mobile-content-slide2 {
        text-align: center;
        margin-left: 20px; /* Adiciona margem à esquerda */
        align-items: center;
        width: auto; /* Largura automática baseada no conteúdo */
        max-width: calc(100% - 40px); /* Largura máxima considerando as margens */
        padding: 0 15px; /* Espaço nas laterais para evitar corte */
        box-sizing: border-box;
    }

    /* Ajuste específico para o preço no mobile */
    .widget-hero-price-mobile {
        text-align: right !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        width: fit-content !important;
        max-width: 100% !important; /* Garante que não ultrapasse a largura disponível */
        word-wrap: break-word !important; /* Quebra palavras longas se necessário */
    }

    /* Garantir que o conteúdo seja visível */
    #hero-desktop-content,
    .hero-mobile-content {
        position: relative;
        z-index: 10;
    }

    /* Botão de vídeo */
    .btn-video-hero {
        z-index: 15;
        position: relative;
    }

    /* Texto do vídeo */
    #hero-desktop-content small {
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        font-size: 0.875rem;
    }

    /* Caixa de conteúdo à direita - sem box, apenas posicionamento */
    .hero-content-box {
        max-width: 580px;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    /* Botões do hero */
    .hero-buttons {
        gap: 0.75rem !important;
    }

    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .hero-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Seção do vídeo no canto inferior esquerdo */
    .hero-video-section {
        z-index: 20;
    }

    .hero-video-section small {
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
        font-size: 0.875rem;
        font-weight: 500;
    }

    /* Botão de vídeo - hover simplificado e corrigido */
    .btn-video-hero {
        background: none;
        border: none;
        padding: 0;
        position: relative;
        display: block;
        width: 237px;
        height: 135px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-video-hero:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .img-thumb-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        transition: opacity 0.3s ease;
    }

    .img-thumb-video-hover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .btn-video-hero:hover .img-thumb-video {
        opacity: 0;
    }

    .btn-video-hero:hover .img-thumb-video-hover {
        opacity: 1;
    }

    /* Responsividade para telas menores */
    @media (max-width: 1200px) {
        .hero-content-box {
            max-width: 450px;
        }
    }

    @media (max-width: 992px) {
        .hero-content-box {
            max-width: 400px;
        }
        
        .btn-video-hero {
            width: 180px;
            height: 108px;
        }
    }

    /* Botão garanta já a sua! */
    .botao-garanta {
        /* Cor e estilo de fundo */
        border: 2px solid #ffcc00;
        
        /* Cor e estilo do texto */
        color: #ffcc00 !important;
        font-weight: bold;
        font-size: 24px; /* Ajuste o tamanho da fonte conforme necessário */
        font-family: Arial, sans-serif; /* Use uma fonte semelhante */
        
        /* Espaçamento interno */
        padding: 5px 20px;
        
        /* Estilo do botão */
        display: inline-block;
        text-decoration: none;
        text-align: center;
        cursor: pointer;
        
        /* Efeito de inclinação */
        transform: skewX(-15deg);
        
        /* Transição suave para o efeito de hover */
        transition: all 0.3s ease-in-out;
    }
    
    .botao-garanta span {
        /* Restaura a inclinação do texto */
        display: inline-block;
        transform: skewX(15deg);
    }
    
    .botao-garanta:hover {
        border-color: #fff;
        color: #fff !important;
    }
}