/* Construtor — estilos base das páginas */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cb-body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.65; color: #3a3a4a; -webkit-font-smoothing: antialiased; }
.cb-pagina { min-height: 100vh; overflow-x: clip; }
.cb-pagina img { max-width: 100%; height: auto; }
.cb-pagina :where(a) { color: #6d28d9; }

/* Container */
.cb-container { position: relative; display: flex; flex-direction: column; padding: 10px; }
.cb-container-inner { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1 0 auto; gap: 20px; width: 100%; max-width: none; margin: 0 auto; }
.cb-w { position: relative; min-width: 0; }

/* Título */
.cb-titulo { margin: 0; line-height: 1.2; font-weight: 700; color: #1e1b2e; }
h1.cb-titulo { font-size: 2.75em; }
h2.cb-titulo { font-size: 2.1em; }
h3.cb-titulo { font-size: 1.55em; }
h4.cb-titulo { font-size: 1.3em; }
h5.cb-titulo { font-size: 1.1em; }
h6.cb-titulo { font-size: 1em; }
.cb-titulo a { color: inherit; text-decoration: none; }

/* Texto */
.cb-texto > :first-child { margin-top: 0; }
.cb-texto > :last-child { margin-bottom: 0; }
.cb-texto p { margin: 0 0 1em; }

/* Imagem */
.cb-w-imagem { text-align: center; line-height: 0; }
.cb-imagem { margin: 0; }
.cb-imagem img { display: inline-block; vertical-align: middle; transition: opacity .3s; }
.cb-imagem figcaption { line-height: 1.5; margin-top: 8px; font-size: 14px; color: #777; }

/* Botão */
.cb-botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #6d28d9; color: #fff; border: 0 solid transparent; border-radius: 6px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: all .25s ease; }
.cb-botao:hover { background: #5b21b6; }
.cb-botao-sm { padding: 10px 20px; font-size: 14px; }
.cb-botao-md { padding: 13px 28px; font-size: 16px; }
.cb-botao-lg { padding: 17px 36px; font-size: 18px; }
.cb-botao-xl { padding: 21px 46px; font-size: 21px; }
.cb-botao-icone { display: inline-flex; width: 1.1em; height: 1.1em; }
.cb-botao-icone svg { width: 100%; height: 100%; fill: currentColor; }
.cb-efeito-subir:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.cb-efeito-crescer:hover { transform: scale(1.06); }
.cb-efeito-pulsar { animation: cbPulsar 1.8s ease-in-out infinite; }
@keyframes cbPulsar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* Espaçador e divisória */
.cb-espacador { height: 50px; }
.cb-divisoria { display: flex; padding: 15px 0; }
.cb-divisoria span { display: block; width: 100%; border-top: 2px solid #d4d4dc; }

/* Vídeo */
.cb-video { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.cb-video iframe, .cb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.cb-video-vazio { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 14px; padding: 20px; text-align: center; }

/* Lista de ícones */
.cb-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cb-lista li { display: flex; align-items: center; gap: 12px; }
.cb-lista-icone { flex: none; display: inline-flex; width: 20px; height: 20px; color: #6d28d9; }
.cb-lista-icone svg { width: 100%; height: 100%; fill: currentColor; }
.cb-lista-texto a { color: inherit; text-decoration: none; }

/* Animações de entrada */
[data-cb-anim] { opacity: 0; }
[data-cb-anim].cb-animado { opacity: 1; animation-duration: .8s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
.cb-animado[data-cb-anim=fadeIn] { animation-name: cbFadeIn; }
.cb-animado[data-cb-anim=fadeInUp] { animation-name: cbFadeInUp; }
.cb-animado[data-cb-anim=fadeInDown] { animation-name: cbFadeInDown; }
.cb-animado[data-cb-anim=fadeInLeft] { animation-name: cbFadeInLeft; }
.cb-animado[data-cb-anim=fadeInRight] { animation-name: cbFadeInRight; }
.cb-animado[data-cb-anim=zoomIn] { animation-name: cbZoomIn; }
.cb-animado[data-cb-anim=bounceIn] { animation-name: cbBounceIn; }
@keyframes cbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cbFadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes cbFadeInDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes cbFadeInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: none; } }
@keyframes cbFadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }
@keyframes cbZoomIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes cbBounceIn { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.05); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    [data-cb-anim] { opacity: 1 !important; animation: none !important; }
}

/* Barra do administrador no site */
.cb-barra-admin { position: fixed; top: 0; left: 0; right: 0; z-index: 99999; display: flex; gap: 4px; align-items: center; height: 32px; padding: 0 10px; background: #1d2327; font: 13px/32px -apple-system, "Segoe UI", sans-serif; }
.cb-barra-admin a { color: #f0f0f1 !important; text-decoration: none; padding: 0 10px; }
.cb-barra-admin a:hover { background: #2c3338; color: #72aee6 !important; }
.cb-barra-admin .cb-rascunho { margin-left: auto; color: #f0c33c; padding: 0 10px; }
body.cb-com-barra { padding-top: 32px; }
