/* TOTALDENT — sistema visual (tema negro) */
:root {
  --bg: #050506;
  --bg-2: #0a0b0d;
  --panel: #101216;
  --panel-2: #15181d;
  --panel-3: #1b1f25;
  --line: #22262d;
  --line-2: #2d323a;
  --ink: #f3f5f7;
  --ink-2: #c9ced6;
  --muted: #858d98;
  --accent: #3ee6d3;
  --accent-2: #9df6ec;
  --accent-ink: #032724;
  --accent-soft: rgba(62, 230, 211, .12);
  --danger: #ff5c63;
  --warn: #f5b74a;
  --ok: #46d39a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Marca */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.marca svg { width: 30px; height: 30px; flex: none; }
.marca .nombre { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 19px; line-height: 1; }
.marca .lema { display: block; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, transform .15s, color .15s; white-space: nowrap; }
.btn:hover { border-color: #444b55; background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primario:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.fantasma { background: transparent; }
.btn.peligro { color: var(--danger); }
.btn.peq { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Formularios */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=number], select, textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%; min-width: 0; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel-2); font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.chip.activo { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Etiquetas FDI sobre el visor 3D */
.td-etiquetas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.td-etiquetas span { position: absolute; left: 0; top: 0; font: 600 10.5px var(--font); color: #dfe5ea; background: rgba(10, 11, 13, .72);
  border: 1px solid rgba(255, 255, 255, .12); padding: 1px 5px; border-radius: 6px; }
.td-etiquetas span.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Avisos */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--panel-3);
  border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; z-index: 100;
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(255, 92, 99, .5); }
.toast.ok { border-color: rgba(62, 230, 211, .5); }
