/* SEISS · Hoja de estilos comentada.
 * Las reglas base aparecen primero; los ajustes finales de composición y
 * encabezado están al final y prevalecen por la cascada. Mantener ese orden.
 * La profundidad 3D se dibuja con CSS: no requiere WebGL ni archivos de modelos.
 */
/* PALETA: cambiar aquí los colores globales. */
:root {
  --bg: #0c0b0b;
  --ink: #eeeadd;
  --red: #ff3c31;
  --muted: #aca5a0;
  --line: #ffffff23;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: #171313;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
/* CONTENEDOR: una columna de máximo 520 px, también en escritorio. */
.mobile-card {
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  margin: auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 90px #0008;
}
header {
  height: 74px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #0c0b0b;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  width: 98px;
  height: auto;
}
.motion-toggle {
  background: none;
  min-height: 44px;
  min-width: 80px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  color: #c6bcb5;
}
.motion-label {
  font: 8px monospace;
  letter-spacing: 1px;
}
.motion-bars {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 20px;
}
.motion-bars i {
  width: 2px;
  height: 14px;
  background: var(--red);
  animation: bars 1s ease-in-out infinite alternate;
}
.motion-bars i:nth-child(2) {
  animation-delay: -0.4s;
  height: 7px;
}
.motion-bars i:nth-child(3) {
  animation-delay: -0.7s;
  height: 19px;
}
.motion-bars i:nth-child(4) {
  animation-delay: -0.2s;
  height: 10px;
}
/* PORTADA BASE: escenario, luces, textura y logotipo con capas. */
.hero {
  height: calc(100svh - 74px);
  min-height: 650px;
  max-height: 850px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 25px 26px;
  overflow: hidden;
}
.stage {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(#180303a0, #590b0b99 38%, #0b0909f0 95%),
    url("assets/stage.webp") 44% center/auto 100%;
  filter: blur(3px) saturate(0.6);
  transform: scale(1.06);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.light {
  position: absolute;
  top: -40%;
  width: 80%;
  height: 140%;
  z-index: -3;
  transform-origin: 50% 0;
  filter: blur(25px);
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(180deg, #ff3b322b, transparent);
  animation: beam 12s ease-in-out infinite alternate;
}
.light-one {
  left: -20%;
  transform: rotate(-28deg);
}
.light-two {
  right: -50%;
  animation-delay: -6s;
  background: linear-gradient(180deg, #ff614b44, transparent);
}
.eyebrow {
  font: 9px/1.5 monospace;
  letter-spacing: 1.8px;
  margin: 0;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  z-index: 4;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 24px;
  transform: translateY(-40px);
}
.micro {
  font: 8px monospace;
  letter-spacing: 2px;
  margin: 0 0 28px;
}
.logo-perspective {
  perspective: 750px;
  margin: 0 -3px;
}
.logo-object {
  position: relative;
  transform-style: preserve-3d;
  animation: logoFloat 9s ease-in-out infinite;
  will-change: transform;
}
h1 {
  margin: 0;
  position: relative;
  transform: translateZ(1px);
  backface-visibility: hidden;
}
h1 img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 0 #fff8) drop-shadow(0 8px 15px #0009);
}
.logo-depth {
  position: absolute;
  inset: 0;
  background: #a31816;
  mask: url("assets/wordmark-hd.png") center/100% 100% no-repeat;
  -webkit-mask: url("assets/wordmark-hd.png") center/100% 100% no-repeat;
  transform: translateZ(var(--z));
  pointer-events: none;
}
.hero-line {
  font:
    italic clamp(24px, 6.5vw, 32px) / 1.2 Georgia,
    serif;
  margin: 24px 0 30px;
}
.primary {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  background: var(--ink);
  color: #110b0a;
  min-height: 55px;
  padding: 17px 23px;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    0 5px 0 #a39c94,
    0 15px 35px #0005;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.primary:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #a39c94,
    0 5px 15px #0005;
}
.primary > span:last-child {
  font: 8px monospace;
  letter-spacing: 1px;
  border-left: 1px solid #0003;
  padding-left: 17px;
}
.play-triangle {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}
/* VINILO: gradientes y perspectiva simulan volumen y surcos. */
.sculpture {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 33px;
  width: 255px;
  height: 215px;
  transform: translateX(-50%);
  perspective: 600px;
  pointer-events: none;
  opacity: 0.85;
}
.record {
  position: absolute;
  left: 22px;
  top: -4px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #181414 0 1px,
    #292120 2px,
    #0c0909 3px,
    #2c2221 4px
  );
  transform-style: preserve-3d;
  box-shadow:
    0 0 0 1px #ffb5a655,
    0 4px 0 #3c1515,
    0 8px 0 #200a0a,
    0 15px 15px #000b;
  animation: recordFloat 11s ease-in-out infinite;
  transform: rotateX(64deg) rotateZ(-15deg);
}
.record:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    transparent,
    #ffe6ce33 12%,
    transparent 25%,
    transparent 50%,
    #ffbfa43d 65%,
    transparent 78%
  );
}
.record-label {
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  background: #a31e1e;
  box-shadow: 0 0 0 4px #ae292955;
  display: grid;
  place-items: center;
  animation: spin 20s linear infinite;
}
.record-label img {
  width: 61px;
  height: 61px;
  border-radius: 50%;
  filter: sepia(0.6);
}
.record-label:after {
  content: "";
  width: 5px;
  height: 5px;
  background: #aaa;
  box-shadow: 0 0 2px black;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.record-shadow {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 50px;
  border-radius: 50%;
  background: #0009;
  filter: blur(15px);
}
.orbit {
  position: absolute;
  inset: -15px;
  border: 1px solid #ff504530;
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(-20deg);
  animation: orbit 18s linear infinite;
}
.orbit-two {
  inset: -40px;
  border-color: #ff504518;
  animation-direction: reverse;
}
.explore {
  display: flex;
  align-items: center;
  gap: 15px;
  align-self: flex-start;
  font: 9px monospace;
  letter-spacing: 2px;
  z-index: 4;
  padding: 10px 0;
  min-height: 44px;
}
.explore span {
  font: 23px Arial;
  animation: down 2s ease-in-out infinite;
}
.hero-edge {
  position: absolute;
  bottom: 42px;
  right: 25px;
  font: 8px monospace;
  letter-spacing: 2px;
  color: #d9b9ac99;
}
.ticker {
  background: var(--red);
  color: #1c0b09;
  overflow: hidden;
  white-space: nowrap;
  font: bold 11px monospace;
  letter-spacing: 2px;
  padding: 13px 0;
}
.ticker > div {
  width: max-content;
  animation: marquee 30s linear infinite;
}
.videos {
  padding: 58px 22px 0;
}
.section-heading {
  position: relative;
  margin-bottom: 28px;
}
.section-heading .eyebrow {
  color: var(--red);
  margin-bottom: 20px;
}
.section-heading h2 {
  font:
    900 68px/0.86 Impact,
    "Arial Narrow",
    sans-serif;
  letter-spacing: -3px;
  margin: 0;
}
.section-heading em {
  font-style: normal;
  color: var(--red);
}
.heading-symbol {
  position: absolute;
  right: 0;
  bottom: 0;
  font: 80px/1 Arial;
  color: var(--red);
}
/* CATÁLOGO: filtros y tarjetas; las portadas se cargan de forma diferida. */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0c0b0be8;
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 5px;
}
.filters button {
  background: none;
  color: #b9aea5;
  padding: 12px 13px;
  border-radius: 3px;
  font-size: 11px;
  min-height: 44px;
}
.filters button.active {
  background: var(--ink);
  color: #1b1010;
}
.catalog-toolbar > span {
  font: 8px monospace;
  letter-spacing: 0.7px;
  color: var(--muted);
  white-space: nowrap;
}
.video-gallery {
  display: grid;
  gap: 28px;
}
.video-card {
  position: relative;
  display: block;
  background: none;
  padding: 0;
  width: 100%;
  text-align: left;
  perspective: 800px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.video-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #221414;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 8px 28px #0008;
  transform-style: preserve-3d;
}
.video-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s,
    filter 0.7s;
  filter: saturate(0.8);
}
.video-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0003, transparent 50%, #0005);
  pointer-events: none;
}
.video-card:hover .video-visual > img,
.video-card:focus-visible .video-visual > img {
  transform: scale(1.035);
  filter: saturate(1);
}
.video-number {
  position: absolute;
  top: 13px;
  left: 13px;
  font: 9px monospace;
  letter-spacing: 1px;
  background: #0c0b0bc4;
  padding: 8px 9px;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.video-play {
  position: absolute;
  width: 52px;
  height: 52px;
  bottom: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #160e0c;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 5px 0 #958a7e80;
  transform: translateZ(12px);
}
.video-play .play-triangle {
  margin-left: 3px;
}
.video-kind {
  position: absolute;
  bottom: 20px;
  left: 14px;
  font: 8px monospace;
  letter-spacing: 1px;
  z-index: 2;
}
.video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 17px;
  gap: 15px;
}
.video-name {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.8px;
}
.video-type {
  font: 8px monospace;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.video-arrow {
  color: var(--red);
  font-size: 22px;
}
.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 12px;
}
.channel-link > span {
  font-size: 25px;
  color: var(--red);
}
.connect {
  margin: 30px 22px 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 0;
}
.connect > a {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  font: 10px monospace;
  letter-spacing: 1px;
}
.connect svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  flex-shrink: 0;
}
.connect small {
  display: block;
  font: 11px Arial;
  color: var(--muted);
  margin-top: 7px;
}
.connect .external {
  margin-left: auto;
  font: 25px Arial;
  color: var(--red);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 35px 22px max(35px, env(safe-area-inset-bottom));
}
footer img {
  width: 80px;
  height: auto;
}
footer > span {
  font: 8px monospace;
  letter-spacing: 1px;
  color: var(--muted);
}
/* VIDEO: modal nativo y fondo que separa el reproductor del contenido. */
dialog {
  color: var(--ink);
  background: #151010;
  width: calc(100% - 20px);
  max-width: 500px;
  border: 1px solid #675049;
  padding: 18px;
  max-height: 94svh;
  overflow: auto;
  box-shadow: 0 35px 100px #000c;
}
dialog::backdrop {
  background: #000d;
  backdrop-filter: blur(10px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-top img {
  height: auto;
  width: 76px;
}
.close {
  background: none;
  width: 44px;
  height: 44px;
  font-size: 20px;
}
#video-frame {
  aspect-ratio: 16/9;
  background: black;
}
#video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.player-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}
.player-info h2 {
  font: 700 27px Arial;
  letter-spacing: -1px;
  margin: 8px 0 0;
}
.player-info .eyebrow {
  font-size: 8px;
  color: var(--red);
}
.player-controls {
  display: flex;
  gap: 7px;
}
.player-controls button {
  background: transparent;
  border: 1px solid var(--line);
  height: 44px;
  width: 44px;
  font-size: 22px;
}
#youtube-link {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.player-help {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 18px;
}
.skip {
  position: absolute;
  left: 0;
  top: -100px;
  z-index: 30;
  background: white;
  color: black;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
/* ACCESIBILIDAD: pausa manual para todas las animaciones y pseudoelementos. */
.motion-paused *,
.motion-paused *:before,
.motion-paused *:after,
.hero.motion-off *,
.hero.motion-off *:before,
.hero.motion-off *:after {
  animation-play-state: paused !important;
}
.motion-paused .video-visual {
  transform: none !important;
}
.motion-paused .motion-bars i {
  transform: scaleY(0.3);
}
/* ANIMACIONES BASE: barras, logo, vinilo, luces y cinta. */
@keyframes bars {
  to {
    transform: scaleY(0.3);
  }
}
@keyframes logoFloat {
  0%,
  100% {
    transform: rotateX(5deg) rotateY(-9deg) rotateZ(-2deg) translateY(0);
  }
  50% {
    transform: rotateX(-4deg) rotateY(9deg) rotateZ(1deg) translateY(-10px);
  }
}
@keyframes recordFloat {
  0%,
  100% {
    transform: rotateX(64deg) rotateZ(-15deg) translateY(0);
  }
  50% {
    transform: rotateX(54deg) rotateZ(8deg) translateY(-12px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes beam {
  to {
    transform: rotate(28deg);
  }
}
@keyframes orbit {
  to {
    transform: rotateX(62deg) rotateZ(340deg);
  }
}
@keyframes down {
  50% {
    transform: translateY(5px);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (min-width: 600px) {
  body {
    padding: 24px 0;
  }
  .mobile-card {
    border: 1px solid #ffffff15;
    border-radius: 7px;
  }
  .hero {
    height: 740px;
  }
  .logo-perspective {
    perspective: 900px;
  }
}
@media (max-width: 360px) {
  header {
    padding: 0 20px;
  }
  .hero {
    padding-left: 20px;
    padding-right: 20px;
    min-height: 620px;
  }
  .micro {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .videos {
    padding-left: 17px;
    padding-right: 17px;
  }
  .filters button {
    padding: 12px 10px;
  }
  .catalog-toolbar > span {
    font-size: 7px;
  }
  .video-name {
    font-size: 23px;
  }
  .hero-content {
    transform: translateY(-35px);
  }
  .sculpture {
    transform: translateX(-50%) scale(0.85);
  }
  footer > span {
    font-size: 7px;
  }
}
/* PREFERENCIA DEL SISTEMA: desactivar movimiento y transiciones. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .logo-object {
    transform: rotateY(-5deg);
  }
  .video-visual {
    transform: none !important;
  }
}

.heading-symbol {
  width: 64px;
  height: 64px;
  transform: rotate(90deg);
}
.heading-symbol svg {
  width: 100%;
  height: 100%;
}
.video-arrow svg,
.arrow-icon svg,
.external svg {
  width: 22px;
  height: 22px;
}
.connect .external svg {
  stroke: var(--red);
}

/* Ajustes editoriales y contacto de Synesis Code */
.hero-content > .primary {
  margin-top: 38px;
}
.videos {
  padding-top: 28px;
}
.site-credit {
  margin: 0 22px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-credit p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 8px;
}
.site-credit a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
}
.site-credit a svg {
  width: 19px;
  height: 19px;
  color: var(--red);
}
.site-credit a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
/* Portada compacta: logo y vinilo alineados en un mismo eje. */
.hero {
  height: clamp(500px, 66svh, 580px);
  min-height: 500px;
  max-height: 580px;
  display: grid;
  grid-template-rows: auto 1fr 165px 44px;
  row-gap: 0;
  padding-top: 24px;
  padding-bottom: 18px;
}
.hero-eyebrow {
  grid-row: 1;
}
.hero-content {
  grid-row: 2;
  align-self: center;
  min-width: 0;
  margin: 0;
  transform: none;
}
.logo-perspective {
  margin: 0 3px;
}
.sculpture {
  grid-row: 3;
  position: relative;
  left: auto;
  bottom: auto;
  justify-self: center;
  align-self: center;
  transform: none;
  width: 255px;
  height: 165px;
}
.record {
  top: -20px;
}
.record-shadow {
  bottom: 0;
}
.explore {
  grid-row: 4;
  align-self: end;
  justify-self: center;
}
.hero-content > .primary {
  margin: 0;
}
/* Redes: un recorrido de luz y movimiento de los iconos. */
.connect {
  gap: 12px;
  padding-top: 20px;
}
.connect > a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #ffffff18;
  background: linear-gradient(110deg, #271010, #100d0d 70%);
  border-radius: 5px;
  padding: 20px 17px;
  min-height: 86px;
}
.connect > a:before {
  content: "";
  position: absolute;
  inset: -60% -30%;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 35%,
    #f0443335 48%,
    transparent 60%
  );
  animation: socialSweep 5s ease-in-out infinite;
  pointer-events: none;
}
.connect > a:nth-child(2):before {
  animation-delay: -2.5s;
}
.connect > a > svg {
  animation: socialFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #ff3c3155);
}
.connect > a:nth-child(2) > svg {
  animation-delay: -1.8s;
}
.connect > a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--red),
    #ffb2a4,
    transparent
  );
  animation: socialLine 4s ease-in-out infinite;
}
.connect > a:nth-child(2):after {
  animation-delay: -2s;
}
/* Pie: firma flotante sobre una onda gráfica. */
footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 14px;
  padding-top: 39px;
  padding-bottom: 40px;
}
footer > a {
  animation: footerFloat 4.8s ease-in-out infinite;
}
footer > a,
footer > span {
  z-index: 1;
}
.footer-wave {
  position: absolute;
  inset: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
}
.footer-wave i {
  height: 70%;
  width: 2px;
  background: linear-gradient(transparent, #ff4035, transparent);
  transform-origin: center;
  animation: footerWave 2.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.13s);
}
/* Invitación Synesis Code: luz continua, órbitas y CTA destacado. */
.site-credit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 4px 20px 24px;
  padding: 25px 18px 27px;
  border: 1px solid #ff5d4a70;
  border-radius: 12px;
  background: radial-gradient(
    ellipse at 50% 0,
    #7d211f 0,
    #2b1014 45%,
    #140c0f 90%
  );
  box-shadow: 0 0 28px #ff302512;
  animation: creditGlow 4s ease-in-out infinite;
}
.site-credit:before {
  content: "";
  position: absolute;
  inset: -80%;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    transparent 0 25%,
    #ff6b4c77 35%,
    transparent 46% 75%,
    #e5b6ab33 85%,
    transparent 100%
  );
  animation: creditRotate 12s linear infinite;
  pointer-events: none;
}
.site-credit:after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0, #4b151b, #190b10 85%);
  pointer-events: none;
}
.credit-visual {
  position: relative;
  width: 86px;
  height: 72px;
  margin: 0 auto 13px;
  perspective: 220px;
}
.code-mark {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  font: bold 27px monospace;
  color: #ffe7d8;
  text-shadow: 0 0 20px #ff7e5e;
  animation: codeFloat 4s ease-in-out infinite;
}
.code-orbit {
  position: absolute;
  inset: 3px 0;
  border: 1px solid #ff8e6f99;
  border-radius: 50%;
  transform: rotateX(65deg) rotateZ(-20deg);
  animation: codeOrbit 7s linear infinite;
}
.code-orbit:after {
  content: "";
  position: absolute;
  top: 7px;
  left: 10px;
  width: 5px;
  height: 5px;
  background: #ffd2b3;
  border-radius: 50%;
  box-shadow: 0 0 12px #ff714e;
}
.code-orbit.second {
  inset: 0 6px;
  animation-duration: 11s;
  animation-direction: reverse;
  border-color: #f8c0b448;
}
.site-credit p {
  position: relative;
  font-size: 13px;
  line-height: 1.7;
  color: #e6d2cc;
  margin: 0 0 16px;
}
.site-credit a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 14px 12px;
  background: var(--ink);
  color: #231111;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    0 4px 0 #a68276,
    0 10px 25px #0005;
  animation: creditButton 4s ease-in-out infinite;
}
.site-credit a:before {
  content: "";
  position: absolute;
  inset: -50% -100%;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 42%,
    #fff 50%,
    transparent 58%
  );
  transform: translateX(-60%);
  animation: buttonShine 4.8s ease-in-out infinite;
  pointer-events: none;
}
.site-credit a:hover {
  text-decoration: none;
  background: white;
}
.site-credit a svg {
  color: #84271d;
}
.panel-off *,
.panel-off:before,
.panel-off:after,
.panel-off *:before,
.panel-off *:after {
  animation-play-state: paused !important;
}
@keyframes socialSweep {
  0%,
  100% {
    transform: translateX(-22%);
  }
  50% {
    transform: translateX(22%);
  }
}
@keyframes socialFloat {
  0%,
  100% {
    transform: translateY(2px) rotate(-5deg);
  }
  50% {
    transform: translateY(-3px) rotate(5deg);
  }
}
@keyframes socialLine {
  0%,
  100% {
    transform: translateX(-90%);
  }
  50% {
    transform: translateX(240%);
  }
}
@keyframes footerFloat {
  0%,
  100% {
    transform: translateY(2px);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes footerWave {
  0% {
    transform: scaleY(0.2);
  }
  100% {
    transform: scaleY(1);
  }
}
@keyframes creditGlow {
  0%,
  100% {
    box-shadow: 0 0 15px #ff302512;
  }
  50% {
    box-shadow: 0 0 32px #ff302535;
  }
}
@keyframes creditRotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes codeFloat {
  0%,
  100% {
    transform: translateY(2px) rotateY(-12deg);
  }
  50% {
    transform: translateY(-4px) rotateY(12deg);
  }
}
@keyframes codeOrbit {
  from {
    transform: rotateX(65deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(65deg) rotateZ(360deg);
  }
}
@keyframes creditButton {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes buttonShine {
  0%,
  35% {
    transform: translateX(-60%);
  }
  75%,
  100% {
    transform: translateX(60%);
  }
}
@media (max-width: 360px) {
  .hero {
    min-height: 480px;
    height: clamp(480px, 66svh, 550px);
    grid-template-rows: auto 1fr 150px 44px;
  }
  .sculpture {
    transform: scale(0.88);
  }
  .site-credit {
    margin-left: 17px;
    margin-right: 17px;
  }
  .site-credit a {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-credit:before {
    transform: rotate(25deg);
  }
  .code-orbit {
    transform: rotateX(65deg) rotateZ(25deg);
  }
  .footer-wave i {
    transform: scaleY(0.45);
  }
}
.panel-off {
  animation-play-state: paused !important;
}
/* Marca original de Synesis Code: encuadre por CSS, sin modificar la imagen. */
.credit-visual.synesis-visual {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 22px;
  padding: 6px;
  perspective: 500px;
  position: relative;
}
.synesis-logo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3.8;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  box-shadow:
    0 5px 0 #12b9a44d,
    0 0 25px #12b9a426;
  animation: synesisFloat 5s ease-in-out infinite;
}
.synesis-logo-frame img {
  position: absolute;
  width: 100%;
  height: auto;
  max-width: none;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.synesis-logo-frame:after {
  content: "";
  position: absolute;
  inset: -50% -100%;
  background: linear-gradient(
    110deg,
    transparent 43%,
    #ffffff8a 50%,
    transparent 57%
  );
  animation: buttonShine 6s ease-in-out infinite;
  pointer-events: none;
}
.brand-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid #19c4ae60;
  border-radius: 9px;
  pointer-events: none;
  animation: brandOutline 4s ease-in-out infinite;
}
.connect > .spotify-link > svg {
  stroke: #58d89b;
}
.connect > a:nth-child(3):before {
  animation-delay: -3.7s;
}
.connect > a:nth-child(3):after {
  animation-delay: -1.3s;
}
.connect > a:nth-child(3) > svg {
  animation-delay: -2.4s;
}
.social-handle {
  font-size: 12px;
  letter-spacing: 1.5px;
  min-height: 44px;
}
.social-handle:hover {
  color: #fff;
}
@keyframes synesisFloat {
  0%,
  100% {
    transform: translateY(2px) rotateX(3deg) rotateY(-2deg);
  }
  50% {
    transform: translateY(-4px) rotateX(-3deg) rotateY(2deg);
  }
}
@keyframes brandOutline {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.99);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

/* CONTROLES FINALES: audio y animaciones en el encabezado, sin barra flotante. */
header {
  height: auto;
  min-height: 108px;
  padding: 10px 22px;
  gap: 16px;
}
.header-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.header-controls button {
  min-height: 44px;
  min-width: 166px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font:
    11px/1.25 Arial,
    sans-serif;
}
.header-controls button:hover {
  border-color: #ff3c3180;
  background: #ff3c310c;
}
.header-controls button:disabled {
  opacity: 0.5;
  cursor: default;
}
.header-controls .motion-label {
  font: inherit;
  letter-spacing: 0;
}
.header-controls .motion-bars {
  width: 16px;
  gap: 2px;
  flex-shrink: 0;
}
.sound-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  color: var(--red);
}
.sound-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.sound-pause {
  display: none;
}
.is-playing .sound-play {
  display: none;
}
.is-playing .sound-pause {
  display: initial;
}
@media (max-width: 360px) {
  header {
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }
  .brand img {
    width: 82px;
  }
  .header-controls button {
    min-width: 164px;
  }
}
