/* ==========================================================================
   CLIMA DE ALERTA E URGÊNCIA (BACKGROUNDS)
   ========================================================================== */
.bg-glow-alerta-1, .bg-glow-alerta-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    animation: pulsarAlerta 4s infinite alternate;
}
.bg-glow-alerta-1 { width: 450px; height: 450px; background: #8b0000; top: -150px; left: -100px; }
.bg-glow-alerta-2 { width: 350px; height: 350px; background: #4a0000; bottom: -50px; right: -50px; }

@keyframes pulsarAlerta {
    0% { opacity: 0.2; transform: scale(0.9); }
    100% { opacity: 0.5; transform: scale(1.1); }
}

/* ==========================================================================
   HERO SECTION (A PRIMEIRA DOBRA)
   ========================================================================== */
.hero-urgencia {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: clamp(3rem, 6vw, 5rem) 5%;
    position: relative;
    z-index: 2;
}

.hero-urgencia-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Badge de Plantão */
.badge-plantao {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(209, 26, 42, 0.1);
    border: 1px solid rgba(209, 26, 42, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #ff4d4d;
    text-transform: uppercase;
}

.ponto-pulsante-vermelho {
    width: 10px; height: 10px; background: #ff0000; border-radius: 50%;
    box-shadow: 0 0 12px #ff0000; animation: pulsarRapido 1s infinite alternate;
}
@keyframes pulsarRapido {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 25px #ff0000; }
}

.titulo-display-urgencia {
    font-size: clamp(2.8rem, 7vw, 5rem); 
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.subtitulo-urgencia {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #c0c0c0;
    max-width: 90%;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}
.subtitulo-urgencia strong { color: #fff; font-weight: 700; }

/* Botão Alerta Máximo */
.btn-alerta-maximo {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: #d11a2a;
    color: #fff;
    border: 2px solid #ff4d4d;
    padding: clamp(14px, 3vw, 18px) clamp(24px, 5vw, 36px);
    border-radius: 8px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-family: var(--fonte-principal);
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(209, 26, 42, 0.4);
    width: clamp(250px, 100%, 400px);
}
.btn-alerta-maximo:hover {
    background: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.6);
}
.icone-urgencia { animation: balancar 2s infinite; }
@keyframes balancar {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Indicadores de Confiança (Gatilhos) */
.trust-indicators {
    display: flex; gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.5rem; flex-wrap: wrap;
}
.trust-item {
    display: flex; align-items: center; gap: 6px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem); color: #a0a0a0; font-weight: 700;
}
.trust-item svg { color: #d11a2a; }

/* Imagem Hero */
.hero-imagem-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.moldura-glass-urgencia {
    position: relative; padding: 10px;
    background: rgba(20, 0, 0, 0.4); backdrop-filter: blur(15px);
    border-radius: 16px; border: 1px solid rgba(255, 50, 50, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    width: 100%;
    max-width: 480px; /* Trava o tamanho máximo da imagem no PC */
    margin: 0 auto;
}

/* Esta é a classe que faltava para domar a imagem */
.foto-perfil-vanguarda {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    filter: contrast(1.1) brightness(0.9);
}

.borda-animada-alerta {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px; border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255,0,0,0.8), transparent, rgba(255,0,0,0.2)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out; mask-composite: exclude;
    pointer-events: none;
}

/* ==========================================================================
   FRENTES DE COMBATE (CARDS DE SERVIÇO)
   ========================================================================== */
.frentes-combate { padding: clamp(4rem, 8vw, 6rem) 5%; position: relative; z-index: 2; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.05); }
.cabecalho-secao-menor { text-align: center; margin-bottom: clamp(3rem, 6vw, 4rem); }
.titulo-secao-menor { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 900; margin-bottom: 0.5rem; }
.desc-secao { color: #a0a0a0; font-size: clamp(1rem, 2vw, 1.1rem); }

.grid-cards-frentes {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto;
}

.card-glass-frente {
    background: rgba(15, 15, 15, 0.8); border: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(2rem, 4vw, 2.5rem); border-radius: 12px; transition: transform 0.3s, border-color 0.3s;
}
.card-glass-frente:hover { transform: translateY(-5px); border-color: rgba(209, 26, 42, 0.3); }
.destaque-vermelho { border-color: rgba(209, 26, 42, 0.4); background: rgba(30, 5, 5, 0.6); }

.frente-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.frente-icone {
    background: rgba(209, 26, 42, 0.1); color: #ff4d4d; padding: 12px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; border: 1px solid rgba(209, 26, 42, 0.2);
}
.card-glass-frente h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); font-weight: 700; }
.frente-desc { color: #c0c0c0; font-size: clamp(0.9rem, 2vw, 1rem); line-height: 1.6; }

/* ==========================================================================
   MODAL INJETADO VIA JS (ESTILOS)
   ========================================================================== */
.modal-oculto { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }
.modal-visivel { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-conteudo-urgencia {
    background: #0a0a0a; border: 1px solid #d11a2a; padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 12px; width: 100%; max-width: 450px; text-align: center; box-shadow: 0 20px 50px rgba(209, 26, 42, 0.3);
}
.modal-conteudo-urgencia h3 { color: #ff4d4d; font-size: 1.5rem; margin-bottom: 1rem; font-weight: 900; }
.modal-conteudo-urgencia p { color: #d0d0d0; margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.5; }
.modal-botoes { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-voltar, .btn-avancar { flex: 1 1 100%; padding: 14px; border-radius: 6px; font-family: inherit; font-weight: bold; cursor: pointer; border: none; font-size: 1rem; }
.btn-voltar { background: transparent; color: #a0a0a0; border: 1px solid #333; }
.btn-avancar { background: #d11a2a; color: #fff; }

/* ==========================================================================
   RESPONSIVIDADE EXTRA (MOBILE E TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-urgencia-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 3rem; 
    }
    
    .hero-texto-wrapper { order: 1; }
    
    .hero-imagem-wrapper { 
        order: 2; 
        margin-top: 1rem; 
    }
    
    .moldura-glass-urgencia {
        max-width: 350px; /* Reduz a imagem em celulares */
    }

    .badge-plantao, .trust-indicators { 
        justify-content: center; 
    }
    
    .btn-alerta-maximo { 
        margin: 0 auto; 
        width: 100%; /* Força o botão a ocupar a tela no mobile */
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .titulo-display-urgencia {
        font-size: clamp(2.2rem, 8vw, 2.8rem); /* Ajuste fino para telas mínimas */
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}