:root {
  --navy: #0b2a5b;
  --blue: #0d5fc7;
  --blue-light: #1e88e5;
  --cyan: #29d6e0;
  --bg-light: #eaf6fc;
  --white: #ffffff;
  --text: #1a2333;
  --text-muted: #5b7fa6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 91, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(11, 42, 91, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1320px;
  gap: 16px;
}
.logo img { height: 34px; }
.main-nav ul { display: flex; align-items: center; gap: 18px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: color .2s;
}
.main-nav a:hover { color: var(--blue); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn-primary { background: var(--navy); color: var(--white); white-space: nowrap; }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13,95,199,.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 65%, #1aa9c4 100%);
  color: var(--white);
  overflow: hidden;
  padding: 72px 0 100px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy, .hero-art { min-width: 0; width: 100%; }
.hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 18px; overflow-wrap: break-word; }
.hero p.lead { font-size: 18px; color: #d7e8fb; margin-bottom: 32px; max-width: 480px; overflow-wrap: break-word; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 380px; }

.wave-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 90px; display: block; }

/* Destaques */
.destaques {
  background: var(--bg-light);
  padding: 48px 0;
  margin-top: -2px;
}
.destaques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.destaque-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  text-align: left;
}
.destaque-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--blue);
}
.destaque-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.destaque-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Section titles */
.section-title { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title h2 { font-size: 32px; color: var(--navy); font-weight: 800; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* Planos */
.planos { padding: 96px 0; }
.planos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plano-card {
  border: 2px solid #e3edf7;
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.plano-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plano-card.destaque {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.plano-badge {
  position: absolute;
  top: -14px; right: 24px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}
.plano-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.plano-card h3 { font-size: 21px; color: var(--navy); margin-bottom: 6px; }
.plano-card > p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 20px; }
.plano-card ul { margin-bottom: 26px; }
.plano-card ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; margin-bottom: 10px; color: var(--text);
}
.plano-card ul li svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.plano-card .btn { width: 100%; justify-content: center; }

/* CTA banners */
.cta-banner {
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta-banner:last-child { margin-bottom: 0; }
.cta-banner-text { display: flex; align-items: center; gap: 18px; }
.cta-banner-text .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cta-banner h3 { font-size: 19px; margin-bottom: 4px; }
.cta-banner p { margin: 0; color: #cfe1f7; font-size: 14.5px; }
.cta-section { padding: 0 0 96px; }

/* Atendimento */
.atendimento { background: var(--bg-light); padding: 88px 0; }
.atendimento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.atendimento-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ans-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 32px 0 0;
}
.ans-note a { color: var(--blue); text-decoration: underline; }
.canal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.canal-card .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.canal-card.whatsapp .icon { background: #25d366; }
.canal-card.telefone .icon { background: var(--blue); }
.canal-card.email .icon { background: var(--navy); }
.canal-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.canal-card p { color: var(--text-muted); font-size: 14.5px; margin: 0 0 14px; }
.canal-card strong { display: block; font-size: 16px; color: var(--text); }

.endereco-card {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.endereco-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.endereco-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.endereco-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #bfd3ec;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-logo img { height: 38px; margin-bottom: 14px; }
.footer-grid p { font-size: 14px; color: #9fbadd; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom a { color: #cfe1f7; text-decoration: underline; }
.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: #7f9ac0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .destaques-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .atendimento-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1220px) {
  .main-nav { display: none; }
  .area-beneficiario-desktop { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 900px) {
  .hero .container { display: flex; flex-direction: column; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .planos-grid { grid-template-columns: 1fr; }
  .atendimento-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .destaques-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Hero variant for inner pages (no illustration) */
.hero-inner { padding: 56px 0 56px; }
.hero-inner .container { display: block; text-align: center; }
.hero-inner .hero-copy { max-width: 640px; margin: 0 auto; }
.hero-inner .hero-copy p.lead { margin-left: auto; margin-right: auto; }
.hero-inner h1 { font-size: 40px; font-weight: 800; margin-bottom: 14px; }

/* Telas de autenticacao do beneficiario (cadastro/login/area) */
.hero-inner.hero-auth { padding-bottom: 32px; }
.auth-section { padding: 0 0 72px; }
.auth-section .container { max-width: 560px; }
.auth-section .form-alert { margin-bottom: 20px; }
.auth-section .prestadores-busca { padding: 32px; }
.auth-footer-link { margin-top: 20px; text-align: center; }
@media (max-width: 480px) {
  .auth-section .prestadores-busca { padding: 24px 20px; }
}

/* Navegacao da area do beneficiario */
.beneficiario-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid #e3edf7;
}
.beneficiario-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.beneficiario-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--navy); background: var(--bg-light); transition: background .15s, color .15s;
}
.beneficiario-nav a:hover { background: #dcebfa; }
.beneficiario-nav a.ativo { background: var(--navy); color: var(--white); }
.beneficiario-nav svg { flex-shrink: 0; }

/* Botao com icone, qualquer variante de .btn */
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

.secao-titulo { display: flex; align-items: center; gap: 10px; margin: 36px 0 16px; color: var(--navy); }
.estado-vazio { color: var(--text-muted); padding: 10px 0; }

/* Tabela que vira lista de cards no mobile */
.tabela-responsiva { overflow-x: auto; }
@media (max-width: 640px) {
  .tabela-responsiva table, .tabela-responsiva thead, .tabela-responsiva tbody,
  .tabela-responsiva th, .tabela-responsiva td, .tabela-responsiva tr { display: block; }
  .tabela-responsiva thead { display: none; }
  .tabela-responsiva tr {
    background: var(--white); border: 1px solid #e3edf7; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 12px;
  }
  .tabela-responsiva td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 7px 0; border-bottom: 1px dashed #eef3f9; text-align: right;
  }
  .tabela-responsiva td:last-child { border-bottom: none; }
  .tabela-responsiva td::before {
    content: attr(data-label); font-weight: 700; color: var(--navy); text-align: left;
  }
}

/* Informe de rendimento */
.informe-controles {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.informe-controles label { font-weight: 600; color: var(--navy); }
.informe-controles select {
  border: 2px solid #e3edf7; border-radius: 10px; padding: 9px 12px; font-size: 14.5px; font-family: inherit;
}
.informe-doc { background: var(--white); border: 1px solid #e3edf7; border-radius: var(--radius); padding: 28px; }
.informe-total { text-align: right; font-weight: 700; margin-top: 10px; }
@media (max-width: 480px) {
  .informe-controles { justify-content: flex-start; }
  .informe-doc { padding: 20px; }
}
@media print {
  body * { visibility: hidden; }
  .informe-doc, .informe-doc * { visibility: visible; }
  .informe-doc { position: absolute; top: 0; left: 0; width: 100%; border: none; }
}

.aviso-aniversario {
  display: none; align-items: center; gap: 12px;
  background: linear-gradient(120deg, #ffe9c7, #ffd9e8);
  color: #6b3b00; border-radius: var(--radius); padding: 16px 20px;
  font-weight: 600; margin-bottom: 24px;
}
.aviso-aniversario svg { flex-shrink: 0; }

.lgpd-nota { font-size: 13px; color: var(--text-muted); text-align: center; margin: 32px 0 0; }
.lgpd-nota a { color: var(--blue); font-weight: 600; }

/* Lista de dependentes */
.dependente-linha {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--white); border: 1px solid #e3edf7; border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px;
}
.dependente-info { display: flex; flex-direction: column; gap: 2px; }
.dependente-info span { font-size: 13px; color: var(--text-muted); }
.dependente-cartao-wrap { width: 100%; margin: 4px 0 18px; }
.dependente-cartao-wrap .carteirinha { max-width: 420px; margin: 12px auto 0; }
.dependente-cartao-wrap .carteirinha-acoes { text-align: center; margin: 16px 0 0; }

/* Carteirinha digital */
.carteirinha {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 65%, #1aa9c4 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 28px 30px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(11, 42, 91, .25);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}
.carteirinha-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.carteirinha-logo { height: 26px; filter: brightness(0) invert(1); }
.carteirinha-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18);
}
.carteirinha-badge.ativo { background: #1ecb77; color: #06371d; }
.carteirinha h2 { font-size: 20px; margin: 0 0 20px; }
.carteirinha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.carteirinha-grid label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .75; margin-bottom: 2px; }
.carteirinha-grid span { font-size: 14.5px; font-weight: 600; }
.carteirinha-acoes { text-align: center; margin: 20px 0 36px; }

@media print {
  body * { visibility: hidden; }
  .carteirinha, .carteirinha * { visibility: visible; }
  .carteirinha { position: absolute; top: 0; left: 0; width: 100%; margin: 0; box-shadow: none; }
}
.hero-sublink { margin-top: 14px; }
.hero-sublink a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: 14.5px;
  font-weight: 600;
}
.hero-sublink a:hover { text-decoration: underline; }
.hero-sublink svg { flex-shrink: 0; }

/* Planos detalhados (planos.php) */
.planos-detalhe { padding: 90px 0; }
.plano-row {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid #eef3f9;
}
.plano-row:last-child { border-bottom: none; }
.plano-row.reverse { flex-direction: row-reverse; }
.plano-row-icon {
  flex-shrink: 0;
  width: 100px; height: 100px;
  border-radius: 24px;
  background: var(--bg-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.plano-row.destaque .plano-row-icon { background: var(--navy); color: var(--cyan); }
.plano-row-content { flex: 1; min-width: 0; }
.plano-row-content h2 { font-size: 26px; color: var(--navy); margin-bottom: 10px; }
.plano-row-content > p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 20px; max-width: 560px; }
.plano-row-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 26px;
  max-width: 560px;
}
.plano-row-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--text); }
.plano-row-list li svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.plano-badge-inline {
  position: static;
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-size: 12px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .plano-row, .plano-row.reverse { flex-direction: column; text-align: center; }
  .plano-row-list { grid-template-columns: 1fr; margin-left: auto; margin-right: auto; }
  .plano-row-content > p { margin-left: auto; margin-right: auto; }
}

/* Formulario de contato */
.contato-form-section { padding: 20px 0 96px; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
.contato-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row-full { grid-column: 1 / -1; }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 2px solid #e3edf7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-row textarea { resize: vertical; }
.form-consent { display: flex; }
.consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--text-muted);
  cursor: pointer;
}
.consent-label input { margin-top: 3px; flex-shrink: 0; }
.consent-label a { color: var(--blue); text-decoration: underline; }
.contato-form .btn { width: 100%; justify-content: center; }
.form-alert {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  text-align: center;
}
.form-alert-ok { background: #e3f9ec; color: #157347; }
.form-alert-erro { background: #fdecec; color: #b3261e; }

/* Aviso temporário sitewide (ex: manutenção) */
.aviso-manutencao {
  background: #fff6e0;
  color: #8a5a00;
  border-bottom: 2px solid #f0d99a;
  text-align: center;
  padding: 20px 24px;
}
.aviso-manutencao strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
}
.aviso-manutencao p {
  font-size: 16px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .aviso-manutencao strong { font-size: 17px; }
  .aviso-manutencao p { font-size: 14.5px; }
}

.aviso-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 91, .55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.aviso-popup-card {
  position: relative;
  background: #fff;
  border-top: 6px solid #e8a300;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-width: 460px;
  width: 100%;
  padding: 32px 28px 28px;
  text-align: center;
}
.aviso-popup-card strong { display: block; font-size: 19px; color: #8a5a00; margin-bottom: 12px; }
.aviso-popup-card p { font-size: 15px; color: var(--text); line-height: 1.6; margin-bottom: 22px; }
.aviso-popup-fechar {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.aviso-popup-fechar:hover { color: var(--navy); }
@media (max-width: 640px) {
  .contato-form { grid-template-columns: 1fr; }
}

/* Planos atendidos */
.planos-atendidos {
  border: 2px solid #dbe7f4;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin: 28px 0 0;
  background: var(--bg-light);
}
.planos-atendidos summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  list-style: none;
}
.planos-atendidos summary::-webkit-details-marker { display: none; }
.planos-atendidos summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--blue);
  transition: transform .15s;
}
.planos-atendidos[open] summary::before { transform: rotate(90deg); }
.planos-atendidos-grupos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.planos-atendidos-grupo h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); margin-bottom: 10px; }
.planos-atendidos-grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.planos-atendidos-grupo li { font-size: 13.5px; color: var(--text); line-height: 1.4; }
.planos-atendidos-grupo li span { color: var(--text-muted); font-size: 12px; }
@media (max-width: 800px) {
  .planos-atendidos-grupos { grid-template-columns: 1fr; }
}

/* Busca de prestadores */
.prestadores-busca {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
}
.prestadores-busca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.prestadores-busca select {
  width: 100%;
  border: 2px solid #dbe7f4;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}
.prestadores-total { font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.prestador-card {
  border: 2px solid #eef3f9;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
}
.prestador-empresa { font-size: 13.5px; color: var(--text-muted); margin: 0 0 4px; }
.prestador-nome { font-weight: 700; color: var(--blue); font-size: 16px; margin: 0 0 6px; }
.prestador-doc { color: #b3261e; font-weight: 600; font-size: 14px; }
.prestador-selo { color: #b8860b; font-size: 13px; font-weight: 700; margin-left: 8px; }
.prestador-especialidade { font-weight: 600; color: var(--navy); font-size: 14.5px; margin: 0 0 12px; }
.prestador-info { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--text); line-height: 1.7; }
.prestador-tipo { color: var(--text-muted); font-size: 13.5px; }
.prestador-emergencia { color: #b3261e; font-weight: 700; }
.prestador-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 12.5px;
  background: var(--bg-light);
  border: 1px solid #d7ecf9;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  margin-top: 6px;
  transition: background .15s, border-color .15s;
}
.prestador-maps-link:hover { background: #dcf0fb; border-color: var(--blue); }
.prestador-maps-link svg { flex-shrink: 0; }

/* Substituicao de prestadores */
.substituicao-card {
  border: 2px solid #eef3f9;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 24px;
}
.substituicao-datas {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef3f9;
}
.substituicao-datas strong { color: #b3261e; }
.substituicao-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.substituicao-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 8px; }
.substituicao-saida h3 { color: #b3261e; }
.substituicao-entrada h3 { color: #157347; }
.substituicao-endereco { font-size: 13px; color: var(--text); line-height: 1.6; margin-top: 8px; }
@media (max-width: 700px) {
  .substituicao-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .prestadores-busca-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .prestadores-busca-grid { grid-template-columns: 1fr; }
}

/* Legal pages (Política de Privacidade, IDSS) */
.legal-page { padding: 56px 0 96px; }
.legal-page h1 { font-size: 34px; color: var(--navy); font-weight: 800; margin-bottom: 18px; }
.legal-content { max-width: 820px; }
.legal-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.legal-content h2 { font-size: 20px; color: var(--navy); margin: 36px 0 12px; }
.legal-content p { font-size: 15px; color: var(--text); margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.legal-content ul li { font-size: 15px; margin-bottom: 8px; }
.legal-lead { font-size: 16px; color: var(--text-muted); max-width: 780px; margin-bottom: 32px; }
.idss-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.idss-badge { max-width: 420px; }

.idss-filtro {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.idss-filtro label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.idss-filtro-row { display: flex; gap: 12px; flex-wrap: wrap; }
.idss-filtro-row select {
  flex: 1;
  min-width: 240px;
  border: 2px solid #dbe7f4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}
.idss-resultado {
  border: 2px solid #eef3f9;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.idss-resultado-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.idss-resultado-head h3 { font-size: 19px; color: var(--navy); }
.idss-resultado-head h3 span { font-weight: 400; color: var(--text-muted); font-size: 15px; }
.idss-badge-img { max-width: 480px; border-radius: 10px; }
.idss-sem-selo { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.idss-resultado-numero { font-size: 16px; color: var(--text); margin: 0; }
.idss-resultado-numero strong { color: var(--blue); font-size: 20px; }

/* Gauges de indicadores IDSS */
.idss-gauge-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f4f9;
}
.idss-gauge-row:last-child { border-bottom: none; }
.idss-gauge-label { width: 230px; flex-shrink: 0; }
.idss-gauge-label strong { display: block; font-size: 14px; color: var(--navy); }
.idss-gauge-label span { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.3; margin-top: 2px; }
.idss-gauge-bar-wrap { flex: 1; min-width: 0; }
.idss-gauge-bar {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #e63946, #f4a300, #f9dc5c, #b7dd29, #2fa84f);
}
.idss-gauge-marker {
  position: absolute;
  top: -5px;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--navy);
  transform: translateX(-50%);
}
.idss-gauge-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.idss-gauge-value { width: 64px; flex-shrink: 0; text-align: right; font-weight: 700; color: var(--navy); font-size: 14.5px; }

.idss-gauge-row-grande { padding: 0 0 20px; border-bottom: 2px solid #eef3f9; margin-bottom: 8px; }
.idss-gauge-row-grande .idss-gauge-label strong { font-size: 17px; }
.idss-gauge-row-grande .idss-gauge-bar { height: 18px; border-radius: 9px; }
.idss-gauge-row-grande .idss-gauge-marker { top: -6px; border-top-width: 12px; border-left-width: 7px; border-right-width: 7px; }
.idss-gauge-row-grande .idss-gauge-value { font-size: 19px; width: 76px; }

.idss-dimensoes { margin-top: 4px; }

/* Abas de ano */
.idss-abas { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.idss-aba {
  border: 2px solid #dbe7f4;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.idss-aba:hover { border-color: var(--blue); }
.idss-aba.ativa { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Tabela de dados da operadora */
.idss-dados-titulo { font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.idss-dados-tabela { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 14px; }
.idss-dados-tabela td { padding: 9px 14px; border: 1px solid #eef3f9; }
.idss-dados-tabela td:first-child { background: var(--bg-light); font-weight: 600; color: var(--navy); width: 260px; }
.idss-dados-tabela td:last-child { color: var(--text); }

/* Legenda de cores */
.idss-legenda { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eef3f9; text-align: center; }
.idss-legenda > span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.idss-legenda-barra { display: flex; justify-content: space-between; max-width: 320px; margin: 0 auto; font-size: 11px; color: var(--text-muted); }
.idss-legenda-cores { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 4px; }
.idss-legenda-cores span { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.idss-legenda-gradiente {
  width: 220px; height: 10px; border-radius: 5px;
  background: linear-gradient(to right, #e63946, #f4a300, #f9dc5c, #b7dd29, #2fa84f);
}
@media (max-width: 640px) {
  .idss-dados-tabela td:first-child { width: 45%; }
}

@media (max-width: 640px) {
  .idss-gauge-row { flex-wrap: wrap; }
  .idss-gauge-label { width: 100%; }
  .idss-gauge-value { width: auto; margin-left: auto; }
}
@media (max-width: 640px) {
  .idss-filtro-row { flex-direction: column; }
  .idss-filtro-row .btn { width: 100%; justify-content: center; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: -220px;
  z-index: 200;
  background: var(--navy);
  color: #dfe9f7;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
  transition: bottom .3s ease;
  padding: 22px 24px;
}
.cookie-banner.visible { bottom: 0; }
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 14px; max-width: 640px; }
.cookie-banner a { color: var(--cyan); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner .btn-outline-navy { border-color: rgba(255,255,255,.6); color: var(--white); }
.cookie-banner .btn-outline-navy:hover { background: rgba(255,255,255,.12); color: var(--white); }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions .btn { width: 100%; justify-content: center; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 12px 24px 20px;
  box-shadow: 0 12px 20px rgba(11,42,91,.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid #eef3f9; }
.mobile-nav .btn { margin-top: 12px; }
