/* =========================================================
   SILK · BLACK FRIDAY
   Barra de aviso, sección de ofertas, rueda "Lo más vendido"
   y "Compra por tipo de piel".
   Usa las variables del tema (--color-*, --font-*).
========================================================= */

:root {
    --bf-ink: #171515;
    --bf-ink-2: #221f1f;
    --bf-cream: #FBF6F1;
    --bf-rose: #E9C9C6;
    --bf-rose-soft: #F7E7E6;
    --bf-gold: #C9A961;
    --bf-gold-2: #E3CB8F;
    --bf-line: rgba(201, 169, 97, 0.45);
    --bf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------
   1. BARRA DE AVISO (dentro del header fijo)
--------------------------------------------------------- */
.bf-bar {
    position: relative;
    background: var(--bf-ink);
    color: var(--bf-cream);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}
.bf-bar[hidden] { display: none; }

.bf-bar__tag {
    flex: none;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    background: linear-gradient(100deg, #2b2626, var(--bf-ink));
    border-right: 1px solid var(--bf-line);
    font-family: var(--font-main);
    font-size: 1.05rem;
    letter-spacing: 0.22em;
    color: var(--bf-gold-2);
    white-space: nowrap;
    z-index: 2;
}
.bf-bar__pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #E8A9A4;
    box-shadow: 0 0 0 0 rgba(232, 169, 164, 0.7);
    animation: bfPulse 1.8s ease-out infinite;
}
@keyframes bfPulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 169, 164, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(232, 169, 164, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 169, 164, 0); }
}

.bf-bar__marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bf-bar__track {
    display: flex;
    width: max-content;
    animation: bfMarquee 38s linear infinite;
}
.bf-bar:hover .bf-bar__track { animation-play-state: paused; }
.bf-bar__track span {
    padding: 0 1.6rem;
    white-space: nowrap;
}
.bf-bar__track span::after {
    content: "✦";
    color: var(--bf-gold);
    margin-left: 3.2rem;
    font-size: 0.7rem;
    vertical-align: 2px;
}
.bf-bar__track b { color: var(--bf-gold-2); font-weight: 700; }
@keyframes bfMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.bf-bar__count {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 100%;
    padding: 0 1.25rem;
    border-left: 1px solid var(--bf-line);
    color: var(--bf-cream);
    white-space: nowrap;
    z-index: 2;
    background: var(--bf-ink);
}
.bf-bar__count small {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.7;
}
.bf-timer {
    display: inline-flex;
    gap: 0.3rem;
    font-variant-numeric: tabular-nums;
}
.bf-timer span {
    min-width: 2.1em;
    text-align: center;
    padding: 0.05rem 0.3rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    color: var(--bf-gold-2);
}
.bf-timer span i {
    font-style: normal;
    font-weight: 400;
    font-size: 0.7em;
    margin-left: 1px;
    color: var(--bf-cream);
    opacity: 0.65;
}

/* La barra va pegada arriba dentro del header fijo; el hero baja 40px */
body.bf-on .header { padding-top: 0; }
body.bf-on .hero { padding-top: 140px; }

@media (max-width: 640px) {
    .bf-bar { height: 36px; font-size: 0.82rem; margin-bottom: calc(var(--spacing-sm) * 0.8); }
    .bf-bar__tag { padding: 0 0.75rem; font-size: 0.85rem; letter-spacing: 0.14em; }
    .bf-bar__tag .bf-bar__label-long { display: none; }
    .bf-bar__count { padding: 0 0.6rem; }
    .bf-bar__count small { display: none; }
    .bf-timer { gap: 0.2rem; }
    .bf-timer span { padding: 0 0.2rem; min-width: 1.9em; }
    .bf-bar__track span { padding: 0 1rem; }
    .bf-bar__track span::after { margin-left: 2rem; }
    body.bf-on .hero { padding-top: 136px; }
}

/* ---------------------------------------------------------
   2. SECCIÓN BLACK FRIDAY (ofertas en cards)
--------------------------------------------------------- */
.bf-promo {
    position: relative;
    background: var(--bf-ink);
    color: var(--bf-cream);
    padding: 5.5rem 0 5rem;
    overflow: hidden;
    isolation: isolate;
}
.bf-promo::before,
.bf-promo::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
}
.bf-promo::before {
    width: 520px; height: 520px;
    left: -160px; top: -200px;
    background: rgba(233, 201, 198, 0.22);
}
.bf-promo::after {
    width: 460px; height: 460px;
    right: -140px; bottom: -220px;
    background: rgba(201, 169, 97, 0.2);
}

.bf-promo__head {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 2rem 3rem;
    margin-bottom: 3.5rem;
}
.bf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--bf-rose);
    margin-bottom: 1rem;
}
.bf-eyebrow::before {
    content: "";
    width: 34px; height: 1px;
    background: currentColor;
}
.bf-promo__title {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: 0.92;
    letter-spacing: -0.01em;
    color: var(--bf-cream);
    margin: 0;
}
.bf-promo__title em {
    font-style: normal;
    display: block;
    background: linear-gradient(100deg, var(--bf-gold) 10%, #F3E2B4 45%, var(--bf-gold) 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: bfShine 6s ease-in-out infinite;
}
@keyframes bfShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.bf-promo__side p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(251, 246, 241, 0.78);
    margin-bottom: 1.4rem;
    max-width: 440px;
}
.bf-promo__side p strong { color: var(--bf-cream); }

.bf-countdown {
    display: flex;
    gap: 0.7rem;
}
.bf-countdown__label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--bf-gold-2);
    margin-bottom: 0.6rem;
}
.bf-countdown div {
    min-width: 74px;
    padding: 0.7rem 0.4rem 0.55rem;
    border: 1px solid var(--bf-line);
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}
.bf-countdown b {
    display: block;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 2.3rem;
    line-height: 1;
    color: var(--bf-cream);
    font-variant-numeric: tabular-nums;
}
.bf-countdown small {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(251, 246, 241, 0.55);
}

.bf-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.bf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 1.6rem 1.5rem 1.5rem;
    border-radius: 22px;
    overflow: hidden;
    color: var(--bf-ink);
    background: var(--bf-cream);
    transition: transform 0.5s var(--bf-ease), box-shadow 0.5s var(--bf-ease);
}
.bf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.6);
}
.bf-card--rose { background: var(--bf-rose); }
.bf-card--gold { background: linear-gradient(150deg, #E7D3A0, var(--bf-gold)); }
.bf-card--dark {
    background: var(--bf-ink-2);
    color: var(--bf-cream);
    border: 1px solid var(--bf-line);
}
.bf-card__kicker {
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.7;
}
.bf-card__big {
    font-family: var(--font-main);
    font-size: clamp(3.4rem, 5vw, 4.6rem);
    line-height: 1;
    margin: 0.8rem 0 0.4rem;
    letter-spacing: -0.02em;
}
.bf-card--dark .bf-card__big { color: var(--bf-gold-2); }
.bf-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.4rem;
}
.bf-card p {
    font-size: 1rem;
    line-height: 1.45;
    opacity: 0.78;
    margin: 0;
}
.bf-card__cta {
    margin-top: auto;
    padding-top: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}
.bf-card__cta::after {
    content: "→";
    transition: transform 0.35s var(--bf-ease);
}
.bf-card:hover .bf-card__cta::after { transform: translateX(5px); }
.bf-card__deco {
    position: absolute;
    right: -26px; top: -26px;
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.16;
}
.bf-card__deco::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px solid currentColor;
}

/* Card sin info todavía */
.bf-card--soon { cursor: default; }
.bf-card--soon:hover { transform: none; box-shadow: none; }
.bf-card__spark {
    width: 0.8em; height: 0.8em;
    fill: currentColor;
    opacity: 0.85;
    animation: bfTwinkle 3.2s ease-in-out infinite;
}
.bf-card--dark .bf-card__spark { color: var(--bf-gold-2); }
@keyframes bfTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(0.82) rotate(45deg); opacity: 0.5; }
}

@media (max-width: 1100px) {
    .bf-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .bf-promo { padding: 4rem 0 3.5rem; }
    .bf-promo__head { grid-template-columns: 1fr; margin-bottom: 2.25rem; }
    .bf-countdown div { min-width: 0; flex: 1; }
    .bf-countdown b { font-size: 1.9rem; }
    /* Cards: una por una, deslizable */
    .bf-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.9rem;
        margin: 0 -1rem;
        padding: 0 1rem 0.5rem;
        scrollbar-width: none;
    }
    .bf-cards::-webkit-scrollbar { display: none; }
    .bf-card {
        flex: 0 0 84%;
        scroll-snap-align: center;
        min-height: 270px;
    }
}

/* ---------------------------------------------------------
   3. LO MÁS VENDIDO · rueda
--------------------------------------------------------- */
.bf-wheel-section {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background: linear-gradient(180deg, var(--bf-cream) 0%, #fff 70%);
    overflow: hidden;
}
.bf-section-head {
    text-align: center;
    margin-bottom: 1.5rem;
}
.bf-section-head .bf-eyebrow {
    color: var(--color-accent);
    justify-content: center;
}
.bf-section-head .bf-eyebrow::after {
    content: "";
    width: 34px; height: 1px;
    background: currentColor;
}
.bf-section-head .section-title { margin-bottom: 0.4rem; }
.bf-section-head p {
    color: var(--color-text);
    font-size: 1.1rem;
    margin: 0;
}

.bf-wheel {
    --item-w: 380px;
    --radius: 1300px;
    --step: 22deg;
    position: relative;
    height: 500px;
    margin: 0 auto;
    max-width: 1400px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
/* Disco rosa detrás del producto central */
.bf-wheel__halo {
    position: absolute;
    left: 50%; top: 30px;
    width: calc(var(--item-w) + 40px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #FDF0EF 0%, var(--bf-rose-soft) 55%, #F1D9D7 100%);
    box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.25);
}
.bf-wheel__halo::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed rgba(201, 169, 97, 0.45);
    animation: bfSpin 60s linear infinite;
}
@keyframes bfSpin { to { transform: rotate(360deg); } }

/* Arco de puntitos decorativos (como guía de la rueda) */
.bf-wheel__arc {
    position: absolute;
    left: 50%; top: 210px;
    width: calc(var(--radius) * 2);
    height: calc(var(--radius) * 2);
    transform: translateX(-50%);
    border-radius: 50%;
    border-top: 2px dotted rgba(233, 201, 198, 0.9);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 40%, #000 46%, transparent 47%, transparent 53%, #000 54%, #000 60%, transparent 70%);
            mask-image: linear-gradient(90deg, transparent 30%, #000 40%, #000 46%, transparent 47%, transparent 53%, #000 54%, #000 60%, transparent 70%);
}

.bf-wheel__item {
    position: absolute;
    left: 50%; top: 40px;
    width: var(--item-w);
    margin-left: calc(var(--item-w) / -2);
    transform-origin: 50% var(--radius);
    transform: rotate(calc(var(--d, 0) * var(--step)));
    transition: transform 0.75s var(--bf-ease), opacity 0.5s ease;
    cursor: pointer;
    mix-blend-mode: multiply; /* funde el fondo blanco de la foto con el disco rosa */
    -webkit-tap-highlight-color: transparent;
}
.bf-wheel__item.is-far { opacity: 0; pointer-events: none; }
.bf-wheel__item.no-anim { transition: none; }

.bf-wheel__img {
    display: block;
    aspect-ratio: 1;
    transform: scale(0.74);
    transition: transform 0.75s var(--bf-ease), filter 0.5s ease;
    filter: saturate(0.85) brightness(1.04);
}
.bf-wheel__item.is-active .bf-wheel__img {
    transform: scale(1);
    filter: brightness(1.04);
}
.bf-wheel__img img {
    width: 100%; height: 100%;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}
.bf-wheel__badge {
    position: absolute;
    top: 14px; right: 18px;
    width: 64px; height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bf-ink);
    color: var(--bf-gold-2);
    font-family: var(--font-main);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
    transition: opacity 0.4s ease 0.25s, transform 0.6s var(--bf-ease) 0.25s;
}
.bf-wheel__item.is-active .bf-wheel__badge {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
}

.bf-wheel__info {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 112px;
}
.bf-wheel__info.is-swapping > * { opacity: 0; transform: translateY(8px); }
.bf-wheel__info > * { transition: opacity 0.35s ease, transform 0.45s var(--bf-ease); }
.bf-wheel__brand {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.35rem;
}
.bf-wheel__name {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--color-dark);
    margin: 0 0 0.35rem;
}
.bf-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 1.15rem;
    color: #9A4A4A;
    font-weight: 700;
}
.bf-price del {
    color: var(--color-text3);
    font-weight: 400;
    font-size: 0.92em;
}
.bf-price ins { text-decoration: none; }

.bf-wheel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin-top: 1.1rem;
}
.bf-round-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bf-rose);
    color: var(--bf-ink);
    transition: background 0.3s ease, transform 0.3s var(--bf-ease);
}
.bf-round-btn:hover { background: #E2B8B4; }
.bf-round-btn:active { transform: scale(0.92); }
.bf-round-btn svg { width: 20px; height: 20px; }
.bf-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.8rem;
    border-radius: 50px;
    background: var(--bf-ink);
    color: var(--bf-cream);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: background 0.3s ease, transform 0.3s var(--bf-ease);
}
.bf-pill:hover { background: #3a3434; transform: translateY(-2px); }
.bf-pill--rose { background: var(--bf-rose); color: var(--bf-ink); }
.bf-pill--rose:hover { background: #E2B8B4; }
.bf-pill--line {
    background: transparent;
    color: var(--color-dark);
    border: 1.5px solid var(--color-dark);
}
.bf-pill--line:hover { background: var(--color-dark); color: var(--bf-cream); }

.bf-wheel__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 1.4rem;
}
.bf-wheel__dots button {
    width: 7px; height: 7px;
    border-radius: 10px;
    background: var(--bf-rose);
    transition: width 0.4s var(--bf-ease), background 0.3s ease;
    padding: 0;
}
.bf-wheel__dots button.is-active { width: 26px; background: var(--color-dark); }

@media (max-width: 968px) {
    .bf-wheel { --item-w: 280px; --radius: 1000px; --step: 24deg; height: 400px; }
    .bf-wheel__arc { top: 180px; }
}
@media (max-width: 640px) {
    .bf-wheel-section { padding: 4rem 0 3.5rem; }
    .bf-wheel { --item-w: 230px; --radius: 760px; --step: 17deg; height: 320px; }
    .bf-wheel__halo { top: 26px; }
    .bf-wheel__item { top: 30px; }
    .bf-wheel__arc { top: 150px; }
    .bf-wheel__badge { width: 52px; height: 52px; font-size: 0.95rem; top: 6px; right: 4px; }
    .bf-wheel__name { font-size: 1.15rem; }
    .bf-wheel__info { min-height: 118px; }
}

/* ---------------------------------------------------------
   4. COMPRA POR TIPO DE PIEL
--------------------------------------------------------- */
.bf-piel {
    padding: 5rem 0 5.5rem;
    background: #fff;
}
.bf-piel__chips {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin: 2.5rem auto 3rem;
    padding: 0.5rem 1rem 0.75rem;
}
.bf-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    background: none;
    padding: 0;
    cursor: pointer;
    flex: none;
    -webkit-tap-highlight-color: transparent;
}
.bf-chip__ring {
    position: relative;
    width: 104px; height: 104px;
    border-radius: 50%;
    padding: 5px;
    border: 1.5px solid rgba(201, 169, 97, 0.55);
    transition: border-color 0.35s ease, transform 0.45s var(--bf-ease), box-shadow 0.35s ease;
}
.bf-chip__face {
    width: 100%; height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--chip-bg, var(--bf-rose-soft));
    color: var(--color-dark);
}
.bf-chip__face img { width: 100%; height: 100%; object-fit: cover; }
.bf-chip__face svg {
    width: 44%; height: 44%;
    stroke: currentColor;
    stroke-width: 1.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bf-chip__label {
    font-size: 1.02rem;
    color: var(--color-text);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}
.bf-chip:hover .bf-chip__ring { transform: translateY(-4px); border-color: var(--bf-gold); }
.bf-chip.is-active .bf-chip__ring {
    border: 2px solid var(--color-dark);
    box-shadow: 0 10px 24px -12px rgba(44, 44, 44, 0.55);
}
.bf-chip.is-active .bf-chip__label { color: var(--color-dark); font-weight: 700; }
.bf-chip:focus-visible { outline: none; }
.bf-chip:focus-visible .bf-chip__ring { outline: 2px solid var(--bf-gold); outline-offset: 4px; }

.bf-piel__panel { display: none; }
.bf-piel__panel.is-active { display: block; animation: bfFadeUp 0.55s var(--bf-ease); }
@keyframes bfFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.bf-row { position: relative; }
.bf-row__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.25rem 0.25rem 0.75rem;
}
.bf-row__track::-webkit-scrollbar { display: none; }
.bf-row__btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 3;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.4);
}
.bf-row__btn--prev { left: -14px; }
.bf-row__btn--next { right: -14px; }
.bf-row__btn[disabled] { opacity: 0; pointer-events: none; }

.bf-prod {
    flex: 0 0 calc((100% - 4.5rem) / 4);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    color: inherit;
}
.bf-prod__img {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 22px;
    background: var(--bf-rose-soft);
    overflow: hidden;
    margin-bottom: 1rem;
}
.bf-prod__img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 9%;
    mix-blend-mode: multiply;
    filter: brightness(1.04); /* blanquea el fondo gris claro de las fotos */
    transition: transform 0.7s var(--bf-ease);
}
.bf-prod:hover .bf-prod__img img { transform: scale(1.06); }
.bf-prod__tag {
    position: absolute;
    left: 14px; top: 14px;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    background: var(--bf-ink);
    color: var(--bf-gold-2);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.bf-prod__brand {
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}
.bf-prod__name {
    font-family: var(--font-secondary);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.bf-prod .bf-price { font-size: 1.05rem; margin-bottom: 0.9rem; }
.bf-prod .bf-pill { min-height: 44px; font-size: 0.95rem; margin-top: auto; }

.bf-row__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.bf-row__count {
    display: none;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
    letter-spacing: 0.1em;
}
.bf-row__more {
    color: var(--color-dark);
    font-weight: 700;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.bf-piel__empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text);
}

@media (max-width: 1100px) {
    .bf-prod { flex-basis: calc((100% - 3rem) / 3); }
}
@media (max-width: 968px) {
    .bf-piel__chips {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 1.1rem;
        margin: 2rem -1rem 2.25rem;
        padding: 0.5rem 1.25rem 0.75rem;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .bf-piel__chips::-webkit-scrollbar { display: none; }
    .bf-chip { scroll-snap-align: center; }
}
@media (max-width: 640px) {
    .bf-piel { padding: 4rem 0; }
    .bf-chip__ring { width: 82px; height: 82px; padding: 4px; }
    .bf-chip__label { font-size: 0.95rem; }
    /* Productos: UNO POR UNO en celular */
    .bf-row__track { gap: 0; padding: 0 0 0.5rem; }
    .bf-prod {
        flex: 0 0 100%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        padding: 0 2.25rem;
        text-align: center;
        align-items: center;
    }
    .bf-prod__img { width: 100%; max-width: 300px; }
    .bf-prod__name { min-height: 0; }
    .bf-prod .bf-pill { width: 100%; max-width: 300px; }
    .bf-row__btn { top: 32%; width: 44px; height: 44px; }
    .bf-row__btn--prev { left: -4px; }
    .bf-row__btn--next { right: -4px; }
    .bf-row__btn[disabled] { opacity: 0.35; pointer-events: none; }
    .bf-row__count { display: inline; }
    .bf-row__foot { flex-direction: column; gap: 0.6rem; }
}

/* ---------------------------------------------------------
   5. AVISO "AÑADIDO AL CARRITO"
--------------------------------------------------------- */
.bf-toast {
    position: fixed;
    left: 50%; bottom: 24px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.8rem 0.8rem 1.3rem;
    border-radius: 50px;
    background: var(--bf-ink);
    color: var(--bf-cream);
    font-weight: 600;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform 0.5s var(--bf-ease), opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.bf-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bf-toast a {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    background: var(--bf-rose);
    color: var(--bf-ink);
    font-size: 0.9rem;
}
.bf-toast.is-error { background: #8a3b3b; }
[data-bf-add].is-loading { opacity: 0.6; pointer-events: none; }

/* ---------------------------------------------------------
   6. TIENDA · card Black Friday en los filtros
--------------------------------------------------------- */
.bf-shopcard {
    position: relative;
    overflow: hidden;
    background: var(--bf-ink);
    color: var(--bf-cream);
    isolation: isolate;
}
.bf-shopcard::before {
    content: "";
    position: absolute;
    width: 220px; height: 220px;
    right: -90px; top: -110px;
    border-radius: 50%;
    background: rgba(233, 201, 198, 0.22);
    filter: blur(40px);
    z-index: -1;
}
.bf-shopcard--sidebar {
    margin: 1rem 1rem 0.25rem;
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--bf-line);
}
.bf-shopcard--mobile { display: none; }
/* que la fila de promos no ensanche la columna de la tienda */
.tienda-content { min-width: 0; }
.bf-shopcard__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.bf-shopcard__title {
    font-family: var(--font-main);
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--bf-cream);
}
.bf-shopcard__title em {
    font-style: normal;
    color: var(--bf-gold-2);
}
.bf-shopcard__sub {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(251, 246, 241, 0.6);
}
.bf-shopcard__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.bf-promo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0 0.95rem;
    border-radius: 50px;
    border: 1px solid var(--bf-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--bf-cream);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--bf-ease);
}
.bf-promo-chip:hover { border-color: var(--bf-gold); transform: translateY(-1px); }
.bf-promo-chip.is-active {
    background: var(--bf-rose);
    border-color: var(--bf-rose);
    color: var(--bf-ink);
}
.bf-promo-chip__n:empty { display: none; }
.bf-promo-chip__n {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
}
.bf-promo-chip.is-active .bf-promo-chip__n { background: rgba(23, 21, 21, 0.12); }
.bf-promo-chip:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 2px; }

@media (max-width: 768px) {
    .bf-shopcard--mobile {
        display: block;
        margin: 0 0 1rem;
        padding: 1rem 1rem 1.05rem;
        border-radius: 16px;
    }
    .bf-shopcard--mobile .bf-shopcard__title { font-size: 1.5rem; }
    .bf-shopcard--mobile .bf-shopcard__sub { margin-bottom: 0.7rem; }
    .bf-shopcard--mobile .bf-shopcard__chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    .bf-shopcard--mobile .bf-shopcard__chips::-webkit-scrollbar { display: none; }
    .bf-shopcard--mobile .bf-promo-chip { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bf-bar__track, .bf-promo__title em, .bf-card__spark, .bf-wheel__halo::after, .bf-bar__pulse { animation: none; }
    .bf-wheel__item, .bf-wheel__img { transition-duration: 0.01s; }
}

/* ---------------------------------------------------------
   7. CARDS POR PORCENTAJE + PANTALLA DE OFERTAS
--------------------------------------------------------- */
.bf-cards--n3, .bf-cards--n5, .bf-cards--n6 { grid-template-columns: repeat(3, 1fr); }
.bf-cards--n2 { grid-template-columns: repeat(2, 1fr); }
.bf-cards--n1 { grid-template-columns: minmax(0, 420px); }
a.bf-card { cursor: pointer; }
a.bf-card .bf-card__big { font-size: clamp(3.8rem, 6vw, 5.4rem); }

html.bf-sheet-open, html.bf-sheet-open body { overflow: hidden; }

.bf-sheet {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.bf-sheet[hidden] { display: none; }
.bf-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 21, 21, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.32s ease;
}
.bf-sheet__panel {
    position: relative;
    width: min(1180px, 100%);
    height: min(92vh, 980px);
    height: min(92dvh, 980px);
    display: flex;
    flex-direction: column;
    background: var(--bf-cream);
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.5);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.42s var(--bf-ease), opacity 0.32s ease;
}
.bf-sheet.is-open .bf-sheet__backdrop { opacity: 1; }
.bf-sheet.is-open .bf-sheet__panel { transform: none; opacity: 1; }

.bf-sheet__head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    flex: none;
    padding: 1.4rem 2.25rem 1.3rem;
    background: var(--bf-ink);
    color: var(--bf-cream);
    border-bottom: 1px solid var(--bf-line);
}
.bf-sheet__head::before {
    content: "";
    position: absolute;
    width: 320px; height: 320px;
    right: -120px; top: -170px;
    border-radius: 50%;
    background: rgba(233, 201, 198, 0.22);
    filter: blur(50px);
    z-index: -1;
}
.bf-sheet__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.bf-sheet__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(251, 246, 241, 0.7);
}
.bf-sheet__close {
    flex: none;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--bf-line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--bf-cream);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s var(--bf-ease);
}
.bf-sheet__close svg { width: 20px; height: 20px; }
.bf-sheet__close:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }
.bf-sheet__close:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 3px; }
.bf-sheet__title {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1;
    margin: 0.7rem 0 1rem;
    color: var(--bf-cream);
}
.bf-sheet__title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--bf-gold) 10%, #F3E2B4 45%, var(--bf-gold) 80%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.bf-sheet__tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
}
.bf-sheet__tabs::-webkit-scrollbar { display: none; }
.bf-sheet__tabs .bf-promo-chip { flex: none; cursor: pointer; }

.bf-sheet__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 2.25rem 3rem;
}
.bf-sheet__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    animation: bfFadeUp 0.45s var(--bf-ease);
}
.bf-sheet__grid[hidden] { display: none; }
.bf-sheet__grid .bf-prod { flex: none; width: auto; padding: 0; }
.bf-sheet__grid .bf-prod__img { background: #fff; }

@media (max-width: 1100px) {
    .bf-cards--n3, .bf-cards--n5, .bf-cards--n6 { grid-template-columns: repeat(2, 1fr); }
    .bf-sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .bf-cards--n1 .bf-card { flex-basis: 100%; }
    .bf-sheet__panel { height: 100%; border-radius: 0; }
    .bf-sheet__head { padding: 1rem 1.1rem 1rem; }
    .bf-sheet__title { margin: 0.45rem 0 0.8rem; }
    .bf-sheet__tabs { margin: 0 -1.1rem; padding: 2px 1.1rem; }
    .bf-sheet__body { padding: 1.25rem 1.1rem 2.5rem; }
    .bf-sheet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0.9rem; }
}
/* el celular deja las cards una por una en las filas; dentro de la pantalla, 2 por fila */
@media (max-width: 640px) {
    .bf-sheet__grid .bf-prod { text-align: left; align-items: stretch; }
    .bf-sheet__grid .bf-prod__img { max-width: none; border-radius: 16px; margin-bottom: 0.7rem; }
    .bf-sheet__grid .bf-prod__tag { left: 8px; top: 8px; font-size: 0.72rem; padding: 0.2rem 0.55rem; }
    .bf-sheet__grid .bf-prod__brand { font-size: 0.66rem; letter-spacing: 0.16em; }
    .bf-sheet__grid .bf-prod__name { font-size: 0.98rem; }
    .bf-sheet__grid .bf-price { font-size: 0.95rem; }
    .bf-sheet__grid .bf-pill { max-width: none; min-height: 40px; font-size: 0.85rem; padding: 0 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bf-sheet__panel, .bf-sheet__backdrop { transition: none; }
    .bf-sheet__grid { animation: none; }
}
a.bf-card p { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.6; }

/* ---------------------------------------------------------
   8. CARDS DE DESCUENTO · estilo papelería con magnolias
--------------------------------------------------------- */
.bf-card--flor {
    --tono-bg: #F3E3E0;
    --tono-ink: #8B5560;
    --tono-flor: #B4848B;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 330px;
    padding: 2.4rem 1.75rem 2.1rem;
    background: var(--tono-bg);
    color: var(--tono-ink);
    border: 0;
    isolation: isolate;
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
}
.bf-tono--cream { --tono-bg: #FAF3EE; --tono-ink: #7F5A5C; --tono-flor: #C39E98; }
.bf-tono--rose  { --tono-bg: #EBD0CC; --tono-ink: #7A4450; --tono-flor: #A66F78; }
.bf-tono--sand  { --tono-bg: #F2E7DA; --tono-ink: #85614A; --tono-flor: #B9977D; }

/* marco fino interior, como una tarjeta impresa */
.bf-card--flor::after {
    content: "";
    position: absolute;
    inset: 11px;
    border: 1px solid currentColor;
    border-radius: 15px;
    opacity: 0.16;
    pointer-events: none;
}
.bf-card--flor:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -24px rgba(0, 0, 0, 0.8); }

/* flores de línea en las esquinas (se tiñen con el color del tono) */
.bf-flor {
    position: absolute;
    z-index: -1;
    width: 56%;
    aspect-ratio: 1.15;
    background: var(--tono-flor);
    -webkit-mask: var(--flor) no-repeat;
            mask: var(--flor) no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
    opacity: 0.85;
    pointer-events: none;
    transition: transform 0.9s var(--bf-ease);
}
.bf-flor--tl { --flor: url(../img/bf/flor-tl.png); top: -4px;  left: -6px;  -webkit-mask-position: top left;     mask-position: top left; }
.bf-flor--tr { --flor: url(../img/bf/flor-tr.png); top: -4px;  right: -6px; -webkit-mask-position: top right;    mask-position: top right; }
.bf-flor--bl { --flor: url(../img/bf/flor-bl.png); bottom: -6px; left: -6px;  -webkit-mask-position: bottom left;  mask-position: bottom left; }
.bf-flor--br { --flor: url(../img/bf/flor-br.png); bottom: -6px; right: -6px; -webkit-mask-position: bottom right; mask-position: bottom right; }
.bf-card--flor:hover .bf-flor--tl { transform: rotate(-3deg) scale(1.03); }
.bf-card--flor:hover .bf-flor--br { transform: rotate(3deg) scale(1.03); }
.bf-card--flor:hover .bf-flor--tr { transform: rotate(3deg) scale(1.03); }
.bf-card--flor:hover .bf-flor--bl { transform: rotate(-3deg) scale(1.03); }

.bf-card--flor .bf-card__kicker {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    opacity: 0.75;
}
.bf-card--flor .bf-card__big,
a.bf-card--flor .bf-card__big {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-main);
    font-size: clamp(4rem, 6.2vw, 5.6rem);
    line-height: 1;
    margin: 0.9rem 0 0.35rem;
    letter-spacing: 0.02em;
    color: var(--tono-ink);
}
.bf-card__menos { font-size: 0.55em; margin-right: 0.08em; transform: translateY(-0.28em); }
.bf-card__pc { font-size: 0.62em; margin-left: 0.04em; }
.bf-card--flor h3 {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 0.55rem;
}
.bf-card--flor p,
a.bf-card--flor p {
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    line-height: 1.8;
    opacity: 0.82;
    max-width: 26ch;
}
.bf-card--flor .bf-card__cta {
    margin-top: 1.5rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid currentColor;
    border-radius: 50px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.35s ease, color 0.35s ease;
}
.bf-card--flor:hover .bf-card__cta { background: var(--tono-ink); color: var(--tono-bg); }

@media (max-width: 768px) {
    .bf-card--flor { min-height: 320px; }
    .bf-flor { width: 62%; }
}
@media (prefers-reduced-motion: reduce) {
    .bf-flor { transition: none; }
}
/* ajustes: flores más en las esquinas, que no tapen el texto */
.bf-flor { width: 50%; opacity: 0.9; }
.bf-flor--tl { top: -12px; left: -14px; }
.bf-flor--tr { top: -12px; right: -14px; }
.bf-flor--bl { bottom: -14px; left: -14px; }
.bf-flor--br { bottom: -14px; right: -14px; }
.bf-card__menos { font-size: 0.72em; transform: translateY(-0.18em); }
.bf-card--flor p, a.bf-card--flor p { max-width: 34ch; }
@media (max-width: 768px) { .bf-flor { width: 56%; } }
.bf-flor { opacity: 1; }
/* 5 cards: la segunda fila centrada */
@media (min-width: 1101px) {
    .bf-cards--n5 { grid-template-columns: repeat(6, 1fr); }
    .bf-cards--n5 > .bf-card { grid-column: span 2; }
    .bf-cards--n5 > .bf-card:nth-child(4) { grid-column: 2 / span 2; }
}
/* 7 cards (-40% … -10%): 4 arriba y 3 centradas abajo */
@media (min-width: 1101px) {
    .bf-cards--n7 { grid-template-columns: repeat(8, 1fr); }
    .bf-cards--n7 > .bf-card { grid-column: span 2; }
    .bf-cards--n7 > .bf-card:nth-child(5) { grid-column: 2 / span 2; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .bf-cards--n7 > .bf-card:last-child,
    .bf-cards--n5 > .bf-card:last-child { grid-column: 1 / -1; width: calc(50% - 0.625rem); justify-self: center; }
}

/* Card de rango (ej. 10–15%): número un poco más pequeño para que quepa */
a.bf-card .bf-card__big--rango { font-size: clamp(3rem, 4.6vw, 4.2rem); white-space: nowrap; }
