/* Nuestro Studio Música — estilos (todo bajo .nsm-* para no chocar con Divi/el tema) */
.nsm-root {
	--nsm-bg: #121014;
	--nsm-panel: #1b181e;
	--nsm-panel-2: #232026;
	--nsm-line: rgba(255, 255, 255, .08);
	--nsm-text: #f3ede4;
	--nsm-muted: #a39b91;
	--nsm-amber: #f2b544;
	--nsm-red: #ff4d5a;
	--nsm-blue: #4fb3ff;
	--nsm-green: #4fe0a0;
	--nsm-radius: 18px;
	margin: 24px auto;
	max-width: 1180px;
	font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
	line-height: 1.3;
	-webkit-text-size-adjust: 100%;
}
.nsm-root *, .nsm-root *::before, .nsm-root *::after { box-sizing: border-box; }
.nsm-root button { font: inherit; letter-spacing: normal; text-transform: none; }

.nsm-studio {
	position: relative;
	overflow: hidden;
	background: var(--nsm-bg);
	color: var(--nsm-text);
	border-radius: 26px;
	padding: 22px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
	outline: none;
	isolation: isolate;
}

/* Paneles acústicos de fondo */
.nsm-acoustic {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 50% at 50% 38%, rgba(242, 181, 68, .16), transparent 70%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 46px),
		repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 46px),
		linear-gradient(180deg, #19161b, #0e0c10);
}

/* Cabecera */
.nsm-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin-bottom: 14px;
}
.nsm-brand { display: flex; align-items: center; gap: 14px; }
.nsm-logo {
	width: 54px; height: 54px; flex: none;
	display: grid; place-items: center;
	border-radius: 16px;
	color: var(--nsm-amber);
	background: linear-gradient(145deg, #2a252c, #18151a);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px rgba(0, 0, 0, .4);
}
.nsm-logo svg { width: 34px; height: 24px; }
.nsm-onair {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 10px; font-weight: 700; letter-spacing: .18em;
	color: var(--nsm-red);
}
.nsm-onair i {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--nsm-red);
	box-shadow: 0 0 8px var(--nsm-red);
	animation: nsm-pulse 1.6s ease-in-out infinite;
}
.nsm-root .nsm-title {
	margin: 2px 0 0; padding: 0;
	font-size: clamp(22px, 3.2vw, 32px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.05;
	color: var(--nsm-text);
}
.nsm-root .nsm-sub {
	margin: 4px 0 0; padding: 0;
	font-size: 13px; color: var(--nsm-muted); letter-spacing: .04em;
}

/* Pestañas de instrumentos */
.nsm-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.nsm-tab {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--nsm-line);
	border-radius: 999px;
	background: var(--nsm-panel);
	color: var(--nsm-muted);
	font-size: 14px; font-weight: 600;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.nsm-tab svg { width: 18px; height: 18px; }
.nsm-tab[aria-selected="true"] {
	color: #1a1306;
	background: var(--nsm-amber);
	border-color: var(--nsm-amber);
	box-shadow: 0 6px 18px -6px rgba(242, 181, 68, .7);
}
.nsm-tab-soon { cursor: default; border-style: dashed; opacity: .65; }

/* Escenario */
.nsm-stage { position: relative; }
.nsm-empty { color: var(--nsm-muted); text-align: center; padding: 60px 0; margin: 0; }

.nsm-viewbar {
	display: inline-flex; padding: 4px; gap: 2px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .35);
	border: 1px solid var(--nsm-line);
	margin-bottom: 10px;
}
.nsm-viewbar button {
	border: 0; border-radius: 9px; padding: 6px 12px;
	background: transparent; color: var(--nsm-muted);
	font-size: 13px; font-weight: 600; cursor: pointer;
}
.nsm-viewbar button[aria-pressed="true"] { background: var(--nsm-panel-2); color: var(--nsm-text); }

.nsm-hybrid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 18px;
	align-items: center;
}
.nsm-hybrid[data-view="kit"] { grid-template-columns: 1fr; }
.nsm-hybrid[data-view="kit"] .nsm-pads { display: none; }
.nsm-hybrid[data-view="pads"] { grid-template-columns: 1fr; }
.nsm-hybrid[data-view="pads"] .nsm-kit { display: none; }
.nsm-hybrid[data-view="pads"] .nsm-pads { max-width: 640px; margin: 0 auto; width: 100%; }

/* Kit */
.nsm-kit { position: relative; }
.nsm-kit-svg {
	display: block; width: 100%; height: auto;
	touch-action: manipulation;
	-webkit-user-select: none; user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.nsm-kit-svg .nsm-part { cursor: pointer; }
.nsm-kit-svg .nsm-part:focus { outline: none; }
.nsm-hint { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--nsm-muted); }
.nsm-bass-brand { font: 800 12px/1 "Avenir Next", system-ui, sans-serif; letter-spacing: .22em; fill: #f0c75e; }
.nsm-bass-sub { font: 600 8px/1 "Avenir Next", system-ui, sans-serif; letter-spacing: .5em; fill: #f0c75e; opacity: .75; }

.nsm-glow { fill: #fff; opacity: 0; pointer-events: none; }
.nsm-part.is-hit .nsm-glow { animation: nsm-glow .32s ease-out; }

.nsm-bounce, .nsm-wob, .nsm-hh-top {
	transform-box: fill-box;
	transform-origin: center;
}
.nsm-drum.is-hit .nsm-bounce { animation: nsm-bounce .22s ease-out; }
.nsm-bass .nsm-bounce { transform-origin: center bottom; }
.nsm-cym.is-hit .nsm-wob { animation: nsm-wobble .9s cubic-bezier(.2, .7, .3, 1); }
.nsm-hh.is-closed .nsm-hh-top { animation: nsm-hh-close .14s ease-out; }
.nsm-hh.is-open .nsm-hh-top { animation: nsm-hh-open .5s ease-out; }

/* Pads */
.nsm-pads {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	padding: 14px;
	border-radius: var(--nsm-radius);
	background: linear-gradient(180deg, #232026, #19161b);
	border: 1px solid var(--nsm-line);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 30px -14px rgba(0, 0, 0, .6);
}
.nsm-pad {
	--c: var(--nsm-amber);
	--vel: 1;
	position: relative;
	aspect-ratio: 1;
	display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
	padding: 10px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(160deg, #3a363d, #2a272d 55%, #222024);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .35), 0 3px 0 #0d0c0e;
	color: var(--nsm-text);
	cursor: pointer;
	touch-action: manipulation;
	-webkit-user-select: none; user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: transform .08s;
	overflow: hidden;
	text-align: left;
}
.nsm-pad[data-tone="red"] { --c: var(--nsm-red); }
.nsm-pad[data-tone="blue"] { --c: var(--nsm-blue); }
.nsm-pad[data-tone="green"] { --c: var(--nsm-green); }
.nsm-pad::before {
	content: "";
	position: absolute; inset: 0;
	border-radius: inherit;
	background: radial-gradient(circle at 50% 55%, var(--c), transparent 72%);
	opacity: 0;
	pointer-events: none;
}
.nsm-pad.is-hit::before { animation: nsm-padglow .35s ease-out; }
.nsm-pad.is-hit { animation: nsm-press .12s ease-out; }
.nsm-pad-led {
	position: absolute; top: 9px; right: 9px;
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--c);
	opacity: .45;
	box-shadow: 0 0 6px var(--c);
}
.nsm-pad.is-hit .nsm-pad-led { animation: nsm-led .35s ease-out; }
.nsm-pad-name { position: relative; font-size: 12px; font-weight: 700; line-height: 1.15; }
.nsm-pad kbd {
	position: absolute; top: 7px; left: 8px;
	font: 600 10px/1 ui-monospace, Menlo, monospace;
	color: var(--nsm-muted);
	background: transparent; border: 0; box-shadow: none; padding: 0;
}

/* Consola */
.nsm-console {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: var(--nsm-radius);
	background: rgba(0, 0, 0, .35);
	border: 1px solid var(--nsm-line);
}
.nsm-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nsm-rec { margin-left: auto; }
.nsm-knob { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--nsm-muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nsm-knob input[type="range"] {
	-webkit-appearance: none; appearance: none;
	width: 110px; height: 6px; margin: 6px 0;
	border-radius: 6px; background: #35313a; outline: none; border: 0; padding: 0;
	accent-color: var(--nsm-amber);
}
.nsm-knob input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
	background: var(--nsm-amber); border: 3px solid #1b181e; box-shadow: 0 0 0 1px var(--nsm-amber);
	cursor: pointer;
}
.nsm-knob input[type="range"]::-moz-range-thumb {
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--nsm-amber); border: 3px solid #1b181e; cursor: pointer;
}

.nsm-btn {
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 38px; padding: 0 14px;
	border: 1px solid var(--nsm-line); border-radius: 11px;
	background: var(--nsm-panel-2); color: var(--nsm-text);
	font-size: 13px; font-weight: 700;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.nsm-btn svg { width: 16px; height: 16px; flex: none; }
.nsm-btn:hover:not(:disabled) { background: #2e2a32; }
.nsm-btn:disabled { opacity: .38; cursor: default; }
.nsm-btn[aria-pressed="true"] { background: var(--nsm-amber); color: #1a1306; border-color: var(--nsm-amber); }
.nsm-icon { padding: 0; width: 38px; justify-content: center; }
.nsm-btn-rec svg { color: var(--nsm-red); }
.nsm-btn-rec[aria-pressed="true"] { background: var(--nsm-red); border-color: var(--nsm-red); color: #fff; }
.nsm-btn-rec[aria-pressed="true"] svg { color: #fff; animation: nsm-pulse 1s ease-in-out infinite; }
.nsm-is-recording, .nsm-studio.is-recording { box-shadow: 0 0 0 2px rgba(255, 77, 90, .55), 0 30px 60px -20px rgba(0, 0, 0, .55); }

.nsm-bpm {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px; border-radius: 11px; background: var(--nsm-panel-2); border: 1px solid var(--nsm-line);
}
.nsm-bpm button {
	width: 30px; height: 30px; border: 0; border-radius: 8px;
	background: transparent; color: var(--nsm-text); font-size: 18px; line-height: 1; cursor: pointer;
}
.nsm-bpm button:hover { background: #2e2a32; }
.nsm-bpm output { min-width: 34px; text-align: center; font: 700 15px/1 ui-monospace, Menlo, monospace; color: var(--nsm-amber); }
.nsm-bpm small { font-size: 10px; color: var(--nsm-muted); margin-right: 4px; }
.nsm-beats { display: flex; gap: 5px; }
.nsm-beats i { width: 8px; height: 8px; border-radius: 50%; background: #3a363d; transition: background .05s; }
.nsm-beats i:first-child.on { background: var(--nsm-red); box-shadow: 0 0 8px var(--nsm-red); }
.nsm-beats i.on { background: var(--nsm-amber); box-shadow: 0 0 8px var(--nsm-amber); }
.nsm-status { font-size: 12px; color: var(--nsm-muted); min-width: 130px; }


/* Tipo de batería */
.nsm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.nsm-toolbar .nsm-viewbar { margin-bottom: 0; }
.nsm-kitbar { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.nsm-kitbar-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nsm-muted); white-space: nowrap; }
.nsm-kits { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.nsm-kits::-webkit-scrollbar { display: none; }
.nsm-kits button {
	display: inline-flex; align-items: center; gap: 7px; flex: none;
	padding: 7px 12px; border-radius: 10px;
	border: 1px solid var(--nsm-line); background: var(--nsm-panel);
	color: var(--nsm-muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.nsm-kits button i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.nsm-kits button:hover { color: var(--nsm-text); }
.nsm-kits button[aria-pressed="true"] { color: var(--nsm-text); background: var(--nsm-panel-2); border-color: var(--nsm-amber); box-shadow: 0 0 0 1px var(--nsm-amber) inset; }
.nsm-root .nsm-kitdesc { margin: 4px 0 6px; padding: 0; font-size: 12.5px; color: var(--nsm-muted); min-height: 1.3em; }
.nsm-drums.is-loading .nsm-kitdesc { color: var(--nsm-amber); }
.nsm-drums.is-loading .nsm-kit-svg { opacity: .75; transition: opacity .3s; }
.nsm-root .nsm-credit { margin: 10px 0 0; padding: 0; font-size: 11px; color: #6f685f; text-align: right; }
.nsm-root .nsm-credit a { color: inherit; text-decoration: underline; }
.nsm-drums[data-kit="electro"] .nsm-head { fill: #1a1626; }
.nsm-drums[data-kit="electro"] .nsm-glow { fill: #9b6bff; }
@media (max-width: 520px) {
	.nsm-kitbar { width: 100%; }
	.nsm-kitbar-label { display: none; }
	.nsm-root .nsm-credit { text-align: left; }
}

/* Animaciones */
@keyframes nsm-pulse { 50% { opacity: .35; } }
@keyframes nsm-glow { 0% { opacity: .55; } 100% { opacity: 0; } }
@keyframes nsm-bounce { 0% { transform: scale(1); } 30% { transform: scale(.975, 1.025); } 100% { transform: scale(1); } }
@keyframes nsm-wobble {
	0% { transform: rotate(0); }
	15% { transform: rotate(-5deg); }
	35% { transform: rotate(3.5deg); }
	55% { transform: rotate(-2deg); }
	75% { transform: rotate(1deg); }
	100% { transform: rotate(0); }
}
@keyframes nsm-hh-close { 0% { transform: translateY(0); } 40% { transform: translateY(5px); } 100% { transform: translateY(0); } }
@keyframes nsm-hh-open { 0% { transform: translateY(-7px) rotate(-3deg); } 40% { transform: translateY(-7px) rotate(2deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes nsm-padglow { 0% { opacity: calc(.35 + var(--vel) * .55); } 100% { opacity: 0; } }
@keyframes nsm-led { 0% { opacity: 1; transform: scale(1.5); } 100% { opacity: .45; transform: scale(1); } }
@keyframes nsm-press { 0% { transform: scale(.95); } 100% { transform: scale(1); } }

/* Responsive */
@media (max-width: 860px) {
	.nsm-hybrid { grid-template-columns: 1fr; }
	.nsm-pads { gap: 8px; padding: 10px; }
	.nsm-rec { margin-left: 0; }
}
@media (max-width: 520px) {
	.nsm-studio { padding: 14px; border-radius: 20px; }
	.nsm-logo { width: 44px; height: 44px; border-radius: 13px; }
	.nsm-tab { padding: 7px 12px; font-size: 13px; }
	.nsm-pad { padding: 8px; border-radius: 10px; }
	.nsm-pad-name { font-size: 11px; }
	.nsm-pad kbd { display: none; }
	.nsm-hint { display: none; }
	.nsm-knob input[type="range"] { width: 90px; }
	.nsm-btn span { display: none; }
	.nsm-btn { padding: 0; width: 40px; justify-content: center; }
	.nsm-status { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.nsm-root *, .nsm-root *::before { animation-duration: .01ms !important; }
}
