/* ============================================
   CMS 126 - BLACK FRIDAY 2026 (HUB 21800)
   Miriam Quevedo - regalos por franja de pedido
   (comentarios sin acentos: el BO de advancedcms los recodifica mal al guardar)
   Escritorio >= 992px: panel + foto a media anchura (alternos)
   Movil < 992px: titulo, foto, banda, regalos, boton
   ============================================ */

/* === GENERAL === */
#advanced_cms_wrapper_126 {
    color: #000;
    padding: 0 !important;
    background: #fff;
    font-family: "FiraSans", "Fira Sans", sans-serif;
    overflow-x: hidden;
}

#advanced_cms_wrapper_126 > div {
    clear: both;
    display: flow-root;
}

#advanced_cms_wrapper_126 > div > div {
    padding: 0 !important;
}

#advanced_cms_wrapper_126 .rte {
    padding: 0;
    margin: 0;
}

#advanced_cms_wrapper_126 .rte p {
    margin: 0;
}

#advanced_cms_wrapper_126 picture,
#advanced_cms_wrapper_126 picture img {
    display: block;
    width: 100%;
    height: auto;
}

#advanced_cms_wrapper_126 .rte h2 {
    font-family: "TeXGyreAdventor", "AvantGarde Bk BT", "Century Gothic", sans-serif;
    font-weight: bold;
    color: #000;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* === B2 - INTRO === */
#advanced_cms_wrapper_126 .bf-intro {
    max-width: 790px;
    margin: 0 auto;
    padding: 92px 15px 39px;
    text-align: center;
}

#advanced_cms_wrapper_126 .bf-intro .bf-intro__title {
    font-size: 32px;
    line-height: 34px;
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
}

#advanced_cms_wrapper_126 .bf-intro .bf-intro__txt {
    font-size: 14px;
    line-height: 1.65;
    max-width: 744px;
    margin: 24px auto 0;
}

#advanced_cms_wrapper_126 .bf-intro__line {
    display: block;
    position: relative;
    width: 1px;
    height: 44px;
    margin: 23px auto 0;
    background: #000;
}

#advanced_cms_wrapper_126 .bf-intro__line:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: #000;
}

#advanced_cms_wrapper_126 .bf-intro .bf-intro__sel {
    font-size: 32px;
    line-height: 29px;
    margin: 48px auto 0;
    text-align: center;
    text-transform: lowercase;
}

/* === B3-B6 - FRANJAS === */
#advanced_cms_wrapper_126 .bf-tier {
    display: grid;
    position: relative;
    background: #fff;
}

#advanced_cms_wrapper_126 .bf-band {
    background: #000;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%);
}

#advanced_cms_wrapper_126 .bf-tier .bf-title {
    grid-area: title;
    position: relative;
    z-index: 1;
    font-size: 32px;
    line-height: 29px;
    color: #fff;
    text-align: left;
    text-transform: lowercase;
    white-space: nowrap;
}

#advanced_cms_wrapper_126 .bf-tier .bf-sub {
    grid-area: sub;
    position: relative;
    z-index: 1;
    font-family: "TeXGyreAdventor", "AvantGarde Bk BT", "Century Gothic", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #fff;
}

#advanced_cms_wrapper_126 .bf-tier .bf-value {
    grid-area: value;
    position: relative;
    z-index: 1;
    font-family: "FiraSans", "Fira Sans", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #fff;
    white-space: nowrap;
}

#advanced_cms_wrapper_126 .bf-tier .bf-cta {
    grid-area: cta;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 135px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    font-family: "FiraSans", "Fira Sans", sans-serif;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}

#advanced_cms_wrapper_126 .bf-tier .bf-cta:hover,
#advanced_cms_wrapper_126 .bf-tier .bf-cta:focus {
    background: #fff;
    color: #000;
}

#advanced_cms_wrapper_126 .bf-gifts {
    grid-area: gifts;
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: 29.7% 29.7%;
    justify-content: space-between;
    align-content: start;
    row-gap: 38px;
    padding: 39px 6.2% 34px 7.6%;
}

#advanced_cms_wrapper_126 .bf-gift {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

#advanced_cms_wrapper_126 .bf-gift__name {
    display: block;
    font-size: 14px;
    line-height: 23px;
    margin-bottom: 26px;
    color: #000;
}

#advanced_cms_wrapper_126 .bf-gift__name sup {
    position: static;
    font-size: 0.6em;
    vertical-align: super;
    margin-right: 2px;
}

#advanced_cms_wrapper_126 .bf-gift img {
    display: block;
    width: auto;
    max-width: 100%;
    height: calc(var(--h) * min(100vw, 1800px) / 1512);
    margin-top: auto;
    object-fit: contain;
}

#advanced_cms_wrapper_126 .bf-photo {
    grid-area: photo;
    position: relative;
    overflow: hidden;
    min-height: calc(50vw * 1.02);
}

#advanced_cms_wrapper_126 .bf-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Escritorio: panel izquierdo / derecho */
@media (min-width: 992px) {
    #advanced_cms_wrapper_126 .bf-tier {
        grid-template-rows: 28px 40px 59px auto;
    }

    #advanced_cms_wrapper_126 .bf-tier--left {
        grid-template-columns: 3.84% 1fr auto 5.03% 50%;
        grid-template-areas:
            ". . . . photo"
            ". title value . photo"
            ". sub cta . photo"
            "gifts gifts gifts gifts photo";
    }

    #advanced_cms_wrapper_126 .bf-tier--right {
        grid-template-columns: 50% 3.84% 1fr auto 5.03%;
        grid-template-areas:
            "photo . . . ."
            "photo . title value ."
            "photo . sub cta ."
            "photo gifts gifts gifts gifts";
    }

    #advanced_cms_wrapper_126 .bf-tier--left .bf-band {
        grid-area: 1 / 1 / 4 / 5;
    }

    #advanced_cms_wrapper_126 .bf-tier--right .bf-band {
        grid-area: 1 / 2 / 4 / 6;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-title,
    #advanced_cms_wrapper_126 .bf-tier .bf-value,
    #advanced_cms_wrapper_126 .bf-tier .bf-sub,
    #advanced_cms_wrapper_126 .bf-tier .bf-cta {
        align-self: start;
        justify-self: start;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-value {
        margin-top: -1px;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-cta {
        margin-top: -2px;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-sub {
        padding-right: 20px;
    }

    #advanced_cms_wrapper_126 .bf-gift__name {
        white-space: nowrap;
    }

    /* Franjas de 6 regalos: mas compactas (Figma 500/800) */
    #advanced_cms_wrapper_126 .bf-gifts--6 {
        padding-top: 9px;
        padding-bottom: 14px;
        row-gap: 22px;
    }

    #advanced_cms_wrapper_126 .bf-gifts--6 .bf-gift__name {
        margin-bottom: 8px;
    }
}

/* Escritorio pequeno: textos de la banda algo menores */
@media (min-width: 992px) and (max-width: 1199px) {
    #advanced_cms_wrapper_126 .bf-tier .bf-title {
        font-size: 28px;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-sub,
    #advanced_cms_wrapper_126 .bf-tier .bf-value {
        font-size: 17px;
    }

    #advanced_cms_wrapper_126 .bf-gift__name {
        font-size: 13px;
        margin-bottom: 18px;
    }
}

/* Movil y tablet */
@media (max-width: 991px) {
    #advanced_cms_wrapper_126 .bf-intro {
        padding: 26px 16px 26px;
    }

    #advanced_cms_wrapper_126 .bf-intro .bf-intro__title {
        font-size: 25px;
        line-height: 29px;
        max-width: 400px;
    }

    #advanced_cms_wrapper_126 .bf-intro .bf-intro__txt {
        font-size: 12px;
        line-height: 1.5;
        max-width: 400px;
        margin-top: 12px;
    }

    #advanced_cms_wrapper_126 .bf-intro__line {
        height: 32px;
        margin-top: 16px;
    }

    #advanced_cms_wrapper_126 .bf-intro .bf-intro__sel {
        font-size: 25px;
        line-height: 29px;
        max-width: 330px;
        margin-top: 30px;
    }

    #advanced_cms_wrapper_126 .bf-tier {
        grid-template-columns: 15px 1fr auto 15px;
        grid-template-areas:
            ". title title ."
            "photo photo photo photo"
            "sub sub value value"
            "gifts gifts gifts gifts"
            ". cta cta .";
        padding-bottom: 45px;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-band {
        grid-area: 3 / 1 / 4 / 5;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-title {
        color: #000;
        font-size: 25px;
        line-height: 29px;
        margin: 0 0 12px;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-sub,
    #advanced_cms_wrapper_126 .bf-tier .bf-value {
        font-family: "TeXGyreAdventor", "AvantGarde Bk BT", "Century Gothic", sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 1.3;
        letter-spacing: 0;
        padding: 14px 0 13px;
        align-self: start;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-sub {
        padding-left: 15px;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-value {
        padding-right: 15px;
        padding-left: 10px;
        text-align: right;
        text-transform: lowercase;
    }

    #advanced_cms_wrapper_126 .bf-photo {
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    #advanced_cms_wrapper_126 .bf-gifts {
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
        row-gap: 38px;
        padding: 13px 0 0;
    }

    #advanced_cms_wrapper_126 .bf-gifts > li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    #advanced_cms_wrapper_126 .bf-gift img {
        order: 1;
        height: calc(var(--hm) * min(100vw, 520px) / 428);
    }

    #advanced_cms_wrapper_126 .bf-gift__name {
        order: 2;
        font-size: 12px;
        line-height: 1.35;
        margin: 14px 0 0;
        padding: 0 6px;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-cta {
        justify-self: center;
        width: 146px;
        height: 29px;
        margin-top: 27px;
        border-color: #000;
        color: #000;
    }

    #advanced_cms_wrapper_126 .bf-tier .bf-cta:hover,
    #advanced_cms_wrapper_126 .bf-tier .bf-cta:focus {
        background: #000;
        color: #fff;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #advanced_cms_wrapper_126 .bf-photo {
        aspect-ratio: 4 / 3;
    }
}