/* Sonorium · laboratorio de audio y DJ (audio.yosoydeus.com). Sin estilos en línea: la CSP solo permite este archivo. */
:root {
  --fondo: #0b0c10;
  --panel: #14171f;
  --panel2: #10131a;
  --borde: #262b37;
  --texto: #eef0f5;
  --tenue: #a9afbe;
  --ambar: #ffb547;
  --magenta: #ff4d8d;
  --cian: #4dd6ff;
  --radio: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ambar); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.7rem); font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--ambar), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d3d7e2; max-width: 40rem; }
.lead.chico { font-size: 1.05rem; color: var(--tenue); }
.sobre { color: var(--ambar); font-size: .8rem; font-weight: 700; letter-spacing: .16em; margin-bottom: .8em; }
.salto { position: absolute; left: -999px; top: 8px; background: var(--ambar); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.salto:focus { left: 8px; }
*:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; border-radius: 6px; }

/* cabecera */
.cabeza { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 44px); background: rgba(11, 12, 16, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--borde); }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-weight: 800; letter-spacing: .2em; font-size: 1.02rem; }
.marca-onda { width: 38px; height: 26px; color: var(--ambar); }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.menu a { color: #d3d7e2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--ambar); }
.menu .cta { color: #141008; background: var(--ambar); padding: 9px 18px; border-radius: 999px; }
.menu .cta:hover { color: #141008; background: #ffc56f; }
.menu-boton { display: none; width: 46px; height: 46px; background: transparent; border: 1px solid var(--borde); border-radius: 12px; cursor: pointer; padding: 0 12px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-boton span { display: block; height: 2px; background: var(--texto); border-radius: 2px; }

/* botones */
.boton { display: inline-block; background: var(--ambar); color: #141008; font-weight: 800; text-decoration: none; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; text-align: center; }
.boton:hover { background: #ffc56f; }
.boton.fantasma { background: transparent; color: var(--texto); border: 1px solid #4a5163; }
.boton.fantasma:hover { border-color: var(--ambar); color: var(--ambar); }
.boton.grande { padding: 18px 34px; font-size: 1.08rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }

/* portada */
.portada { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(36px, 7vw, 92px) clamp(16px, 4vw, 44px) clamp(28px, 5vw, 60px); }
.portada-arte { margin: 0; position: relative; }
.portada-arte::before { content: ""; position: absolute; inset: 8% 4% -6%; background: radial-gradient(60% 60% at 50% 55%, rgba(255, 181, 71, .28), rgba(255, 77, 141, .16) 45%, transparent 72%); filter: blur(28px); z-index: 0; }
.portada-arte img { position: relative; z-index: 1; width: 100%; animation: flota 7s ease-in-out infinite; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.marcas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.marcas li { border: 1px solid var(--borde); background: var(--panel); color: #cfd4e0; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }

/* franja */
.franja { border-block: 1px solid var(--borde); background: linear-gradient(90deg, rgba(255, 181, 71, .07), rgba(255, 77, 141, .07)); }
.franja ul { max-width: 1240px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 44px); list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.franja li { display: flex; flex-direction: column; gap: 2px; }
.franja b { font-size: 1.02rem; }
.franja span { color: var(--tenue); font-size: .92rem; }

/* secciones */
.seccion { padding: clamp(56px, 9vw, 112px) clamp(16px, 4vw, 44px); }
.seccion > * { max-width: 1240px; margin-inline: auto; }
.seccion.oscura { background: var(--panel2); border-block: 1px solid var(--borde); }
.cabeza-seccion { margin-bottom: clamp(26px, 4vw, 48px); }
.cabeza-seccion h2 { max-width: 22ch; }

/* tarjetas de equipos */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tarjeta { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; transition: transform .2s, border-color .2s; }
.tarjeta:hover { transform: translateY(-4px); border-color: #4a5163; }
.tarjeta img { width: 100%; max-width: 240px; margin: 0 auto 14px; }
.tarjeta p { color: var(--tenue); font-size: .95rem; margin: 0; }
.tarjeta b { color: var(--texto); }

/* fallas */
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.fallas { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.fallas li { position: relative; padding-left: 30px; color: #d3d7e2; }
.fallas li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd08a, var(--ambar)); box-shadow: 0 0 12px rgba(255, 181, 71, .6); }
.arte-ancho { margin: 0; background: var(--panel); border: 1px solid var(--borde); border-radius: 22px; padding: 18px; }

/* proceso */
.pasos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: paso; }
.pasos li { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px 20px; }
.pasos .numero { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--ambar), var(--magenta)); color: #141008; font-weight: 800; margin-bottom: 12px; }
.pasos p { color: var(--tenue); font-size: .94rem; margin: 0; }

/* precios */
.tabla { border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; background: var(--panel); }
.fila { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--borde); }
.fila:last-child { border-bottom: 0; }
.fila b { color: var(--ambar); font-size: 1.05rem; text-align: right; }
.nota { color: var(--tenue); font-size: .88rem; margin-top: 16px; }

/* formulario */
.cotizar { background: radial-gradient(80% 120% at 50% 0%, rgba(255, 181, 71, .10), transparent 60%); }
.forma { display: grid; gap: 18px; max-width: 720px; background: var(--panel); border: 1px solid var(--borde); border-radius: 22px; padding: clamp(20px, 4vw, 38px); }
.forma label, .forma legend { display: grid; gap: 7px; font-weight: 600; font-size: .95rem; }
.forma small { color: var(--tenue); font-weight: 400; }
.forma input, .forma select, .forma textarea { width: 100%; background: #0c0e13; color: var(--texto); border: 1px solid #3a4152; border-radius: 12px; padding: 13px 14px; font: inherit; min-height: 48px; }
.forma textarea { resize: vertical; }
.forma input:focus, .forma select:focus, .forma textarea:focus { border-color: var(--ambar); outline: 0; box-shadow: 0 0 0 3px rgba(255, 181, 71, .25); }
.forma fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.forma .opcion { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 12px; cursor: pointer; }
.forma .opcion input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--ambar); }
.forma .nota { margin: 0; }

/* preguntas */
.preguntas { max-width: 820px; display: grid; gap: 10px; }
.preguntas details { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: 4px 20px; }
.preguntas summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; color: var(--ambar); font-size: 1.4rem; line-height: 1; }
.preguntas details[open] summary::after { content: "–"; }
.preguntas p { color: var(--tenue); padding-bottom: 14px; margin: 0; }

/* cierre y pie */
.cierre { text-align: center; padding: clamp(56px, 9vw, 110px) 20px; background: linear-gradient(180deg, transparent, rgba(255, 77, 141, .10)); border-top: 1px solid var(--borde); }
.cierre h2 { max-width: 20ch; margin-inline: auto; }
.cierre .tel { margin: 16px 0 0; color: var(--tenue); letter-spacing: .08em; }
.pie { max-width: 1240px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 44px) 48px; display: grid; gap: 14px; border-top: 1px solid var(--borde); }
.pie p { color: var(--tenue); font-size: .9rem; margin: 10px 0 0; }
.pie .chico { font-size: .78rem; opacity: .8; }

/* móvil */
@media (max-width: 860px) {
  .portada, .dos-columnas { grid-template-columns: 1fr; }
  .portada-arte { order: -1; max-width: 560px; margin-inline: auto; }
  .franja ul { grid-template-columns: 1fr; }
  .menu-boton { display: flex; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: rgba(11, 12, 16, .98); border-bottom: 1px solid var(--borde); display: none; }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 6px; border-bottom: 1px solid var(--borde); }
  .menu .cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .fila { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fila b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portada-arte img { animation: none; }
  .tarjeta { transition: none; }
}

/* ===== Portada centrada e interactiva (30/09/2026) ===== */
.portada { display: block; max-width: 1240px; margin: 0 auto; padding: clamp(34px, 6vw, 76px) clamp(12px, 3vw, 44px) clamp(18px, 3vw, 36px); text-align: center; }
.portada-cabeza { position: relative; z-index: 2; }
.portada h1 { font-size: clamp(2.7rem, 7.4vw, 6rem); margin-bottom: .2em; text-shadow: 0 6px 40px rgba(0, 0, 0, .7); }
.portada .sobre { margin-bottom: 1em; }
.escena { position: relative; width: min(1120px, 100%); margin: clamp(-30px, -3vw, -10px) auto 0; perspective: 1400px; }
.resplandor { position: absolute; inset: 6% 2% -8%; background: radial-gradient(55% 55% at 50% 52%, rgba(255, 181, 71, .32), rgba(255, 77, 141, .18) 48%, transparent 74%); filter: blur(38px); z-index: 0; }
.controlador { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; transform: rotateX(calc(var(--rx, 0) * -8deg)) rotateY(calc(var(--ry, 0) * 11deg)); transition: transform .18s ease-out; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .6)); will-change: transform; }
.escena-pista { margin: 6px 0 0; font-size: .8rem; color: var(--tenue); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.portada-pie { position: relative; z-index: 2; margin-top: clamp(12px, 2vw, 26px); }
.portada-pie .lead { margin-inline: auto; max-width: 46rem; }
.portada-pie .acciones { justify-content: center; margin-bottom: 0; }

/* platos: giran solos y más rápido al pasar encima */
html:not(.js) .plato .disco { transform-box: fill-box; transform-origin: center; animation: giro 14s linear infinite; }
html:not(.js) .plato.der .disco { animation-direction: reverse; animation-duration: 18s; }
@keyframes giro { to { transform: rotate(360deg); } }

/* perillas */

/* faders: se mueven con el mouse; el crossfader lo sigue */

/* medidores y pantalla con latido */
html:not(.js) .vu { transform-box: fill-box; transform-origin: 50% 100%; animation: vu 1.1s ease-in-out infinite alternate; }
html:not(.js) .vu.v2 { animation-duration: .8s; animation-delay: -.3s; }
.vu { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes vu { from { transform: scaleY(.25); } to { transform: scaleY(.95); } }
.onda path { transform-box: fill-box; transform-origin: center; }
html:not(.js) .onda path { animation: latido 1.2s ease-in-out infinite alternate; }
html:not(.js) .onda .b2 { animation-duration: .9s; animation-delay: -.2s; } html:not(.js) .onda .b3 { animation-duration: 1.4s; animation-delay: -.5s; }
html:not(.js) .onda .b4 { animation-duration: .75s; animation-delay: -.1s; } html:not(.js) .onda .b5 { animation-duration: 1.1s; animation-delay: -.7s; }
@keyframes latido { from { transform: scaleY(.45); } to { transform: scaleY(1.1); } }

/* pads */
.pad { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .12s, filter .12s; outline: none; }
.pad:hover, .pad:focus-visible { filter: brightness(1.35) drop-shadow(0 0 10px currentColor); transform: scale(1.12); }
.pad.suena { animation: pad .35s ease-out; }
@keyframes pad { 0% { filter: brightness(2.2) drop-shadow(0 0 18px #fff); transform: scale(1.22); } 100% { filter: none; transform: scale(1); } }

/* cinta de marcas */
.cinta { overflow: hidden; border-block: 1px solid var(--borde); background: linear-gradient(90deg, rgba(255, 181, 71, .06), rgba(255, 77, 141, .06)); padding: clamp(14px, 2.4vw, 26px) 0; }
.cinta-pista { display: flex; width: max-content; animation: cinta 34s linear infinite; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
.cinta ul { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); list-style: none; margin: 0; padding: 0 clamp(11px, 1.5vw, 23px); flex: none; }
.cinta li { font-size: clamp(1.9rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: var(--texto); }
.cinta li:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.5px rgba(238, 240, 245, .55); }
.cinta .pto { color: var(--ambar); font-size: clamp(1rem, 2.4vw, 1.8rem); -webkit-text-stroke: 0; }
@keyframes cinta { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .portada { padding-top: 28px; }
  .escena { margin-top: 0; }
  .controlador { transform: none; }
  .cinta li { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.js) .plato .disco, html:not(.js) .vu, html:not(.js) .onda path, .cinta-pista { animation: none; }
  .controlador { transition: none; transform: none; }
  .cinta-pista { width: auto; flex-wrap: wrap; justify-content: center; }
  .cinta ul[aria-hidden] { display: none; }
  .cinta ul { flex-wrap: wrap; justify-content: center; }
}
.portada h1 em { text-shadow: none; filter: drop-shadow(0 6px 26px rgba(255, 77, 141, .35)); }

/* ===== Cabecera de la portada: a la izquierda y en dos columnas, menos centrada (30/09/2026) ===== */
.portada { text-align: left; }
.portada-cabeza { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.portada .sobre { font-size: .76rem; letter-spacing: .14em; max-width: 34rem; line-height: 1.5; }
.portada h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0; max-width: 13ch; }
.intro .lead { margin: 0 0 18px; max-width: 26rem; font-size: 1.04rem; }
.intro .acciones { justify-content: flex-start; margin: 0; }
.intro .boton.grande { padding: 14px 24px; font-size: 1rem; }
.portada .escena { margin-top: clamp(14px, 2.4vw, 30px); }
.marca .por { font-weight: 600; letter-spacing: .06em; font-size: .68rem; color: var(--tenue); margin-left: 2px; align-self: flex-end; padding-bottom: 3px; }

/* ===== Piezas que se mueven: se arrastran con mouse o dedo ===== */
.plato, .pitch-cap, .fader, .crossfader, .perilla { touch-action: none; }
.plato { cursor: grab; }
.plato.agarrado { cursor: grabbing; }
.pitch-cap, .fader, .crossfader { cursor: ns-resize; }
.crossfader { cursor: ew-resize; }
.perilla { cursor: ns-resize; }
.perilla:hover circle, .pitch-cap:hover rect:not(.toque), .fader:hover rect:not(.toque), .crossfader:hover rect:not(.toque) { filter: brightness(1.25); }

@media (max-width: 860px) {
  .portada-cabeza { grid-template-columns: 1fr; gap: 16px; }
  .portada h1 { max-width: 14ch; }
  .intro .lead { max-width: none; }
}
