:root {
  --bg: #7a0000;
  --paper: #f3f3f3;
  --white: #fff;
  --text: #161616;
  --muted: #6a6a6a;
  --accent: #b40000;
  --ok: #1f7a3a;
  --ok-bg: #e7f5ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 10px;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 12px 12px 20px;
}

.banner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 12px;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
  background: #fff6f6;
  border-radius: 12px;
}

.banner-roberto { flex: 1.55; min-width: 0; }
.banner-manuel { flex: 1; min-width: 0; }

h1 {
  margin: 0 0 2px;
  font-size: 1.28rem;
  color: var(--accent);
  line-height: 1.15;
}

.kicker {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 1.05rem;
}

.form button,
.share {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #c40000;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
}

.puntero-asignado {
  margin: 0 0 12px;
}
.puntero-nombre {
  margin-bottom: 4px;
}
.puntero-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.share {
  width: 100%;
  margin-top: 4px;
  background: #9a0000;
}

.card {
  margin-top: 14px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px;
}

.estado {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nombre {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.cedula {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.datos-voto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.dato.local {
  grid-column: 1 / -1;
}

.dato {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}

.dato-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.dato-valor {
  display: block;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.empty-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #8b0000;
}

.empty-text {
  margin: 0;
  color: var(--muted);
}

.card.empty {
  background: #fff5f5;
  border: 1px dashed #c40000;
}

@media (min-width: 640px) {
  body { padding: 20px; }
  .wrap { padding: 18px 20px 24px; }
  .banner img { max-height: 92px; }
  h1 { font-size: 1.5rem; }
  .form {
    flex-direction: row;
    align-items: stretch;
  }
  .form input { flex: 1; margin: 0; }
  .form button {
    width: auto;
    padding: 0 22px;
    flex-shrink: 0;
  }
  .datos-voto {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .dato.local { grid-column: auto; }
}

@media (max-width: 389px) {
  .banner img { max-height: 52px; }
  h1 { font-size: 1.15rem; }
  .form button, .form input, .share { height: 44px; }
}
