/* ════════════════════════════════════════════════════════════════
   VIDDIO.IO — Sistema visual. Tema claro, paneles flotantes,
   navegación en píldoras y acento azul, alineado con el estudio
   de video.baitana.com.
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbfbfc;
  --bg-stage: #f1f2f5;
  --surface: #ffffff;
  --border: #e8eaef;
  --border-strong: #d9dde5;
  --text: #17181c;
  --muted: #7a8091;
  --accent: #2e7cf6;
  --accent-deep: #1f6ae0;
  --accent-soft: #eaf2ff;
  --grad: linear-gradient(180deg, #55a1ff 0%, #2e7cf6 100%);
  --danger: #f0384e;
  --danger-soft: #fdeef0;
  --ok: #18b26b;
  --ok-soft: #e8f8f0;
  --warn: #d98218;
  --warn-soft: #fff5e8;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-md: 0 6px 20px rgba(16, 24, 40, .08);
  --sh-lg: 0 18px 50px rgba(16, 24, 40, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; color: inherit; }
code {
  background: #f2f3f6; border: 1px solid var(--border); border-radius: 6px;
  padding: 1px 6px; font-size: .86em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Iconos del sprite SVG */
.ic {
  width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8;
  fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 24px; height: 24px; }

/* ═══════════ ESTRUCTURA: paneles flotantes ═══════════ */

.shell { display: flex; min-height: 100vh; padding: 14px; gap: 14px; }

.side {
  width: 268px; flex: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--sh-sm); padding: 20px 16px;
  display: flex; flex-direction: column; position: sticky; top: 14px;
  height: calc(100vh - 28px); overflow: auto;
}
.side-brand {
  display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800;
  letter-spacing: -.02em; padding: 4px 6px 18px; color: var(--text);
}
.side-brand:hover { text-decoration: none; }
/* Marca de Viddio: capibara de línea. Hereda el color del contexto, así
   que en el panel va en azul y sobre fondo de color se pinta en blanco. */
.mark { width: 28px; height: 28px; color: var(--accent); flex: none; }

.side-brand .mark { margin-left: -2px; }

/* Logotipo completo (mascota + palabra). Se mide por altura: la imagen es
   4:1, así el ancho sale solo y nunca se deforma. */
.logotipo { height: 30px; width: auto; display: block; }
.side-brand .logotipo { height: 32px; margin-left: -2px; }
.mk-logo .logotipo { height: 34px; }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; color: var(--text); text-decoration: none;
}
.side nav a:hover { background: #f3f5f9; text-decoration: none; }
.side nav a.on { background: var(--accent-soft); color: var(--accent); }
.side nav .grp {
  font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 16px 8px 6px;
}
.side-foot {
  margin-top: auto; padding-top: 14px;
  /* Pegado abajo: con la lista larga, en pantallas de laptop el acceso a
     plataforma y el enlace de salir quedaban fuera del scroll. */
  position: sticky; bottom: -20px; background: var(--surface);
  box-shadow: 0 -12px 12px -12px rgba(16, 24, 40, .12);
}
.side-foot .who { font-size: 14px; font-weight: 700; }
.side-foot .org { color: var(--muted); font-size: 12.5px; }
.side-user {
  display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px;
  border-top: 1px solid var(--border);
}
.side-links { display: flex; gap: 12px; padding: 8px 6px 0; }
.side-links a { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.side-links a:hover { color: var(--text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.topbar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--sh-sm); padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.topbar .sub { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.wrap { padding: 0 0 40px; max-width: 1280px; width: 100%; }

/* ═══════════ BOTONES ═══════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #fff; border: 0; font: inherit; font-size: 15px; font-weight: 700;
  border-radius: 999px; padding: 12px 22px; text-decoration: none; cursor: pointer;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .55; transform: none; cursor: not-allowed; filter: none; }

.btn-ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--sh-sm); font-weight: 600; font-size: 14px; padding: 11px 18px;
}
.btn-ghost:hover { background: #f6f8fb; border-color: var(--border-strong); color: var(--text); filter: none; }

.btn-danger { background: var(--danger); box-shadow: var(--sh-sm); }
.btn-danger:hover { background: #d92e43; color: #fff; }
.btn-ghost.btn-danger { background: var(--surface); color: var(--danger); border-color: #f6ccd3; }
.btn-ghost.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }

/* Acceso al panel de plataforma. Violeta a propósito: es el color de ese
   panel y lo distingue del azul, que es el producto. Va después de .btn
   porque comparten especificidad y gana el último declarado. */
.btn-plataforma {
  background: linear-gradient(180deg, #9764f5 0%, #7c3aed 100%);
  border: 0; color: #fff;
}
.btn-plataforma:hover { color: #fff; filter: brightness(1.06); }

.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ═══════════ TARJETAS ═══════════ */

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 24px; box-shadow: var(--sh-sm); margin-bottom: 14px;
}
.card > h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 3px; }
.card > h3 { font-size: 15.5px; font-weight: 700; }
.card .hint { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h2 { margin-bottom: 2px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }

/* ═══════════ FORMULARIOS ═══════════ */

label.lbl { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
label.lbl .opt { font-weight: 500; color: var(--muted); }

.inp, select.inp, textarea.inp {
  width: 100%; font: inherit; font-size: 14.5px; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 124, 246, .13); }
.inp:disabled { background: #f6f7f9; color: var(--muted); }
textarea.inp { resize: vertical; min-height: 88px; line-height: 1.55; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8091' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }

.field { margin-bottom: 16px; }
.row { display: grid; gap: 14px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: none; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ═══════════ TABLAS ═══════════ */

.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; padding: 12px 16px; background: #f9fafc; border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); font-weight: 700; white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid #f2f3f6; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t-main { font-weight: 700; color: var(--text); }
.t-sub { font-size: 12.5px; color: var(--muted); }

/* ═══════════ ETIQUETAS ═══════════ */

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: #f2f3f6; color: var(--muted); white-space: nowrap;
}
.tag-ok { background: var(--ok-soft); color: #0f8a51; }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-brand { background: var(--accent-soft); color: var(--accent); }

/* ═══════════ MÉTRICAS ═══════════ */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--sh-sm);
}
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; line-height: 1.1; }
.stat .d { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stat .bar { height: 6px; border-radius: 999px; background: #f0f1f5; margin-top: 12px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

/* ═══════════ GRABADOR ═══════════ */

.rec-stage {
  position: relative; background: #101216; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16/10; box-shadow: var(--sh-md);
}
/* En el teléfono la cámara es vertical: forzar 16/10 recortaría la cara.
   Se deja más alto que ancho y el video se ajusta dentro. */
@media (max-width: 760px) {
  .rec-stage { aspect-ratio: 3/4; }
  .rec-stage video { object-fit: contain; }
  .rec-bar .btn { flex: 1; min-width: 120px; }
  .rec-time { width: 100%; margin-left: 0; text-align: center; }
}
.rec-stage video { width: 100%; height: 100%; object-fit: cover; display: block; background: #101216; }
.rec-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; color: #98a0b0; text-align: center; padding: 24px; font-weight: 600;
}
.rec-dot {
  position: absolute; top: 14px; left: 14px; display: none; align-items: center; gap: 8px;
  background: rgba(12, 14, 18, .82); color: #fff; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.rec-dot.on { display: flex; }
.rec-dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.tp {
  position: absolute; inset: 0; display: none; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 12, 16, .18), rgba(10, 12, 16, .62));
}
.tp.on { display: block; }
.tp-scroll {
  padding: 0 28px; color: #fff; font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 700;
  line-height: 1.5; text-shadow: 0 2px 12px rgba(0, 0, 0, .65); white-space: pre-wrap; text-align: center;
}
.rec-count {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(10, 12, 16, .45); color: #fff; font-size: 110px; font-weight: 800;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}
.rec-count.on { display: flex; }
.rec-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; align-items: center; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); font-size: 13.5px; margin-left: auto; }

.modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mode {
  flex: 1; min-width: 108px; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--r-md); padding: 13px 8px; text-align: center; font-size: 13.5px;
  font-weight: 700; color: var(--text); box-shadow: var(--sh-sm);
  transition: border-color .15s, box-shadow .15s;
}
.mode:hover { border-color: var(--border-strong); box-shadow: var(--sh-md); }
.mode.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.mode .ic { display: block; margin: 0 auto 5px; }

/* ═══════════ VISTA PREVIA DEL CORREO ═══════════ */

.mail-prev { background: var(--bg-stage); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--border); }
.mail-card { background: #fff; border-radius: var(--r-md); padding: 22px; box-shadow: var(--sh-md); }
.mail-thumb {
  border-radius: var(--r-sm); overflow: hidden; background: #dfe3ea; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-size: 13px; font-weight: 600; position: relative;
}
.mail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mail-play {
  position: absolute; width: 58px; height: 58px; border-radius: 50%; background: rgba(12, 14, 18, .78);
  display: grid; place-items: center; color: #fff; font-size: 22px;
}

/* ═══════════ COLA DE SALUDOS ═══════════ */

.queue-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--r-lg); background: #fff; margin-bottom: 10px; box-shadow: var(--sh-sm);
  transition: border-color .15s, box-shadow .15s;
}
.queue-item:hover { border-color: var(--border-strong); box-shadow: var(--sh-md); }
.queue-item.high { border-left: 3px solid var(--danger); }
.queue-item .who { flex: 1; min-width: 0; }
.queue-item .who b { display: block; font-size: 14.5px; font-weight: 700; }
.queue-item .who span { font-size: 12.5px; color: var(--muted); }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none;
  background-size: cover; background-position: center;
}

/* ═══════════ LÍNEA DE TIEMPO ═══════════ */

.tl { list-style: none; }
.tl li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f2f3f6; font-size: 14px; }
.tl li:last-child { border-bottom: 0; }
.tl .ic {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none;
  stroke: none; fill: none;
}
.tl .when { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; font-weight: 600; }

/* ═══════════ AVISOS ═══════════ */

.note {
  padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 14px;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-sm);
  display: flex; gap: 11px; align-items: flex-start; font-weight: 500;
}
.note-warn { background: var(--warn-soft); border-color: #f6e0bd; color: #8a5511; }
.note-ok { background: var(--ok-soft); border-color: #bce9d3; color: #0b6b3f; }
.note-danger { background: var(--danger-soft); border-color: #f8ced5; color: #b3182c; }
.note-brand { background: var(--accent-soft); border-color: #cadffd; color: var(--accent-deep); }
.note a { text-decoration: underline; }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .ic { font-size: 40px; margin-bottom: 12px; width: auto; height: auto; stroke: none; }
.empty h3 { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -.01em; }
.empty p { font-size: 14.5px; }

/* ═══════════ AVISOS FLOTANTES ═══════════ */

#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140%);
  background: #101216; color: #fff; padding: 13px 24px; border-radius: 999px; font-size: 14.5px;
  font-weight: 700; box-shadow: var(--sh-lg); z-index: 999; transition: transform .28s ease;
  max-width: 90vw; text-align: center;
}
#toast.on { transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--danger); }

/* ═══════════ MODALES ═══════════ */

.modal {
  position: fixed; inset: 0; background: rgba(16, 18, 22, .5); display: none;
  align-items: center; justify-content: center; padding: 22px; z-index: 200;
  backdrop-filter: blur(2px);
}
.modal.on { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; padding: 28px; box-shadow: var(--sh-lg);
}
.modal-box h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 3px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ═══════════ ACCESO ═══════════ */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding: 14px; gap: 14px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 30px 26px; }
.auth-form .box { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.auth-form .lead { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.auth-art {
  background: var(--grad); color: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-md);
  display: flex; flex-direction: column; justify-content: center; padding: 48px; gap: 22px;
}
.auth-art h2 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.auth-art p { color: rgba(255, 255, 255, .88); font-size: 16px; }
.auth-art ul { list-style: none; display: grid; gap: 12px; }
.auth-art li { display: flex; gap: 11px; align-items: flex-start; color: rgba(255, 255, 255, .95); font-size: 15px; font-weight: 600; }

/* ═══════════ SITIO COMERCIAL ═══════════ */

.mk-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 30px; max-width: 1180px; margin: 0 auto; gap: 16px; }
.mk-logo { font-weight: 800; font-size: 21px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; color: var(--text); }
.mk-logo:hover { text-decoration: none; }
.mk-logo .mark { width: 30px; height: 30px; }
.mk-hero { max-width: 880px; margin: 0 auto; padding: 66px 30px 44px; text-align: center; }
.mk-hero h1 { font-size: clamp(38px, 5.6vw, 62px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 20px; font-weight: 800; }
.mk-hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.mk-cta { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.mk-sec { max-width: 1180px; margin: 0 auto; padding: 50px 30px; }
.mk-sec h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; text-align: center; margin-bottom: 10px; }
.mk-sec .lead { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 36px; font-size: 16px; }
.mk-feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.mk-feat .ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; stroke: none; }
.mk-feat h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.mk-feat p { font-size: 14px; color: var(--muted); }
.mk-price { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px 24px; text-align: center; box-shadow: var(--sh-sm); }
.mk-price.hot { border-color: var(--accent); box-shadow: var(--sh-md); position: relative; }
.mk-price .nm { font-weight: 800; font-size: 16.5px; }
.mk-price .pr { font-size: 40px; font-weight: 800; letter-spacing: -.04em; margin: 12px 0 2px; }
.mk-price .pr small { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.mk-price ul { list-style: none; text-align: left; margin: 20px 0; display: grid; gap: 9px; font-size: 14px; color: var(--text); font-weight: 500; }
.mk-foot { border-top: 1px solid var(--border); padding: 30px; text-align: center; color: var(--muted); font-size: 14px; }
.badge-hot {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad);
  color: #fff; font-size: 11.5px; font-weight: 800; padding: 5px 14px; border-radius: 999px;
  box-shadow: var(--sh-sm);
}

/* ═══════════ FRAGMENTOS DE CÓDIGO ═══════════ */

.snip {
  background: #101216; color: #e6e8ec; padding: 16px; border-radius: var(--r-md);
  overflow-x: auto; font-size: 12.5px; line-height: 1.6; margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre;
}
details summary { cursor: pointer; font-weight: 700; font-size: 14px; }
details summary::-webkit-details-marker { color: var(--accent); }

/* ═══════════ PANTALLAS CHICAS ═══════════ */

@media (max-width: 1000px) {
  .g-side, .g4 { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

@media (max-width: 760px) {
  .shell { flex-direction: column; padding: 10px; gap: 10px; }
  .side {
    width: 100%; height: auto; position: static; padding: 14px;
    border-radius: var(--r-lg);
  }
  .side nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side nav a { white-space: nowrap; }
  .side nav .grp, .side-foot .org, .side-user { display: none; }
  .side-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
  .g2, .g3, .row-2, .row-3 { grid-template-columns: 1fr; }
  .topbar { padding: 14px 18px; border-radius: var(--r-lg); }
  .topbar h1 { font-size: 19px; }
  .card { padding: 18px; border-radius: var(--r-lg); }
  .mk-hero { padding: 40px 20px 30px; }
}
