/* ==========================================================================
   TeatroArt - Navidad Mágica 2026 (Estilos Exclusivos nm-)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO PRINCIPAL CON VIDEO (SIN FILTRO/SOMBRA AZUL)
   -------------------------------------------------------------------------- */
.nm-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  min-height: 480px;
  overflow: hidden;
  background-color: #070d1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

@supports (height: 100svh) {
  .nm-hero {
    height: calc(100svh - 80px);
  }
}

.nm-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.nm-hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent; /* Eliminado totalmente el filtro/sombra azul */
  z-index: 1;
}

.nm-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 1rem;
  text-align: center;
}

.nm-hero__title-box {
  display: inline-block;
  margin: 0 auto;
}

.nm-hero__title-img {
  display: block;
  height: auto;
  margin: 0 auto;
  width: min(76vw, 720px);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
  animation: nm-hero-float 6s ease-in-out infinite;
}

.nm-hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9);
  animation: nm-hero-float 6s ease-in-out infinite;
}

@keyframes nm-hero-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 767px) {
  .nm-hero__title-img {
    width: min(88vw, 520px);
  }
}

/* --------------------------------------------------------------------------
   2. SECCIONES DE ESPECTÁCULOS (IMÁGENES CRISTALINAS SIN SOMBRAS AZULES)
   -------------------------------------------------------------------------- */
.nm-show {
  position: relative;
  width: 100%;
  min-height: 580px;
  max-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #070d1e;
}

@media (max-width: 767px) {
  .nm-show {
    min-height: 500px;
    max-height: 620px;
  }
}

.nm-show__picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.nm-show__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nm-show__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.nm-show__overlay--left,
.nm-show__overlay--right {
  background: transparent;
}

.nm-show__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

@media (min-width: 1024px) {
  .nm-show__content {
    padding: 5rem 3rem;
  }
}

.nm-show__box {
  max-width: 36rem;
}

.nm-show__box--right {
  margin-left: auto;
  text-align: left;
}

@media (min-width: 1024px) {
  .nm-show__box--right {
    text-align: right;
  }
}

.nm-show__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #FFD700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.nm-show__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95), 0 1px 5px rgba(0, 0, 0, 0.9);
}

.nm-show__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  font-style: italic;
  color: #FFD700;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.nm-show__description {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.nm-show__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .nm-show__actions {
    flex-direction: row;
    align-items: center;
  }

  .nm-show__box--right .nm-show__actions {
    justify-content: flex-end;
  }
}

/* --------------------------------------------------------------------------
   3. BOTONES CONVENCIONALES EXPLICITOS
   -------------------------------------------------------------------------- */
.nm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-sizing: border-box;
}

.nm-button--gold {
  color: #070d1e;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nm-button--gold:hover {
  background: linear-gradient(135deg, #ffe033 0%, #FFD700 100%);
  box-shadow: 0 6px 28px rgba(255, 215, 0, 0.45);
  transform: translateY(-2px);
}

.nm-button--trailer {
  color: #ffffff;
  background: linear-gradient(135deg, #c5221f 0%, #9e1917 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.nm-button--trailer:hover {
  background: linear-gradient(135deg, #e02825 0%, #c5221f 100%);
  box-shadow: 0 6px 24px rgba(197, 34, 31, 0.6);
  transform: translateY(-2px);
}

.nm-button--outline {
  color: #ffffff;
  background: rgba(7, 13, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.nm-button--outline:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
  color: #FFD700;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. HERO FINAL DE CIERRE Y CONTACTO
   -------------------------------------------------------------------------- */
.nm-closing {
  position: relative;
  width: 100%;
  min-height: 480px;
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
  background-color: #070d1e;
}

.nm-closing__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 30, 0.35);
  z-index: 1;
}

.nm-closing__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.nm-closing__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95);
}

.nm-closing__text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #ffffff;
  max-width: 38rem;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* --------------------------------------------------------------------------
   5. MODAL DE TRÁILER REDISEÑADO CON CSS EXPLICITO
   -------------------------------------------------------------------------- */
.nm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.nm-modal.is-open {
  display: flex !important;
}

.nm-modal__dialog {
  position: relative;
  width: min(1000px, calc(100vw - 32px));
  background-color: #000000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background-color: #0d1b2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nm-modal__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.nm-modal__close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem;
  border-radius: 9999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nm-modal__close:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nm-modal__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

.nm-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 639px) {
  .nm-modal__dialog {
    width: 94vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
