/* --- GERAL E RESET --- */
:root {
    --cor-primaria: #0056b3; /* Azul profissional */
    --cor-secundaria: #007bff; /* Azul mais vibrante para hover/links */
    --cor-fundo: #ffffff;
    --cor-fundo-secao: #f8f9fa;
    --cor-texto: #212529; /* Preto suave */
    --cor-texto-secundario: #6c757d; /* Cinza */
    --cor-borda: #dee2e6;
    --sombra-padrao: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding-top: 80px; /* Espaço para o header fixo */
}

section { padding: 80px 0; }
.section-bg { background-color: var(--cor-fundo-secao); }

h1, h2, h3 { font-weight: 600; color: var(--cor-texto); }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); } /* Tipografia fluida */
h2 { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; margin-bottom: 50px; }

p { color: var(--cor-texto-secundario); margin-bottom: 1rem; }

/* --- HEADER --- */
header {
    background-color: rgba(230, 230, 230, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cor-borda);
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo { height: 45px; border-radius: 5px; }
.menu { list-style: none; display: flex; align-items: center; gap: 30px; }
.menu a { color: var(--cor-texto); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.menu a:hover { color: var(--cor-secundaria); }

/* Botão "Gerador PIX" no menu */
.menu-cta a {
    background-color: transparent;
    border: 1px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.menu-cta a:hover {
    background-color: var(--cor-primaria);
    color: #fff !important;
}

/* Oculta o antigo botão CTA que foi removido do HTML */
.btn-cta { display: none; }


/* --- MENU MOBILE --- */
.hamburger { display: none; }
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 992px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--cor-texto);
        cursor: pointer;
        z-index: 1100;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Começa fora da tela */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--cor-fundo);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: 100px;
    }

    .main-nav.active {
        right: 0; /* Entra na tela */
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .menu li {
        width: 100%;
    }

    .menu a {
        display: block;
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .menu a:hover {
        background-color: var(--cor-fundo-secao);
    }
    
    /* Ajuste para o botão no menu mobile */
    .menu-cta {
        padding: 20px 30px;
    }
    .menu-cta a {
        display: inline-block; /* Para o padding funcionar corretamente */
        width: auto;
        padding: 10px 25px;
    }
}


/* --- SEÇÕES --- */

/* ======== NOVO HERO BANNER DE VENDAS ======== */
.hero-venda-celular {
    position: relative;
    width: 100%;
    height: 60vh; /* Altura do banner, ajuste conforme necessário */
    min-height: 450px;
    max-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove padding da seção */
    overflow: hidden; /* Garante que a imagem não vaze */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cobre todo o espaço sem distorcer */
    object-position: center;
}

.hero-venda-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 650px;
    background-color: rgba(0, 0, 0, 0.4); /* Fundo semi-transparente para legibilidade */
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.hero-venda-content h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3rem);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-venda-content p {
    color: #f0f0f0;
    font-size: 1.15rem;
    margin: 15px 0 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}
.hero-venda-content strong {
    color: #fff;
}

.hero-venda-content .btn-primary {
    font-size: 1.1rem;
    padding: 15px 40px;
}
.hero-venda-content .btn-primary i {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .hero-venda-celular {
        height: 70vh;
        min-height: 500px;
    }
    .hero-venda-content {
        padding: 20px;
    }
}

/* ======== FIM DO NOVO HERO BANNER ======== */


.hero {
    padding-top: 120px;
    padding-bottom: 120px;
    text-align: center;
}
.hero-content {
    max-width: 700px;
    margin: 0 auto;
}
.hero p {
    font-size: 1.15rem;
    margin: 20px 0 40px;
}
.btn-primary {
    background-color: var(--cor-primaria);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}
.btn-primary:hover { background-color: var(--cor-secundaria); transform: translateY(-3px); }

#sobre { text-align: center; }
#sobre p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }

/* O restante do seu CSS continua aqui... */
/* ... (copie e cole todo o resto do seu CSS original a partir daqui) ... */

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.servico-card {
    background-color: var(--cor-fundo);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--cor-borda);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-padrao);
}
.servico-card i {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin-bottom: 20px;
}
.servico-card h3 { font-size: 1.3rem; margin-bottom: 10px; }

#softsolutions { text-align: center; }
#softsolutions h2 { margin-bottom: 20px; }
#softsolutions p { max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-secondary {
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
    background-color: transparent;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-secondary:hover { background-color: var(--cor-primaria); color: white; }

.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contato-unidade { padding: 30px; border: 1px solid var(--cor-borda); border-radius: 12px; }
.contato-unidade h3 { margin-bottom: 15px; }
.contato-unidade h3 i { color: var(--cor-primaria); margin-right: 8px; }
.contato-unidade address { font-style: normal; color: var(--cor-texto-secundario); }
.whatsapp-link {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.whatsapp-link:hover { background-color: #128C7E; }
.whatsapp-link i { margin-right: 8px; }

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .contato-grid { grid-template-columns: 1fr; }
}

/* --- FOOTER --- */
footer {
    background-color: var(--cor-texto);
    color: var(--cor-fundo);
    padding: 40px 0;
    text-align: center;
}
.redes-sociais { margin-bottom: 15px; }
.redes-sociais a {
    color: var(--cor-fundo);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s;
}
.redes-sociais a:hover { color: #aaa; }
footer p { color: #ccc; margin-bottom: 0; font-size: 0.9rem; }

/* Cole aqui o restante do seu CSS para as outras páginas, se houver... */

/* --- PÁGINA GERADOR PIX --- */

#pix-generator .subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px auto;
    font-size: 1.1rem;
}

.generator-box {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--cor-fundo);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--sombra-padrao);
    border: 1px solid var(--cor-borda);
}

@media (min-width: 768px) {
    .generator-box {
        padding: 40px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--cor-texto);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#pix-generator .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    font-size: 1.1rem;
}

.result-area {
    margin-top: 40px;
    border-top: 1px solid var(--cor-borda);
    padding-top: 30px;
    text-align: center;
    display: none; /* Começa escondido */
}

.qr-code-wrapper {
    display: inline-block;
    padding: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--sombra-padrao);
    margin-bottom: 25px;
}

#pixQr {
    display: block;
    max-width: 100%;
    height: auto !important; /* Força responsividade */
}

.result-area .info {
    text-align: left;
}

.result-area .info strong {
    color: var(--cor-texto);
}

.result-area .info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

#pixPayload {
    height: 100px;
    resize: none;
    background-color: var(--cor-fundo-secao);
    color: var(--cor-texto-secundario);
    font-size: 0.9rem;
    word-break: break-all;
}

/* --- PÁGINA FICHAS TÉCNICAS (LISTAGEM E DETALHE) --- */

#fichas-tecnicas-lista .subtitle, #ficha-tecnica-detalhe .subtitle {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 40px auto;
    font-size: 1.1rem;
    color: var(--cor-texto-secundario);
}

.lista-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.lista-marcas {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.lista-marcas li a {
    display: block;
    background-color: var(--cor-fundo);
    color: var(--cor-primaria);
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--cor-borda);
    transition: all 0.3s ease;
}

.lista-marcas li a:hover {
    background-color: var(--cor-primaria);
    color: var(--cor-fundo);
    border-color: var(--cor-primaria);
    transform: translateY(-4px);
    box-shadow: var(--sombra-padrao);
}

.not-found-message {
    text-align: center;
    padding: 40px;
    background-color: var(--cor-fundo-secao);
    border-radius: 8px;
    color: var(--cor-texto-secundario);
}

/* ESTILOS PARA A PÁGINA DE DETALHE DA FICHA (reutilizável) */

.ficha-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .ficha-header {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
}

.celular-imagem {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.ficha-titulo h1 {
    margin-bottom: 10px;
}

.ficha-titulo .descricao {
    font-size: 1.1rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 25px;
}

.principais-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background-color: var(--cor-fundo-secao);
    color: var(--cor-texto);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--cor-borda);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge i {
    color: var(--cor-primaria);
}

#ficha-tecnica-detalhe h2, #ficha-tecnica-detalhe h3 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cor-borda);
}
#ficha-tecnica-detalhe h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--cor-borda);
    vertical-align: top;
}

table tr:last-child th, table tr:last-child td {
    border-bottom: none;
}

table th {
    font-weight: 600;
    width: 30%;
    color: var(--cor-texto);
}

table td {
    color: var(--cor-texto-secundario);
}

/* --- PÁGINA LISTA DE DISPOSITIVOS --- */

.breadcrumb {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.7rem;
    margin: 0 10px;
    color: var(--cor-texto-secundario);
}

.breadcrumb span {
    color: var(--cor-texto-secundario);
}

#dispositivos-lista h1 {
    text-align: center;
}

/* --- CORREÇÃO PÁGINA LISTA DE DISPOSITIVOS --- */

#dispositivos-lista .subtitle {
    max-width: 600px;
    margin-left: auto; /* Garante o alinhamento central */
    margin-right: auto; /* Garante o alinhamento central */
    margin-top: 0.5rem; /* Adiciona um pequeno espaço abaixo do H1 */
    margin-bottom: 2.5rem; /* Adiciona um bom espaço acima da lista de dispositivos */
    color: var(--cor-texto-secundario);
    font-size: 1.1rem;
}

/* Também vamos ajustar o H1 para um espaçamento mais consistente */
#dispositivos-lista h1 {
    text-align: center;
    margin-bottom: 0; /* Remove a margem inferior do H1 para controlar o espaço pelo subtítulo */
}

.lista-dispositivos {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.lista-dispositivos li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 20px 15px;
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lista-dispositivos li a:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-padrao);
    border-color: var(--cor-secundaria);
}

.dispositivo-imagem {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.dispositivo-titulo {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--cor-texto);
    line-height: 1.4;
}

/* --- PÁGINA DE DETALHE DA FICHA (AJUSTES FINAIS) --- */

/* Ajusta o texto da descrição para ser justificado, melhorando a leitura */
.ficha-titulo .descricao {
    text-align: justify;
    color: var(--cor-texto-secundario);
}

/* Garante que os badges com ícones fiquem bem alinhados */
.principais-specs .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espaço entre o ícone e o texto */
}

.principais-specs .badge i {
    color: var(--cor-primaria);
    font-size: 1.1em; /* Deixa o ícone um pouco maior que o texto */
}


/* --- ESTILO PARA A PÁGINA DE ERRO "NÃO ENCONTRADO" --- */

#dispositivo-nao-encontrado {
    padding: 80px 0;
    text-align: center;
}

.not-found-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--cor-fundo-secao);
    border-radius: 12px;
}

.not-found-box i {
    font-size: 4rem;
    color: var(--cor-primaria);
    margin-bottom: 20px;
    --fa-animation-duration: 2s; /* Ajusta a velocidade da animação do ícone */
}

.not-found-box h2 {
    margin-bottom: 15px;
}

.not-found-box p {
    color: var(--cor-texto-secundario);
    margin-bottom: 30px;
}

/* --- ESTILOS PARA O MAPA --- */
.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Proporção 16:9 para o mapa */
    border-radius: 8px; /* Borda arredondada para combinar com o design */
    margin: 20px 0; /* Espaçamento acima e abaixo do mapa */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 500;
    color: #007bff; /* Cor primária para links */
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.map-link i {
    margin-right: 8px;
}