/* ===========================
   LAYOUT RESPONSIVO APENAS PARA PÁGINAS PÚBLICAS
   (aguarde.html, captcha.html, componenteSeguranca.html)
   NÃO AFETA O PAINEL ADMINISTRATIVO
   =========================== */

/* === RESET BÁSICO APENAS PARA PÁGINAS PÚBLICAS === */
html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh !important;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* === CORREÇÃO DE BORDAS PARA PÁGINAS PÚBLICAS === */
.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    max-width: 100%;
    overflow-x: hidden;
}

[class*="col-"] {
    max-width: 100%;
    overflow-x: hidden;
}

/* === CORREÇÃO ESPECÍFICA PARA PÁGINAS COM MIN-HEIGHT CALC() === */
.min-height {
    min-height: auto !important;
}

.height {
    height: auto !important;
}

/* === ESTRUTURA PRINCIPAL - FLEXBOX === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Se não existir .main-content, aplicar no primeiro elemento após body */
body > *:first-child {
    flex: 1;
}

/* === CORREÇÃO ESPECÍFICA PARA PÁGINAS COM MUITO CONTEÚDO === */
/* Aplicar nas seções principais que têm muito conteúdo */
.seguranca-fisica-informacao-section,
.seguranca-da-informacao-lgpd-section,
.seguranca-bradesco-ajuda-proteger-section,
.seguranca-prevencao-golpes-artigos-section,
.home-tenha-mais-seguranca-section,
.home-prevencao-section {
    padding-bottom: 40px !important;
}

/* Reduzir espaçamentos excessivos em páginas com muito conteúdo */
.seguranca-fisica-informacao-container-inicial,
.seguranca-fisica-informacao-container,
.seguranca-da-informacao-lgpd-container-inicial {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* Otimizar altura de containers grandes */
.seguranca-bradesco-ajuda-proteger-conteiner {
    height: auto !important;
    min-height: 400px !important;
    padding-top: 30px !important;
    padding-bottom: 40px !important;
}

/* === CORREÇÕES ESPECÍFICAS PARA CAMPO CINZA E BOTÃO === */
/* Seção principal do componente de segurança */
.abra-app {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-bottom: 20px !important;
}

/* Container do campo cinza */
.abra-app .container-fluid {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Título e texto do componente */
.abra-app .titulo {
    margin-bottom: 15px !important;
}

.abra-app .titulo h3 {
    margin-bottom: 10px !important;
    font-size: 1.3rem !important;
}

.abra-app .titulo p {
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
}

/* Seção "Como instalar" */
.abra-app .row:not(.titulo) {
    margin-bottom: 15px !important;
}

/* Sistemas operacionais */
.sistemas {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    padding: 10px !important;
}

/* Botão "Iniciar processo" */
.btn-red,
.btn-default {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* Reduzir espaçamentos entre elementos */
.abra-app .row {
    margin-bottom: 10px !important;
}

/* Otimizar espaçamentos gerais */
.container-fluid.custom {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* === RODAPÉ SEMPRE NO FINAL === */
footer {
    margin-top: auto;
    width: 100%;
    background: #cc092f;
    background: -moz-linear-gradient(90deg, #cc092f 0%, #2b479c 100%);
    background: -webkit-linear-gradient(90deg, #cc092f 0%, #2b479c 100%);
    background: linear-gradient(90deg, #cc092f 0%, #2b479c 100%);
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

footer .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 60px;
}

footer .footer .row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer .footer .endereco {
    flex: 1;
    padding: 0;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.5rem;
}

footer .footer .logo {
    flex-shrink: 0;
    padding: 0;
    text-align: right;
}

/* === CORREÇÕES ESPECÍFICAS PARA TELAS PEQUENAS === */

/* Tablets (768px - 1023px) */
@media screen and (max-width: 1023px) and (min-width: 768px) {
    /* Reduzir conteúdo para tablets */
    .abra-app {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .abra-app .titulo h3 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .abra-app .titulo p {
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
        font-size: 0.9rem !important;
    }
    
    .sistemas {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        padding: 8px !important;
    }
    
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 300px !important;
        padding-top: 20px !important;
        padding-bottom: 25px !important;
    }
}

/* Mobile (até 767px) */
@media screen and (max-width: 767px) {
    footer .footer .row {
        flex-direction: column;
        text-align: center;
    }
    
    footer .footer .endereco {
        text-align: center;
        margin-bottom: 15px;
    }
    
    footer .footer .logo {
        text-align: center;
    }
    
    footer {
        padding: 20px 0;
    }
    
    /* Otimização máxima para mobile */
    .abra-app {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .abra-app .titulo {
        margin-bottom: 10px !important;
    }
    
    .abra-app .titulo h3 {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }
    
    .abra-app .titulo p {
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
        font-size: 0.85rem !important;
    }
    
    .sistemas {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        padding: 5px !important;
        gap: 10px !important;
    }
    
    .btn-red,
    .btn-default {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .abra-app .row {
        margin-bottom: 8px !important;
    }
    
    .container-fluid.custom {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    /* Reduzir ainda mais o conteúdo em mobile */
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 250px !important;
        padding-top: 15px !important;
        padding-bottom: 20px !important;
    }
    
    .seguranca-fisica-informacao-section,
    .seguranca-da-informacao-lgpd-section,
    .seguranca-bradesco-ajuda-proteger-section,
    .seguranca-prevencao-golpes-artigos-section,
    .home-tenha-mais-seguranca-section,
    .home-prevencao-section {
        padding-bottom: 25px !important;
    }
}

/* Mobile pequeno (até 480px) */
@media screen and (max-width: 480px) {
    /* Otimização extrema para mobile pequeno */
    .abra-app {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    .abra-app .titulo h3 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .abra-app .titulo p {
        margin-bottom: 6px !important;
        line-height: 1.1 !important;
        font-size: 0.8rem !important;
    }
    
    .sistemas {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
        padding: 3px !important;
        gap: 8px !important;
    }
    
    .btn-red,
    .btn-default {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .abra-app .row {
        margin-bottom: 6px !important;
    }
    
    .container-fluid.custom {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    footer {
        padding: 15px 0;
    }
    
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 200px !important;
        padding-top: 12px !important;
        padding-bottom: 15px !important;
    }
}

/* === RESPONSIVIDADE DO RODAPÉ === */
@media screen and (max-width: 767px) {
    footer .footer .row {
        flex-direction: column;
        text-align: center;
    }
    
    footer .footer .endereco {
        text-align: center;
        margin-bottom: 15px;
    }
    
    footer .footer .logo {
        text-align: center;
    }
    
    footer {
        padding: 25px 0;
    }
}

/* === CORREÇÕES PARA DIFERENTES NÍVEIS DE ZOOM - VERSÃO ROBUSTA === */

/* Zoom 110% */
@media screen and (min-resolution: 105dpi) and (max-resolution: 119dpi) {
    footer {
        min-height: 70px !important;
        padding: 22px 0 !important;
        position: relative !important;
        margin-top: auto !important;
    }
    
    body {
        min-height: 100vh !important;
        height: auto !important;
    }
    
    .min-height, .height {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Reduzir conteúdo em zoom 110% */
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 350px !important;
        padding-top: 25px !important;
        padding-bottom: 35px !important;
    }
    
    /* Otimizar campo cinza em zoom 110% */
    .abra-app {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
        margin-bottom: 15px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .sistemas {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
        padding: 8px !important;
    }
}

/* Zoom 125% */
@media screen and (min-resolution: 120dpi) and (max-resolution: 143dpi) {
    footer {
        min-height: 80px !important;
        padding: 25px 0 !important;
        position: relative !important;
        margin-top: auto !important;
    }
    
    footer .footer .endereco {
        font-size: 13px !important;
    }
    
    body {
        min-height: 100vh !important;
        height: auto !important;
    }
    
    .min-height, .height {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Reduzir conteúdo em zoom 125% */
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 320px !important;
        padding-top: 20px !important;
        padding-bottom: 30px !important;
    }
    
    /* Otimizar campo cinza em zoom 125% */
    .abra-app {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .sistemas {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        padding: 6px !important;
    }
    
    .abra-app .titulo h3 {
        font-size: 1.2rem !important;
    }
}

/* Zoom 150% */
@media screen and (min-resolution: 144dpi) and (max-resolution: 191dpi) {
    footer {
        min-height: 95px !important;
        padding: 30px 0 !important;
        position: relative !important;
        margin-top: auto !important;
    }
    
    footer .footer .endereco {
        font-size: 14px !important;
    }
    
    body {
        min-height: 100vh !important;
        height: auto !important;
        overflow-y: auto !important;
    }
    
    .min-height, .height {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Reduzir conteúdo em zoom 150% */
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 280px !important;
        padding-top: 15px !important;
        padding-bottom: 25px !important;
    }
    
    /* Otimizar campo cinza em zoom 150% */
    .abra-app {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .sistemas {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        padding: 5px !important;
    }
    
    .abra-app .titulo h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    .abra-app .titulo p {
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }
}

/* Zoom 175% */
@media screen and (min-resolution: 192dpi) and (max-resolution: 239dpi) {
    footer {
        min-height: 110px !important;
        padding: 35px 0 !important;
        position: relative !important;
        margin-top: auto !important;
    }
    
    footer .footer .endereco {
        font-size: 16px !important;
    }
    
    body {
        min-height: 100vh !important;
        height: auto !important;
        overflow-y: auto !important;
    }
    
    .min-height, .height {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Reduzir conteúdo em zoom 175% */
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 250px !important;
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }
    
    /* Otimizar campo cinza em zoom 175% */
    .abra-app {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    .sistemas {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
        padding: 4px !important;
    }
    
    .abra-app .titulo h3 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .abra-app .titulo p {
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }
}

/* Zoom 200% */
@media screen and (min-resolution: 240dpi) and (max-resolution: 299dpi) {
    footer {
        min-height: 130px !important;
        padding: 40px 0 !important;
        position: relative !important;
        margin-top: auto !important;
    }
    
    footer .footer .endereco {
        font-size: 18px !important;
    }
    
    body {
        min-height: 100vh !important;
        height: auto !important;
        overflow-y: auto !important;
    }
    
    .min-height, .height {
        min-height: auto !important;
        height: auto !important;
    }
    
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Reduzir conteúdo em zoom 200% */
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 200px !important;
        padding-top: 10px !important;
        padding-bottom: 15px !important;
    }
    
    /* Otimizar campo cinza em zoom 200% */
    .abra-app {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        margin-bottom: 6px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    
    .sistemas {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        padding: 3px !important;
    }
    
    .abra-app .titulo h3 {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
    
    .abra-app .titulo p {
        margin-bottom: 6px !important;
        line-height: 1.1 !important;
        font-size: 0.85rem !important;
    }
}

/* Zoom 250%+ */
@media screen and (min-resolution: 300dpi) {
    footer {
        min-height: 160px !important;
        padding: 50px 0 !important;
        position: relative !important;
        margin-top: auto !important;
    }
    
    footer .footer .endereco {
        font-size: 20px !important;
    }
    
    body {
        min-height: 100vh !important;
        height: auto !important;
        overflow-y: auto !important;
    }
    
    .min-height, .height {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Reduzir conteúdo em zoom 250%+ */
    .seguranca-fisica-informacao-container-inicial,
    .seguranca-fisica-informacao-container {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .seguranca-bradesco-ajuda-proteger-conteiner {
        height: auto !important;
        min-height: 150px !important;
        padding-top: 5px !important;
        padding-bottom: 10px !important;
    }
    
    /* Otimizar campo cinza em zoom 250%+ */
    .abra-app {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        margin-bottom: 4px !important;
    }
    
    .abra-app .container-fluid {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    
    .sistemas {
        margin-top: 3px !important;
        margin-bottom: 3px !important;
        padding: 2px !important;
    }
    
    .abra-app .titulo h3 {
        font-size: 0.8rem !important;
        margin-bottom: 3px !important;
    }
    
    .abra-app .titulo p {
        margin-bottom: 4px !important;
        line-height: 1 !important;
        font-size: 0.75rem !important;
    }
}

/* === CORREÇÕES ADICIONAIS PARA GARANTIR VISIBILIDADE === */
footer {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* Força o footer a sempre aparecer */
body {
    padding-bottom: 0 !important;
}

/* === CORREÇÃO ESPECÍFICA PARA ZOOM COM TRANSFORM === */
@media screen and (min-width: 1px) {
    footer {
        transform: translateZ(0) !important;
        will-change: transform !important;
    }
}

/* === COMPATIBILIDADE COM DIFERENTES NAVEGADORES === */
@supports (display: flex) {
    body {
        display: flex;
        flex-direction: column;
    }
}

/* Para navegadores antigos */
@supports not (display: flex) {
    footer {
        position: fixed;
        bottom: 0;
        width: 100%;
    }
    
    body {
        padding-bottom: 120px;
    }
}

/* === CONTEÚDO PRINCIPAL === */
main,
.main-content,
.content-wrapper {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* === RODAPÉ SIMPLES E EFICAZ === */
footer {
    width: 100%;
    margin-top: auto;
    background: #f8f9fa;
    /* Garantir que o footer sempre seja visível */
    position: relative;
    z-index: 1000;
}

/* Seção SAC */
.sac {
    width: 100%;
    background: #e9ecef;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

/* Rodapé principal */
.footer {
    width: 100%;
    background: #cc092f;
    background: linear-gradient(90deg, #cc092f 0%, #2b479c 100%);
    padding: 20px 0;
    color: white;
    /* Garantir visibilidade em todos os zooms */
    min-height: 60px;
    position: relative;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer .endereco {
    flex: 1;
    min-width: 250px;
}

.footer .logo {
    flex: 0 0 auto;
    text-align: right;
}

.footer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

/* === RESPONSIVIDADE SIMPLES === */
@media (max-width: 768px) {
    .footer .row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer .endereco {
        margin-bottom: 15px;
        min-width: auto;
    }
    
    .footer .logo {
        text-align: center;
    }
    
    .footer p {
        font-size: 11px;
    }
}

/* === CORREÇÕES PARA ZOOMS ALTOS === */
/* Zoom 150% */
@media screen and (min-resolution: 1.5dppx) {
    body {
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .footer {
        min-height: 80px;
        padding: 25px 0;
    }
    
    .footer p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Zoom 175% */
@media screen and (min-resolution: 1.75dppx) {
    .footer {
        min-height: 100px;
        padding: 30px 0;
    }
    
    .footer p {
        font-size: 16px;
        line-height: 1.8;
    }
}

/* Zoom 200% e acima */
@media screen and (min-resolution: 2dppx) {
    html {
        overflow-y: auto;
    }
    
    body {
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .footer {
        min-height: 120px;
        padding: 35px 0;
        position: relative;
        bottom: 0;
    }
    
    .footer p {
        font-size: 18px;
        line-height: 2;
    }
    
    .footer .container {
        padding: 0 20px;
    }
}

/* Correção adicional para zooms extremos (250%+) */
@media screen and (min-resolution: 2.5dppx) {
    .footer {
        min-height: 150px;
        padding: 40px 0;
    }
    
    .footer p {
        font-size: 20px;
        line-height: 2.2;
    }
}

/* === CORREÇÕES GERAIS === */
header {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

form {
    max-width: 100%;
    box-sizing: border-box;
}

input,
textarea,
select {
    max-width: 100%;
    box-sizing: border-box;
}

button,
.btn {
    max-width: 100%;
    box-sizing: border-box;
}

table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    table-layout: fixed;
}

* {
    box-sizing: border-box;
}

/* Garantir que nada ultrapasse a largura da tela */
body * {
    max-width: 100%;
    word-wrap: break-word;
} 