/* ============================================================
   FONDOS PERSONALIZADOS DE BLOQUES (mw/images/bgs)
   ============================================================ */

.mw-bg-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.mw-bg-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* ============================================================
   COVER CON FONDO PROPIO (imagen o video)
   ============================================================ */

.cover-section-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cover-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Video del cover */
video.cover-bg-media {
    object-fit: cover;
}

/* Imagen del cover (div con background-image) */
.cover-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* El contenido del cover va por encima */
.cover-section-wrapper>.cover {
    position: relative;
    z-index: 1;
}

/* ============================================================
   VIDEO FONDO DE BLOQUES (Servicios, Habitaciones, etc.)
   ============================================================ */

.mw-bg-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.mw-bg-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* ============================================================
   Cuando el header es "cover-nav", el cover sube para
   quedar debajo del header (que flota encima con blur).
   ============================================================ */
body.header-cover-nav-active .cover-section-wrapper,
body.header-cover-nav-active .cover-section {
    margin-top: calc(-1 * var(--header-height-real, 60px));
}