:root{
  --bg:#0f172a; --grid:rgba(255,255,255,.06);
  --card:#111827; --accent:#2dd4bf; --accent2:#f59e0b;
  --text:#e5e7eb; --muted:#9ca3af;
}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--text);font-family:Inter,system-ui}
.grid-bg{position:fixed;inset:0;z-index:0;background:
  repeating-linear-gradient(0deg,var(--grid)0 1px,transparent 1px 40px),
  repeating-linear-gradient(90deg,var(--grid)0 1px,transparent 1px 40px)}
.container{position:relative;z-index:1;display:grid;place-items:center;min-height:100dvh;padding:24px}
.card{width:100%;max-width:460px;background:#0b1220;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:28px;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.title{margin:0 0 6px;font-family:"STIX Two Math",serif;color:var(--accent);font-size:28px}
.subtitle{margin:0 0 16px;color:var(--muted)}
.form .label{display:block;margin:12px 0 6px;font-weight:600}
.input-wrap{display:flex;gap:10px;align-items:center;background:#0b1220;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px}
.icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#0d2231;color:var(--accent2);font-family:"STIX Two Math",serif;font-weight:700}
.input-wrap input{flex:1;background:transparent;border:0;outline:0;color:var(--text);font-size:15px}
.btn{margin-top:18px;width:100%;background:linear-gradient(90deg,var(--accent),#22d3ee);color:#0b1220;border:0;border-radius:12px;padding:12px 14px;font-weight:700;cursor:pointer}
.btn:hover{filter:brightness(1.05)}
.msg{min-height:22px;margin-top:10px;color:var(--accent2)}
.footer{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:14px;color:var(--muted);font-size:14px}
.symbols{width:110px;opacity:.7}

:root{
  --g-bg: #f6f6fb;
  --g-card: #ffffff;
  --g-border: #e6e6ef;
  --g-primary: #695cf3;
  --g-primary-ink:#fff;
  --g-ink:#1f2937;
  --g-muted:#6b7280;
  --g-danger:#e11d48;
}
.gforms-wrap{max-width:920px;margin:0 auto;padding:16px;}
.gforms-appbar{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--g-border);z-index:10;display:flex;align-items:center;justify-content:space-between;padding:10px 14px}
.gforms-appbar__left{display:flex;gap:8px;align-items:center}
.g-dot{width:10px;height:10px;border-radius:50%;background:var(--g-primary);display:inline-block}
.g-btn{border:1px solid var(--g-border);background:#fff;border-radius:8px;padding:8px 14px;cursor:pointer}
.g-btn--primary{background:var(--g-primary);color:var(--g-primary-ink);border-color:var(--g-primary)}
.g-btn--ghost{background:transparent}
.g-card{background:var(--g-card);border:1px solid var(--g-border);border-radius:12px;padding:16px;margin:12px 0}
.g-form-header{padding-top:20px}
.g-title-input{font-size:22px;font-weight:700;border:none;outline:none;width:100%;background:#fff;border-bottom:1px solid var(--g-border);padding:6px 2px}
.g-desc-input{width:100%;border:1px solid var(--g-border);border-radius:8px;padding:8px;margin-top:8px}
.g-input{width:100%;border:1px solid var(--g-border);border-radius:8px;padding:8px;}
.g-label{font-size:12px;color:var(--g-muted);margin-right:8px}
.g-inline{display:flex;align-items:center;gap:8px;margin-top:8px}
.g-muted{color:var(--g-muted)}
.g-qs-list{display:grid;gap:12px}
.g-q__toolbar{display:flex;gap:6px;justify-content:flex-end;margin-bottom:8px}
.g-icon-btn{border:1px solid var(--g-border);background:#fff;border-radius:8px;padding:6px 8px;cursor:pointer}
.g-danger{color:#fff;background:var(--g-danger);border-color:var(--g-danger)}
.g-q__title{margin:8px 0}
.g-row{display:flex;gap:10px;align-items:center}
.g-col{flex:1}
.g-options__list{list-style:none;margin:8px 0 0 0;padding:0;display:grid;gap:6px}
.g-options__item{display:flex;gap:8px;align-items:center}
.g-option-input{flex:1}
.g-open{margin-top:8px}
.g-media-prev{margin-top:8px}
.g-media-prev img, .g-media-prev video{max-width:100%;border-radius:8px;border:1px solid var(--g-border)}
.g-switch{display:flex;align-items:center;gap:6px}
.g-fab{position:fixed;right:26px;bottom:26px}
.g-fab__btn{width:52px;height:52px;border-radius:50%;background:var(--g-primary);color:#fff;border:none;font-size:28px;cursor:pointer;box-shadow:0 10px 25px rgba(0,0,0,.15)}

/* ===== Builder (estilo tipo Forms) ===== */
.builder-wrap{max-width:980px;margin:0 auto;padding:16px}
.builder-toolbar{
  position:sticky; top:12px; z-index:5;
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; padding:10px 12px; border:1px solid #e5e7eb; border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
  margin-bottom:12px;
}
.builder-toolbar .title{font-weight:700}
.builder-toolbar .pill{font-size:12px;padding:2px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;margin-left:8px}

.builder-header.card{display:grid; gap:10px}
.input.big{font-size:22px;font-weight:700}
.row{display:flex; gap:8px; align-items:center}
.row .input{flex:1}

.q-list{display:grid; gap:14px}
.q-card{padding:12px}
.q-head{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:8px}
.q-head .drag{cursor:grab; color:#6b7280}
.q-head .mini{display:flex; gap:6px; align-items:center}
.q-actions{margin-left:auto; display:flex; gap:6px}

.block{margin-top:10px}
.label{font-weight:600; margin-bottom:6px}
.label.small{font-weight:600; font-size:12px; color:#6b7280}

.opt-list{margin:0; padding:0; list-style:none; display:grid; gap:6px}
.opt-item{display:flex; gap:8px; align-items:center}
.opt-item .input{flex:1}

.media-prev{margin-top:8px}
.media-prev img, .media-prev video{max-width:100%; border-radius:8px}

/* Switch */
.switch{position:relative; display:inline-flex; align-items:center; gap:8px; cursor:pointer; user-select:none}
.switch input{display:none}
.switch .slider{
  width:36px;height:20px;border-radius:999px;background:#e5e7eb; position:relative; transition:all .2s ease;
}
.switch .slider:before{
  content:""; position:absolute; width:16px;height:16px; border-radius:999px; background:#fff; top:2px; left:2px; transition:all .2s ease; box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .slider{background:#22c55e}
.switch input:checked + .slider:before{left:18px}
.switch .switch-text{font-size:12px; color:#374151}

/* === Corrección de contraste y colores visibles === */

/* Botones principales */
.btn {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 14px;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn:hover {
  background: #f1f5f9;
}

/* Botón primario (Guardar) */
.btn.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.btn.primary:hover {
  background: #1d4ed8;
}

/* Botones fantasma */
.btn.ghost {
  background: #fff;
  color: #1e293b;
}
.btn.ghost:hover {
  background: #f3f4f6;
}

/* Botón peligro (Borrar / Eliminar) */
.btn.danger {
  background: #dc2626;
  border-color: #b91c1c;
  color: #fff;
}
.btn.danger:hover {
  background: #b91c1c;
}

/* Botón peligro fantasma */
.btn.danger.ghost {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}
.btn.danger.ghost:hover {
  background: #fecaca;
  color: #7f1d1d;
}

/* Botón XS (para opciones pequeñas) */
.btn.xs {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
}

/* Campo de entrada */
.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  background-color: #fff;
  color: #111827;
}
.input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px #bfdbfe;
}

/* Etiquetas */
.label {
  font-weight: 600;
  color: #0f172a;
}

/* Títulos dentro de bloques */
.block .label {
  margin-bottom: 4px;
}

/* Fondo general de los bloques */
.card, .q-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Bloques de opciones */
.opt-item {
  background: #f9fafb;
  border-radius: 10px;
  padding: 6px;
  transition: background 0.2s;
}
.opt-item:hover {
  background: #f1f5f9;
}

/* Switch (Requerida) */
.switch .slider {
  width: 38px;
  height: 20px;
  background: #e5e7eb;
  border-radius: 999px;
  position: relative;
  transition: 0.15s;
}
.switch .slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.switch input:checked + .slider {
  background: #22c55e;
}
.switch input:checked + .slider::after {
  left: 20px;
}

/* Texto de “Requerida” */
.switch-text {
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
}

/* Fondo y márgenes generales */
body {
  background-color: #f8fafc;
}

