/* =========================================================
   9) HERO WRAP CLEAN FIX
   ========================================================= */

.canalla-hero-section {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
}

.canalla-hero-section.canalla-hero-video-transparent > .mcb-background-overlay {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.canalla-hero-section,
.canalla-hero-section .section_wrapper,
.canalla-hero-section .mcb-section-inner,
.canalla-hero-section .wrap,
.canalla-hero-section .mcb-wrap,
.canalla-hero-section .mcb-wrap-inner,
.canalla-hero-section .column,
.canalla-hero-section .mcb-column-inner,
.canalla-hero-section .column_attr,
.canalla-hero-wrap-top,
.canalla-hero-wrap-main,
.canalla-hero-wrap-top .mcb-wrap-inner,
.canalla-hero-wrap-main .mcb-wrap-inner,
.canalla-hero-wrap-top .column,
.canalla-hero-wrap-main .column,
.canalla-hero-wrap-top .mcb-column-inner,
.canalla-hero-wrap-main .mcb-column-inner,
.canalla-hero-wrap-top .column_attr,
.canalla-hero-wrap-main .column_attr {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

.canalla-hero-wrap-top,
.canalla-hero-wrap-main,
.canalla-hero-wrap-top .mcb-wrap-inner,
.canalla-hero-wrap-main .mcb-wrap-inner,
.canalla-hero-wrap-top .column_attr,
.canalla-hero-wrap-main .column_attr {
  margin: 0 !important;
  padding: 0 !important;
}

.canalla-hero-wrap-top {
  position: absolute !important;
  inset: 0 !important;
  z-index: 40 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

.canalla-hero-wrap-main {
  position: relative !important;
  z-index: 20 !important;
}

/* Fondo de vídeo persistente de la portada. El contenedor original de Betheme
   se monta bajo #Wrapper para evitar que se desplace con la primera sección. */
body.home.canalla-page-video-active {
  background: var(--canalla-color-background) !important;
}

body.home .canalla-page-video-background {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: var(--canalla-color-background) !important;
  transform: none !important;
}

body.home .canalla-page-video-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(7, 8, 11, 0.68);
  pointer-events: none;
}

body.home .canalla-page-video-background video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}

body.home.canalla-page-video-active #Wrapper {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}

body.home.canalla-page-video-active #Content,
body.home.canalla-page-video-active #Content > .content_wrapper,
body.home.canalla-page-video-active #Content > .content_wrapper > .sections_group,
body.home.canalla-page-video-active .canalla-about-section,
body.home.canalla-page-video-active .canalla-events-host,
body.home.canalla-page-video-active .canalla-events-host .section_wrapper,
body.home.canalla-page-video-active .canalla-events-host .mcb-section-inner,
body.home.canalla-page-video-active .canalla-events-host .mcb-wrap,
body.home.canalla-page-video-active .canalla-events-host .mcb-wrap-inner,
body.home.canalla-page-video-active .canalla-events-host .column,
body.home.canalla-page-video-active .canalla-events-host .mcb-column-inner,
body.home.canalla-page-video-active .canalla-events-host .column_attr,
body.home.canalla-page-video-active .canalla-events-host .mfn-html-inner-wrapper,
body.home.canalla-page-video-active .canalla-tickets-section,
body.home.canalla-page-video-active .canalla-tickets-section .section_wrapper,
body.home.canalla-page-video-active .canalla-tickets-section .mcb-section-inner,
body.home.canalla-page-video-active .canalla-tickets-section .wrap,
body.home.canalla-page-video-active .canalla-tickets-section .mcb-wrap,
body.home.canalla-page-video-active .canalla-tickets-section .mcb-wrap-inner,
body.home.canalla-page-video-active .canalla-tickets-section .column,
body.home.canalla-page-video-active .canalla-tickets-section .mcb-column-inner,
body.home.canalla-page-video-active .canalla-tickets-section .column_attr {
  background: transparent !important;
  background-image: none !important;
}

body.home.canalla-page-video-active .canalla-tickets-section::before,
body.home.canalla-page-video-active .canalla-tickets-section::after {
  background: transparent !important;
}

html.canalla-home-video-module-loaded body.home .canalla-events-host,
html.canalla-home-video-module-loaded body.home .canalla-events-host .section_wrapper,
html.canalla-home-video-module-loaded body.home .canalla-events-host .mcb-section-inner,
html.canalla-home-video-module-loaded body.home .canalla-events-host .mcb-wrap,
html.canalla-home-video-module-loaded body.home .canalla-events-host .mcb-wrap-inner,
html.canalla-home-video-module-loaded body.home .canalla-events-host .column,
html.canalla-home-video-module-loaded body.home .canalla-events-host .mcb-column-inner,
html.canalla-home-video-module-loaded body.home .canalla-events-host .column_attr,
html.canalla-home-video-module-loaded body.home .canalla-events-host .mfn-html-inner-wrapper,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section .section_wrapper,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section .mcb-section-inner,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section .wrap,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section .mcb-wrap,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section .mcb-wrap-inner,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section .column,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section .mcb-column-inner,
html.canalla-home-video-module-loaded body.home .canalla-tickets-section .column_attr {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

body.home.canalla-page-video-active .canalla-events-host .mcb-background-overlay,
body.home.canalla-page-video-active .canalla-tickets-section .mcb-background-overlay {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =========================================================
   10) AVISO ESPECIAL (TAKEOVER) DEL HERO
   ========================================================= */

.canalla-hero-takeover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}

.canalla-hero-takeover__eyebrow {
  color: var(--canalla-color-gold, #d6b11f);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.canalla-hero-takeover__media {
  position: relative;
  --hero-takeover-base: min(820px, 44vw);
  width: min(64vw, calc(var(--hero-takeover-base) * var(--hero-takeover-scale, 1)));
  min-width: calc(460px * var(--hero-takeover-scale, 1));
  border-radius: 24px;
  overflow: hidden;
  background: #0c0c0f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: canallaHeroTakeoverFloat 5.5s ease-in-out infinite;
}

@keyframes canallaHeroTakeoverFloat {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: translateY(-16px);
    box-shadow: 0 44px 90px rgba(0, 0, 0, 0.4);
  }
}

/* Tablet (iPad y similares): tenía su propio hueco sin cubrir entre el
   ajuste de escritorio y el de móvil, y acababa siempre en el mínimo de
   escritorio (demasiado pequeño para el tamaño real de pantalla). */
@media (max-width: 1024px) and (min-width: 641px) {
  .canalla-hero-takeover__media {
    --hero-takeover-base: min(640px, 62vw);
    width: min(84vw, calc(var(--hero-takeover-base) * var(--hero-takeover-scale, 1)));
    min-width: calc(400px * var(--hero-takeover-scale, 1));
  }
}

.canalla-hero-takeover__video,
.canalla-hero-takeover__image {
  display: block;
  width: 100%;
  height: auto;
}

.canalla-hero-takeover__video[hidden],
.canalla-hero-takeover__image[hidden] {
  display: none;
}

.canalla-hero-takeover__mute {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(8, 9, 11, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.canalla-hero-takeover__mute:hover,
.canalla-hero-takeover__mute:focus-visible {
  border-color: var(--canalla-color-gold, #d6b11f);
  transform: scale(1.05);
  outline: 0;
}

.canalla-hero-takeover__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  margin-top: 2px;
  padding: 0 22px;
  border: 1px solid var(--canalla-color-gold, #d6b11f);
  border-radius: 999px;
  background: rgba(16, 16, 19, 0.86);
  color: var(--canalla-color-gold, #d6b11f);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.canalla-hero-takeover__cta:hover,
.canalla-hero-takeover__cta:focus-visible {
  background: var(--canalla-color-gold, #d6b11f);
  color: #111;
  box-shadow: 0 10px 22px rgba(216, 180, 0, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.canalla-hero-takeover__cta::after {
  content: '→';
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.canalla-hero-takeover__cta:hover::after,
.canalla-hero-takeover__cta:focus-visible::after {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .canalla-hero-takeover__media {
    width: min(96vw, calc(92vw * var(--hero-takeover-scale, 1)));
    min-width: 0;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .canalla-hero-takeover__mute {
    transition: none;
  }
  .canalla-hero-takeover__media {
    animation: none;
  }
  .canalla-hero-takeover__cta {
    transition: none;
  }
}
