html {
  scroll-behavior: smooth
}

html,
body {
  margin: 0;
  padding: 0;
  background: #0B0813
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  opacity: .85
}

input::placeholder {
  color: #8B8494
}

@keyframes dvpulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .15
  }
}

@keyframes dvbar {
  from {
    transform: scaleY(.3)
  }

  to {
    transform: scaleY(1)
  }
}

@keyframes dvtrack {
  0% {
    top: -8%
  }

  100% {
    top: 108%
  }
}

@keyframes dvspin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes dvglitchin {
  0% {
    opacity: 0;
    transform: translateX(-10px);
    clip-path: inset(42% 0 42% 0)
  }

  18% {
    opacity: 1;
    transform: translateX(7px);
    clip-path: inset(8% 0 62% 0)
  }

  36% {
    transform: translateX(-5px);
    clip-path: inset(58% 0 12% 0)
  }

  55% {
    transform: translateX(4px);
    clip-path: inset(22% 0 40% 0)
  }

  75% {
    transform: translateX(-2px);
    clip-path: inset(0 0 0 0)
  }

  100% {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0)
  }
}

@keyframes dvstatic {
  0% {
    opacity: .85
  }

  60% {
    opacity: .5
  }

  100% {
    opacity: 0
  }
}

@keyframes dvsweep {
  0% {
    transform: translateY(-105%)
  }

  100% {
    transform: translateY(105%)
  }
}

@keyframes dvbreathe {

  0%,
  100% {
    opacity: .55;
    transform: translateY(0) scale(1)
  }

  50% {
    opacity: 1;
    transform: translateY(-1.5px) scale(1.06)
  }
}

@keyframes dvdrift {

  0%,
  100% {
    opacity: .35;
    transform: translateY(0)
  }

  50% {
    opacity: .75;
    transform: translateY(-3px)
  }
}

@keyframes dvflicker {

  0%,
  100% {
    opacity: .85
  }

  42% {
    opacity: .85
  }

  46% {
    opacity: .28
  }

  50% {
    opacity: .9
  }

  54% {
    opacity: .4
  }

  58% {
    opacity: .85
  }
}

@keyframes dvorbit {
  to {
    stroke-dashoffset: -400
  }
}

@keyframes dvblink {

  0%,
  92%,
  100% {
    transform: scaleY(1)
  }

  95% {
    transform: scaleY(.08)
  }
}

@keyframes dvtwinkle {

  0%,
  100% {
    opacity: .35;
    r: 1.6
  }

  50% {
    opacity: 1
  }
}

@keyframes dvsignal {
  0% {
    offset-distance: 0%;
    opacity: 0
  }

  12% {
    opacity: .9
  }

  88% {
    opacity: .9
  }

  100% {
    offset-distance: 100%;
    opacity: 0
  }
}

@keyframes dvdash {
  to {
    stroke-dashoffset: -260
  }
}

@keyframes dvcell {

  0%,
  100% {
    opacity: .08
  }

  50% {
    opacity: .3
  }
}

/* ============ soporte (reemplaza al runtime de diseño) ============ */
*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  overflow-x: clip
}

body {
  -webkit-font-smoothing: antialiased;
  overflow-x: clip
}

svg {
  overflow: hidden
}

img {
  max-width: 100%
}

.dv-slot {
  position: relative;
  overflow: hidden;
  background: #150F22;
  display: block
}

.dv-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0
}

.dv-slot img[data-missing] {
  display: none
}

.dv-slot-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font: 400 11px/1.5 'Space Mono', monospace;
  letter-spacing: 1px;
  color: #6E6680;
  border: 1px dashed rgba(167, 139, 250, .28);
  background: repeating-linear-gradient(45deg, rgba(167, 139, 250, .04) 0 10px, transparent 10px 20px)
}

.dv-slot img:not([data-missing])+.dv-slot-hint {
  display: none
}

input,
button {
  font-family: inherit
}

button {
  cursor: pointer;
  border: 0
}

[data-dv-menu],
[data-dv-lang-toggle] {
  cursor: pointer
}

:focus-visible {
  outline: 2px solid #A78BFA;
  outline-offset: 3px
}

.dv-h1 {
  transition: background .18s ease, color .18s ease, border-color .18s ease
}

.dv-h1:hover {
  color: #EDEAE2
}

.dv-h2 {
  transition: background .18s ease, color .18s ease, border-color .18s ease
}

.dv-h2:hover {
  background: var(--acc-h, #5D2BB8)
}

.dv-h3 {
  transition: background .18s ease, color .18s ease, border-color .18s ease
}

.dv-h3:hover {
  background: rgba(237, 234, 226, .05)
}

.dv-h4 {
  transition: background .18s ease, color .18s ease, border-color .18s ease
}

.dv-h4:hover {
  background: #1C1730
}

/* enlaces a plataformas de streaming en los tracks */
.dv-plat {
  transition: color .18s ease
}

/* !important porque el color de reposo va en el style inline del enlace */
.dv-plat:hover {
  color: var(--acc-l, #A78BFA) !important
}

/* ============ responsive ============ */
@media (max-width:1100px) {

  .dv-g-split,
  .dv-g-split2 {
    grid-template-columns: 1fr !important;
    gap: 40px !important
  }

  .dv-pad-xl {
    padding: 72px 32px !important
  }

  .dv-pad-hero {
    padding: 56px 32px 200px !important
  }

  .dv-pad-nav {
    padding: 16px 24px !important
  }

  .dv-pad-lg {
    padding: 28px 32px 32px !important
  }

  .dv-pad-md {
    padding: 20px 32px !important
  }
}

@media (max-width:820px) {
  .dv-g3 {
    grid-template-columns: 1fr !important;
    gap: 22px !important
  }

  .dv-g-row {
    grid-template-columns: 28px 1fr !important;
    row-gap: 6px !important
  }

  /* el 5º hijo (enlaces de plataforma) no cabe en la columna de 28px:
     pasa a su propia fila a lo ancho */
  .dv-g-row>:last-child {
    grid-column: 1 / -1 !important;
    justify-content: flex-start !important;
    margin-top: 2px
  }

  .dv-scrim {
    background: linear-gradient(180deg, rgba(8, 5, 16, .74), rgba(8, 5, 16, .62)) !important
  }

  .dv-panel {
    min-height: auto !important;
    align-items: stretch !important;
    padding-top: 64px !important;
    padding-bottom: 64px !important
  }

  .dv-pad-xl {
    padding: 64px 20px !important
  }

  .dv-pad-hero {
    padding: 40px 20px 140px !important
  }

  .dv-pad-nav {
    padding: 14px 16px !important
  }

  .dv-pad-lg,
  .dv-pad-md {
    padding: 22px 20px !important
  }

  /* la navegación de escritorio se reemplaza por el menú compacto */
  #dv-nav-links {
    display: none !important
  }

  #dv-menu-btn {
    display: inline-flex !important
  }

  /* el OSD de VCR estorba en pantallas chicas */
  #dv-root [style*="position:fixed"] {
    font-size: 9px
  }

  .dv-hero-coords {
    display: none !important
  }

  .dv-social {
    flex-wrap: wrap !important;
    gap: 14px 20px !important;
    font-size: 10px !important
  }

  .dv-footrow {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px 18px !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.6
  }

  #dv-nav-right {
    gap: 12px !important
  }

  #dv-menu-btn {
    order: 9
  }

  #dv-est {
    display: none !important
  }

  #dv-logo {
    white-space: nowrap !important;
    font-size: 15px !important
  }

  .dv-deco-abs {
    display: none !important
  }

  /* la tarjeta del destacado apila: portada, info, botón de play */
  .dv-featured {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important
  }

  /* la portada deja de ser 150x150 fijo y crece manteniendo el cuadrado */
  .dv-featured>div:first-child,
  .dv-featured>div:first-child>.dv-slot {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    aspect-ratio: 1 !important
  }

  .dv-featured>a {
    align-self: center !important
  }

  /* el OSD fijo tapa el final de la página */
  #contacto {
    padding-bottom: 56px !important
  }
}

@media (max-width:520px) {
  #dv-nav-right>div[data-dv-lang-toggle] {
    font-size: 11px !important
  }
}

@media (max-width:520px) {
  .dv-pad-xl {
    padding: 56px 16px !important
  }

  .dv-pad-hero {
    padding: 32px 16px 110px !important
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important
  }
}

/* ============ menú móvil ============ */
#dv-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  background: transparent;
  border: 1px solid rgba(237, 234, 226, .3);
  color: #EDEAE2;
  font: 700 11px/1 'Space Mono', monospace;
  letter-spacing: 1px
}

#dv-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 8, 19, .97);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px
}

#dv-menu.open {
  display: flex
}

#dv-menu a {
  font: 700 15px/1 'Space Mono', monospace;
  letter-spacing: 2.5px;
  color: #EDEAE2
}

#dv-menu button {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  color: #EDEAE2;
  font: 700 20px/1 'Space Mono', monospace
}
  
/* paneles fuera de pantalla: pausa sus animaciones infinitas (ahorra CPU/GPU) */
.dv-off, .dv-off * { animation-play-state: paused !important; }

/* ===== contacto (formulario) ===== */
[hidden] { display: none !important }
.dv-link { border-bottom: 1px solid var(--acc-l, #A78BFA); transition: color .18s ease }
.dv-link:hover { color: #EDEAE2 }
.dv-contact-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; text-align: left }
.dv-contact-left { padding-right: 56px }
.dv-contact-right { padding-left: 56px; border-left: 1px solid rgba(237, 234, 226, .18) }
.dv-needs { display: grid; grid-template-columns: 1fr; }
.dv-need { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 9px 0; cursor: pointer; font-size: 14px; color: #A9A2B3; letter-spacing: .5px }
.dv-need input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0 }
.dv-need .bx { color: #8B8494; letter-spacing: 2px; white-space: pre; font-weight: 700 }
.dv-need .bx::before { content: "[ ]" }
.dv-need input:checked ~ .bx::before { content: "[x]" }
.dv-need input:checked ~ .bx { color: var(--acc-l, #A78BFA) }
.dv-need input:checked ~ .tx { color: #EDEAE2 }
.dv-need input:focus-visible ~ .bx { outline: 1px solid var(--acc-l, #A78BFA); outline-offset: 3px }
.dv-need:hover .tx { color: #EDEAE2 }
.dv-field { display: block; width: 100%; box-sizing: border-box; background: transparent; border: 0; border-bottom: 1px solid rgba(237, 234, 226, .28); border-radius: 0; color: #EDEAE2; font: inherit; font-size: 16px; letter-spacing: .5px; padding: 20px 0 14px; outline: none; transition: border-color .18s ease }
.dv-field::placeholder { color: #8B8494; opacity: 1 }
.dv-field:focus { border-bottom-color: var(--acc-l, #A78BFA) }
textarea.dv-field { resize: vertical; min-height: 130px }
.dv-contact-left .dv-social { justify-content: flex-start !important; margin-top: 24px !important; gap: 12px 22px !important; flex-wrap: wrap !important }
[data-dv-need]:focus-visible { outline: 1px solid var(--acc-l, #A78BFA); outline-offset: -3px }
@media (max-width: 820px) {
  .dv-contact-grid { grid-template-columns: 1fr; margin-top: 32px }
  .dv-contact-left { padding-right: 0 }
  .dv-contact-right { padding: 30px 0 0; margin-top: 30px; border-left: 0; border-top: 1px solid rgba(237, 234, 226, .18) }
}

/* ===== portafolio ===== */
.dv-tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid rgba(237, 234, 226, .18) }
.dv-tracks li { border-bottom: 1px solid rgba(237, 234, 226, .12) }
.dv-tracks a { display: grid; grid-template-columns: 44px 1fr 24px; gap: 14px; align-items: center; padding: 20px 10px; transition: background .18s ease }
.dv-tracks a:hover { background: rgba(237, 234, 226, .05) }
.dv-tracks .n { font-size: 12px; color: var(--acc-l, #A78BFA) }
.dv-tracks .t { font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; letter-spacing: .5px }
.dv-tracks small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 2px; color: #8B8494; font-weight: 400 }
.dv-tracks .ar { color: #8B8494; justify-self: end }
.dv-tracks a:hover .ar { color: var(--acc-l, #A78BFA) }
@media (max-width: 820px) { .dv-tracks { grid-template-columns: 1fr } }
