:root {
  --bg: #0b1220;
  --fg: #e6edf3;
  --mut: #9fb0c2;
  --acc: #66d9ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, Segoe UI, Roboto;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

a {
  color: var(--acc);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
}

.card {
  background: #111a2e;
  border: 1px solid #1f2a44;
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

h1,
h2 {
  margin: 0 0 8px;
}

small {
  color: var(--mut);
}

.kv {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #0d1526;
  padding: 8px 10px;
  border-radius: 8px;
}

.code {
  white-space: pre-wrap;
  background: #0d1526;
  padding: 12px;
  border-radius: 8px;
}

img.qr {
  max-width: 220px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}
/* === Layout base / tipografía === */
* { box-sizing: border-box; }
html, body { height: 100%; }
img { max-width: 100%; height: auto; display: block; }

:root{
  --bg: #0b1220;         /* fondo */
  --panel: #111827;      /* tarjetas */
  --border: #1f2937;     /* bordes */
  --text: #e5e7eb;       /* texto principal */
  --muted: #9ca3af;      /* texto secundario */
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.container{ max-width: 1000px; margin: 0 auto; padding: 24px; }

h1{ margin: 0 0 18px; font-weight: 700; letter-spacing: .2px; }

/* === Tarjetas y rejilla de 2 columnas === */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 320px; /* datos | QR */
  gap: 24px;
  align-items: start;
}

/* === Bloques de código / info === */
pre.code{
  background: #0b1426;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  overflow: auto;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
}

/* === QR === */
.qr-wrap{
  display: flex;
  justify-content: center;
  align-items: start;
}

.qr-img{
  width: 100%;
  max-width: 280px;      /* tamaño máximo en desktop */
  aspect-ratio: 1 / 1;   /* mantiene cuadrado */
  object-fit: contain;
  background: #fff;      /* marco blanco para contraste */
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.06);
}


.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2a3b5f;
}

.btn:hover {
  background: #0d1526;
}

.btn.primary {
  border-color: #66d9ef;
}

code,
kbd {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #0d1526;
  padding: 2px 6px;
  border-radius: 6px;
}

pre.code {
  white-space: pre-wrap;
  background: #0d1526;
  padding: 12px;
  border-radius: 8px;
}
/* ========== Footer ========== */
:root{
  --footer-bg: #0d1320;           /* fondo oscuro elegante */
  --footer-border: rgba(255,255,255,.08);
  --footer-fg: rgba(255,255,255,.8);
  --footer-fg-dim: rgba(255,255,255,.6);
  --footer-accent: #27e0a3;       /* acento (links/badges) */
}

.site-footer{
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  margin-top: 3rem;
  width: 100%;
}

.site-footer .footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .95rem;
  color: var(--footer-fg);
}

.footer-left{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.footer-right{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Píldora "SitePanel" */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #0b1120;
  background: var(--footer-accent);
  letter-spacing: .2px;
}

/* Separador � y textos */
.dot{ color: var(--footer-fg-dim); }
.label{ color: var(--footer-fg-dim); }

/* Valores destacados */
.value{ color: #fff; font-weight: 600; }

/* Enlaces */
.footer-link{
  color: var(--footer-accent);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color .18s ease, color .18s ease, opacity .18s ease;
}
.footer-link:hover{
  border-bottom-color: var(--footer-accent);
  opacity: .9;
}

/* Responsive */
@media (max-width: 720px){
  .site-footer .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-right{ padding-top: 4px; }
}


/* === Responsive === */
@media (max-width: 820px){
  .grid-2{ grid-template-columns: 1fr; }
  .qr-wrap{ justify-content: flex-start; margin-top: 12px; }
  .card{ padding: 18px; }
  body{ font-size: 15px; }
}

@media (max-width: 420px){
  .container{ padding: 16px; }
  h1{ font-size: 1.35rem; }
  .qr-img{ max-width: 220px; padding: 10px; }
}
