/* ============================================================
   CLICMURAL — Identidad de marca v1
   Paleta: fondo noche #0A0A14, violeta eléctrico #7C3AED,
   cian vivo #22D3EE, coral CTA #FF4D6D, texto #F4F4F8
   Tipografía: Outfit (Google Fonts)
   ============================================================ */

:root {
  --vw-bg: #0A0A14;
  --vw-bg-2: #12121F;
  --vw-card: #16162A;
  --vw-card-2: #1D1D33;
  --vw-border: #2A2A45;
  --vw-text: #F4F4F8;
  --vw-muted: #9A9AB5;
  --vw-violet: #7C3AED;
  --vw-cyan: #22D3EE;
  --vw-coral: #FF4D6D;
  --vw-ok: #34D399;
  --vw-grad: linear-gradient(135deg, #7C3AED 0%, #22D3EE 100%);
  --vw-grad-hot: linear-gradient(135deg, #FF4D6D 0%, #7C3AED 100%);
  --vw-radius: 16px;
  --vw-font: 'Outfit', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Escalado automático en pantallas grandes: toda la interfaz crece
   proporcionalmente (paneles, formularios, dashboard, guía). */
@media (min-width: 1700px) { body { zoom: 1.2; } }
@media (min-width: 2200px) { body { zoom: 1.45; } }
@media (min-width: 3000px) { body { zoom: 1.85; } }

html, body {
  background: var(--vw-bg);
  color: var(--vw-text);
  font-family: var(--vw-font);
  min-height: 100%;
}

body {
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(34, 211, 238, 0.10), transparent 60%);
  background-attachment: fixed;
}

/* ---------- Logo ---------- */
.vw-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--vw-text);
  user-select: none;
}
.vw-logo .wall {
  background: var(--vw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vw-logo .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--vw-cyan);
  box-shadow: 0 0 12px var(--vw-cyan);
  animation: vw-pulse 1.8s ease-in-out infinite;
}
@keyframes vw-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.65); opacity: 0.55; }
}

/* ---------- Layout ---------- */
.vw-container { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
.vw-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 28px; }
.vw-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.vw-subtitle { color: var(--vw-muted); font-size: 15px; margin-bottom: 26px; }

.vw-card {
  background: var(--vw-card);
  border: 1px solid var(--vw-border);
  border-radius: var(--vw-radius);
  padding: 24px;
}
.vw-grid { display: grid; gap: 18px; }
@media (min-width: 800px) {
  .vw-grid-2 { grid-template-columns: 1fr 1fr; }
  .vw-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Formularios ---------- */
.vw-label { display: block; font-size: 13px; font-weight: 600; color: var(--vw-muted); margin: 16px 0 7px; text-transform: uppercase; letter-spacing: 0.6px; }
.vw-input, .vw-select, .vw-textarea {
  width: 100%;
  background: var(--vw-bg-2);
  border: 1px solid var(--vw-border);
  border-radius: 12px;
  color: var(--vw-text);
  font-family: var(--vw-font);
  font-size: 16px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.15s;
}
.vw-input:focus, .vw-select:focus, .vw-textarea:focus { border-color: var(--vw-violet); }
.vw-textarea { resize: vertical; min-height: 90px; }

/* ---------- Botones ---------- */
.vw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: var(--vw-font);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.15s;
  text-decoration: none;
  color: #fff;
}
.vw-btn:active { transform: scale(0.97); }
.vw-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vw-btn-primary { background: var(--vw-grad); box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35); }
.vw-btn-hot { background: var(--vw-grad-hot); box-shadow: 0 6px 24px rgba(255, 77, 109, 0.30); }
.vw-btn-ghost { background: transparent; border: 1px solid var(--vw-border); color: var(--vw-text); }
.vw-btn-block { width: 100%; }
.vw-btn-sm { font-size: 13px; padding: 8px 16px; }

/* ---------- Utilidades ---------- */
.vw-muted { color: var(--vw-muted); }
.vw-center { text-align: center; }
.vw-mt { margin-top: 18px; }
.vw-badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.12);
  color: var(--vw-cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  letter-spacing: 0.5px;
}
.vw-stat { text-align: center; padding: 18px 10px; }
.vw-stat b { display: block; font-size: 30px; font-weight: 800; }
.vw-stat span { color: var(--vw-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; }

/* ---------- Galería ---------- */
.vw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.vw-gallery .ph {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--vw-border);
  background: var(--vw-bg-2);
}
.vw-gallery .ph img,
.vw-gallery .ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vw-gallery .ph .vbadge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(10, 10, 20, 0.75);
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 9px;
  pointer-events: none;
}
.vw-gallery .ph .del {
  position: absolute; top: 6px; right: 6px;
  background: rgba(10, 10, 20, 0.75);
  border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 14px; line-height: 1;
}
.vw-gallery .ph .author {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 8px 6px;
  font-size: 11px;
  background: linear-gradient(transparent, rgba(10, 10, 20, 0.85));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- QR box ---------- */
.vw-qrbox {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  display: inline-block;
  line-height: 0;
}

/* ---------- Toast ---------- */
.vw-toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--vw-card-2);
  border: 1px solid var(--vw-border);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
  max-width: 90vw;
}
.vw-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.vw-toast.ok { border-color: rgba(52, 211, 153, 0.5); }
.vw-toast.err { border-color: rgba(255, 77, 109, 0.6); }

/* ---------- Mensajes ---------- */
.vw-msg {
  background: var(--vw-bg-2);
  border: 1px solid var(--vw-border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.vw-msg b { color: var(--vw-cyan); font-size: 13px; display: block; margin-bottom: 2px; }
.vw-msg p { font-size: 15px; }
.vw-msg button { background: none; border: none; color: var(--vw-muted); cursor: pointer; font-size: 15px; }

/* ---------- Spinner ---------- */
.vw-spin {
  width: 22px; height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vw-rot 0.8s linear infinite;
  display: inline-block;
}
@keyframes vw-rot { to { transform: rotate(360deg); } }
