/* VotoGuía / ELECTORA — DigiData Anality
   Dirección visual: control panel tipo NationBuilder (claro, jerárquico, whitespace)
   + landing de producto cívico Paraguay. */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Serif:wght@600;700&display=swap");

:root {
  --ink: #0b1c2c;
  --ink-soft: #1a3348;
  --navy: #102a43;
  --paper: #eef2f5;
  --surface: #ffffff;
  --line: #d5dde5;
  --muted: #5b6b7c;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: #ccfbf1;
  --gold: #b45309;
  --gold-soft: #ffedd5;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 1px 2px rgba(16, 42, 67, 0.06), 0 8px 24px rgba(16, 42, 67, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 28, 44, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "IBM Plex Serif", "Georgia", serif;
  --sidebar-w: 248px;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* —— Utilidades compartidas —— */
.wrap { max-width: 960px; margin: 0 auto; padding: 1.25rem; }
.leyenda { font-size: 0.875rem; color: var(--muted); }
.msg { margin-top: 0.8rem; color: var(--accent); font-weight: 600; }
.err { color: var(--danger); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.card h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
label { display: block; font-size: 0.875rem; font-weight: 600; margin: 0.75rem 0 0.35rem; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
button:hover { background: var(--accent-hover); }
button.sec {
  background: var(--ink-soft);
  color: #fff;
}
button.sec:hover { background: var(--navy); }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 500;
}
.check input { width: auto; margin-top: 0.2rem; }
.tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.tabla th, .tabla td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
}
.tabla th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.tabla tbody tr:hover { background: #f8fafc; }
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 0.5rem 0 1.25rem;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.kpi strong {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.kpi span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fila-cedula { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.fila-cedula input { flex: 1; min-width: 140px; }
.fila-cedula button { width: auto; margin-top: 0; white-space: nowrap; }
.datos-padron { margin: 0; }
.datos-padron > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.datos-padron dt { color: var(--muted); margin: 0; font-size: 0.85rem; }
.datos-padron dd { margin: 0; font-weight: 700; }
.btn-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 10px;
}
.btn-link-sec { background: var(--ink-soft); color: #fff; }
button.btn-link { border: 0; cursor: pointer; width: auto; margin-top: 0; }
#map { height: 70vh; min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); }
.opcion {
  display: block;
  background: #f8fafc;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0.45rem 0;
  cursor: pointer;
}
.opcion input { width: auto; margin-right: 0.55rem; }
.opcion.sel { border-color: var(--accent); background: var(--accent-soft); }
.texto-pub { white-space: pre-wrap; font-family: inherit; margin: 0; line-height: 1.45; }
.etiqueta-legal {
  margin-top: 1rem;
  font-weight: 800;
  color: var(--gold);
  font-size: 0.95rem;
}
.acciones-padron { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.guia-oficial .cedula-copia {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.75rem 0;
}
.guia-oficial code {
  font-size: 1.35rem; font-weight: 800; letter-spacing: 0.06em;
  background: #f1f5f9; padding: 0.45rem 0.75rem; border-radius: 10px;
}
.guia-oficial .sec { width: auto; margin-top: 0; }
.card-interna {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.8rem 0;
}
.card-interna p { margin: 0.25rem 0; font-size: 0.95rem; }

/* Páginas internas: header simple */
body:not(.vg-home):not(.vg-admin):not(.vg-login-page) > .wrap > header {
  text-align: left;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
body:not(.vg-home):not(.vg-admin):not(.vg-login-page) > .wrap > header h1 {
  font-family: var(--display);
  margin: 0 0 0.25rem;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}
body:not(.vg-home):not(.vg-admin):not(.vg-login-page) > .wrap > header p {
  margin: 0; color: var(--muted);
}
body:not(.vg-home):not(.vg-admin):not(.vg-login-page) > .wrap > nav {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0;
}
body:not(.vg-home):not(.vg-admin):not(.vg-login-page) > .wrap > nav a {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* =========================================================
   HOME — landing VotoGuía (producto cívico)
   ========================================================= */
.vg-home {
  background: var(--paper);
  color: var(--ink);
}
.vg-home a { color: inherit; }
.vg-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.vg-skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: #5eead4;
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
}
.vg-home :focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 3px;
}

.vg-shell { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

.vg-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 28, 44, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vg-top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.vg-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.vg-logo span { color: #5eead4; }
.vg-nav {
  display: none;
  gap: 1.15rem;
  align-items: center;
}
.vg-nav a {
  color: rgba(232, 238, 244, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.vg-nav a:hover { color: #5eead4; }
.vg-top-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.vg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.05rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.vg-btn:hover { box-shadow: 0 4px 14px rgba(11, 28, 44, 0.12); }
.vg-btn-teal {
  background: #5eead4;
  color: var(--ink) !important;
}
.vg-btn-teal:hover { background: #99f6e4; }
.vg-btn-ghost-light {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.35);
}
.vg-btn-ghost-light:hover { background: rgba(255,255,255,0.08); }
.vg-btn-ghost-dark {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.vg-btn-ghost-dark:hover { border-color: var(--accent); background: var(--accent-soft); }
.vg-btn-ink {
  background: var(--ink);
  color: #fff !important;
}
.vg-btn-ink:hover { background: var(--ink-soft); }
.vg-nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: auto;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.vg-nav-toggle[aria-expanded="true"] { background: rgba(94, 234, 212, 0.15); }
.vg-nav-panel {
  display: none;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 1.25rem 1rem;
}
.vg-nav-panel.is-open { display: block; }
.vg-nav-panel a {
  display: block;
  color: rgba(232, 238, 244, 0.9);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vg-nav-panel a:last-child { border-bottom: 0; }

.vg-hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(15, 118, 110, 0.35), transparent 45%),
    radial-gradient(ellipse at 10% 90%, rgba(94, 234, 212, 0.12), transparent 40%),
    var(--ink);
  color: #e8eef4;
  padding: 2.5rem 0 3.25rem;
}
.vg-hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
.vg-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
  margin: 0 0 0.85rem;
}
.vg-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 20ch;
}
.vg-hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(232, 238, 244, 0.82);
  max-width: 36rem;
}
.vg-cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.25rem; }
.vg-hero-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(232, 238, 244, 0.55);
  max-width: 34rem;
}

.vg-product {
  background: #0f2436;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.vg-product-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vg-product-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.vg-product-bar span {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vg-product-body {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 220px;
}
.vg-product-rail {
  background: #071421;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.vg-product-rail i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.vg-product-rail i.on { background: #5eead4; width: 70%; }
.vg-product-main { padding: 0.85rem; background: #eef2f5; color: var(--ink); }
.vg-product-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.vg-product-kpi {
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
}
.vg-product-kpi b {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.vg-product-kpi small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vg-product-rows {
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}
.vg-product-rows p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid #eef2f5;
}
.vg-product-rows p:last-child { border-bottom: 0; }
.vg-product-body-elector {
  grid-template-columns: 1fr;
}
.vg-product-cap {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: rgba(232, 238, 244, 0.5);
  text-align: center;
}

.vg-section { padding: 3.5rem 0; }
.vg-section-ink { background: var(--ink); color: #e8eef4; }
.vg-section-paper { background: var(--paper); color: var(--ink); }
.vg-section-white { background: #fff; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vg-section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.vg-section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.vg-section-ink .vg-section-head h2 { color: #fff; }
.vg-section-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.vg-section-ink .vg-section-head p { color: rgba(232, 238, 244, 0.7); }

.vg-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.vg-benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.vg-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}
.vg-benefit-icon svg { width: 20px; height: 20px; }
.vg-benefit h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.vg-benefit p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.vg-tools-group { margin-bottom: 2rem; }
.vg-tools-group:last-child { margin-bottom: 0; }
.vg-tools-group h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.vg-tools-group > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.vg-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.vg-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 100%;
}
.vg-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.vg-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f0fdfa;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.vg-card-icon svg { width: 18px; height: 18px; }
.vg-card h4 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.vg-card p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; flex: 1; }
.vg-card-action {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.25rem;
}
.vg-card.featured {
  border-color: rgba(15, 118, 110, 0.35);
  background: linear-gradient(180deg, #f0fdfa, #fff);
}

.vg-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.vg-trust-item {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.vg-trust-item h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 0.45rem;
  color: #5eead4;
}
.vg-trust-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(232, 238, 244, 0.75);
}
.vg-trust-item a { color: #5eead4; text-decoration: underline; text-underline-offset: 2px; }

.vg-close {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.vg-close h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}
.vg-close p { margin: 0 0 1.35rem; color: var(--muted); line-height: 1.55; }
.vg-close .vg-cta-row { justify-content: center; }
.vg-close-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

.vg-foot {
  background: #071421;
  color: rgba(255,255,255,0.65);
  padding: 2rem 0;
  font-size: 0.85rem;
}
.vg-foot-inner {
  display: grid;
  gap: 1.25rem;
}
.vg-foot strong {
  color: #fff;
  font-family: var(--display);
  display: block;
  margin-bottom: 0.25rem;
}
.vg-foot a {
  color: #5eead4;
  text-decoration: none;
  font-weight: 600;
}
.vg-foot a:hover { text-decoration: underline; }
.vg-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.vg-foot-meta { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

@keyframes vgRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.vg-hero-copy { animation: vgRise 0.55s ease both; }
.vg-product-wrap { animation: vgRise 0.7s ease 0.08s both; }

@media (min-width: 720px) {
  .vg-benefits { grid-template-columns: repeat(3, 1fr); }
  .vg-cards { grid-template-columns: repeat(2, 1fr); }
  .vg-trust-grid { grid-template-columns: repeat(3, 1fr); }
  .vg-product-kpis { grid-template-columns: repeat(4, 1fr); }
  .vg-product-body { grid-template-columns: 100px 1fr; min-height: 250px; }
}
@media (min-width: 900px) {
  .vg-nav { display: flex; }
  .vg-nav-toggle { display: none; }
  .vg-nav-panel { display: none !important; }
  .vg-hero { padding: 3.5rem 0 4rem; }
  .vg-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .vg-foot-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    justify-content: space-between;
  }
}
@media (max-width: 520px) {
  .vg-top-actions .vg-btn-ghost-light { display: none; }
  .vg-top-actions .vg-btn-teal { padding: 0.55rem 0.8rem; font-size: 0.82rem; }
}

/* Tema por campaña (multi-candidato) */
body.tema-campana {
  --accent: var(--campana-acento, #0f766e);
  --accent-hover: var(--campana-color, #1B4F72);
}
body.tema-campana button:not(.sec):not(.nav-item):not(.admin-burger):not(.vg-nav-toggle),
body.tema-campana .btn-link {
  background: var(--campana-color, #1B4F72);
}
body.tema-campana button.sec { background: var(--campana-acento, #0f766e); }
body.tema-campana > .wrap > header h1 { color: var(--campana-color, var(--ink)); }
body.tema-campana > .wrap > nav a {
  border-color: var(--campana-acento, var(--line));
}
body.tema-campana .opcion.sel {
  border-color: var(--campana-color, var(--accent));
  background: color-mix(in srgb, var(--campana-acento, #0f766e) 18%, #fff);
}
.brand-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.brand-bar img {
  max-height: 48px;
  width: auto;
  border-radius: 8px;
}
.brand-hero {
  height: 140px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.brand-foto {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--campana-acento, var(--accent));
}

/* =========================================================
   PANEL ADMIN — shell tipo NationBuilder
   ========================================================= */
.vg-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 20% 0%, rgba(15, 118, 110, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(180, 83, 9, 0.12), transparent 45%),
    var(--paper);
}
.vg-login-page .admin-shell,
.vg-login-page #shell {
  display: none !important;
}
#login[hidden],
#registro[hidden],
#recuperar[hidden],
#restablecer[hidden],
#shell[hidden],
.admin-shell[hidden] {
  display: none !important;
}
.vg-login-box {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
  animation: vgRise 0.5s ease both;
}
.vg-login-box .brand {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}
.vg-login-box .brand em { font-style: normal; color: var(--accent); }
.vg-login-box .sub { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.9rem; }

.vg-admin { background: var(--paper); color: var(--ink); }
.vg-admin .admin-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.vg-admin .admin-sidebar {
  background: var(--ink);
  color: #dbe4ee;
  padding: 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 30;
}
.vg-admin .admin-brand {
  padding: 0.35rem 0.55rem 0.6rem;
}
.vg-admin .admin-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #fff;
}
.vg-admin .admin-brand span {
  color: #5eead4;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vg-admin .admin-user {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin: 0 0.25rem;
}
.vg-admin .admin-user strong { display: block; color: #fff; font-size: 0.92rem; }
.vg-admin .admin-user span {
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.vg-admin .admin-campana {
  margin: 0 0.25rem;
}
.vg-admin .admin-campana label {
  color: #94a3b8;
  margin-top: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vg-admin .admin-campana select {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.85rem;
}

.vg-admin .admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  margin-top: 0.35rem;
}
.vg-admin .nav-item,
.vg-admin button.nav-item,
.vg-admin a.nav-item {
  width: 100%;
  text-align: left;
  background: transparent !important;
  color: #cbd5e1 !important;
  font-weight: 600;
  margin: 0 !important;
  padding: 0.58rem 0.75rem;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: none;
  display: block;
  font-family: var(--font);
  transition: background 0.12s ease, color 0.12s ease;
}
.vg-admin .nav-item:hover {
  background: rgba(255,255,255,0.07) !important;
  color: #fff !important;
}
.vg-admin .nav-item.active {
  background: rgba(94, 234, 212, 0.15) !important;
  color: #5eead4 !important;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #5eead4;
  border-radius: 8px 8px 8px 8px;
}
.vg-admin .nav-item.danger { color: #fda4a4 !important; }
.vg-admin .nav-item.linkish { color: #94a3b8 !important; }
.vg-admin .admin-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.vg-admin .admin-main {
  padding: 0;
  max-width: none;
  min-width: 0;
}
.vg-admin .admin-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.vg-admin .admin-top h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.vg-admin .admin-top .leyenda { margin: 0.15rem 0 0; }
.vg-admin .admin-top .sec,
.vg-admin #btn-refresh {
  width: auto;
  margin: 0 0 0 auto;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}
.vg-admin .admin-burger {
  display: none;
  width: auto;
  margin: 0;
  background: var(--ink-soft) !important;
  color: #fff !important;
  font-size: 1.15rem;
  padding: 0.4rem 0.65rem;
}
.vg-admin .admin-view {
  padding: 1.35rem 1.5rem 2.5rem;
  max-width: 1080px;
  animation: vgRise 0.35s ease both;
}
.vg-admin .admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .vg-admin .admin-grid { grid-template-columns: 1.25fr 0.85fr; }
}
.vg-admin .admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.vg-admin .admin-toolbar .sec { width: auto; margin-top: 0; }
.vg-admin .admin-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vg-admin .quick-btn {
  width: auto !important;
  margin: 0 !important;
  background: var(--ink-soft) !important;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
}
.vg-admin .table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.vg-admin .tabla { margin: 0; }
.vg-admin .admin-links { display: flex; flex-direction: column; gap: 0.55rem; }
.vg-admin .admin-link-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.vg-admin .admin-link-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.vg-admin .admin-link-row span {
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
}
.vg-admin .admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 44, 0.45);
  z-index: 40;
}
.vg-admin .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.vg-admin .badge.warn { background: var(--gold-soft); color: var(--gold); }
.vg-admin .badge.ok { background: #dcfce7; color: var(--ok); }

@media (max-width: 860px) {
  .vg-admin .admin-shell { grid-template-columns: 1fr; }
  .vg-admin .admin-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(280px, 85vw);
    height: 100vh;
    height: 100dvh;
    padding-bottom: calc(1.15rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow-lg);
    /* encima del overlay (40); si no, el overlay se come los toques del menú */
    z-index: 50;
  }
  .vg-admin .admin-nav { flex: 0 0 auto; }
  .vg-admin .nav-item,
  .vg-admin button.nav-item { padding: 0.8rem 0.85rem; font-size: 0.95rem; }
  body.vg-admin.sidebar-open { overflow: hidden; }
  body.vg-admin.sidebar-open .admin-sidebar { transform: translateX(0); }
  body.sidebar-open .admin-overlay { display: block; }
  .vg-admin .admin-burger { display: inline-block; }
  .vg-admin .admin-top .sec { margin-left: 0; }
  .vg-admin .admin-view { padding: 1rem; }
}

/* =========================================================
   MÓVIL — web app usable en celular (PWA + touch)
   ========================================================= */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
@media (max-width: 720px) {
  .wrap {
    padding: 1rem 0.9rem calc(1rem + env(safe-area-inset-bottom));
    max-width: 100%;
  }
  body.has-mobile-nav .wrap {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
  body.has-mobile-nav > .wrap > nav {
    display: none;
  }
  input, select, textarea, button {
    font-size: 16px; /* evita zoom automático en iOS */
    min-height: 44px;
  }
  button, .btn-link, .vg-btn {
    min-height: 44px;
    touch-action: manipulation;
  }
  .fila-cedula {
    flex-direction: column;
  }
  .fila-cedula input,
  .fila-cedula button {
    width: 100%;
    min-width: 0;
  }
  .acciones-padron {
    flex-direction: column;
  }
  .acciones-padron .btn-link,
  .acciones-padron a {
    width: 100%;
    text-align: center;
  }
  .datos-padron > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .tabla {
    font-size: 0.82rem;
  }
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
  }
  #map {
    height: 55vh;
    min-height: 280px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-hero {
    height: 110px;
  }
  .vg-admin .admin-top {
    flex-wrap: wrap;
    padding: 0.75rem 0.9rem;
    gap: 0.5rem;
  }
  .vg-admin .admin-top h1 {
    font-size: 1.15rem;
  }
  .vg-admin .admin-top #btn-refresh {
    width: 100%;
    margin-left: 0;
  }
  .vg-admin .nav-item,
  .vg-admin button.nav-item {
    min-height: 44px;
    padding: 0.7rem 0.85rem;
  }
  .vg-login-box {
    margin: 0.5rem;
    padding: 1.35rem 1.15rem;
  }
  .vg-hero {
    padding: 1.75rem 0 2rem;
  }
  .vg-cta-row {
    flex-direction: column;
  }
  .vg-cta-row .vg-btn {
    width: 100%;
  }
  .vg-top-inner {
    padding: 0.7rem 0.9rem;
    gap: 0.5rem;
  }
  .vg-product-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Barra inferior (páginas de campaña) */
.m-bottom-nav {
  display: none;
}
@media (max-width: 720px) {
  .m-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #0b1c2c;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    gap: 0.15rem;
    box-shadow: 0 -8px 24px rgba(11, 28, 44, 0.2);
  }
  .m-bottom-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: rgba(232, 238, 244, 0.65);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.45rem 0.2rem;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
  }
  .m-bottom-nav a.is-active {
    color: #5eead4;
    background: rgba(94, 234, 212, 0.12);
  }
  body.tema-campana .m-bottom-nav a.is-active {
    color: #fff;
    background: color-mix(in srgb, var(--campana-color, #0f766e) 55%, #0b1c2c);
  }
}

@media (min-width: 721px) {
  .m-bottom-nav { display: none !important; }
}

/* Envíos WhatsApp — asistente 1-2-3 */
.wa-card { --wa: #0e7c66; max-width: 42rem; }
.wa-intro { margin: 0.35rem 0 0.75rem; font-size: 0.98rem; }
.wa-aviso-salida {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.wa-aviso-ok {
  background: #d8f3ea;
  border: 1px solid #9ad9c5;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.wa-aviso-salida p,
.wa-aviso-ok p { margin: 0.35rem 0 0; color: #334155; }
.wa-masivo-block {
  border: 1px solid #d7dee8;
  border-radius: 14px;
  padding: 1rem 1.05rem;
  margin: 0 0 1rem;
  background: #f8fafc;
}
.wa-masivo-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}
.wm-table-scroll {
  max-height: 220px;
  overflow: auto;
  margin-top: 0.5rem;
}
.wa-prueba {
  background: #f3fbf8;
  border: 2px solid #0e7c66;
  border-radius: 14px;
  padding: 1rem 1.05rem;
  margin: 0.5rem 0 0.25rem;
}
.wa-prueba h4 { margin: 0 0 0.65rem; font-size: 1.05rem; color: #0e7c66; }
.wa-prueba input[type="tel"],
.wa-prueba input[type="text"] {
  margin-bottom: 0.55rem;
}
.wa-prueba .wa-btn-abrir { margin-top: 0.35rem !important; width: 100% !important; }
.wa-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  padding: 0.35rem 0 0.5rem;
}
.wa-btn-editar {
  display: block;
  width: 100% !important;
  margin: 0 0 0.85rem !important;
  padding: 0.85rem 1rem !important;
  background: #0e7c66 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  text-align: center;
}
.wa-media-box {
  background: #f3fbf8;
  border: 1px solid #9ad9c5;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.85rem 0 0.5rem;
}
.wa-media-box h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0e7c66;
}
.wa-media-box code {
  font-size: 0.85rem;
  background: #e8eef2;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  word-break: break-all;
}
.wa-tab {
  flex: 1;
  min-width: 6.5rem;
  margin: 0 !important;
  padding: 0.65rem 0.5rem !important;
  font-size: 0.9rem !important;
  background: #e8eef2 !important;
  color: #334155 !important;
  border: 1px solid #cfd8e3 !important;
  border-radius: 10px !important;
}
.wa-tab.is-active {
  background: var(--wa) !important;
  color: #fff !important;
  border-color: var(--wa) !important;
  font-weight: 700;
}
.wa-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wa-panel { margin-top: 0.25rem; }
.wa-panel[hidden] { display: none !important; }
.wa-panel-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}
.wa-opciones {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}
.wa-opcion {
  display: block;
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  padding: 0.95rem 1.05rem !important;
  background: #fff !important;
  color: #16201c !important;
  border: 2px solid #cfd8d3 !important;
  border-radius: 12px !important;
}
.wa-opcion:hover,
.wa-opcion:focus {
  border-color: var(--wa) !important;
  background: #f3fbf8 !important;
}
.wa-opcion strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.wa-opcion span {
  display: block;
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 400;
}
.wa-nav-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  align-items: center;
}
.wa-file-btn {
  display: inline-block;
  width: auto !important;
  margin: 0 !important;
  cursor: pointer;
  text-align: center;
}
.wa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.65rem;
}
.wa-chip {
  width: auto !important;
  margin: 0 !important;
  padding: 0.32rem 0.6rem !important;
  font-size: 0.82rem !important;
  background: #d8f3ea !important;
  color: #0e7c66 !important;
  border: 1px solid #9ad9c5 !important;
}
.wa-progress {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.35rem 0 0.75rem;
}
.wa-progress-bar {
  height: 100%;
  width: 0;
  background: var(--wa, #0e7c66);
  transition: width 0.25s ease;
}
.wa-kpis-simple { margin-bottom: 0.75rem; }
.wa-bubble-card {
  background: #eef2f0;
  border: 1px solid #cfd8d3;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0.6rem 0;
}
.wa-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin: 0 0 0.55rem;
}
.wa-tel {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92rem;
  color: #334155;
}
.wa-bubble {
  white-space: pre-wrap;
  word-break: break-word;
  background: #dcf8c6;
  border-radius: 12px 12px 4px 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  margin: 0.4rem 0 0.75rem;
}
.wa-bubble-img { margin-bottom: 0.4rem; }
.wa-bubble-img img,
.wa-img-prev {
  max-width: 180px;
  max-height: 140px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}
.wa-img-prev-wrap { margin: 0.5rem 0; }
.wa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0 0.35rem;
}
.wa-btn-abrir {
  background: #0e7c66 !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  padding: 0.75rem 1.15rem !important;
  width: auto !important;
  min-width: 11rem;
  margin: 0 !important;
}
.wa-btn-abrir:disabled { opacity: 0.45; cursor: not-allowed; }
.wa-done {
  background: #d8f3ea;
  border: 1px solid #9ad9c5;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0;
}
.wa-details,
.wa-details-email { margin-top: 0.85rem; }
.wa-details summary,
.wa-details-email summary {
  cursor: pointer;
  font-size: 0.95rem;
  color: #334155;
}
#wa-map {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.4rem;
}
#tabla-wa tbody tr.wa-row { cursor: pointer; }
#tabla-wa tbody tr.wa-row:hover { background: #f1f5f9; }
.wa-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  background: #16201c;
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  z-index: 80;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  max-width: min(92vw, 28rem);
  text-align: center;
}
.wa-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 1rem;
}
.wa-modal[hidden] { display: none !important; }
.wa-modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  max-width: 22rem;
  width: 100%;
}
.wa-modal-box p { margin: 0 0 0.85rem; }

/* PWA: botón flotante "Instalar app" */
.pwa-instalar {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 9999;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.pwa-instalar:hover { background: var(--accent-hover); }

/* Inicio del panel: flyer de la campaña en grande */
.vg-admin .inicio-flyer {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}
.vg-admin .inicio-flyer[hidden] { display: none; }
.vg-admin .inicio-flyer-fondo {
  position: absolute;
  inset: -30px;
  background: center / cover no-repeat;
  filter: blur(24px) brightness(0.5);
  transform: scale(1.1);
}
.vg-admin .inicio-flyer img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.vg-admin .inicio-flyer-acciones {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.vg-admin .inicio-flyer-acciones button,
.vg-admin .inicio-flyer-acciones a {
  margin: 0;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.vg-admin .inicio-flyer-acciones a {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
}
@media (max-width: 420px) {
  .vg-admin .inicio-flyer { padding: 0.6rem; border-radius: var(--radius); }
  .vg-admin .inicio-flyer-acciones { grid-template-columns: 1fr; }
}

/* Compartir enlace */
.vg-admin .comp-card textarea { width: 100%; font-family: inherit; }
.vg-admin .comp-preview { display: flex; justify-content: center; margin: 0.5rem 0 1rem; }
.vg-admin .comp-preview img {
  max-width: 260px;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.vg-admin .comp-acciones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
@media (min-width: 720px) {
  .vg-admin .comp-acciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vg-admin .comp-acciones button,
.vg-admin .comp-acciones a {
  width: 100%;
  margin: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.vg-admin .comp-acciones button.comp-wa {
  background: #1fa855 !important;
  color: #fff !important;
  font-size: 1.05rem;
}
.vg-admin .comp-acciones .comp-descargar[hidden],
.vg-admin .comp-acciones button[hidden] { display: none; }

/* Mi portada: edición del flyer */
.vg-admin .portada-flyer-edit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.vg-admin .portada-flyer-edit img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  justify-self: center;
}
.vg-admin .portada-flyer-edit .wa-file-btn,
.vg-admin .portada-flyer-edit button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0 0 0.5rem;
  cursor: pointer;
}
@media (min-width: 720px) {
  .vg-admin .portada-flyer-edit { grid-template-columns: 280px 1fr; }
}
.vg-admin .comp-card textarea,
.vg-admin #pf-bio { width: 100%; font-family: inherit; }

/* El botón flotante no debe heredar el ancho 100% de los botones del panel */
.pwa-instalar,
.vg-admin button.pwa-instalar {
  width: auto !important;
  margin: 0 !important;
  left: auto !important;
}

/* —— Alta de clientes por link de activación —— */
.login-ayuda { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }
.inv-resultado { margin-top: 1rem; padding: 0.9rem; border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.inv-resultado input { font-size: 0.85rem; background: #fff; }
.inv-botones { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.inv-botones button { width: auto; margin-top: 0; }
.btn-wa { display: inline-flex; align-items: center; padding: 0.7rem 1rem; border-radius: 10px; background: #25d366; color: #fff; font-weight: 700; text-decoration: none; }
#tabla-invitaciones button, .celda-botones button, .celda-botones .btn-wa { margin: 0.15rem 0.25rem 0.15rem 0; padding: 0.4rem 0.7rem; font-size: 0.85rem; }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; font-size: 0.9rem; }
.login-links a { font-weight: 600; text-decoration: none; }
.aviso-pendiente { margin: 0 0 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--gold-soft); color: var(--gold); border: 1px solid #fdba74; font-size: 0.92rem; }
.aviso-pendiente[hidden] { display: none; }
.vg-admin .nav-item[hidden] { display: none !important; }
.nav-badge { display: inline-block; min-width: 1.4rem; margin-left: 0.35rem; padding: 0 0.4rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; }
.nav-badge[hidden] { display: none; }
.plan-estado h2 { margin-bottom: 0.35rem; }
.plan-estado p { margin: 0; }
#plan-comprar[hidden] { display: none; }
.plan-opciones { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan-opcion { display: flex; flex-direction: column; gap: 0.2rem; margin: 0; padding: 1rem; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; }
.plan-opcion:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-opcion input { width: auto; align-self: flex-start; }
.plan-nombre { font-weight: 700; font-size: 1.05rem; }
.plan-precio { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.plan-desc { font-size: 0.9rem; white-space: pre-wrap; }
.plan-banco .btn-copiar-dato { width: auto; margin: 0 0 0 0.4rem; padding: 0.2rem 0.6rem; font-size: 0.8rem; }
.plan-banco .btn-wa { margin-top: 0.75rem; }
.editando-campana { margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.editando-campana:empty { display: none; }
.campo-clave { position: relative; }
.campo-clave input { padding-right: 3.2rem; }
.campo-clave .ver-clave { position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%); width: 2.6rem; height: 2.4rem; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.campo-clave .ver-clave:hover { background: var(--paper); }

.vg-admin .nav-item.bloqueado{opacity:.55}
.plan-incluye{list-style:none;padding:0;margin:.5rem 0;display:grid;gap:.35rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.plan-incluye li.no{color:#888}
