/* NEXO — ESTILOS AISLADOS DEL HERO CINEMATOGRÁFICO */
.detalle-nexo .residencia-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #171513;
}
.detalle-nexo .residencia-media video.residencia-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 550ms ease, visibility 550ms ease;
}
.detalle-nexo .residencia-media video.residencia-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.detalle-nexo .residencia-hero-contenido {
  opacity: 1;
  visibility: visible;
  transition: opacity 850ms cubic-bezier(.22, 1, .36, 1), visibility 850ms ease;
}
.detalle-nexo .residencia-hero-contenido.titulo-oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .detalle-nexo .residencia-media video.residencia-slide,
  .detalle-nexo .residencia-hero-contenido { transition: none !important; }
}

/* =========================================
   NEXO · REPRODUCCIÓN MÓVIL
   BOTÓN DE RESPALDO
   ========================================= */

.detalle-nexo .residencia-reproducir {
  position: absolute;

  top: 50%;
  left: 50%;

  z-index: 20;

  transform: translate(-50%, -50%);

  max-width: calc(100% - 40px);
  min-height: 52px;

  padding: 15px 26px;

  border: 1px solid rgba(215, 194, 161, 0.65);
  border-radius: 2px;

  background: rgba(36, 33, 31, 0.88);
  color: #f7f4ee;

  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;

  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;

  cursor: pointer;
  touch-action: manipulation;

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  transition:
    background-color 300ms ease,
    border-color 300ms ease;
}

.detalle-nexo .residencia-reproducir[hidden] {
  display: none !important;
}

.detalle-nexo .residencia-reproducir:focus-visible {
  outline: 2px solid #d7c2a1;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .detalle-nexo .residencia-reproducir:hover {
    background: rgba(51, 37, 31, 0.97);
    border-color: #d7c2a1;
  }
}

@media (max-width: 640px) {
  .detalle-nexo .residencia-reproducir {
    max-width: calc(100% - 48px);
    padding: 15px 20px;
    font-size: 10px;
    letter-spacing: 0.09em;
  }
}
