/**
 * Main Custom Banner Slider
 *
 * @author MOD
 * @copyright 2024
 */

/* ============================================
   SLIDER CONTAINER
   ============================================ */

.mcb-slider {
    --mcb-progress: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.mcb-slider__track {
    position: relative;
    width: 100%;
    min-height: 700px;
    height: 100vh;
}

/* ============================================
   SLIDES - COMMON
   ============================================ */

.mcb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

.mcb-slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

.mcb-slide--leaving {
    opacity: 0;
    visibility: visible;
    z-index: 2;
}

.mcb-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mcb-slide__container {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    opacity: 0;
}

/* ============================================
   TYPE 1: BASIC SLIDE — "La tienda" hero (Figma 4920:19273, 1440 wide)
   Intro on the jara band (40px top, 64px bottom): eyebrow (page H1) + title
   on cols 1-5, html_content (+ button) on cols 8-12 aligned to the bottom.
   The slide image goes below, full width, 700px high.
   ============================================ */

/* Slider made only of basic slides: the slides stack in one grid cell so the
   track takes the height of its content instead of 100vh */
.mcb-slider--basic .mcb-slider__track {
    display: grid;
    /* Fixed track: an auto column would grow to the text's max-content width */
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    height: auto;
}

.mcb-slider--basic .mcb-slide {
    position: relative;
    grid-area: 1 / 1;
}

.mcb-slide--type1 {
    display: flex;
    flex-direction: column;
}

.mcb-slide__intro {
    flex: 0 0 auto;
    background: var(--lj-color-jara, #FFC758);
}

/* Site grid (.lj-container + .lj-grid). display is restated because
   .mcb-slide__container sets flex. */
.mcb-slide--type1 .mcb-slide__container {
    display: grid;
    align-items: end;
    row-gap: 24px;
    max-width: var(--lj-container-max, 1440px);
    height: auto;
    padding: 40px var(--lj-container-padding, 64px) 64px;
    opacity: 1;
}

.mcb-slide--type1 .mcb-slide__heading {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.mcb-slide--type1 .mcb-slide__body {
    min-width: 0;
}

/* Eyebrow: may be an <h1>, so reset heading defaults */
.mcb-slide--type1 .mcb-slide__subtitle {
    display: block;
    margin: 0;
    font-family: var(--lj-font-ui, "Supreme", system-ui, sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    color: var(--lj-color-black, #000);
}

.mcb-slide--type1 .mcb-slide__title {
    margin: 0;
    font-family: var(--lj-font-display, "F37 Drago", serif);
    font-size: 64px;
    font-weight: 300;
    line-height: 1.15;
    color: var(--lj-color-black, #000);
}

.mcb-slide--type1 .mcb-slide__html {
    margin: 0;
    font-family: var(--lj-font-display, "F37 Drago", serif);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--lj-color-grey-800, #333);
}

.mcb-slide--type1 .mcb-slide__html p {
    margin: 0;
}

.mcb-slide--type1 .mcb-slide__actions {
    margin-top: 24px;
}

/* Image: 1440x700 in Figma; keeps 700px on wider screens and fills the rest
   of the slide when the slider shares the 100vh track with a video slide */
.mcb-slide__media {
    position: relative;
    flex: 1 0 auto;
    height: auto;
    overflow: hidden;
    background: #d4d4d4;
}

.mcb-slide__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* No mobile design yet: intro stacked, image keeps the Figma ratio */
@media (max-width: 991.98px) {
    .mcb-slide--type1 .mcb-slide__container {
        --lj-container-padding: 16px;
        padding-block: 32px 40px;
    }

    .mcb-slide--type1 .mcb-slide__heading,
    .mcb-slide--type1 .mcb-slide__body {
        grid-column: 1 / -1;
    }

    .mcb-slide--type1 .mcb-slide__title {
        font-size: 40px;
    }

    .mcb-slide--type1 .mcb-slide__html {
        font-size: 18px;
    }

    .mcb-slide__media {
        height: auto;
        aspect-ratio: 1440 / 700;
        min-height: 240px;
    }
}

/* ============================================
   TYPE 2: VIDEO SLIDE
   Full-width video + HTML overlay
   ============================================ */

.mcb-slide--type2 {
    background-size: cover;
    background-position: center;
}

.mcb-slide__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.mcb-slide__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.mcb-slide__video-container video,
.mcb-slide__video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mcb-slide__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.mcb-slide--type2 .mcb-slide__overlay {
    background: linear-gradient(90deg, rgba(18, 34, 33, 0.75) 0%, rgba(18, 34, 33, 0.2) 60%, transparent 100%);
}

.mcb-slide__content--type2 {
    max-width: 550px;
    padding: 3rem 0;
}

.mcb-slide--type2 .mcb-slide__subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.mcb-slide--type2 .mcb-slide__title {
    color: #fff;
}

.mcb-slide--type2 .mcb-slide__html {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   TYPE 3: BODEGA SLIDE
   Full-width bg (greyscale+grain) + bottle center + logo overlapping pink panel right
   Figma ref: 3287-54695
   ============================================ */

.mcb-slide--type3 {

}

.mcb-slide__bodega-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    z-index: 0;
}

.mcb-slide__bg-grain {
    position: absolute;
    inset: 0;
    opacity: 0.20;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    pointer-events: none;
    z-index: 1;
}

.mcb-slide--type3 {
    background: var(--Rosa-claro);
}

.mcb-slide--type3 .mcb-slide__product-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    max-height: 600px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}

.mcb-slide__bodega-right {
    position: relative;
    z-index: 3;
    width: 50%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    isolation: isolate;
}

.mcb-slide__bodega-logo-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 163px 0;
    margin-bottom: -100px;
}

.mcb-slide__bodega-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--Rosa-claro, #F7E8ED);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.mcb-slide__bodega-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mcb-slide__bodega-panel {
    position: relative;
    z-index: 1;
    background: var(--Rosa-claro, #F7E8ED);
    flex: 1 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    padding: 140px 104px 64px 163px;
}

.mcb-slide--type3 .mcb-slide__title {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--Borgoa, #9B004E);
    margin: 0;
}

.mcb-slide--type3 .mcb-slide__html {
    color: var(--Negro, #1a1a1a);
}

.mcb-slide__btn--bodega {
    width: 395px;
    max-width: 100%;
    justify-content: center;
}

/* ============================================
   TYPE 4: OFERTA SLIDE
   Pink bg + decorative circles + rotated bottle + product data
   ============================================ */

.mcb-slide--type4 {
    display: flex;
    background: var(--Rosa-claro, #F7E8ED);
}

.mcb-slide__oferta-bg {
    position: relative;
    width: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.mcb-slide__oferta-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--Rosa, #9B004E);
}

.mcb-slide__oferta-circle--big {
    width: 505px;
    height: 505px;
    top: 125px;
    left: 126px;
}

.mcb-slide__oferta-circle--md-1 {
    width: 125px;
    height: 125px;
    top: 488px;
    left: 81px;
    background: var(--Rosa, #BA2253);
}

.mcb-slide__oferta-circle--md-2 {
    width: 125px;
    height: 125px;
    top: 387px;
    left: 552px;
    background: var(--Rosa, #BA2253);
}

.mcb-slide__oferta-circle--sm-1 {
    width: 64px;
    height: 64px;
    top: 253px;
    left: 57px;
    background: var(--Rosa, #BA2253);
}

.mcb-slide__oferta-circle--sm-2 {
    width: 64px;
    height: 64px;
    top: 544px;
    left: 563px;
    background: var(--Rosa, #BA2253);
}

.mcb-slide__oferta-badge-big {
    position: absolute;
    top: 100px;
    left: 112px;
    width: 173px;
    height: 173px;
    border-radius: 50%;
    background: var(--Rosa, #BA2253);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mcb-slide__oferta-badge-big span {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 57px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
}

.mcb-slide__oferta-bottle {
    position: absolute;
    top: 50%;
    left: 43%;
    transform: translate(-50%, -50%) rotate(25deg);
    z-index: 5;
    width: 395px;
    height: 734px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mcb-slide__oferta-bottle:hover img {
    transform: scale(1.03);
}

.mcb-slide__oferta-bottle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.25));
    transition: transform 0.4s ease;
}

.mcb-slide__oferta-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 40px 104px 40px 40px;
    z-index: 2;
    position: relative;
}

.mcb-slide--type4 .mcb-slide__title {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--Borgoa, #9B004E);
    margin: 0;
}

.mcb-slide__oferta-product {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.mcb-slide__oferta-product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcb-slide__oferta-tag {
    display: inline-block;
    width: fit-content;
    background: #FEFEFE;
    color: var(--Borgoa, #9B004E);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    padding: 2px 8px;
    border-radius: 2px;
}

.mcb-slide__oferta-product-name {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--Borgoa, #9B004E);
    margin: 0;
}

.mcb-slide__oferta-denomination {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--Gris-noche, #373935);
}

.mcb-slide__oferta-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcb-slide__oferta-price-old {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--Borgoa, #9B004E);
    text-decoration: line-through;
}

.mcb-slide__oferta-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mcb-slide__oferta-price-current {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--Negro, #212221);
}

.mcb-slide__oferta-discount-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--Rosa, #BA2253);
    color: #FEFEFE;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mcb-slide__btn--oferta {
    width: 395px;
    max-width: 100%;
    justify-content: center;
}

/* ============================================
   TYPOGRAPHY & CONTENT
   ============================================ */

.mcb-slide__subtitle {
    display: inline-block;
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(15px);
}

.mcb-slide--active .mcb-slide__subtitle {
    animation: mcb-fade-up 0.6s ease 0.2s forwards;
}

.mcb-slide__title {
    font-family: 'Hedvig Letters Serif', serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    opacity: 0;
    transform: translateY(20px);
}

.mcb-slide--active .mcb-slide__title {
    animation: mcb-fade-up 0.6s ease 0.35s forwards;
}

.mcb-slide__html {
    font-family: 'Montserrat', sans-serif;
    color: var(--Negro);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(15px);
}

.mcb-slide__html p {
    margin-bottom: 0.5rem;
}

.mcb-slide__html p:last-child {
    margin-bottom: 0;
}

.mcb-slide--active .mcb-slide__html {
    animation: mcb-fade-up 0.6s ease 0.5s forwards;
}

/* ============================================
   BUTTON / CTA
   ============================================ */

.mcb-slide__actions {
    opacity: 0;
    transform: translateY(15px);
}

.mcb-slide--active .mcb-slide__actions {
    animation: mcb-fade-up 0.6s ease 0.65s forwards;
}

.mcb-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--Borgoa, #9B004E);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.mcb-slide__btn:hover {
    background: var(--qv-color-secondary, #BA2253);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.mcb-slide__btn:active {
    transform: translateY(0);
}

.mcb-slide__btn svg {
    transition: transform 0.2s ease;
}

.mcb-slide__btn:hover svg {
    transform: translateX(3px);
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */

.mcb-slider__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.mcb-slider__arrow {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.mcb-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mcb-slider__arrow:active {
    transform: scale(0.95);
}

/* ============================================
   DOTS / INDICATORS
   ============================================ */

.mcb-slider__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mcb-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mcb-slider__dot--active {
    background: #fff;
    border-color: #fff;
    width: 28px;
    border-radius: 5px;
}

.mcb-slider__dot:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes mcb-fade-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mcb-bottle-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   HERO COLLAPSE ON SCROLL (type 2 / video)

   El slider mide 150vh y el track va pegado arriba (sticky) durante los
   primeros 50vh: la página scrollea, pero visualmente solo corre el efecto.
   Dentro del slide, el vídeo le cede altura al bloque de texto (100vh → 50vh).
   --mcb-progress (0 → 1) lo escribe mod_maincustombanner.js desde el scroll.
   Todo cuelga de --collapse-enabled para que sin JS el slide siga normal.
   ============================================ */

/* El slider gana 50vh de "pista": mientras se recorre, el track queda pegado
   arriba (sticky), así la página scrollea pero visualmente nada se mueve.
   Ojo: sticky no funciona si un ancestro tiene overflow hidden. */
.mcb-slider--collapse-enabled {
    height: 150vh;
    overflow: visible;
}

.mcb-slider--collapse-enabled .mcb-slider__track {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.mcb-slider--collapse-enabled .mcb-slide--type2 {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__video-container,
.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__video-link,
.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__overlay {
    position: relative;
    flex: 0 0 auto;
    height: calc(100vh - 50vh * var(--mcb-progress));
}

.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__overlay {
    position: absolute;
    top: 0;
}

.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__container {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-width: none;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    opacity: var(--mcb-progress);
}

.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__content--type2 {
    display: flex;
    flex-direction: column-reverse; /* el DOM trae subtítulo antes que título */
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 1100px;
    padding: 0;
}

.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__title,
.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__subtitle {
    animation: none; /* la entrada la manda el scroll, no el autoplay del slider */
    opacity: 1;
    transform: none;
    margin: 0;
    color: var(--color-purple-500, #322634); /* mismo color que los títulos del tema */
}

.mcb-slider--collapse-enabled .mcb-slide--type2 .mcb-slide__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    max-width: 900px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .mcb-slider__track {
        min-height: 400px;
    }

    .mcb-slide__title {
        font-size: 2.2rem;
    }

    .mcb-slide__product-img {
        max-height: 340px;
    }

    .mcb-slide__layout {
        gap: 2rem;
    }

    .mcb-slide__bodega-logo-wrap {
        padding: 60px 80px 0;
        margin-bottom: -75px;
    }

    .mcb-slide__bodega-panel {
        padding: 110px 40px 48px 80px;
        gap: 24px;
    }

    .mcb-slide--type3 .mcb-slide__title {
        font-size: 36px;
    }

    .mcb-slide__bodega-logo {
        width: 150px;
        height: 150px;
    }

    .mcb-slide--type3 .mcb-slide__product-img {
        max-height: 500px;
    }

    .mcb-slide__btn--bodega {
        width: 100%;
    }

    .mcb-slide__oferta-content {
        padding: 40px 40px 40px 20px;
    }

    .mcb-slide--type4 .mcb-slide__title {
        font-size: 42px;
    }

    .mcb-slide__oferta-product-name {
        font-size: 24px;
    }

    .mcb-slide__oferta-denomination {
        font-size: 16px;
    }

    .mcb-slide__oferta-price-current {
        font-size: 32px;
    }

    .mcb-slide__oferta-badge-big {
        width: 120px;
        height: 120px;
        top: 60px;
        left: 40px;
    }

    .mcb-slide__oferta-badge-big span {
        font-size: 38px;
    }

    .mcb-slide__oferta-circle--big {
        width: 350px;
        height: 350px;
        top: 150px;
        left: 80px;
    }

    .mcb-slide__oferta-bottle {
        width: 300px;
        height: 560px;
    }

    .mcb-slide__btn--oferta {
        width: 100%;
    }
}

@media (max-width: 767px) {

    /* --- Slider container --- */
    .mcb-slider {
        border-radius: 0;
    }

    .mcb-slider__track {
        min-height: 0;
        height: auto;
    }

    .mcb-slide--active {
        position: relative;
        height: auto;
        min-height: 580px;
        display: flex;
        flex-direction: column;
    }

    /* --- Type 1: intro + image, sized by its content --- */
    .mcb-slide--type1.mcb-slide--active {
        min-height: 0;
    }

    .mcb-slide__container {
        padding: 0 1rem;
        flex: 1;
    }

    /* --- Type 2: video slide (mobile) --- */

    .mcb-slide--type2 .mcb-slide__overlay {
        background: linear-gradient(0deg, rgba(18, 34, 33, 0.8) 0%, rgba(18, 34, 33, 0.3) 50%, transparent 100%);
    }

    .mcb-slide--type2 .mcb-slide__container {
        align-items: flex-end;
    }

    .mcb-slide__content--type2 {
        max-width: 100%;
        padding: 2rem 0;
    }

    .mcb-slide--type2 .mcb-slide__title {
        font-size: 1.8rem;
    }

    .mcb-slide--type2 .mcb-slide__html {
        font-size: 0.9rem;
    }

    /* --- Type 3: vertical bodega slide (mobile) --- */

    .mcb-slide--type3.mcb-slide--active {
        display: flex;
        flex-direction: column;
    }

    .mcb-slide__bodega-bg {
        position: relative;
        width: 100%;
        flex: 0 0 220px;
        inset: auto;
    }

    .mcb-slide--type3 .mcb-slide__product-img {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        max-height: 370px;
        width: auto;
        opacity: 1;
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
        z-index: 10;
    }

    .mcb-slide__bodega-right {
        width: 100%;
        margin-left: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .mcb-slide__bodega-logo-wrap {
        padding: 0 16px;
        margin-bottom: -60px;
        margin-top: -60px;
    }

    .mcb-slide__bodega-logo {
        width: 120px;
        height: 120px;
    }

    .mcb-slide__bodega-panel {
        width: 100%;
        padding: 80px 16px 24px;
        gap: 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .mcb-slide--type3 .mcb-slide__title {
        font-size: 28px;
    }

    .mcb-slide__btn--bodega {
        width: 100%;
    }

    /* --- Type 4: vertical oferta slide (mobile) --- */

    .mcb-slide--type4 {
        flex-direction: column;
    }

    .mcb-slide__oferta-bg {
        width: 100%;
        flex: 0 0 260px;
    }

    .mcb-slide__oferta-circle--big {
        width: 280px;
        height: 280px;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .mcb-slide__oferta-circle--md-1 {
        width: 80px;
        height: 80px;
        top: 260px;
        left: 20px;
    }

    .mcb-slide__oferta-circle--md-2 {
        display: none;
    }

    .mcb-slide__oferta-circle--sm-1 {
        width: 40px;
        height: 40px;
        top: 80px;
        left: 15px;
    }

    .mcb-slide__oferta-circle--sm-2 {
        display: none;
    }

    .mcb-slide__oferta-badge-big {
        width: 100px;
        height: 100px;
        top: 20px;
        left: 20px;
    }

    .mcb-slide__oferta-badge-big span {
        font-size: 30px;
    }

    .mcb-slide__oferta-bottle {
        width: 220px;
        height: 420px;
        left: 55%;
        top: 55%;
        transform: translate(-50%, -50%) rotate(20deg);
    }

    .mcb-slide__oferta-content {
        flex: 1;
        width: 100%;
        padding: 24px 16px;
        gap: 16px;
    }

    .mcb-slide--type4 .mcb-slide__title {
        font-size: 32px;
    }

    .mcb-slide__oferta-product {
        gap: 16px;
    }

    .mcb-slide__oferta-product-name {
        font-size: 22px;
    }

    .mcb-slide__oferta-denomination {
        font-size: 16px;
    }

    .mcb-slide__oferta-price-current {
        font-size: 30px;
    }

    .mcb-slide__oferta-price-old {
        font-size: 18px;
    }

    .mcb-slide__btn--oferta {
        width: 100%;
    }

    /* --- Navigation: hide arrows, restyle dots --- */
    .mcb-slider__nav {
        display: none;
    }

    .mcb-slider__dots {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        display: flex;
        justify-content: center;
        padding: 16px 0 24px;
        background: var(--Rosa-claro, #F7E8ED);
    }

    .mcb-slider__dot {
        width: 8px;
        height: 8px;
        border: none;
        background: var(--Gris-plata, #C9C8C7);
        border-radius: 50%;
    }

    .mcb-slider__dot--active {
        background: var(--Borgoa, #9B004E);
        border-color: var(--Borgoa, #9B004E);
        width: 8px;
        border-radius: 50%;
    }

    .mcb-slider__dot:hover {
        background: var(--Borgoa, #9B004E);
        border-color: var(--Borgoa, #9B004E);
    }

    
    .mcb-slide__product-link .mcb-slide__product-img {
        position: absolute;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .mcb-slide--active {
        min-height: 520px;
    }

    .mcb-slide--type2 .mcb-slide__title {
        font-size: 1.5rem;
    }

    .mcb-slide--type3 .mcb-slide__product-img {
        max-height: 320px;
    }

    .mcb-slide__bodega-logo-wrap {
        margin-bottom: -50px;
        margin-top: -50px;
    }

    .mcb-slide__bodega-panel {
        padding-top: 160px;
    }

    .mcb-slide--type3 .mcb-slide__title {
        font-size: 24px;
    }

    .mcb-slide__bodega-logo {
        width: 100px;
        height: 100px;
    }

    .mcb-slide__oferta-bg {
        flex: 0 0 220px;
    }

    .mcb-slide__oferta-circle--big {
        width: 220px;
        height: 220px;
    }

    .mcb-slide__oferta-badge-big {
        width: 80px;
        height: 80px;
    }

    .mcb-slide__oferta-badge-big span {
        font-size: 24px;
    }

    .mcb-slide__oferta-bottle {
        width: 180px;
        height: 340px;
    }

    .mcb-slide--type4 .mcb-slide__title {
        font-size: 26px;
    }

    .mcb-slide__oferta-product-name {
        font-size: 20px;
    }

    .mcb-slide__oferta-price-current {
        font-size: 26px;
    }
}

/* ============================================
   FULL VIDEO CTA + FULLSCREEN POPUP

   The hero video is muted and decorative. When a slide has a "full video URL",
   the video becomes a button: hovering reveals the CTA, clicking opens a
   fullscreen popup with the real (audio) video. Markup lives in slider.tpl and
   the player is injected by mod_maincustombanner.js.
   ============================================ */

.mcb-slide__video-trigger {
    /* Reuses .mcb-slide__video-link geometry, so only the button reset is needed */
    padding: 0;
    border: 0;
    background: none;
    appearance: none;
    color: inherit;
    font: inherit;
    /* The badge rides along WITH the real cursor, it does not replace it */
    cursor: pointer;
}

/* The gradient overlay (z-index 1) and the text container (z-index 2) cover the
   whole slide, so they would swallow every click meant for the video. On a
   clickable slide they become click-through and only their real controls stay
   interactive; the trigger is lifted above the overlay to receive hover. */
.mcb-slide--video-clickable .mcb-slide__video-trigger {
    z-index: 2;
}

.mcb-slide--video-clickable .mcb-slide__overlay,
.mcb-slide--video-clickable .mcb-slide__container {
    pointer-events: none;
}

.mcb-slide--video-clickable .mcb-slide__container a,
.mcb-slide--video-clickable .mcb-slide__container button {
    pointer-events: auto;
}

/* Round translucent badge that trails the cursor on hover.
   The position comes from --mcb-cta-x / --mcb-cta-y, written by the JS on
   mousemove; CSS only owns the look and the enter/leave transition. */
.mcb-slide__video-cta {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    will-change: transform;
    /* Hangs below-right of the pointer instead of sitting under it. The circle
       is pushed along the diagonal by radius / sqrt(2) (65 / 1.414 ≈ 46px), so
       its top-left edge lands exactly on the cursor: they touch, and the arrow
       never covers the label. */
    transform:
        translate3d(var(--mcb-cta-x, 50%), var(--mcb-cta-y, 50%), 0)
        translate(-50%, -50%)
        translate(46px, 46px);
    transition: opacity 0.25s ease, scale 0.25s ease;
    scale: 0.7;
}

/* Visibility is CSS :hover, never a JS class. If the pointer is already resting
   on the video when the page loads, no mouse event ever fires — mouseenter only
   happens on crossing the edge — so a JS-driven badge would stay invisible until
   the user moved. :hover knows, with no event at all. The JS owns position only,
   and parks the badge at the centre of the video on bind for exactly this case.
   Only the fade/scale is animated; the follow itself must stay frame-exact. */
.mcb-slide__video-trigger:hover .mcb-slide__video-cta,
.mcb-slide__video-trigger:focus-visible .mcb-slide__video-cta {
    opacity: 1;
    scale: 1;
}

/* Controls for the background video, stacked top-right. The column owns the
   placement so adding a button never means recomputing anyone's offset. It
   sits above the trigger, so moving onto it fires mouseleave on the trigger
   and the badge gets out of the way on its own — no extra JS for that. */
.mcb-slide__video-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mcb-slide__video-toggle,
.mcb-slide__video-sound {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    /* Discreet at rest so they never compete with the hero copy; they only ask
       for attention once the pointer is actually on them. */
    opacity: 0.45;
    cursor: pointer;
    transition: background 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.mcb-slide__video-toggle:hover,
.mcb-slide__video-toggle:focus-visible,
.mcb-slide__video-sound:hover,
.mcb-slide__video-sound:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.6);
}

/* A paused video with a barely visible play button is a dead end, and a video
   that is audible needs its way back to silence in plain sight. Both states
   stop being discreet. */
.mcb-slide__video-toggle.is-paused,
.mcb-slide__video-sound:not(.is-muted) {
    opacity: 1;
}

/* One icon at a time: paused shows play, playing shows pause */
.mcb-slide__video-toggle-play,
.mcb-slide__video-toggle.is-paused .mcb-slide__video-toggle-pause {
    display: none;
}

/* Same contract for sound: muted shows the crossed speaker */
.mcb-slide__video-sound-off,
.mcb-slide__video-sound.is-muted .mcb-slide__video-sound-on {
    display: none;
}

.mcb-slide__video-sound.is-muted .mcb-slide__video-sound-off {
    display: block;
}

.mcb-slide__video-toggle.is-paused .mcb-slide__video-toggle-play {
    display: block;
}

/* Touch devices have no hover, so there is no pointer to follow and nothing to
   reveal: the badge is parked bottom-right, always visible, out of the way of
   the hero copy on the left and of the controls at the top. The JS never writes
   its position here — transform is reset so the vars cannot move it. */
@media (hover: none) {
    .mcb-slide__video-cta {
        opacity: 1;
        scale: 1;
        transform: none;
        top: auto;
        left: auto;
        right: 1.25rem;
        bottom: 1.25rem;
        width: 110px;
        height: 110px;
        font-size: 12px;
    }
}

.mcb-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mcb-video-modal[hidden] {
    display: none;
}

.mcb-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.mcb-video-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mcb-video-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

/* Biggest 16:9 box that still fits the viewport: width-bound on tall screens,
   height-bound on wide ones. No max-width cap — it should fill what it can. */
.mcb-video-modal__player {
    position: relative;
    z-index: 1;
    width: min(100vw, calc(100vh * 16 / 9));
    height: min(100vh, calc(100vw * 9 / 16));
    background: #000;
    overflow: hidden;
}

.mcb-video-modal__player iframe,
.mcb-video-modal__player video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* YouTube draws its title / channel / share overlay at the TOP of the iframe
   and its control bar at the BOTTOM — no URL parameter removes them any more
   (showinfo and modestbranding were both retired). So the iframe is made three
   times taller than the visible box and pulled up by one box: YouTube still
   fits the 16:9 picture by width, centred, so the picture lands exactly in the
   window while both chrome bands fall outside it and get clipped.
   Same trick Plyr uses. Nothing is cropped off the video itself. */
.mcb-video-modal__player--youtube iframe {
    position: absolute;
    top: -100%;
    left: 0;
    height: 300%;
    /* Kills YouTube's own hover overlay at the source: no pointer events reach
       the iframe, so it never decides to draw its big pause button or its
       title bar. Playback is driven from .mcb-video-modal__control instead. */
    pointer-events: none;
}

/* Play/pause overlay for the popup. Only shown while the pointer is actually
   moving over the video — see MCBVideoModal.wakeControl in the JS. */
.mcb-video-modal__control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
}

.mcb-video-modal__control[hidden] {
    display: none;
}

.mcb-video-modal__control.is-visible {
    opacity: 1;
}

.mcb-video-modal__control:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* One icon at a time, same contract as the hero toggle */
.mcb-video-modal__control-play,
.mcb-video-modal__control.is-paused .mcb-video-modal__control-pause {
    display: none;
}

.mcb-video-modal__control.is-paused .mcb-video-modal__control-play {
    display: block;
}

body.mcb-video-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .mcb-slide__video-controls {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .mcb-slide__video-toggle,
    .mcb-slide__video-sound {
        width: 38px;
        height: 38px;
        opacity: 0.7; /* no hover to reveal them on touch */
    }

    .mcb-video-modal__close {
        top: 0.75rem;
        right: 0.75rem;
        width: 38px;
        height: 38px;
    }

    .mcb-slide__video-cta {
        padding: 0.65rem 1.1rem;
        font-size: 13px;
    }
}

