/* ==========================================================================
   PERUINFORMATIVO.COM ― COMPONENTES DE VOTACIÓN Y ENCUESTAS
   Diseño Ejecutivo Premium ― Alta Legibilidad y Rigor Metodológico
   ========================================================================== */

#poll {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

#poll h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a !important;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-left: 4.5px solid #0284c7;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  line-height: 1.35;
  letter-spacing: 0.1px;
}

#poll h2 i {
  color: #0284c7 !important;
  font-size: 17px;
  background: #eff6ff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1.5px solid #bfdbfe;
  flex-shrink: 0;
  filter: none;
}

.pl-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 180px;
}

.pl-content.load::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(3px);
  z-index: 10;
  border-radius: 12px;
}

.pl-content .ld-txt {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #0f172a;
  font-size: 14px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3.5px solid #e2e8f0;
  border-top-color: #be1717;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Franja de Estadísticas del Sondeo */
/* Franja de Estadísticas del Sondeo */
.pl-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.pl-votes {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pl-votes i {
  color: #f59e0b !important;
  font-size: 14px;
}

.pl-votes b {
  color: #38bdf8 !important;
}

.pl-btn button, .pl-btn a {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  text-decoration: none;
}

.pl-btn button:hover, .pl-btn a:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.pl-msj {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  padding: 0 2px;
  margin-top: 4px;
}

/* Lista de Candidatos Pegada Continua con Fondo Intercalado */
.pl-options {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  margin: 12px 0 16px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.pl-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  transition: background 0.15s ease;
  position: relative;
  gap: 12px;
}

.pl-option:last-child {
  border-bottom: none !important;
}

.pl-option:nth-child(odd) {
  background: #ffffff;
}

.pl-option:nth-child(even) {
  background: #f8fafc;
}

.pl-option:hover {
  background: #eff6ff !important;
  transform: none !important;
}

.pl-data {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

.pl-img {
  width: 44px;
  height: 44px;
  border-radius: 8px !important;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pl-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.pl-img.p2 {
  width: 44px;
  height: 44px;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  background: #ffffff;
  padding: 3px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pl-img.p2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.pl-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pl-name h3.c {
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  margin: 0;
  line-height: 1.25;
  letter-spacing: normal;
}

.pl-name span.p {
  font-size: 11.5px !important;
  color: #64748b;
  font-weight: 500;
}

.pl-option .send-vote {
  background: #007bff;
  color: #ffffff;
  border: 1px solid #0056b3;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  white-space: nowrap;
}

.pl-option .send-vote:hover {
  background: #0056b3;
  border-color: #004085;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
}

/* Tarjeta para Reportar Candidatos */
.poll-report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 18px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.poll-report-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.report-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.report-subtitle {
  margin: 0;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

.btn-report-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-report-action:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Barra de Compartir Redes Sociales */
.share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 18px;
}

.share-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.share-buttons li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  color: #ffffff;
  min-height: 36px;
  box-sizing: border-box;
}

.share-btn.image {
  background: #475569;
  color: #ffffff;
}
.share-btn.image:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.share-btn.whatsapp {
  background: #25d366;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}
.share-btn.whatsapp:hover {
  background: #128c7e;
  transform: translateY(-1px);
}

.share-btn.facebook {
  background: #1877f2;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}
.share-btn.facebook:hover {
  background: #0d65d9;
  transform: translateY(-1px);
}

.share-btn.twitter {
  background: #000000;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}
.share-btn.twitter:hover {
  background: #262626;
  transform: translateY(-1px);
}

.share-btn.telegram {
  background: #0088cc;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}
.share-btn.telegram:hover {
  background: #0077b5;
  transform: translateY(-1px);
}

.share-btn.qr {
  background: #64748b;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}
.share-btn.qr:hover {
  background: #334155;
  transform: translateY(-1px);
}

/* Resultados del Sondeo: Mismo diseño horizontal unificado con lista cebra */
#poll.result .pl-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 16px !important;
}

#poll.result .pl-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  padding: 0 18px 0 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: background 0.15s ease !important;
}

#poll.result .pl-option:last-child {
  border-bottom: none !important;
}

#poll.result .pl-option:nth-child(odd) {
  background: #ffffff !important;
}

#poll.result .pl-option:nth-child(even) {
  background: #f8fafc !important;
}

#poll.result .pl-option:hover {
  background: #eff6ff !important;
}

#poll.result .pl-position-col {
  width: 44px !important;
  height: 68px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  border-right: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

#poll.result .pl-data {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 0 0 12px !important;
}

#poll.result .pl-img.p1 {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  background: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#poll.result .pl-img.p1 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#poll.result .pl-img.p2 {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#poll.result .pl-img.p2 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  display: block !important;
}

#poll.result .pl-name {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  margin-left: 2px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#poll.result .pl-name h3.c {
  margin: 0 0 2px 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

#poll.result .pl-name span.p {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

#poll.result .pl-porcentage {
  position: static !important;
  flex-shrink: 0 !important;
  text-align: right !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  min-width: 80px !important;
  line-height: 1.2 !important;
}

#poll.result .pl-pct-value {
  font-size: 15.5px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

#poll.result .pl-pct-votes {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  line-height: 1.2 !important;
  margin-top: 1px !important;
}

#poll.result .pl-row-bar {
  position: absolute !important;
  bottom: 0 !important;
  left: 44px !important;
  right: 0 !important;
  height: 3.5px !important;
  background: #e2e8f0 !important;
}

#poll.result .pl-row-bar .pr {
  height: 100% !important;
  background: #0284c7 !important;
  border-radius: 0 !important;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Título de Cabecera del Hero */
.poll-main-hero-title {
  font-size: 25px;
  font-weight: 900;
  color: #0f172a !important;
  text-transform: none;
  letter-spacing: -0.4px;
  margin: 6px 0 0 0;
  line-height: 1.25;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Cabecera del Hero & Tags - TODOS EN UNA SOLA LÍNEA HORIZONTAL */
.poll-tags-single-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.poll-tags-single-row::-webkit-scrollbar {
  display: none;
}

.hero-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.hero-tag.highlight {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

.hero-live-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-left: 0 !important;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseDot 1.5s ease infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.poll-hero-card {
  border-radius: 16px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 28px;
}

.poll-hero-header-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  padding: 24px 28px 20px 28px !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;
  position: relative !important;
}

.poll-hero-header-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, #be1717 0%, #0284c7 100%);
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

.voto-kicker {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.voto-heading {
  font-size: 23px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 14px 0;
  line-height: 1.28;
  letter-spacing: -0.3px;
}

.voto-lead-red {
  color: #be1717;
  border-bottom: 3.5px solid #be1717;
  padding-bottom: 2px;
  display: inline-block;
  font-weight: 900;
}

.voto-lead-icon {
  color: #be1717;
  margin-right: 8px;
}

.voto-checklist {
  list-style: none !important;
  padding: 0 !important;
  margin: 14px 0 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voto-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.voto-checklist li i {
  color: #be1717;
  font-size: 15px;
  margin-top: 4px;
  flex-shrink: 0;
}

.poll-main-hero-title {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 6px 0 0 0 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.5px !important;
}

.poll-hero-body {
  padding: 22px 28px 28px 28px !important;
}

.poll-hero-desc {
  font-size: 14.5px !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin: 0 0 20px 0 !important;
}

/* Insignias bajo la pregunta: Relieve, colores corporativos y alto contraste */
.poll-under-question-badges {
  display: grid !important;
  grid-template-columns: 1fr 1.35fr 2.15fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 10px 0 16px 0 !important;
  box-sizing: border-box !important;
}

.poll-badge-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  width: 100% !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.poll-badge-item:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.poll-badge-item.badge-ronda {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1.5px solid #bfdbfe !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06) !important;
}

.poll-badge-item.badge-ronda i {
  color: #2563eb !important;
  font-size: 13.5px;
}

.poll-badge-item.badge-live {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1.5px solid #a7f3d0 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.06) !important;
}

.poll-badge-item.badge-live .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseLive 1.4s infinite;
}

.poll-badge-item.badge-cierre {
  background: #fff1f2 !important;
  color: #991b1b !important;
  border: 1.5px solid #fecdd3 !important;
  padding: 0 20px !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.04) !important;
  font-weight: 700 !important;
  position: relative !important;
}

/* Divisor vertical rojo elegante centrado sin tocar los bordes superior/inferior */
.poll-badge-item.badge-cierre::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #dc2626;
  border-radius: 4px;
  margin-right: 4px;
  flex-shrink: 0;
}

.poll-badge-item.badge-cierre i {
  color: #dc2626 !important;
  font-size: 13px;
}

.poll-badge-item.badge-cierre strong {
  color: #991b1b !important;
  font-weight: 900 !important;
}

/* Botón Ver Resultados Oficiales: 100% de Ancho */
.view-results {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

/* Botones de Comunidad en Sidebar: Colores oficiales permanentes */
.community-buttons-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

.community-buttons-grid .comm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 10px 8px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
  transition: all 0.18s ease-in-out !important;
}

.community-buttons-grid .comm-btn i {
  font-size: 14px !important;
  color: #ffffff !important;
}

.community-buttons-grid .comm-btn.comm-whatsapp {
  background: #25d366 !important;
  border: 1px solid #20bd5a !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25) !important;
}

.community-buttons-grid .comm-btn.comm-whatsapp:hover {
  background: #1eb954 !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  transform: translateY(-2px);
}

.community-buttons-grid .comm-btn.comm-facebook {
  background: #1877f2 !important;
  border: 1px solid #166fe5 !important;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25) !important;
}

.community-buttons-grid .comm-btn.comm-facebook:hover {
  background: #1565c0 !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4) !important;
  transform: translateY(-2px);
}

.community-buttons-grid .comm-btn.comm-x {
  background: #000000 !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.community-buttons-grid .comm-btn.comm-x:hover {
  background: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px);
}

.community-buttons-grid .comm-btn.comm-telegram {
  background: #0088cc !important;
  border: 1px solid #0077b5 !important;
  box-shadow: 0 2px 6px rgba(0, 136, 204, 0.25) !important;
}

.community-buttons-grid .comm-btn.comm-telegram:hover {
  background: #0077b5 !important;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4) !important;
  transform: translateY(-2px);
}

/* Tarjeta y Filas de Rondas Electorales (Diseño Imponente y Cuadrado Perfecto) */
.rondas-electorales-card {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.02);
}

.rondas-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.rondas-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rondas-total-badge {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.rondas-rows-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ronda-history-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  transition: all 0.18s ease;
}

.ronda-history-row:hover {
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2,132,199,0.08);
}

.ronda-col-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ronda-pill-tag {
  background: #be1717;
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(190, 23, 23, 0.25);
}

.ronda-state-tag.closed {
  color: #be1717;
  font-weight: 700;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ronda-col-dates {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ronda-date-text {
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ronda-date-text strong {
  color: #0f172a;
  font-weight: 700;
}

.ronda-votes-text {
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-ronda-view {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.18s ease;
}

.btn-ronda-view:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* =========================================================================
   RESPONSIVE MÓVIL ULTRA-OPTIMIZADO Y COMPACTO
   ========================================================================= */
@media (max-width: 768px) {
  /* 1. Ocultar en móvil migas de pan y tags territoriales superiores */
  .breadcrumb,
  .poll-tags-single-row {
    display: none !important;
  }

  /* 4. Ocultar en móvil la tarjeta de Actualización de Registro de Candidaturas */
  .poll-report-card {
    display: none !important;
  }

  .poll-hero-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    margin-bottom: 14px !important;
    overflow: hidden !important;
  }

  .poll-hero-header-box {
    padding: 12px 14px 10px 14px !important;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
  }

  .voto-kicker {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .poll-main-hero-title {
    font-size: 17.5px !important;
    line-height: 1.25 !important;
    margin-top: 3px !important;
    font-weight: 900 !important;
  }

  .poll-hero-body {
    padding: 12px 12px 16px 12px !important;
  }

  #poll {
    margin-top: 0 !important;
  }

  #poll h2 {
    font-size: 13px !important;
    padding: 9px 12px !important;
    margin-bottom: 8px !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }

  #poll h2 i {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }

  /* 2. Insignias de Ronda, Abierta y Cierre en 1 sola línea horizontal en móvil */
  .poll-under-question-badges {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px !important;
    margin: 6px 0 10px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .poll-badge-item {
    flex: 1 1 0px !important;
    height: 34px !important;
    font-size: 10.5px !important;
    padding: 0 4px !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .poll-badge-item i {
    font-size: 11px !important;
    margin-right: 3px !important;
  }

  .poll-badge-item.badge-cierre {
    grid-column: auto !important;
    width: auto !important;
  }

  .pl-options,
  #poll.result .pl-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .pl-option,
  #poll.result .pl-option {
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px 0 0 !important;
    box-sizing: border-box !important;
  }

  .pl-position-col,
  #poll.result .pl-position-col {
    width: 36px !important;
    min-width: 36px !important;
    height: 62px !important;
    font-size: 13px !important;
  }

  .pl-data,
  #poll.result .pl-data {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-left: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .pl-img.p1,
  #poll.result .pl-img.p1 {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .pl-img.p2,
  #poll.result .pl-img.p2 {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }

  .pl-name h3.c,
  #poll.result .pl-name h3.c {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
  }

  .pl-name span.p,
  #poll.result .pl-name span.p {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .pl-option .send-vote {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    border-radius: 18px !important;
    white-space: nowrap !important;
  }

  .pl-porcentage,
  #poll.result .pl-porcentage {
    min-width: 68px !important;
    text-align: right !important;
  }

  .pl-pct-value,
  #poll.result .pl-pct-value {
    font-size: 14px !important;
  }

  .pl-pct-votes,
  #poll.result .pl-pct-votes {
    font-size: 9.5px !important;
  }

  /* 3. Barra de votos y auditoría en 1 sola línea horizontal */
  .pl-stats {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 10px !important;
    flex-wrap: nowrap !important;
  }

  .pl-votes {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .pl-votes-label {
    font-size: 12px !important;
  }

  .pl-security-badge {
    flex-shrink: 0 !important;
    font-size: 11px !important;
    padding: 5px 8px !important;
    white-space: nowrap !important;
  }

  .share-section {
    padding: 10px 12px !important;
    border-radius: 10px !important;
    margin-top: 12px !important;
  }

  .share-buttons {
    gap: 6px !important;
  }

  .share-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }

  /* 5. Historial de rondas en 1 sola línea horizontal en móvil */
  .rondas-electorales-card {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    margin-bottom: 14px !important;
  }

  .rondas-card-title {
    font-size: 13px !important;
  }

  .ronda-history-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 9px 10px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    flex-wrap: nowrap !important;
  }

  .ronda-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .ronda-pill-tag {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
  }

  .ronda-state-tag.closed {
    padding: 2px 5px !important;
    font-size: 10px !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
  }

  .ronda-votes-badge {
    display: none !important;
  }

  .ronda-col-action {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .btn-ronda-view {
    width: auto !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.2) !important;
  }

  /* Footer en móvil: solo lo necesario */
  .footer-endorsement-lead-bar,
  .footer-col {
    display: none !important;
  }

  .footer-main-grid {
    grid-template-columns: 1fr !important;
    padding: 16px 0 8px 0 !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   MODAL ULTRA-COMPACTO DE CONFIRMACIÓN CON ANTI-ROBOT Y RESULTADOS
   ========================================================================== */
.v-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.v-modal-box {
  position: relative;
  max-width: 320px;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
  animation: vModalPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vModalPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.v-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.v-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid #f1f5f9;
}

.v-badge-lock {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.v-modal-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

/* Tarjeta compacta del candidato */
.v-cand-summary-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 9px;
}

.v-cand-summary-card .v-cand-photo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  flex-shrink: 0;
}

.v-cand-summary-card .v-cand-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1px;
  flex-shrink: 0;
}

.v-cand-summary-card .v-cand-info {
  flex: 1;
  min-width: 0;
}

.v-cand-summary-card .v-cand-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-cand-summary-card .v-cand-party {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================================
   BOTONES DE COMUNIDAD / REDES SOCIALES (COLORES OFICIALES)
   ========================================================================= */
.community-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.comm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff !important;
  transition: all 0.18s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.comm-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.comm-whatsapp {
  background: #25d366 !important;
  border: 1px solid #20bd5a !important;
}

.comm-facebook {
  background: #1877f2 !important;
  border: 1px solid #166fe5 !important;
}

.comm-x {
  background: #000000 !important;
  border: 1px solid #1e293b !important;
}

.comm-telegram {
  background: #0088cc !important;
  border: 1px solid #0077b5 !important;
}

/* =========================================================================
   TARJETA ANTI-ROBOT RECAPTCHA Y ACTIVACIÓN DE VOTO
   ========================================================================= */
.v-recaptcha-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 14px 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.v-recaptcha-card:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.v-recaptcha-card.checked {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px #10b981;
}

.v-captcha-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v-captcha-box-square {
  width: 24px;
  height: 24px;
  border: 2px solid #94a3b8;
  border-radius: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.v-captcha-box-square.checking {
  border: 2px solid #0284c7;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.v-captcha-box-square.checked {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  transform: scale(1.05);
}

.v-captcha-label {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}

.v-captcha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.v-captcha-right i {
  font-size: 16px;
  color: #0284c7;
}

.v-captcha-brand {
  font-size: 8px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  margin-top: 1px;
}

.v-captcha-terms {
  font-size: 7px;
  color: #94a3b8;
}

/* Botón Emitir Voto */
.v-btn-submit-vote {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  border: none;
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.v-btn-submit-vote.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35) !important;
}

.v-btn-submit-vote.active:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Botones de Compartir */
.v-share-row-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 9px 0 8px 0;
}

.v-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.v-icon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.v-icon-wa { background: #25d366; }
.v-icon-fb { background: #1877f2; }
.v-icon-tw { background: #000000; }
.v-icon-tg { background: #0088cc; }
.v-icon-cp { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.v-icon-cp:hover { background: #e2e8f0; color: #0f172a; }

/* Botón Continuar / Ver Resultados */
.v-btn-view-res {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  border: none;
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
}
.v-btn-view-res:hover {
  background: #1e293b;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 18mm 20mm;
  }

  html, body {
    background: #f8fafc !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  body > *:not(#historicalRoundModal) {
    display: none !important;
  }

  #historicalRoundModal {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    z-index: 1 !important;
  }

  #historicalRoundModal > div {
    max-width: 680px !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: visible !important;
    animation: none !important;
    background: #ffffff !important;
    page-break-inside: avoid !important;
  }

  #histReportExportContainer {
    padding: 24px 28px !important;
    overflow: visible !important;
  }

  #histCloseBtnTop,
  #histCloseBtnBottom,
  #histDownloadImgBtn,
  #histDownloadPdfBtn,
  #historicalRoundModal button,
  #historicalRoundModal .v-btn-view-res {
    display: none !important;
  }
}
