/* Estilos próprios do site da MCA (o resto vem do Tailwind) */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
h1, h2, h3, .font-titulo { font-family: Montserrat, 'Segoe UI', Arial, sans-serif; }

.texto-marca {
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.botao-marca {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: .9rem; font-weight: 700; color: #fff;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    box-shadow: 0 10px 25px -10px rgba(239, 68, 68, .55);
    transition: filter .2s, transform .2s;
}
.botao-marca:hover { filter: brightness(1.07); transform: translateY(-1px); }
.botao-contorno {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: .9rem; font-weight: 700; color: #fff;
    border: 1px solid rgba(255, 255, 255, .22); transition: background .2s;
}
.botao-contorno:hover { background: rgba(255, 255, 255, .07); }
/* Contorno para fundo claro (cartões dos planos) */
.botao-claro {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: .9rem; font-weight: 700; color: #15161A;
    border: 1px solid #cbd5e1; background: #fff; transition: border-color .2s, background .2s;
}
.botao-claro:hover { border-color: #15161A; background: #f8fafc; }

/* Fundo escuro com a malha de hexágonos da marca */
.fundo-hexagonos {
    background-color: #0D0E10;
    background-image:
        radial-gradient(ellipse at 85% 10%, rgba(239, 68, 68, .18), transparent 50%),
        radial-gradient(ellipse at 10% 90%, rgba(245, 158, 11, .14), transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 2 L54 17 V47 L28 62 L2 47 V17 Z M28 62 V96' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* Ícone dentro de hexágono */
.icone-hexagono {
    width: 3.25rem; height: 3.25rem; display: inline-flex; align-items: center; justify-content: center;
    clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: linear-gradient(135deg, #F59E0B, #EF4444); color: #fff; font-size: 1.2rem;
}

/* Moldura de navegador para os prints do portfólio */
.moldura-tela { border-radius: 1rem; overflow: hidden; background: #1E2026; box-shadow: 0 25px 50px -20px rgba(0, 0, 0, .45); }
.moldura-tela::before {
    content: ''; display: block; height: 1.6rem;
    background:
        radial-gradient(circle at .9rem 50%, #EF4444 .28rem, transparent .3rem),
        radial-gradient(circle at 1.8rem 50%, #F59E0B .28rem, transparent .3rem),
        radial-gradient(circle at 2.7rem 50%, #22C55E .28rem, transparent .3rem),
        #2A2D35;
}
.moldura-tela img { display: block; width: 100%; height: auto; }

/* Atendente no WhatsApp (modelo padrão dos sites): flutua, o anel pulsa e o balão aparece depois de alguns segundos */
.atendimento-botao { animation: atendimento-flutuar 3.2s ease-in-out infinite; }
.atendimento-botao:hover { animation-play-state: paused; }
.atendimento-botao img { transition: transform .2s ease; }
.atendimento-botao:hover img { transform: scale(1.06); }
.atendimento-anel { animation: atendimento-pulso 2s ease-out infinite; }
.atendimento-balao { opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.atendimento-balao.visivel { opacity: 1; transform: none; pointer-events: auto; }
.atendimento-balao.visivel.perto-rodape { opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; }
@keyframes atendimento-flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes atendimento-pulso { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .atendimento-botao, .atendimento-anel { animation: none; }
    .atendimento-balao { transition: none; }
}

/* Perguntas frequentes */
.portfolio-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.portfolio-track > article { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.portfolio-track .revelar { opacity: 1; transform: none; }
.portfolio-controls { align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; font-size: .875rem; }
.portfolio-controls:not([hidden]), .portfolio-actions { display: flex; }
.portfolio-actions { gap: .5rem; flex-wrap: wrap; }
.portfolio-actions button { min-width: 44px; min-height: 44px; padding: .5rem .875rem; border: 1px solid #CBD5E1; border-radius: .75rem; background: white; color: #15161A; font-weight: 700; }
.portfolio-actions button:hover { border-color: #EF4444; color: #B91C1C; }
.portfolio-actions button:focus-visible, .portfolio-track:focus-visible { outline: 3px solid #F59E0B; outline-offset: 3px; }
@media (min-width: 768px) { .portfolio-track > article { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 480px) { .portfolio-controls { align-items: flex-start; flex-direction: column; } }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] .seta-pergunta { transform: rotate(180deg); }

/* Aparecer ao rolar (só quem não pediu menos movimento) */
@media (prefers-reduced-motion: no-preference) {
    .revelar { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    .revelar.visivel { opacity: 1; transform: none; }
}
