/* ══════════════════════════════════════════════════════════════════════════
   SYNERGYK · ambiente.css · Ambiente SYNERGYK (v1.5)
   La luz ocupa toda la pantalla; los controles flotan encima y se van solos.
   ══════════════════════════════════════════════════════════════════════════ */
:root { --tinta: #f3f3f5; --tinta-2: #c9c9d2; --apagado: #9696a0; --linea: rgba(255, 255, 255, .16); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #050505; color: var(--tinta); font: 400 16px/1.55 'Manrope', system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
#luz { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.am-entrada {
  position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 30px; text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(5, 5, 5, .35), rgba(5, 5, 5, .85) 70%);
}
.am-entrada img { width: min(360px, 70vw); height: auto; }
.am-etiqueta { font: 400 11px 'Michroma', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--apagado); }
.am-entrada h1 { font: 300 clamp(34px, 6vw, 64px)/1.1 'Unbounded', sans-serif; }
.am-entrada p:not(.am-etiqueta) { max-width: 520px; color: var(--tinta-2); }
.am-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--tinta); background: rgba(5, 5, 5, .4); font-weight: 600; }
.am-boton--solido { background: var(--tinta); color: #050505; margin-top: 10px; }

.am-controles {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); translate: -50% 0; width: min(760px, calc(100vw - 24px));
  display: grid; gap: 12px; padding: 16px; border-radius: 26px; border: 1px solid var(--linea);
  background: rgba(8, 8, 12, .72); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  animation: am-sube .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes am-sube { from { translate: -50% 30px; opacity: 0; } }
.am-fila { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.am-ondas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.am-ondas::-webkit-scrollbar { display: none; }
.am-ondas button { flex: none; min-height: 52px; padding: 8px 14px; border-radius: 16px; text-align: left; font-size: 12px; line-height: 1.3; color: var(--apagado); background: rgba(255, 255, 255, .05); border: 1px solid var(--linea); }
.am-ondas button strong { display: block; font: 500 14px 'Unbounded', sans-serif; color: var(--tinta); }
.am-ondas button[aria-checked="true"] { border-color: var(--c); box-shadow: 0 0 22px -8px var(--c); }
.am-modos { display: flex; flex: 1; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--linea); }
.am-modos button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--tinta-2); font-weight: 600; font-size: 14px; }
.am-modos button[aria-checked="true"] { background: var(--tinta); color: #050505; }
.am-ajustes label { display: grid; gap: 2px; flex: 1; min-width: 150px; font-size: 12px; color: var(--apagado); }
.am-ajustes input { width: 100%; accent-color: #93dcd5; }
.am-nota { font-size: 12px; color: var(--apagado); }
@media (max-width: 560px) { .am-modos button { font-size: 12px; } }

/* Gamas de color (v2.0) */
.am-gamas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.am-gamas::-webkit-scrollbar { display: none; }
.am-gamas button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--linea); background: rgba(255, 255, 255, .05); color: var(--tinta-2); font-size: 13px; }
.am-gamas button i { width: 26px; height: 26px; border-radius: 50%; filter: saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.am-gamas button[aria-checked="true"] { border-color: var(--tinta); color: var(--tinta); }
/* Volver a la web (solo cuando se abre desde la web). Va dentro de los
   controles, que se esconden solos: con ellos ocultos, solo queda la luz (v3.5). */
.am-volver {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px 8px 14px;
  border-radius: 999px; border: 1px solid var(--linea); background: rgba(255, 255, 255, .05);
  color: var(--tinta); font: 600 14px 'Manrope', sans-serif; transition: border-color .3s, background-color .3s;
}
.am-volver:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .09); }
