:root {
  --ampec-azul: #0b3a6e;
  --ampec-azul-2: #14559c;
  --ampec-verde: #1f9d55;
  --ampec-fundo: #f4f6fa;
  --bs-primary: #14559c;
  --bs-primary-rgb: 20, 85, 156;
  --bs-link-color: #14559c;
  --bs-link-color-rgb: 20, 85, 156;
}
body { background: var(--ampec-fundo); font-size: .95rem; }
.btn-primary { --bs-btn-bg: #14559c; --bs-btn-border-color: #14559c; --bs-btn-hover-bg: #0b3a6e; --bs-btn-hover-border-color: #0b3a6e; --bs-btn-active-bg: #0b3a6e; }
.btn-outline-primary { --bs-btn-color: #14559c; --bs-btn-border-color: #14559c; --bs-btn-hover-bg: #14559c; --bs-btn-hover-border-color: #14559c; }
.btn-success { --bs-btn-bg: #1f9d55; --bs-btn-border-color: #1f9d55; }

/* layout gestão */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; background: var(--ampec-azul); color: #cfe0f5; }
.sidebar .marca { padding: 1.1rem 1.25rem; font-weight: 700; color: #fff; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar .marca small { display: block; font-weight: 400; font-size: .72rem; color: #9fbbe0; }
.sidebar .secao { text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; color: #86a6d1; padding: 1rem 1.25rem .35rem; }
.sidebar a { display: flex; align-items: center; gap: .6rem; color: #dbe7f7; text-decoration: none; padding: .45rem 1.25rem; border-left: 3px solid transparent; }
.sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.ativo { background: rgba(255,255,255,.1); color: #fff; border-left-color: #5fd08f; }
.sidebar .badge { margin-left: auto; }
.conteudo { flex: 1; min-width: 0; }
.topo { background: #fff; border-bottom: 1px solid #e3e8ef; padding: .65rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.pagina { padding: 1.5rem; }
@media (max-width: 991px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
  .sidebar.aberta { transform: none; }
  .pagina { padding: 1rem; }
}

.card { border: 1px solid #e3e8ef; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; }
.kpi .rotulo { font-size: .78rem; color: #6b7a90; text-transform: uppercase; letter-spacing: .04em; }
.kpi .valor { font-size: 1.45rem; font-weight: 700; color: #1c2b3f; }
.kpi .icone { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.25rem; }
.table > :not(caption) > * > * { padding: .55rem .6rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7a90; font-weight: 600; background: #f8fafc; }
.text-pequeno { font-size: .82rem; }
.pix-code { font-family: ui-monospace, monospace; font-size: .78rem; word-break: break-all; background: #f8fafc; border: 1px dashed #b9c6d8; border-radius: 6px; padding: .6rem; }
.qr { max-width: 260px; width: 100%; image-rendering: pixelated; }

/* site público */
.hero { background: linear-gradient(135deg, var(--ampec-azul) 0%, var(--ampec-azul-2) 60%, #1a7d8c 100%); color: #fff; }
.hero h1 { font-weight: 800; }
.beneficio i { font-size: 1.8rem; color: var(--ampec-verde); }

/* agenda */
.agenda td { vertical-align: top; min-width: 120px; height: 70px; }
.agenda .res { display: block; font-size: .75rem; border-radius: 5px; padding: 2px 5px; margin-bottom: 3px; text-decoration: none; }
.agenda .res.confirmada { background: #d9f2e3; color: #0f5132; }
.agenda .res.solicitada { background: #fff1cc; color: #664d03; }
.agenda .res.concluida { background: #e2e3e5; color: #41464b; }
.agenda .hoje { background: #eef5ff; }

.etapas { display: flex; gap: .5rem; flex-wrap: wrap; }
.etapas .etapa { flex: 1; min-width: 140px; padding: .6rem .8rem; border-radius: 8px; background: #eef1f5; color: #6b7a90; font-size: .85rem; }
.etapas .etapa.feita { background: #d9f2e3; color: #0f5132; }
.etapas .etapa.atual { background: #dbe9fb; color: #0b3a6e; font-weight: 600; }

@media print {
  .sidebar, .topo, .no-print, .navbar { display: none !important; }
  body { background: #fff; }
  .pagina { padding: 0; }
  .card { border: 0; box-shadow: none; }
}

/* faixa "Afiliado ao sistema" */
.afiliacoes { background: #fff; border-top: 1px solid #e3e8ef; padding: 1.6rem 0 1.4rem; margin-top: 2rem; }
.afiliacoes-titulo { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: #6b7a90; font-weight: 600; margin-bottom: .9rem; }
.afiliacoes img { max-width: 42vw; object-fit: contain; }

/* ---------------- site público ---------------- */
.topo-contato { background: var(--ampec-azul); color: #c9d8ee; font-size: .82rem; padding: .35rem 0; }
.topo-contato a { color: #c9d8ee; text-decoration: none; }
.topo-contato a:hover { color: #fff; }
.site-nav { box-shadow: 0 2px 10px rgba(11,58,110,.08); }
.site-nav .marca-nome { color: var(--ampec-azul); font-size: 1.2rem; }
.site-links .nav-link { color: #26364d; font-weight: 500; white-space: nowrap; font-size: .95rem; padding-left: .55rem !important; padding-right: .55rem !important; }
.site-links .nav-link.active, .site-links .nav-link:hover { color: var(--ampec-azul-2); }
.site-links .nav-link.active { box-shadow: inset 0 -3px 0 var(--ampec-verde); }
.btn-associe { background: linear-gradient(135deg, #1f9d55, #17b36a); color: #fff; font-weight: 700; border: 0; padding: .55rem 1.1rem;
  border-radius: 2rem; box-shadow: 0 4px 14px rgba(31,157,85,.35); animation: pulsar 2.4s infinite; }
.btn-associe:hover { color: #fff; filter: brightness(1.06); }
@keyframes pulsar { 0%,100% { box-shadow: 0 0 0 0 rgba(31,157,85,.45); } 50% { box-shadow: 0 0 0 9px rgba(31,157,85,0); } }
@media (prefers-reduced-motion: reduce) { .btn-associe { animation: none; } }
.btn-portal { background: var(--ampec-azul); color: #fff; font-weight: 600; border-radius: 2rem; padding: .5rem 1.05rem; }
.btn-portal:hover { background: var(--ampec-azul-2); color: #fff; }
.btn-gestao { border: 1px solid #c4cfdd; color: #51627a; border-radius: 2rem; padding: .4rem .85rem; font-size: .88rem; }
.btn-gestao:hover { background: #eef2f7; color: #26364d; }
.site-rodape { background: #0a2f5a; color: #b9cbe4; padding: 2.6rem 0 1rem; }
.site-rodape a { color: #dbe7f7; text-decoration: none; display: block; margin-bottom: .3rem; font-size: .9rem; }
.site-rodape .d-flex a { display: inline; margin: 0; }
.site-rodape a:hover { color: #fff; }
.rodape-titulo { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; margin-bottom: .7rem; }
.rodape-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .8rem; text-align: center; }
.afiliacoes { margin-top: 0; }
/* home */
.home-hero { position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, rgba(8,40,82,.94) 0%, rgba(20,85,156,.86) 55%, rgba(26,125,140,.82) 100%), var(--hero-img, none) center/cover no-repeat; }
.home-hero h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; }
.home-hero .lead { opacity: .9; }
.home-hero .btn-associe { font-size: 1.15rem; padding: .8rem 1.6rem; }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 1rem; backdrop-filter: blur(4px); }
.secao { padding: 4rem 0; }
.secao-alt { background: #fff; }
.secao-titulo { font-weight: 800; color: #1c2b3f; letter-spacing: -.01em; }
.secao-sub { color: #6b7a90; max-width: 680px; margin: 0 auto; }
.olho { color: var(--ampec-verde); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.numero-grande { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; }
.faixa-numeros { background: var(--ampec-azul); color: #c9d8ee; }
.beneficio-card { border: 0; border-radius: 1rem; box-shadow: 0 4px 18px rgba(16,24,40,.06); transition: transform .15s; }
.beneficio-card:hover { transform: translateY(-3px); }
.beneficio-card .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: #e8f4ee; color: var(--ampec-verde); }
.noticia-card img { height: 190px; object-fit: cover; }
.noticia-sem-img { height: 190px; background: linear-gradient(135deg, #e9f0fa, #e6f4ec); display: grid; place-items: center; color: #14559c; font-size: 2.4rem; }
.plano { border-radius: 1rem; border: 1px solid #e3e8ef; background: #fff; }
.plano.destaque { border: 2px solid var(--ampec-verde); box-shadow: 0 8px 26px rgba(31,157,85,.15); }
.texto-rico p { line-height: 1.75; }
.texto-rico ul { line-height: 1.75; }

.site-nav .btn { white-space: nowrap; }
.site-nav .acoes { flex-wrap: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-nav .marca-nome { display: none; }
  .site-links .nav-link { font-size: .9rem; padding-left: .45rem !important; padding-right: .45rem !important; }
  .btn-gestao .txt { display: none; }
}
@media (max-width: 1199.98px) { .site-nav .acoes { flex-wrap: wrap; } }


/* alerta de reservas pendentes no painel de gestão */
.alerta-reserva { background: linear-gradient(135deg, #d9480f, #e8590c 55%, #f08c00); color: #fff; border-radius: 14px; padding: 1.1rem 1.25rem;
  animation: alerta-pulso 1.4s ease-in-out infinite; }
.alerta-reserva .list-group-item { border-color: #f1f3f5; }
.alerta-icone { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.6rem;
  animation: alerta-sino 1.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes alerta-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,89,12,.55); } 50% { box-shadow: 0 0 0 12px rgba(232,89,12,0); filter: brightness(1.08); } }
@keyframes alerta-sino { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-6deg); } }
.pisca-badge { animation: pisca 1s steps(2, start) infinite; }
@keyframes pisca { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .alerta-reserva, .alerta-icone, .pisca-badge { animation: none; } }
