/* style-home.css - Estilos Exclusivos da Landing Page MenuCardAPP */

:root {
    --color-1: #A65D78; 
    --color-2: #8C4A6F;
    --color-3: #632D5A;
    --color-4: #4D1E51;
    --color-white: #ffffff;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-4);
    color: var(--color-white);
    min-height: 100vh;
}

/* --- HEADER CENTRALIZADO --- */
.app-header-home {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    max-width: 100% !important;
}

.logo-home img {
    height: 45px;
    width: auto;
}

/* --- CONTEÚDO PRINCIPAL --- */
.app-main-home {
    padding: 100px 20px 60px 20px;
}

@media (max-width: 768px) {
    /* Dá o espaçamento necessário para o conteúdo não ficar por baixo do logo */
    .app-main-home {
        padding-top: 90px !important; /* Ajuste esse valor se precisar de mais espaço */
    }

    /* Opcional: Diminuir um pouco o título no mobile para não ocupar tantas linhas */
    .login-title-home {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    /* Ajuste específico para a tela de Login da Gestão */
    .login-section {
        padding-top: 20px !important; /* Espaço extra para o logo não cobrir o título */
    }

    /* Centralização e ajuste do título do painel */
    .login-section h1 {
        font-size: 1.8rem !important;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .login-section p {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .desktop-grid-home {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        margin-bottom: 60px;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .login-section-home {
        align-items: flex-start; /* Volta o alinhamento para a esquerda no PC */
        text-align: left;
    }
    
    .login-title-home {
        text-align: left !important;
    }

    .btn-whatsapp-home {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    .login-title-home { font-size: 2.7em !important; text-align: left !important; }
    .hero-text-home { text-align: left !important; }

    .faq-section-home, 
    .section-solucao-home {
        width: 50% !important; /* Reduz para 50% apenas no computador */
    }
}

.login-section-home {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o conteúdo horizontalmente no celular */
    text-align: center;   /* Centraliza o texto */
    line-height: 1.1;
}
.login-section-home h3 {
    font-size: 1.8em;
}

.login-title-home {
    text-align: center; /* Garante que o título fique no meio */
}

.btn-whatsapp-home {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px; /* Cria o espaço entre o botão e a imagem abaixo */
    width: fit-content;  /* Garante que o botão não estique 100% se não quiser */
}

.login-title-home {
    font-size: 2rem;
    margin-bottom: 5px;
    color: white;
    font-weight: 700;
}

.hero-text-home {
    margin-top: 15px;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.btn-whatsapp-home {
    background-color: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
    margin-top: 30px;
}

.btn-whatsapp-home:hover { transform: scale(1.05); }

/* Efeito Pulsar Profissional */
.btn-pulse {
    animation: pulse-redesign 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

@keyframes pulse-redesign {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- SEÇÃO VANTAGENS --- */
.section-solucao-home {
    width: 100%;
    margin-top: 60px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.grid-atalhos-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card-vantagem-home {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 30px 10px;
    margin: 0;
    text-align: center;
}

.card-vantagem-home i {
    font-size: 2rem;
    color: var(--color-1);
    margin-bottom: 15px;
}

.card-vantagem-home h3 {
    color: var(--color-4);
    font-size: 1rem;
    margin-bottom: 10px;
}

.card-vantagem-home p {
    color: #666;
    font-size: 0.8rem;
}



/* --- SEÇÃO DE PLANOS PERSONALIZADA --- */
.section-planos-home {
    background-color: #fff;
    padding: 80px 20px;
    margin-top: 60px;
    border-radius: 40px 40px 0 0;
    color: var(--color-4);
    text-align: center;
}

.planos-title { font-size: 2.2rem; color: var(--color-4); margin-bottom: 10px; }
.planos-subtitle { color: #666; margin-bottom: 40px; }

/* --- CONTAINER CARROSSEL SEM BARRA --- */
.grid-planos {
    display: flex;
    overflow-x: hidden; /* Remove a barra visual */
    gap: 20px;
    padding: 30px 5px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    max-width: 1100px;
    margin: 0 auto;
}

.card-plano {
    flex: 0 0 calc(33.33% - 14px); /* Trava 3 por tela no PC */
    min-width: 300px;
    scroll-snap-align: start;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
}

/* --- TRAVA DEFINITIVA DE FONTE --- */
.preco-atual {
    font-size: 2.2rem !important;
    font-weight: 800;
    color: var(--color-4);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin: 10px 0;
}
.preco-atual span { font-size: 2.2rem; }
.preco-atual small {
    font-size: 0.9rem !important; /* Tamanho pequeno forçado */
    font-weight: 400 !important;
    vertical-align: middle;
}

/* Botões Duplos no Card */
.btn-plano-duplo {
    display: block;
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
    border: 2px solid var(--color-4);
    color: var(--color-4);
    background: transparent;
}

.btn-plano-duplo:hover {
    background: var(--color-4);
    color: #fff;
}

/* Destaque para o botão Anual */
.anual-destaque {
    background-color: var(--color-4);
    color: white;
}

.anual-destaque:hover {
    background-color: var(--color-1);
    border-color: var(--color-1);
}

/* Removemos o toggle lá de cima, já que agora os botões estão no card */
.planos-toggle { display: none; }

/* Botões de Navegação Roxos */
.nav-planos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.btn-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-4);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-nav:hover { background-color: var(--color-1); transform: scale(1.1); }

/* Visibilidade */
.preco-mensal-v, .preco-anual-v { display: none; }
.show-mensal .preco-mensal-v { display: block; }
.show-anual .preco-anual-v { display: block; }

.preco-antigo {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: -5px;
}
.btn-plano {
    background-color: var(--color-4);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin: 20px 0;
    display: block;
}

.beneficios-list { text-align: left; list-style: none; margin-top: 20px; }
.beneficios-list li { margin-bottom: 12px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.beneficios-list i { color: #25d366; }

/* Div Roxa Benefícios Extras */
.extra-benefits-purple {
    background-color: var(--color-4);
    color: white;
    padding: 60px 20px;
    margin-top: 80px;
    border-radius: 30px;
    text-align: center;
}

/* Depoimentos */
.section-depoimentos { padding: 80px 20px; text-align: center; }
.grid-depoimentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.card-depoimento { background: #f9f9f9; padding: 30px; border-radius: 20px; color: #444; }
.user-info { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; text-align: left; }
.user-info img { width: 50px; height: 50px; border-radius: 50%; background: #ccc; }

@media (max-width: 768px) {
    .grid-planos {
        padding: 20px 0; /* Remove padding lateral do container para centralizar melhor */
        gap: 10px;
    }

    .card-plano {
        flex: 0 0 90%; /* Aumentamos um pouco para preencher melhor a tela */
        margin: 0 5%; /* Cria uma margem automática para centralizar */
        scroll-snap-align: center; /* O SEGREDO: Alinha pelo centro ao rolar */
    }
}




/* --- SEÇÃO ENCONTRE O PLANO IDEAL --- */
.section-ideal-plano {
    padding: 80px 20px;
    background-color: #fcfcfc;
    text-align: center;
}

.grid-segmentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
}

.card-segmento {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-bottom: 5px solid #eee;
    transition: var(--transition);
}

.card-segmento:hover {
    border-bottom-color: var(--color-1);
    transform: translateY(-10px);
}

.card-segmento i {
    font-size: 3rem;
    color: var(--color-4);
    margin-bottom: 20px;
}

.card-segmento h4 {
    font-size: 1.4rem;
    color: var(--color-3);
    margin-bottom: 15px;
}

.mini-dash-preview {
    background: #f0f0f0;
    height: 8px;
    border-radius: 10px;
    margin: 20px 0 10px;
    overflow: hidden;
}

.mini-dash-fill {
    height: 100%;
    background: var(--color-1);
}

/* --- DEPOIMENTOS & PROVA SOCIAL --- */
.section-aprovacao {
    background-color: var(--color-4);
    padding: 100px 20px;
    color: white;
}

.btn-suave {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-suave:hover {
    background: white;
    color: var(--color-4);
}




/* --- COMPONENTES EXCLUSIVOS PARA O CADASTRO --- */

/* Estrutura de App Mobile no Cadastro */
.app-body {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.app-header {
    position: fixed;
    top: 0;
    background-color: var(--color-white);
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    align-items: center;
    padding: 15px;
    height: 70px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 1001;
}

.app-main-content {
    padding: 70px 20px 120px 20px;
}

@media (max-width: 768px) {
    /* Ajuste específico para a página de cadastro/formulários */
    .app-main-content {
        padding-top: 70px !important; /* Espaço para o cabeçalho no mobile */
    }

    /* Garante que o título do formulário fique legível */
    .module-card h2, .login-title-home {
        margin-top: 10px;
        font-size: 1.6rem !important;
    }
}

/* Cards e Inputs */
.module-card {
    background-color: var(--color-3);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: var(--shadow-light);
}

.input-busca-card {
    width: 100%;
    height: 55px;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--color-4);
    background-color: white;
    margin-bottom: 10px;
    outline: none;
    transition: var(--transition);
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* Sistema de Etapas (Steps) */
.step { display: none; }
.step.active { 
    display: block; 
    animation: fadeInStep 0.4s ease-in-out; 
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-container {
    margin-bottom: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    background: var(--color-1);
    width: 25%;
    transition: width 0.4s ease;
}

/* Modais de Sucesso/Pagamento */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    animation: modalPopUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Botões de Ação */
/* --- PADRONIZAÇÃO TOTAL DE BOTÕES (PERFECCIONISTA) --- */

/* Container que força o alinhamento horizontal e vertical perfeito */
.buttons-container {
    display: flex;
    align-items: center; /* Alinha os centros dos botões no eixo vertical */
    gap: 15px;           /* Espaçamento exato entre os botões */
    margin-top: 25px;
    width: 100%;
}

/* Base comum para TODOS os botões do formulário */
.btn-primary, .btn-voltar, .btn-finalizar-caixa {
    height: 55px;        /* Altura fixa e idêntica para todos */
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-sizing: border-box; /* Crucial: faz a borda não aumentar a altura final */
}

/* Botão Próximo / Continuar */
.btn-primary {
    flex-grow: 1;        /* Faz o botão ocupar 100% ou o resto da linha */
    background-color: var(--color-2); /* Tom padrão do sistema */
    color: white;
    border: none;
    padding: 0 20px;
}

/* Botão Voltar (Seta) */
.btn-voltar {
    width: 60px;         /* Largura fixa para o ícone */
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    flex-shrink: 0;      /* Impede que o botão seja esmagado */
    padding: 0;
}

/* Botão Verde de Finalização */
.btn-finalizar-caixa {
    width: 100%;
    background-color: #2ecc71;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* Título do Resumo (Corrigindo o sumiço na última etapa) */
.card-title-roxo {
    color: var(--color-4) !important; /* Força a cor roxa no fundo branco do cupom */
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 15px;
}

/* Estilo Cupom Fiscal para o Resumo */
.item-pedido {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd; /* Linha tracejada estilo cupom */
}

.item-subtotal {
    font-weight: 700;
    color: var(--color-4);
}

/* Ajustes de Logo e Menu para o Topo do Cadastro */
.logo-text { color: var(--color-1); font-weight: 700; font-size: 1.2rem; }
.logo-sub { color: var(--color-4); }
.menu-trigger {
    width: 45px;
    height: 45px;
    background-color: var(--color-4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
}

/* Container que organiza os cards */
.clientes-grid {
    display: grid;
    grid-template-columns: 1fr; /* Padrão Mobile: Um abaixo do outro */
    gap: 15px;
}

/* O Card Individual do Cliente */
.cliente-card-master {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    color: var(--color-4);
    border-bottom: 4px solid var(--color-1);
    display: flex;
    flex-direction: column;
}

.cliente-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.cliente-info-box strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-4);
}

.cliente-info-box span {
    font-size: 0.8rem;
    color: #888;
}

/* Badge de Status */
.badge-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
}
.badge-status.ativo { background: #d4edda; color: #155724; }

/* Detalhes internos do card */
.cliente-detalhes p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cliente-detalhes i {
    color: var(--color-1);
    width: 15px;
}

/* Ajuste para Desktop: Exibir em Grid de 2 ou 3 colunas */
@media (min-width: 1024px) {
    .clientes-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards por linha no PC */
    }
}

@media (max-width: 768px) {
    main { padding: 20px 15px !important; }
    /* Garante que o container master não sangre lateralmente */
    body, .master-grid { overflow-x: hidden; }
}


@media (max-width: 768px) {
    /* Impede o "sambar" lateral no corpo da página */
    body, .master-grid {
        overflow-x: hidden;
        width: 100vw;
    }

    .sidebar { display: none; } /* Mantém escondido no mobile */

    /* Ajusta o espaçamento do conteúdo principal */
    main {
        padding: 20px 15px !important;
    }

    /* Torna a tabela rolável individualmente para não quebrar o layout do resto da tela */
    .module-card {
        padding: 15px !important;
        width: 100%;
        overflow-x: auto; /* Permite deslizar apenas a tabela se ela for grande */
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px; /* Garante que os dados da tabela não fiquem espremidos */
    }

    /* Ajuste nos títulos para não cortarem */
    h2 { font-size: 1.5rem !important; }
    p { font-size: 0.85rem !important; }
}


/* Overlay de Carregamento AJAX */
#loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none; /* Inicia escondido */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loader-icon {
    display: flex;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--color-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* ============================================================
   ESTILOS EXCLUSIVOS DA CENTRAL MASTER (DASHBOARD)
   ============================================================ */

/* Estrutura de Grid Principal */
.master-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    background-color: var(--color-4);
}

/* Sidebar Esquerda */
.sidebar {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-link {
    display: block;
    padding: 12px;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-link.active {
    background: var(--color-1);
    color: white;
}

/* Cards de Estatísticas (Topo) */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-stat {
    background: white;
    padding: 20px;
    border-radius: 15px;
    color: var(--color-4);
    border-bottom: 4px solid var(--color-1);
}

.card-stat h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}

.card-stat .value {
    font-size: 1.8rem;
    font-weight: 700;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Responsividade Mobile */
@media (max-width: 768px) {
    .master-grid { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    main { padding: 20px 15px !important; }
}


/* Estilo do Botão Sanduiche */
    .btn-sanduiche {
        display: none;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 9999 !important; /* Garante que fique acima de tudo */
        background: #4b2c4d; /* Cor fixa para teste */
        color: white;
        border: none;
        padding: 12px;
        border-radius: 8px;
        cursor: pointer;
    }

    .btn-fechar-menu {
    display: none !important; /* Esconde por padrão no Desktop */
    }

    @media (max-width: 768px) {
        .btn-sanduiche { display: block !important; }
        
        .master-grid { display: block !important; }

        /* Estado Inicial: Escondido */
        .sidebar {
            background-color: #2c1a2d !important; /* Roxo escuro sólido */
            position: fixed !important;
            left: -100% !important; 
            top: 0 !important;
            width: 90% !important;
            height: 100vh !important;
            z-index: 10000 !important;
            transition: 0.4s ease-in-out !important;
            display: block !important; /* Força o elemento a existir */
            visibility: visible !important;
        }

        /* Estado Ativo: Quando o JS adiciona a classe 'active' */
        .sidebar.active {
            left: 0 !important; /* Desliza para a tela */
        }

        main { padding: 80px 20px 20px !important; }

        /* Botão Fechar dentro do Menu */
        .btn-fechar-menu {
            display: block !important;
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 10001;
        }
    }






/* Toggle Switch Roxo */
.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--color-1); }
input:checked + .slider:before { transform: translateX(22px); }

/* Estilo do Modal de Termos */
.modal-legal { display: none; position: fixed; z-index: 10002; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; }
.modal-legal-content { background: white; color: #444; padding: 30px; border-radius: 20px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative; line-height: 1.6; }
.modal-legal-content h2 { color: var(--color-4); font-size: 1.2rem; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 20px; }
.close-legal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #999; }







/* --- FAQ ACORDEÃO --- */
.faq-section-home {
    width: 100%;
    background-color: white;
    border-radius: 20px;
    margin-top: 40px;
    padding: 30px 20px;
    margin-left: auto;
    margin-right: auto;
}

.faq-header-title-home {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-4);
    margin-bottom: 30px;
}

.faq-header-title-home span { color: var(--color-1); }

.faq-item-home {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    cursor: pointer;
}

.faq-question-home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--color-4);
    font-size: 1rem;
}

.faq-answer-home {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.faq-item-home.active .faq-answer-home {
    max-height: 200px;
    padding-top: 10px;
}

.faq-item-home i { transition: transform 0.3s; color: #888; }
.faq-item-home.active i { transform: rotate(180deg); }

/* --- FOOTER INSTITUCIONAL --- */
.footer-home {
    background-color: #ffffff;
    color: var(--color-4);
    padding: 40px 0 120px;
    text-align: center;
    border-top: 1px solid #eee;
    width: 100%;
    position: relative;
}

.footer-container-home {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand-info img {
    height: 35px;
    width: auto;
    opacity: 0.8;
    filter: grayscale(100%);
    margin-bottom: 10px;
}

.footer-links-home {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.footer-links-home a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- TAB BAR MÓVEL (ESTILO APP NO INDEX) --- */
.app-footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-white);
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
}

.footer-icon-home {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-2);
    flex: 1;
}

.footer-icon-home.active { color: var(--color-4); }
.footer-icon-home i { font-size: 1.2rem; margin-bottom: 4px; }
.footer-icon-home span { font-size: 0.7rem; font-weight: 600; }


