/* Cartel de packs (1ª visita) + pedido de reseña (2ª visita). 5/11/2026. Ver js/promo-packs.js
   Versión 2: con el lenguaje de la web (tarjeta blanca, Spectral, bordó, fotos claras, movimiento suave).
   Compatible Safari 12: sin gap en flex, sin inset, con prefijos -webkit- */

.bp-card, .bp-resena {
    --bp-bordo: #73001a;
    --bp-texto: #2a2a2a;
    --bp-suave: #6f6f6f;
    --bp-linea: #ece6df;
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--bp-texto);
    -webkit-font-smoothing: antialiased;
    position: relative;
    display: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35), 0 2px 10px rgba(0, 0, 0, .06);
    max-height: calc(100vh - 32px);
    overflow: auto;
}
.bp-card.bp-visible, .bp-resena.bp-visible {
    display: block;
    -webkit-animation: bp-aparece .8s cubic-bezier(.22, .8, .3, 1) both;
    animation: bp-aparece .8s cubic-bezier(.22, .8, .3, 1) both;
}
.bp-card.bp-saliendo, .bp-resena.bp-saliendo {
    -webkit-animation: bp-se-va .35s ease both;
    animation: bp-se-va .35s ease both;
}
@-webkit-keyframes bp-aparece { from { opacity: 0; -webkit-transform: translateY(26px) scale(.97); } to { opacity: 1; -webkit-transform: none; } }
@keyframes bp-aparece { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@-webkit-keyframes bp-se-va { to { opacity: 0; -webkit-transform: translateY(12px) scale(.98); } }
@keyframes bp-se-va { to { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Fondo: la web queda atrás, desenfocada */
.bp-fondo {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    z-index: 99990;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    padding: 16px;
    background: rgba(30, 18, 18, .32);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility 0s linear .6s;
}
.bp-fondo.bp-abierto {
    opacity: 1;
    visibility: visible;
    transition: opacity .6s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bp-fondo { background: rgba(30, 18, 18, .55); } /* navegadores sin desenfoque: un poco más oscuro */
}

/* Contenido que entra de a poco, sin rebotes */
.bp-entra {
    opacity: 0;
    -webkit-transform: translateY(6px);
    transform: translateY(6px);
}
.bp-visible .bp-entra { -webkit-animation: bp-sube .8s ease forwards; animation: bp-sube .8s ease forwards; }
.bp-visible .bp-d1 { -webkit-animation-delay: .25s; animation-delay: .25s; }
.bp-visible .bp-d2 { -webkit-animation-delay: .4s; animation-delay: .4s; }
.bp-visible .bp-d3 { -webkit-animation-delay: .55s; animation-delay: .55s; }
.bp-visible .bp-d4 { -webkit-animation-delay: .7s; animation-delay: .7s; }
.bp-visible .bp-d5 { -webkit-animation-delay: .85s; animation-delay: .85s; }
@-webkit-keyframes bp-sube { to { opacity: 1; -webkit-transform: none; } }
@keyframes bp-sube { to { opacity: 1; transform: none; } }

/* Cerrar */
.bp-cerrar {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 4;
    width: 30px; height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #555;
    cursor: pointer;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    transition: background .2s, color .2s;
}
.bp-cerrar:hover { background: #fff; color: var(--bp-bordo); }

/* ============ Tarjeta del pack ============ */
.bp-card {
    width: 400px;
    max-width: 100%;
}
/* En compu: foto a la izquierda, texto a la derecha */
@media (min-width: 760px) {
    .bp-card { width: 740px; }
    .bp-card.bp-visible { display: -webkit-box; display: -webkit-flex; display: flex; }
    .bp-card .bp-foto { -webkit-flex: 0 0 320px; flex: 0 0 320px; height: auto; min-height: 460px; }
    .bp-card .bp-cuerpo { -webkit-flex: 1 1 auto; flex: 1 1 auto; padding: 36px 36px 28px; }
    .bp-card h3 { font-size: 1.9rem; }
}

.bp-foto {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #ddd;
}
.bp-foto img {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    -webkit-filter: saturate(.8);
    filter: saturate(.8);
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}
.bp-visible .bp-foto img {
    -webkit-animation: bp-acerca 18s ease-out forwards;
    animation: bp-acerca 18s ease-out forwards;
}
@-webkit-keyframes bp-acerca { to { -webkit-transform: scale(1); } }
@keyframes bp-acerca { to { transform: scale(1); } }

.bp-cuerpo { padding: 20px 24px 20px; }

.bp-etiqueta {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bp-bordo);
}
.bp-card h3 {
    margin: 6px 0 2px;
    font-family: 'Spectral', serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.15;
    color: var(--bp-texto);
}
.bp-sub {
    margin: 0;
    font-size: .88rem;
    color: var(--bp-suave);
}

.bp-precio {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--bp-linea);
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-align-items: baseline; align-items: baseline;
    -webkit-flex-wrap: wrap; flex-wrap: wrap;
}
.bp-precio strong {
    font-family: 'Spectral', serif;
    font-weight: 500;
    font-size: 1.55rem;
    color: var(--bp-bordo);
    margin-right: 8px;
}
.bp-precio span { font-size: .85rem; color: var(--bp-suave); }
.bp-precio-nota { margin: 2px 0 0; font-size: .8rem; color: var(--bp-suave); }

.bp-lista { list-style: none; margin: 14px 0 18px; padding: 0; }
.bp-lista li {
    position: relative;
    padding-left: 18px;
    font-size: .9rem;
    line-height: 1.45;
    margin-bottom: 6px;
}
.bp-lista li::before {
    content: '';
    position: absolute;
    left: 2px; top: .62em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bp-bordo);
    opacity: .7;
}

.bp-boton {
    display: block;
    text-align: center;
    background: var(--bp-bordo);
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 20px;
    border-radius: 50px;
    transition: background .3s;
}
.bp-boton:hover { background: #5a0014; }
.bp-boton svg { vertical-align: -3px; margin-left: 6px; transition: -webkit-transform .3s; transition: transform .3s; }
.bp-boton:hover svg { -webkit-transform: translateX(3px); transform: translateX(3px); }

.bp-pie {
    margin-top: 12px;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-justify-content: space-between; justify-content: space-between;
    -webkit-align-items: center; align-items: center;
    font-size: .8rem;
    color: var(--bp-suave);
}
.bp-pie a { color: var(--bp-suave); text-decoration: underline; text-underline-offset: 2px; }
.bp-pie a:hover { color: var(--bp-bordo); }
.bp-google b { color: var(--bp-texto); font-weight: 700; }
.bp-google i { font-style: normal; color: #FBBC05; letter-spacing: 1px; margin-left: 3px; }

/* ============ Pedido de reseña: chiquito, abajo a la derecha, no tapa la web ============ */
.bp-resena {
    position: fixed;
    right: 24px;
    bottom: 24px;          /* el botón de WhatsApp está más arriba (bottom 180px en compu) */
    z-index: 1000;
    width: 280px;
    max-width: calc(100% - 24px);
    padding: 14px 14px 12px;
    border-radius: 12px;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .25), 0 1px 4px rgba(0, 0, 0, .06);
    overflow: visible;
}
.bp-resena.bp-visible {
    -webkit-animation: bp-resena-entra .7s cubic-bezier(.22, .8, .3, 1) both;
    animation: bp-resena-entra .7s cubic-bezier(.22, .8, .3, 1) both;
}
@-webkit-keyframes bp-resena-entra { from { opacity: 0; -webkit-transform: translateY(20px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes bp-resena-entra { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.bp-resena .bp-cerrar {
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    background: transparent;
    color: #999;
}
.bp-resena .bp-cerrar svg { width: 11px; height: 11px; }
.bp-resena .bp-cerrar:hover { background: #f4f0ec; color: var(--bp-bordo); }

.bp-resena-top {
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    padding-right: 18px;
}
.bp-avatar {
    -webkit-flex: 0 0 auto; flex: 0 0 auto;
    width: 40px; height: 40px;
    margin-right: 11px;
    border-radius: 50%;
    object-fit: cover;
}
.bp-resena h4 {
    margin: 0;
    font-family: 'Spectral', serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--bp-texto);
}

.bp-estrellas {
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    margin-top: 3px;
}
.bp-estrellas svg { margin-right: 1px; }
.bp-estrella { width: 14px; height: 14px; }
.bp-estrella path { fill: #e6e0da; transition: fill .6s ease; }
.bp-estrella.bp-llena path { fill: #FBBC05; }
.bp-g { display: -webkit-inline-box; display: -webkit-inline-flex; display: inline-flex; margin-right: 5px; }
.bp-nota { margin-left: 5px; font-size: .75rem; color: var(--bp-suave); }
.bp-nota b { color: var(--bp-texto); }

.bp-resena-acciones {
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    margin-top: 11px;
}
.bp-boton-chico {
    -webkit-flex: 1 1 auto; flex: 1 1 auto;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    background: var(--bp-bordo);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .8rem;
    padding: 8px 12px;
    border-radius: 50px;
    transition: background .3s;
}
.bp-boton-chico:hover { background: #5a0014; }
.bp-g-boton {
    display: -webkit-inline-box; display: -webkit-inline-flex; display: inline-flex;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    width: 18px; height: 18px;
    margin-right: 7px;
    border-radius: 50%;
    background: #fff;
}
.bp-g-boton svg { width: 12px; height: 12px; }
.bp-ya {
    margin-left: 10px;
    background: none;
    border: 0;
    font: inherit;
    font-size: .75rem;
    color: var(--bp-suave);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 4px;
    white-space: nowrap;
}

/* ============ Celular ============ */
@media (max-width: 600px) {
    .bp-foto { height: 140px; }
    .bp-cuerpo { padding: 18px 20px 18px; }
    .bp-card h3 { font-size: 1.45rem; }
    .bp-lista { margin: 10px 0 14px; }
    .bp-lista li { font-size: .86rem; margin-bottom: 4px; }
    .bp-resena { right: 12px; bottom: 12px; }
    /* en celular el WhatsApp está más abajo: mientras se ve la reseña, lo subimos */
    body.bp-con-resena #floating-wa-btn { bottom: 140px !important; }
}
.bp-agarre { display: none; }

@media (prefers-reduced-motion: reduce) {
    .bp-card, .bp-resena, .bp-card *, .bp-resena * {
        -webkit-animation: none !important; animation: none !important;
        transition: opacity .2s !important;
    }
    .bp-entra { opacity: 1; -webkit-transform: none; transform: none; }
}

