/* ==========================================================================
   Estilos de marca de TG Studio Web para el brief
   Se carga DESPUÉS de index-*.css y solo sobrescribe lo necesario.
   Para cambiar colores, bordes o tipografía, toca las variables de :root.
   ========================================================================== */

@font-face {
  font-family: "Mona Sans Expanded";
  src: url("/assets/fonts/MonaSansVF-Expanded.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores de tgstudioweb.com */
  --background: #fff;
  --foreground: #1a1a1a;
  --card: #fff;
  --primary: #baf82b;
  --acid: #baf82b;
  --dark: #1a1a1a;
  --muted: #71716e;
  --line: #3030302e;
  --tg-texto: #303030;
  --tg-lima-suave: #eafdc0;
  --tg-lima-hover: #f1fed5;
  --tg-gris-claro: #f7f7f5;

  /* Bordes */
  --tg-radio: 22px;        /* tarjetas, bloques y opciones */
  --tg-radio-input: 8px;   /* campos, igual que el formulario de la web */
  --tg-radio-boton: 96px;  /* botones en forma de píldora, como en la web */

  --tg-fuente: "Mona Sans Expanded", "Mona Sans", Helvetica, Arial, sans-serif;
}

/* ---------- Tipografía ---------- */
html body,
html body button,
html body input,
html body textarea,
html body select {
  font-family: var(--tg-fuente);
}
html body { color: var(--tg-texto); }

/* Las muestras de tipografía del paso 2 conservan su propia letra */
html .font-sample:not(.sample-1):not(.sample-3) {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* La versión Expanded es más ancha: títulos algo más compactos */
html .page-heading h1 { letter-spacing: -.02em; }
html .sidebar-intro h2 { letter-spacing: -.025em; }

/* ---------- Fondo y cabecera ---------- */
html body { background: var(--background); }
html .topbar { background: #fff; }

/* ---------- Bloques con borde redondeado (22px) ---------- */
html .brief-sidebar,
html .step-link,
html .choice,
html .check-choice,
html .info-note,
html .upload-zone,
html .review-note,
html .summary section,
html .consent,
html .color-field,
html .file-row,
html .error-box,
html .receipt,
html .stat-card,
html .brief-card,
html .empty-state,
html .toast-message,
html .attachment-row {
  border-radius: var(--tg-radio);
}

html .brief-sidebar { background: var(--tg-gris-claro); border: 0; }
html .step-link.active,
html .step-link.active:hover { background: #fff; }
html .active .step-number,
html .step-link.active .step-number { background: var(--acid); border-color: var(--acid); color: #1a1a1a; }

/* Opciones elegidas: lima suave de la web */
html .choice.selected,
html .check-choice.selected { background: var(--tg-lima-suave); border-color: var(--foreground); }
html .choice:hover,
html .check-choice:hover { background: var(--tg-lima-hover); }

/* Las muestras «Bordes rectos / redondeados» del paso 3 no se tocan */
html .corner-sample { border-radius: 0; }
html .corner-sample.corner-1 { border-radius: 12px; }

/* ---------- Campos: igual que el formulario de tgstudioweb.com ---------- */
html .field input:not([type=color]):not([type=file]),
html .field textarea,
html .field [data-slot=select-trigger],
html .admin-tools input,
html .admin-tools [data-slot=select-trigger],
html .color-field input:not([type=color]) {
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: var(--tg-radio-input);
  padding: 16px;
  min-height: 56px;
  font-size: 16px;
  color: var(--tg-texto);
  box-shadow: none;
}
html .field [data-slot=select-trigger] { height: 56px; }
html .field textarea { min-height: 120px; }
html .field input:not([type=color]):not([type=file]):focus-visible,
html .field textarea:focus-visible,
html .field [data-slot=select-trigger]:focus-visible {
  outline: 2px solid var(--tg-texto);
  outline-offset: 3px;
  border-color: var(--tg-texto);
}
html .field input::placeholder,
html .field textarea::placeholder { color: #71716eb3; }
html [data-slot=checkbox] { border-radius: 4px; }

/* ---------- Botones: píldora lima como en la web ---------- */
html .primary {
  background: var(--acid) !important;
  color: #000 !important;
  border-radius: var(--tg-radio-boton) !important;
  font-weight: 500 !important;
}
html .primary:hover {
  background: var(--dark) !important;
  color: #fff !important;
}
html .brief-card > a,
html .admin-actions button,
html .admin-actions > a,
html .print-button {
  border-radius: var(--tg-radio-boton);
}
html .status-badge { border-radius: var(--tg-radio-boton); }

/* Barra de progreso en móvil */
html .mobile-progress { border-radius: var(--tg-radio-boton); overflow: hidden; }

/* Campos de color (paso 2): mismo aspecto que el resto de campos */
html .color-field {
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: var(--tg-radio-input);
}
html .color-field:focus-within { outline: 2px solid var(--tg-texto); outline-offset: 3px; }
html .color-field input:not([type=color]) { border: 0; min-height: 0; padding: 0; outline: none; }

/* Aviso del paso 5: lima suave en lugar de lima intenso */
html .review-note { background: var(--tg-lima-suave); }
