/* ─── Tema "Vigente" sobre Bootstrap 5 ───────────────────────────────
   Papel cálido de fondo, petróleo profundo de marca y ámbar de "sello".
   Los colores de estado cumplen WCAG AA sobre sus fondos tenues. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --vg-ink: #14201f;
  --vg-ink-soft: #3b4644;
  --vg-muted: #5b6563;
  --vg-paper: #f7f4ee;
  --vg-surface: #ffffff;
  --vg-line: #e3ddd2;
  --vg-line-strong: #cfc7b8;
  --vg-brand: #123c3f;
  --vg-brand-600: #1b5357;
  --vg-brand-50: #e6efee;
  --vg-seal: #d9a441;
  --vg-seal-50: #fbf3e2;
  --vg-valid: #17663a;
  --vg-valid-bg: #e2f2e7;
  --vg-warn: #8a5300;
  --vg-warn-bg: #fff0d1;
  --vg-danger: #a41f15;
  --vg-danger-bg: #fce7e4;
  --vg-neutral: #4d535b;
  --vg-neutral-bg: #eceef0;
  --vg-radius-card: 1.25rem;
  --vg-shadow-card: 0 1px 2px rgb(20 32 31 / 0.06), 0 8px 24px -12px rgb(20 32 31 / 0.18);
  --vg-shadow-float: 0 24px 60px -20px rgb(18 60 63 / 0.45);
  --vg-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --vg-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Bootstrap */
  --bs-body-font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--vg-ink);
  --bs-body-bg: var(--vg-paper);
  --bs-border-color: var(--vg-line);
  --bs-primary: var(--vg-brand);
  --bs-primary-rgb: 18, 60, 63;
  --bs-link-color: var(--vg-brand-600);
  --bs-link-color-rgb: 27, 83, 87;
  --bs-link-hover-color: var(--vg-brand);
  --bs-secondary-color: var(--vg-muted);
  --bs-success-rgb: 23, 102, 58;
  --bs-danger-rgb: 164, 31, 21;
  --bs-warning-rgb: 217, 164, 65;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius-lg: 1rem;
  --bs-focus-ring-color: rgb(18 60 63 / 0.25);
}

body {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, .font-display {
  font-family: var(--vg-display);
  letter-spacing: -0.01em;
}
.font-mono { font-family: var(--vg-mono); }
::selection { background: rgb(217 164 65 / 0.4); }
.text-muted, .text-body-secondary { color: var(--vg-muted) !important; }
.text-brand { color: var(--vg-brand) !important; }
.bg-paper { background: var(--vg-paper) !important; }
.bg-brand { background: var(--vg-brand) !important; }

/* Botones */
.btn { font-weight: 600; border-radius: 0.75rem; }
.btn-primary {
  --bs-btn-bg: var(--vg-brand); --bs-btn-border-color: var(--vg-brand);
  --bs-btn-hover-bg: var(--vg-brand-600); --bs-btn-hover-border-color: var(--vg-brand-600);
  --bs-btn-active-bg: var(--vg-brand); --bs-btn-active-border-color: var(--vg-brand);
  --bs-btn-disabled-bg: var(--vg-brand); --bs-btn-disabled-border-color: var(--vg-brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--vg-brand); --bs-btn-border-color: var(--vg-line-strong);
  --bs-btn-hover-bg: var(--vg-brand-50); --bs-btn-hover-color: var(--vg-brand); --bs-btn-hover-border-color: var(--vg-brand);
  --bs-btn-active-bg: var(--vg-brand-50); --bs-btn-active-color: var(--vg-brand); --bs-btn-active-border-color: var(--vg-brand);
  background: var(--vg-surface);
}
.btn-seal {
  --bs-btn-bg: var(--vg-seal); --bs-btn-border-color: var(--vg-seal); --bs-btn-color: var(--vg-ink);
  --bs-btn-hover-bg: #c99332; --bs-btn-hover-border-color: #c99332; --bs-btn-hover-color: var(--vg-ink);
  --bs-btn-active-bg: #c99332; --bs-btn-active-color: var(--vg-ink);
}
.btn-ghost { --bs-btn-color: var(--vg-ink-soft); --bs-btn-hover-bg: var(--vg-brand-50); --bs-btn-hover-color: var(--vg-brand); }

/* Formularios */
.form-control, .form-select {
  border-color: var(--vg-line-strong);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  font-size: 15px;
}
.form-control:focus, .form-select:focus { border-color: var(--vg-brand); box-shadow: 0 0 0 0.2rem rgb(18 60 63 / 0.15); }
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 0.35rem; }
.form-text { color: var(--vg-muted); }
.form-check-input:checked { background-color: var(--vg-brand); border-color: var(--vg-brand); }
.form-control-color { width: 3rem; padding: 0.3rem; }

/* Tarjetas de panel */
.card {
  --bs-card-border-color: var(--vg-line);
  --bs-card-border-radius: var(--vg-radius-card);
  --bs-card-inner-border-radius: calc(var(--vg-radius-card) - 1px);
  --bs-card-cap-bg: transparent;
  box-shadow: var(--vg-shadow-card);
}
.card-header { font-weight: 700; font-family: var(--vg-display); border-bottom-color: var(--vg-line); padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--vg-brand-50); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: 0.7rem 0.9rem; border-bottom-color: var(--vg-line); }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--vg-muted); font-weight: 600; }
.etiqueta { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--vg-muted); font-weight: 600; }

/* Estados */
.estado {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado-vigente, .estado-activa, .estado-activo, .estado-enviado { background: var(--vg-valid-bg); color: var(--vg-valid); }
.estado-vencida, .estado-deshabilitado, .estado-pendiente, .estado-enviando, .estado-descartado { background: var(--vg-neutral-bg); color: var(--vg-neutral); }
.estado-suspendida, .estado-por-vencer { background: var(--vg-warn-bg); color: var(--vg-warn); }
.estado-revocada, .estado-fallido { background: var(--vg-danger-bg); color: var(--vg-danger); }

.alert { border-radius: 0.9rem; border: 1px solid transparent; }
.alert-success { background: var(--vg-valid-bg); color: var(--vg-valid); border-color: rgb(23 102 58 / 0.2); }
.alert-danger { background: var(--vg-danger-bg); color: var(--vg-danger); border-color: rgb(164 31 21 / 0.2); }
.alert-warning { background: var(--vg-warn-bg); color: var(--vg-warn); border-color: rgb(138 83 0 / 0.25); }
.alert-info { background: var(--vg-brand-50); color: var(--vg-brand); border-color: rgb(18 60 63 / 0.15); }

/* ─── Panel ─── */
.panel { display: flex; min-height: 100vh; }
.panel-lateral {
  width: 248px; flex-shrink: 0; background: var(--vg-brand); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.panel-lateral .marca { padding: 1.25rem 1.25rem 1rem; display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.panel-lateral .marca span { font-family: var(--vg-display); font-size: 1.25rem; font-weight: 700; }
.panel-lateral .org {
  margin: 0 0.75rem 0.75rem; padding: 0.65rem 0.8rem; border-radius: 0.8rem; background: rgb(255 255 255 / 0.08);
  font-size: 13px; line-height: 1.3;
}
.panel-lateral .org small { display: block; color: rgb(255 255 255 / 0.65); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.panel-lateral nav { padding: 0 0.75rem; flex: 1; }
.panel-lateral nav a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem; border-radius: 0.7rem;
  color: rgb(255 255 255 / 0.82); text-decoration: none; font-weight: 500; font-size: 15px; margin-bottom: 2px;
}
.panel-lateral nav a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.panel-lateral nav a.activo { background: rgb(255 255 255 / 0.14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--vg-seal); }
.panel-lateral nav .seccion { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(255 255 255 / 0.5); padding: 1rem 0.8rem 0.35rem; }
.panel-lateral .pie { padding: 1rem 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 13px; }
.panel-lateral .pie .btn { color: rgb(255 255 255 / 0.8); padding: 0; font-weight: 500; }
.panel-contenido { flex: 1; min-width: 0; }
.panel-barra {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 2rem; border-bottom: 1px solid var(--vg-line); background: rgb(247 244 238 / 0.9);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px);
}
.panel-barra h1 { font-size: 1.35rem; margin: 0; font-weight: 700; }
.panel-main { padding: 1.75rem 2rem 3rem; max-width: 1240px; }
.panel-toggle { display: none; }
@media (max-width: 991.98px) {
  .panel-lateral { position: fixed; left: -260px; z-index: 30; transition: left 0.2s; }
  .panel-lateral.abierto { left: 0; box-shadow: var(--vg-shadow-float); }
  .panel-toggle { display: inline-flex; }
  .panel-barra, .panel-main { padding-left: 1rem; padding-right: 1rem; }
}
.cifra { font-family: var(--vg-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.cifra-tarjeta { display: block; text-decoration: none; color: inherit; height: 100%; }
.cifra-tarjeta:hover { border-color: var(--vg-brand); }
.vacio { text-align: center; padding: 3rem 1rem; color: var(--vg-muted); }
.vacio i { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; color: var(--vg-line-strong); }
.avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; background: var(--vg-brand-50); color: var(--vg-brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; object-fit: cover;
}
.enlace-copiable { font-family: var(--vg-mono); font-size: 12.5px; word-break: break-all; background: var(--vg-paper); border-radius: 0.6rem; padding: 0.5rem 0.7rem; }

/* ─── Páginas públicas ─── */
.publico-angosto { max-width: 28rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; min-height: 100dvh; display: flex; flex-direction: column; }
.tarjeta-publica { background: var(--vg-surface); border: 1px solid var(--vg-line); border-radius: var(--vg-radius-card); box-shadow: var(--vg-shadow-card); overflow: hidden; }
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth .tarjeta-publica { width: 100%; max-width: 26rem; padding: 2rem; }

.verif-banda { padding: 2rem 1.5rem 1.75rem; text-align: center; color: #fff; }
.verif-banda h1 { font-size: 1.7rem; font-weight: 700; margin: 1rem 0 0.5rem; line-height: 1.15; }
.verif-banda p { margin: 0; font-size: 15px; color: rgb(255 255 255 / 0.9); }
.verif-banda svg { width: 5rem; height: 5rem; }
.banda-vigente { background: var(--vg-valid); }
.banda-vencida { background: var(--vg-neutral); }
.banda-suspendida { background: var(--vg-warn); }
.banda-revocada { background: var(--vg-danger); }
.verif-cuerpo { padding: 1.5rem; display: grid; gap: 1.25rem; }
.verif-logo { width: 3rem; height: 3rem; border-radius: 0.75rem; border: 1px solid var(--vg-line); background: #fff; object-fit: contain; padding: 0.25rem; }
.verif-inicial { width: 3rem; height: 3rem; border-radius: 0.75rem; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--vg-display); font-weight: 700; font-size: 1.1rem; }
.verif-titular { background: var(--vg-paper); border-radius: 1rem; padding: 1rem; display: flex; gap: 1rem; align-items: center; }
.verif-titular img { width: 4rem; height: 5rem; border-radius: 0.75rem; object-fit: cover; }
.verif-titular .nombre { font-family: var(--vg-display); font-size: 1.5rem; font-weight: 700; line-height: 1.15; word-break: break-word; }
.verif-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin: 0; }
.verif-datos dd { margin: 0.15rem 0 0; font-weight: 600; }
.verif-pie { border-top: 1px solid var(--vg-line); background: rgb(247 244 238 / 0.6); color: var(--vg-muted); font-size: 12px; padding: 0.75rem 1.5rem; display: flex; justify-content: space-between; gap: 0.75rem; }
.reloj { font-family: var(--vg-mono); white-space: nowrap; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 0.4rem; }
.reloj::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vg-valid); animation: latido 1.2s infinite; }
@keyframes latido { 50% { opacity: 0.3; } }

/* Landing */
.landing-nav a.enlace { color: var(--vg-ink-soft); font-weight: 500; text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 0.6rem; }
.landing-nav a.enlace:hover { color: var(--vg-ink); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.pildora { background: var(--vg-seal-50); color: var(--vg-warn); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.pildora::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vg-seal); }
.telefono { border: 10px solid var(--vg-ink); background: var(--vg-paper); border-radius: 3rem; padding: 0.75rem; box-shadow: var(--vg-shadow-float); position: relative; }
.telefono::before { content: ""; display: block; width: 6rem; height: 1.25rem; border-radius: 999px; background: var(--vg-ink); margin: 0 auto 0.75rem; }
.halo { position: relative; }
.halo::before { content: ""; position: absolute; inset: -2.5rem; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgb(217 164 65 / 0.35), transparent 65%); }
.seccion { padding: 5rem 0; }
.bloque { background: var(--vg-paper); border: 1px solid var(--vg-line); border-radius: var(--vg-radius-card); padding: 1.5rem; height: 100%; }
.paso { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--vg-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--vg-display); font-weight: 700; font-size: 1.1rem; }
.punto-claro { border-radius: 1rem; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15); padding: 1.25rem; height: 100%; }
.plan { border: 1px solid var(--vg-line); background: var(--vg-paper); border-radius: var(--vg-radius-card); padding: 1.75rem; display: flex; flex-direction: column; height: 100%; }
.plan.destacado { background: var(--vg-brand); color: #fff; border-color: var(--vg-brand); box-shadow: var(--vg-shadow-float); }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 0; flex: 1; }
.plan li { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.plan li::before { content: "✓"; color: var(--vg-valid); }
.plan.destacado li::before { color: var(--vg-seal); }

/* ─── Tarjeta de credencial (misma composición que el PNG de Java2D) ─── */
.credencial {
  --c-fondo: #123c3f; --c-texto: #fff; --c-acento: #d9a441; --c-tenue: rgb(255 255 255 / 0.72);
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 360px;
  border-radius: 26px; overflow: hidden; color: var(--c-texto);
  background-color: var(--c-fondo);
  background-image: linear-gradient(155deg, rgb(255 255 255 / 0.1) 0%, rgb(255 255 255 / 0) 45%, rgb(0 0 0 / 0.18) 100%);
  box-shadow: 0 24px 60px -20px rgb(18 60 63 / 0.55);
  font-family: "Instrument Sans", system-ui, sans-serif;
}
.credencial .c-cab { display: flex; align-items: center; gap: 12px; padding: 20px 22px 14px; }
.credencial .c-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.credencial .c-logo img { width: 38px; height: 38px; object-fit: contain; }
.credencial .c-org { font-size: 15px; font-weight: 700; line-height: 1.2; }
.credencial .c-etq { font-size: 9.5px; letter-spacing: 0.9px; text-transform: uppercase; color: var(--c-tenue); font-weight: 600; }
.credencial .c-barra { height: 4px; width: 56px; margin-left: 22px; border-radius: 4px; background: var(--c-acento); }
.credencial .c-titular { display: flex; gap: 14px; align-items: center; padding: 16px 22px 4px; }
.credencial .c-foto { width: 72px; height: 88px; border-radius: 14px; object-fit: cover; border: 2px solid color-mix(in srgb, var(--c-texto) 35%, transparent); flex-shrink: 0; }
.credencial .c-nombre { font-size: 23px; font-weight: 700; line-height: 1.12; margin-top: 3px; letter-spacing: -0.3px; word-break: break-word; }
.credencial .c-detalles { display: flex; flex-wrap: wrap; padding: 10px 22px 0; row-gap: 10px; }
.credencial .c-detalle { width: 50%; padding-right: 8px; display: flex; flex-direction: column; }
.credencial .c-detalle.completo { width: 100%; }
.credencial .c-valor { font-size: 13.5px; font-weight: 600; line-height: 1.25; margin-top: 2px; word-break: break-word; }
.credencial .c-qr { margin: 18px 16px 16px; padding: 16px 16px 12px; background: #fff; border-radius: 18px; color: #14201f; display: flex; flex-direction: column; align-items: center; }
.credencial .c-qr img { width: 200px; height: 200px; max-width: 100%; }
.credencial .c-numero { margin-top: 8px; font-size: 15px; font-weight: 700; letter-spacing: 1.2px; font-family: var(--vg-mono); }
.credencial .c-ayuda { margin-top: 2px; font-size: 10px; color: #5b6563; }
.credencial .c-pie { padding: 0 22px 18px; display: flex; flex-direction: column; gap: 4px; }
.credencial .c-sitio { font-size: 11px; font-weight: 600; }
.credencial .c-legal { font-size: 9.5px; line-height: 1.35; color: var(--c-tenue); }
.credencial .c-cinta {
  position: absolute; top: 150px; left: -40px; right: -40px; text-align: center; transform: rotate(-12deg);
  color: #fff; font-size: 26px; font-weight: 800; letter-spacing: 6px; padding: 8px 0; box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
}

@media print {
  .no-print { display: none !important; }
}

/* ─── Impresión del QR ─── */
.presets-qr { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.preset-qr { text-align: left; border: 1px solid var(--vg-line); background: var(--vg-surface); border-radius: 0.75rem; padding: 0.65rem 0.8rem; color: var(--vg-ink); transition: border-color .15s, box-shadow .15s; }
.preset-qr:hover { border-color: var(--vg-line-strong); }
.preset-qr[aria-pressed="true"] { border-color: var(--vg-brand); background: var(--vg-brand-50); box-shadow: 0 0 0 3px rgb(18 60 63 / 0.15); }
.preset-qr strong { display: block; font-size: 0.875rem; }
.preset-qr span { display: block; font-size: 0.75rem; color: var(--vg-muted); }
.vista-qr-contenedor { position: sticky; top: 1.5rem; }
.vista-qr { background: #fff; box-shadow: 0 2px 12px rgb(0 0 0 / 0.12); outline: 1px solid var(--vg-line); width: 200px; height: 215px; }
.vista-qr img { width: 100%; height: 100%; display: block; }

/* ─── Foto de la persona ─── */
.foto-persona { width: 6rem; flex-shrink: 0; }
.foto-persona img, .foto-persona .sin-foto { width: 6rem; height: 7.5rem; border-radius: 0.9rem; object-fit: cover; display: block; }
.foto-persona .sin-foto { background: var(--vg-paper); border: 1px dashed var(--vg-line-strong); color: var(--vg-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.75rem; gap: 0.25rem; }
.foto-persona .sin-foto i { font-size: 1.75rem; }
.foto-persona label.btn { cursor: pointer; }
.verif-titular img { width: 6rem; height: 7.5rem; }
.verif-aviso-foto { font-size: 0.8125rem; color: var(--vg-ink-soft); margin: -0.25rem 0 0; display: flex; gap: 0.5rem; align-items: flex-start; }

/* ─── Ingresos por línea de negocio ─── */
.linea-empresas { background: var(--vg-brand); }
.linea-tarjetas { background: var(--vg-seal); }
.punto-linea { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.4rem; vertical-align: 0.05em; }
.barra-ingresos { display: flex; height: 0.6rem; border-radius: 0.3rem; overflow: hidden; background: var(--vg-paper); }
.barra-ingresos span { display: block; height: 100%; }

/* ─── Tarjetas de visita: área del cliente ─── */
.tv-barra { background: var(--vg-surface); border-bottom: 1px solid var(--vg-line); }
.tv-barra .container { display: flex; align-items: center; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.tv-barra .marca { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--vg-ink); text-decoration: none; }
.tv-barra .marca small { font-weight: 500; color: var(--vg-muted); }
.tv-barra nav { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-left: auto; }
.tv-barra nav a, .tv-barra nav button { color: var(--vg-ink-soft); text-decoration: none; padding: 0.45rem 0.75rem; border-radius: 0.6rem; font-weight: 500; background: none; border: 0; }
.tv-barra nav a:hover, .tv-barra nav button:hover { background: var(--vg-paper); color: var(--vg-ink); }
.tv-barra nav a.activo { background: var(--vg-brand-50); color: var(--vg-brand); }
.tv-main { padding: 2rem 0 3rem; }
.tv-estado { border-radius: var(--vg-radius-card); padding: 1.25rem 1.5rem; border: 1px solid var(--vg-line); background: var(--vg-surface); }
.tv-estado.publicada { background: var(--vg-valid-bg); border-color: rgb(23 102 58 / 0.2); }
.tv-estado.pendiente { background: var(--vg-seal-50); border-color: rgb(217 164 65 / 0.35); }

/* ─── Tarjeta de visita pública (/t/{slug}) ─── */
.tv-pagina { min-height: 100dvh; padding: 1.5rem 1rem 2.5rem; display: flex; flex-direction: column; align-items: center; }
.tv-tarjeta { --t-fondo: #123C3F; --t-texto: #FFFFFF; --t-acento: #D9A441;
  width: 100%; max-width: 26rem; background: var(--vg-surface); border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 10px 40px rgb(20 32 31 / 0.14); border: 1px solid var(--vg-line); }
.tv-cabecera { background: var(--t-fondo); color: var(--t-texto); text-align: center; padding: 2rem 1.5rem 1.5rem; }
.tv-foto { width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--t-acento); display: block; margin: 0 auto 1rem; background: rgb(255 255 255 / 0.1); }
.tv-inicial { width: 7rem; height: 7rem; border-radius: 50%; border: 3px solid var(--t-acento); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2.75rem; font-weight: 700; font-family: var(--vg-display); }
.tv-tarjeta .tv-nombre { letter-spacing: normal; font-family: var(--vg-display); font-size: 1.6rem; font-weight: 700; line-height: 1.15; margin: 0; word-break: break-word; }
.tv-cargo { color: var(--t-acento); font-weight: 600; margin-top: 0.35rem; }
.tv-empresa { opacity: 0.85; font-size: 0.95rem; }
.tv-cuerpo { padding: 1.25rem 1.25rem 1.5rem; }
.tv-presentacion { color: var(--vg-ink-soft); text-align: center; margin: 0 0 1.25rem; white-space: pre-line; }
.tv-guardar { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.85rem; border-radius: 0.9rem;
  background: var(--t-fondo); color: var(--t-texto); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.tv-guardar:hover { color: var(--t-texto); filter: brightness(1.08); }
.tv-acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.tv-accion { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.75rem 0.5rem; border-radius: 0.9rem;
  background: var(--vg-paper); color: var(--vg-ink); text-decoration: none; font-size: 0.85rem; font-weight: 600; border: 0; }
.tv-accion i { font-size: 1.35rem; color: var(--t-fondo); }
.tv-accion:hover { background: var(--vg-line); color: var(--vg-ink); }
.tv-redes { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.tv-redes a { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--vg-paper); color: var(--t-fondo); font-size: 1.2rem; text-decoration: none; }
.tv-redes a:hover { background: var(--vg-line); }
.tv-qr { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--vg-line); text-align: center; }
.tv-qr img { width: 9rem; height: 9rem; }
.tv-pie { margin-top: 1.5rem; text-align: center; font-size: 0.8rem; color: var(--vg-muted); }
.tv-pie a { color: var(--vg-ink-soft); font-weight: 600; }
.tv-aviso-previa { max-width: 26rem; width: 100%; margin-bottom: 1rem; }

/* Editor: vista previa fija al costado */
.tv-editor-previa { position: sticky; top: 1.5rem; }
.tv-editor-previa .tv-tarjeta { max-width: none; }
