.zw-video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--zw-white);
  background-color: #1a1a1a;
  text-align: center;
  height: 100vh;
  height: 100dvh;
}

.zw-video__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zw-video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(18, 18, 18, 0.18);
}

.zw-video__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.zw-video__cta,
.zw-video__copy {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Esquina superior derecha del monitor en la foto (1700×960). */
.zw-video__cta {
  left: 51.5%;
  top: 21%;
  transform: translate(-50%, -50%);
}

/* Título alineado con el borde inferior del monitor. */
.zw-video__copy {
  left: 50%;
  top: 52%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.5rem);
}

.zw-video__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(5.25rem, 10vw, 6.75rem);
  height: clamp(5.25rem, 10vw, 6.75rem);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

button.zw-video__play {
  transition: transform 220ms var(--zw-ease);
}

button.zw-video__play:hover {
  transform: scale(1.06);
}

.zw-video__icon {
  width: 100%;
  height: 100%;
  display: block;
}

.zw-video__label {
  margin: 0.45rem 0 0;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.2;
  color: var(--zw-orange);
}

.zw-video__label--btn {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.zw-video__title {
  margin: 0;
  font-size: clamp(1.45rem, 6.8vw, 3.35rem);
  font-weight: var(--zw-weight-title);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--zw-white);
  white-space: nowrap;
}

.zw-video__line {
  margin: 0.45rem 0 0;
  font-size: clamp(1.05rem, 4.8vw, 2.35rem);
  font-weight: var(--zw-weight-body);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--zw-white);
  white-space: nowrap;
}

.zw-video__accent {
  color: var(--zw-orange);
  font-weight: var(--zw-weight-title);
}

.zw-video__dialog {
  width: min(92vw, 56rem);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.zw-video__dialog::backdrop {
  background: rgba(8, 8, 8, 0.86);
}

.zw-video__dialog-box {
  position: relative;
}

.zw-video__close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--zw-white);
  cursor: pointer;
}

.zw-video__close svg {
  width: 100%;
  height: 100%;
}

.zw-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.zw-video__frame iframe,
.zw-video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 639px) {
  .zw-video__bg {
    object-position: center 40%;
  }

  .zw-video__cta {
    left: 50%;
    top: 24%;
    transform: translate(-50%, -50%);
  }

  .zw-video__copy {
    top: 58%;
  }

  .zw-video__title {
    font-size: clamp(1.15rem, 5.8vw, 1.85rem);
  }

  .zw-video__line {
    font-size: clamp(0.88rem, 4.2vw, 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  button.zw-video__play {
    transition: none;
  }

  button.zw-video__play:hover {
    transform: none;
  }
}
