/* ==========================================================================
   candidatosdobolsonaro.com.br - Design System & Styles
   Inspirado Fielmente no Modelo Santinho/Colinha Eleitoral Oficial
   (Fundo Branco Clean, Faixa Curva Azul/Amarela, Caixas de Dígitos Azuis e Emblema Vote Certo)
   ========================================================================== */

:root {
  /* Cores Oficiais do Modelo de Referência */
  --blue-royal: #0066cc;
  --blue-dark: #004d99;
  --blue-light: #0077ee;
  --yellow-swoop: #ffb700;
  --yellow-gold: #ffc72c;
  --green-patriota: #00a859;
  --green-dark: #00875a;
  
  /* Paleta Clean e Lixeira */
  --bg-page: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  
  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-digital: 'Outfit', 'Inter', sans-serif;
  
  /* Cores de Texto */
  --text-primary: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-blue: #0066cc;
  --text-white: #ffffff;
  
  /* Sombras e Elevação */
  --shadow-xs: 0 1px 3px rgba(0, 50, 100, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 50, 100, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(0, 50, 100, 0.1);
  --shadow-card: 0 16px 40px -8px rgba(0, 60, 140, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Geral */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 102, 204, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(0, 168, 89, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(255, 183, 0, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Faixa Patriótica Superior */
.patriotic-ribbon {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #00a859 0%, #ffb700 50%, #0066cc 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Header Limpo e Moderno */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 4px;
  z-index: 999;
  box-shadow: var(--shadow-xs);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-royal), #004d99);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--yellow-gold);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
  flex-shrink: 0;
}

.brand-emblem svg {
  width: 20px;
  height: 20px;
  fill: var(--yellow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-royal);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-title span {
  color: #d97706;
}

.brand-domain {
  font-size: 0.72rem;
  color: var(--green-patriota);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-eleicoes {
  background: rgba(0, 168, 89, 0.08);
  border: 1px solid rgba(0, 168, 89, 0.3);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  background-color: var(--green-patriota);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 168, 89, 0.6); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 168, 89, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 168, 89, 0); }
}

/* Wrapper Principal */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
  width: 100%;
  flex: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 0.5rem 0 1.5rem 0;
  max-width: 760px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: #fefce8;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--blue-royal);
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight-yellow {
  color: #d97706;
}

.hero-title .highlight-green {
  color: var(--green-patriota);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Card de Seleção e Filtros */
.selection-control-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.select-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.select-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-royal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.select-arrow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--blue-royal);
  width: 18px;
  height: 18px;
}

/* Filtros por Região */
.region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
}

.region-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.region-btn:hover {
  background: #ffffff;
  color: var(--blue-royal);
  border-color: var(--border-strong);
}

.region-btn.active {
  background: var(--blue-royal);
  border-color: var(--blue-royal);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25);
}

/* Layout Mobile First: A Colinha vem primeiro no celular para o eleitor! */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}

.colinha-column {
  order: 1; /* 1º Lugar no Celular */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
}

.map-column {
  order: 2; /* 2º Lugar no Celular (abaixo da colinha) */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 2.45rem;
  }
  .content-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
    align-items: start;
  }
  .map-column {
    order: 1;
  }
  .colinha-column {
    order: 2;
  }
}

/* Coluna do Mapa */
.map-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.map-header-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-royal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-header-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.map-container {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.brazil-map {
  width: 100%;
  max-height: 540px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 102, 204, 0.08));
}

/* Estados no SVG */
.state-path {
  fill: #e2e8f0;
  stroke: #ffffff;
  stroke-width: 1.2;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.state-path:hover {
  fill: var(--blue-royal);
  stroke: var(--yellow-swoop);
  stroke-width: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 102, 204, 0.3));
}

.state-path.active-state {
  fill: var(--green-patriota);
  stroke: var(--yellow-swoop);
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 10px rgba(0, 168, 89, 0.4));
  animation: pulse-selected 2s infinite ease-in-out;
}

@keyframes pulse-selected {
  0%, 100% { fill: #00a859; }
  50% { fill: #00875a; }
}

/* Tooltip do Mapa */
.map-tooltip {
  position: fixed;
  background: var(--blue-royal);
  border: 1.5px solid var(--yellow-swoop);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 2000;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.25);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.map-tooltip strong {
  color: #ffffff;
  font-size: 0.88rem;
}

.map-tooltip span {
  color: var(--yellow-swoop);
  font-size: 0.72rem;
  font-weight: 600;
}

.map-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

/* Coluna Direita: Colinha e Botões */
.colinha-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
}

/* ==========================================================================
   SELETOR DE MODO DE VISUALIZAÇÃO (FRENTE, VERSO E DUPLO)
   ========================================================================== */
.view-mode-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.view-mode-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-royal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.view-mode-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.view-mode-btn {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  color: var(--text-body);
  border-radius: 8px;
  padding: 0.55rem 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  transition: var(--transition);
  line-height: 1.15;
}

.view-mode-btn:hover {
  background: #ffffff;
  border-color: var(--blue-royal);
  color: var(--blue-royal);
}

.view-mode-btn.active {
  background: var(--blue-royal);
  border-color: var(--blue-royal);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.view-mode-btn svg {
  flex-shrink: 0;
}

/* Seletor Opcional do Candidato para a Frente */
.front-candidate-selector {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow-xs);
}

.front-candidate-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.front-cargo-select {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-subtle);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-royal);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.front-cargo-select:focus {
  border-color: var(--blue-royal);
  background-color: #ffffff;
}

/* Barra de Botões */
.action-buttons-group {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-primary-action {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

#download-btn {
  background: linear-gradient(135deg, #00875a 0%, #00a859 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 168, 89, 0.35);
}

#download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 89, 0.5);
}

#download-btn.loading {
  opacity: 0.85;
  pointer-events: none;
  cursor: wait;
}

#whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

#whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.action-sub-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.btn-secondary-action {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-body);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.btn-secondary-action:hover {
  background: var(--bg-subtle);
  color: var(--blue-royal);
  border-color: var(--blue-royal);
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--blue-royal);
  border: 1.5px solid var(--yellow-swoop);
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   ESTRUTURA GERAL DOS CARTÕES SANTINHO (FRENTE E VERSO)
   ========================================================================== */
.colinha-card-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card-single-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
}

.santinho-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(0, 50, 120, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  font-family: var(--font-sans);
  color: var(--text-primary);
  position: relative;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   SANTINHO FRENTE (MODELO OFICIAL COM FOTO, ONDA AMARELA E CORAÇÃO)
   ========================================================================== */
.santinho-card-frente {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.frente-photo-wrapper {
  position: relative;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frente-heart-arch-svg {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 2;
}

.frente-candidate-img-container {
  position: relative;
  z-index: 1;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.frente-candidate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.frente-yellow-wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 3;
  display: block;
}

.frente-content {
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  gap: 0.4rem;
}

.frente-cargo-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #0077ee;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.frente-name-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.frente-name-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.frente-firstname {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 900;
  color: #0066cc;
  letter-spacing: -0.02em;
}

.frente-lastname {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 900;
  color: #0066cc;
  letter-spacing: -0.02em;
}

.frente-heart-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 102, 204, 0.25));
}

.brazil-heart-badge {
  display: block;
}

.frente-vote-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0077ee;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.frente-number-display {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: #0066cc;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.6rem 0;
  text-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

.frente-slogan {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #0066cc;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   SANTINHO VERSO (COLINHA DA URNA COM DIGITOS E "VOTE CERTO")
   ========================================================================== */
.santinho-card-verso {
  background: #ffffff;
}

/* Topo do Santinho com Ondas Azul e Amarela */
.santinho-top-banner {
  background: #0066cc;
  position: relative;
  padding-top: 1rem;
}

.santinho-banner-inner {
  padding: 0 1.25rem 0.35rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.santinho-domain-pill {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.santinho-slogan {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-align: right;
  line-height: 1.2;
}

.santinho-wave-svg {
  display: block;
  width: 100%;
  height: 26px;
}

/* Barra de Identificação do Estado */
.santinho-state-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.25rem 0.25rem 1.25rem;
  background: #ffffff;
}

.santinho-state-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.state-flag-icon {
  font-size: 1.1rem;
}

.state-title-text {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 900;
  color: #0066cc;
  letter-spacing: 0.02em;
}

.state-uf-highlight {
  color: var(--green-patriota);
}

.santinho-badge-ano {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Corpo do Santinho: Linhas de Candidatos */
.santinho-body {
  padding: 0.35rem 1.25rem 0.6rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  background: #ffffff;
}

.santinho-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.santinho-row-header {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
}

.cargo-title-blue {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0066cc;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vaga-pill {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
}

.candidate-person-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.party-tag {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Caixas de Dígitos Azuis com Números Brancos */
.santinho-digits-container {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: 0.06rem;
}

.digit-box-blue {
  width: 34px;
  height: 38px;
  background-color: #0066cc;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-digital);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 102, 204, 0.28);
  line-height: 1;
}



/* Rodapé com o Emblema "Vote Certo" */
.santinho-bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1.25rem 0.6rem 1.25rem;
  background: #ffffff;
  border-top: 1px dashed #e2e8f0;
  margin-top: 0.25rem;
  gap: 0.75rem;
}

.santinho-legal-disclaimer {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.35;
  flex: 1;
}

.santinho-legal-disclaimer strong {
  color: var(--blue-royal);
}

.vote-certo-emblem {
  position: relative;
  width: 90px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heart-curves-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vote-certo-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  text-align: center;
  padding-top: 0.5rem;
  padding-left: 0.2rem;
}

.vote-word, .certo-word {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  color: #0066cc;
  letter-spacing: -0.01em;
}

/* Linha final do domínio */
.santinho-card-footer {
  background: #0066cc;
  color: #ffffff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.5rem;
}

/* ==========================================================================
   SANTINHO COM FOTOS - DESIGN OFICIAL "O BRASIL VAI VENCER"
   ========================================================================== */
.santinho-card-fotos {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 40, 100, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

.colinha-foto-header {
  background: #003e7e;
  padding: 1.15rem 1.4rem 1.05rem 1.4rem;
  text-align: left;
}

.colinha-foto-headline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.colinha-foto-headline .txt-brasil {
  color: #ffffff;
}

.colinha-foto-headline .txt-vencer {
  color: #ffc700;
}

.colinha-foto-body {
  position: relative;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: #ffffff;
}

.colinha-foto-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.15rem 0;
}

.colinha-foto-avatar {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 50%;
  border-width: 3.5px;
  border-style: solid;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.colinha-foto-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.colinha-avatar-silhouette {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: block;
}

.colinha-row-clickable {
  cursor: pointer;
  border-radius: 8px;
  padding: 0.15rem 0.35rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.colinha-row-clickable:hover {
  background-color: rgba(0, 102, 204, 0.05);
}

.colinha-row-clickable:active {
  transform: scale(0.99);
}

.colinha-foto-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding-right: 0.5rem;
  overflow: hidden;
}

.colinha-foto-cargo {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  color: #0066cc;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.colinha-foto-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.12;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  word-break: break-word;
}

.colinha-foto-name .cname-first {
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
}

.colinha-foto-name .cname-rest {
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
}

.colinha-foto-name .cname-sub {
  font-size: 0.78rem;
  font-weight: 800;
  color: #000000;
  margin-top: 0.05rem;
}

.colinha-foto-name .cname-empty {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0066cc;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.colinha-foto-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.colinha-foto-digits {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.digit-box-light {
  width: 27px;
  height: 36px;
  background-color: #eaeff5;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  line-height: 1;
}

.digit-box-placeholder {
  color: #94a3b8;
  font-size: 1.15rem;
}

.colinha-foto-confirma {
  background: #39b54a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(57, 181, 74, 0.25);
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MOCKUP DUPLO 3D (FRENTE E VERSO LADO A LADO IDÊNTICO À FOTO DE REFERÊNCIA)
   ========================================================================== */
.mockup-duplo-stage {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(135deg, #eef2f6 0%, #e2e8f0 100%);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  box-shadow: 0 20px 48px -12px rgba(0, 40, 100, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

.mockup-duplo-stage .mockup-item {
  width: 290px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mockup-duplo-stage .mockup-frente {
  z-index: 2;
  transform: rotate(-3.5deg) translateY(-8px);
  filter: drop-shadow(0 20px 30px rgba(0, 30, 80, 0.22));
}

.mockup-duplo-stage .mockup-verso {
  z-index: 1;
  transform: rotate(3.5deg) translateY(12px);
  filter: drop-shadow(0 18px 26px rgba(0, 30, 80, 0.18));
}

.mockup-duplo-stage:hover .mockup-frente {
  transform: rotate(-2deg) translateY(-14px);
}

.mockup-duplo-stage:hover .mockup-verso {
  transform: rotate(2deg) translateY(6px);
}

@media (max-width: 768px) {
  .mockup-duplo-stage {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.75rem;
  }
  .mockup-duplo-stage .mockup-frente {
    transform: none;
    width: 100%;
    max-width: 340px;
  }
  .mockup-duplo-stage .mockup-verso {
    transform: none;
    width: 100%;
    max-width: 340px;
  }
}

/* FAQ Section */
.faq-section {
  max-width: 800px;
  margin: 3rem auto 0 auto;
  padding: 0 1rem;
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-royal);
  text-align: center;
  margin-bottom: 1.25rem;
}

.faq-title span {
  color: #d97706;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-royal);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-answer {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Modal de Personalização */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 40, 90, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open,
.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-royal);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Linhas do Modal Estilo Urna Eletrônica */
.modal-urna-row {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.modal-urna-row:focus-within {
  border-color: var(--blue-royal);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
}

.modal-urna-locked {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.modal-urna-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-urna-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--blue-royal);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.modal-urna-badge {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.modal-urna-badge.badge-oficial {
  background: rgba(0, 168, 89, 0.15);
  color: #00875a;
}

.modal-urna-inputs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-urna-num-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 96px;
  flex-shrink: 0;
}

.modal-urna-sublabel {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.input-urna-number {
  width: 100%;
  font-family: var(--font-digital);
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 2px;
  background: #ffffff;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.4rem 0.2rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-urna-number:focus {
  border-color: #00875a;
  box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.15);
}

.modal-urna-photo-col {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.modal-urna-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.modal-urna-name-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.input-urna-name {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.input-urna-name:focus {
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

.input-locked {
  background: #f1f5f9 !important;
  color: #64748b !important;
  cursor: not-allowed;
  border-color: #cbd5e1 !important;
}

.modal-urna-feedback {
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 14px;
  line-height: 1.2;
}

.urna-feedback-searching {
  color: var(--blue-royal);
}

.urna-feedback-found {
  color: #00875a;
}

.urna-feedback-custom {
  color: #64748b;
}

.modal-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.modal-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-royal);
  text-transform: uppercase;
}

.modal-inputs-flex {
  display: flex;
  gap: 0.5rem;
}

.modal-input {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input:focus {
  background: #ffffff;
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

.modal-input.input-name {
  flex: 1;
}

.modal-input.input-number {
  width: 90px;
  font-family: var(--font-digital);
  font-weight: 800;
  text-align: center;
  font-size: 1.05rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.modal-btn-save {
  flex: 1;
  padding: 0.75rem;
  background: var(--blue-royal);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}

.modal-btn-save:hover {
  background: var(--blue-dark);
}

.modal-btn-reset {
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

/* Footer do Site */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 2rem 1rem;
  margin-top: auto;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--blue-royal);
  font-size: 1.1rem;
}

.footer-brand span {
  color: #d97706;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

.footer-credits {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Ajustes Mobile First para Telas Pequenas (Smartphones) */
@media (max-width: 440px) {
  .hero-section {
    padding: 0.4rem 0.25rem 0.75rem 0.25rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .action-buttons-group {
    max-width: 100%;
  }
  .santinho-card {
    max-width: 100%;
    border-radius: 14px;
  }
  .colinha-foto-header {
    padding: 0.85rem 1rem;
  }
  .colinha-foto-headline {
    font-size: 1.7rem;
  }
  .colinha-foto-body {
    padding: 0.85rem 0.85rem;
    gap: 0.75rem;
  }
  .colinha-foto-row {
    gap: 0.65rem;
  }
  .colinha-foto-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }
  .colinha-foto-name {
    font-size: 1.05rem;
  }
  .colinha-foto-name .cname-first,
  .colinha-foto-name .cname-rest {
    font-size: 1.05rem;
  }
  .digit-box-light {
    width: 23px;
    height: 33px;
    font-size: 1.25rem;
    border-radius: 5px;
  }
  .colinha-foto-confirma {
    font-size: 0.58rem;
    padding: 0.25rem 0.4rem;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

