/* ==========================================================
   PROMO SEPTIEMBRE — Dra. Alejandra Armero
   Flyer flotante + sección de promociones + pestaña fija
   Todas las clases usan el prefijo .pm- para no colisionar.
   ========================================================== */

.pm-root {
    --pm-gold: #C9A227;
    --pm-gold-soft: #E4C56A;
    --pm-gold-deep: #9A7B18;
    --pm-ink: #1F1C18;
    --pm-ink-soft: #4A4640;
    --pm-cream: #FDF8F3;
    --pm-warm: #F5E6D3;
    --pm-line: rgba(201, 162, 39, .28);
    --pm-green: #25D366;
    --pm-green-dark: #1EA952;
    --pm-shadow: 0 30px 80px rgba(31, 28, 24, .28);
    --pm-font-h: 'Playfair Display', Georgia, serif;
    --pm-font-b: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pm-root *,
.pm-root *::before,
.pm-root *::after { box-sizing: border-box; }

/* ---------- Tipografía / utilidades comunes ---------- */
.pm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--pm-font-b);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--pm-gold-deep);
}

.pm-rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pm-gold), transparent);
    margin: .9rem auto;
}

/* ---------- Contador ---------- */
.pm-countdown {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: .45rem;
}

.pm-cd-box {
    min-width: 60px;
    padding: .5rem .35rem .4rem;
    border-radius: 10px;
    background: linear-gradient(160deg, #262320 0%, #16140f 100%);
    border: 1px solid rgba(201, 162, 39, .35);
    text-align: center;
    line-height: 1;
}

.pm-cd-num {
    display: block;
    font-family: var(--pm-font-b);
    font-size: 1.45rem;
    font-weight: 700;
    color: #F3E2AE;
    font-variant-numeric: tabular-nums;
}

.pm-cd-lab {
    display: block;
    margin-top: .3rem;
    font-family: var(--pm-font-b);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(243, 226, 174, .65);
}

.pm-cd-sep {
    align-self: center;
    color: rgba(201, 162, 39, .5);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

/* ==========================================================
   1. FLYER FLOTANTE (modal)
   ========================================================== */
.pm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(24, 21, 17, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    overflow-y: auto;
}

.pm-overlay.pm-open {
    opacity: 1;
    visibility: visible;
}

.pm-flyer {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: auto;
    background: linear-gradient(180deg, #FFFDFA 0%, var(--pm-cream) 100%);
    border-radius: 22px;
    box-shadow: var(--pm-shadow);
    overflow: hidden;
    transform: translateY(28px) scale(.97);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2,.8,.25,1), opacity .45s ease;
    font-family: var(--pm-font-b);
    color: var(--pm-ink-soft);
}

.pm-overlay.pm-open .pm-flyer {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pm-flyer::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--pm-line);
    border-radius: 16px;
    pointer-events: none;
    z-index: 3;
}

.pm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .25s ease;
}

.pm-close:hover {
    background: rgba(255, 255, 255, .3);
    transform: rotate(90deg);
}

/* --- Cabecera del flyer --- */
.pm-flyer-head {
    position: relative;
    padding: 1.9rem 1.75rem 1.5rem;
    background: linear-gradient(150deg, #211E1A 0%, #322C22 55%, #1A1713 100%);
    text-align: center;
    color: #fff;
}

.pm-flyer-head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pm-gold), var(--pm-gold-soft), var(--pm-gold), transparent);
}

.pm-tagline {
    display: inline-block;
    padding: .3rem .9rem;
    border: 1px solid rgba(201, 162, 39, .55);
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pm-gold-soft);
}

.pm-root .pm-flyer-head h2 {
    margin: .85rem 0 .35rem;
    font-family: var(--pm-font-h);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.pm-root .pm-flyer-head h2 em {
    font-style: normal;
    color: var(--pm-gold-soft);
}

.pm-dates {
    margin: 0 0 1.1rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .72);
    letter-spacing: .02em;
}

.pm-cd-title {
    margin-bottom: .6rem;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(228, 197, 106, .85);
}

/* --- Cuerpo: ofertas --- */
.pm-flyer-body {
    position: relative;
    z-index: 2;
    padding: 1.6rem 1.6rem 1.2rem;
}

.pm-offers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pm-offer {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.2rem 1.25rem;
    background: #fff;
    border: 1px solid var(--pm-line);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(31, 28, 24, .06);
}

.pm-offer.pm-featured {
    border-color: rgba(201, 162, 39, .55);
    box-shadow: 0 10px 34px rgba(201, 162, 39, .16);
}

.pm-offer-flag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: .28rem .8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pm-gold-deep), var(--pm-gold-soft));
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(154, 123, 24, .3);
}

.pm-root .pm-offer h3 {
    margin: .35rem 0 .75rem;
    font-family: var(--pm-font-h);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pm-ink);
    text-align: center;
}

.pm-includes {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    flex-grow: 1;
}

.pm-includes li {
    position: relative;
    padding: .3rem 0 .3rem 1.4rem;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--pm-ink-soft);
}

.pm-includes li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: .38rem;
    font-size: .68rem;
    color: var(--pm-gold);
}

.pm-price {
    text-align: center;
    padding-top: .85rem;
    border-top: 1px dashed var(--pm-line);
}

.pm-price-old {
    display: block;
    font-size: .82rem;
    color: #9A948B;
    text-decoration: line-through;
    text-decoration-color: rgba(201, 60, 60, .7);
}

.pm-price-new {
    display: block;
    margin: .15rem 0 .45rem;
    font-family: var(--pm-font-h);
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1;
    color: var(--pm-ink);
}

.pm-save {
    display: inline-block;
    padding: .28rem .75rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, .12);
    color: #17853F;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.pm-offer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .72rem 1rem;
    border-radius: 999px;
    background: var(--pm-green);
    color: #fff !important;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.pm-offer-cta:hover {
    background: var(--pm-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, .28);
}

/* --- Welli / financiación --- */
.pm-welli {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1.15rem;
    padding: .9rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pm-warm) 0%, #F9EFE2 100%);
    border: 1px solid var(--pm-line);
}

.pm-welli i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--pm-gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 3px 10px rgba(31, 28, 24, .08);
}

.pm-root .pm-welli p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--pm-ink-soft);
}

.pm-welli strong { color: var(--pm-ink); }

/* --- Pie del flyer --- */
.pm-flyer-foot {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem 1.25rem;
    padding: .9rem 1.6rem 1.5rem;
    text-align: center;
}

.pm-google {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .76rem;
    font-weight: 600;
    color: var(--pm-ink-soft);
}

.pm-stars { color: #F0B400; letter-spacing: .06em; }

.pm-fineprint {
    width: 100%;
    margin: 0;
    font-size: .68rem;
    color: #8C867D;
    line-height: 1.5;
}

/* ==========================================================
   2. PESTAÑA FIJA (siempre visible)
   ========================================================== */
.pm-tab {
    position: fixed;
    left: 18px;
    bottom: 26px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1.05rem .6rem .7rem;
    border: 1px solid rgba(201, 162, 39, .5);
    border-radius: 999px;
    background: linear-gradient(135deg, #241F19 0%, #3A3225 100%);
    color: #F3E2AE;
    font-family: var(--pm-font-b);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(31, 28, 24, .28);
    transform: translateY(90px);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2,.8,.25,1), opacity .45s ease, box-shadow .3s ease;
}

.pm-tab.pm-visible {
    transform: translateY(0);
    opacity: 1;
}

.pm-tab:hover {
    box-shadow: 0 16px 38px rgba(201, 162, 39, .3);
}

.pm-tab-ico {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pm-gold-deep), var(--pm-gold-soft));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
}

.pm-tab-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.pm-tab-txt b { font-size: .78rem; font-weight: 700; color: #FFF6DC; }
.pm-tab-txt span { font-size: .66rem; color: rgba(243, 226, 174, .75); font-variant-numeric: tabular-nums; }

.pm-tab-pulse {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E2574C;
    box-shadow: 0 0 0 0 rgba(226, 87, 76, .7);
    animation: pm-pulse 2.2s infinite;
}

@keyframes pm-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(226, 87, 76, .65); }
    70%  { box-shadow: 0 0 0 12px rgba(226, 87, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 87, 76, 0); }
}

/* ==========================================================
   3. SECCIÓN DE PROMOCIONES (dentro de la página)
   ========================================================== */
.pm-section {
    position: relative;
    padding: 4.5rem 6% 4.75rem;
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(201, 162, 39, .10), transparent 70%),
        linear-gradient(180deg, #FFFDFA 0%, var(--pm-cream) 100%);
    font-family: var(--pm-font-b);
    color: var(--pm-ink-soft);
    overflow: hidden;
}

.pm-section::before,
.pm-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pm-line), transparent);
}

.pm-section::before { top: 0; }
.pm-section::after { bottom: 0; }

.pm-section-inner {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pm-section-head { text-align: center; margin-bottom: 2.4rem; }

.pm-root .pm-section-head h2 {
    margin: .7rem 0 .5rem;
    font-family: var(--pm-font-h);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--pm-ink);
}

.pm-root .pm-section-head h2 em { font-style: normal; color: var(--pm-gold-deep); }

.pm-section-head > p {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: .96rem;
    line-height: 1.7;
    color: var(--pm-ink-soft);
}

.pm-section .pm-offers {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    align-items: stretch;
}

.pm-section .pm-offer { padding: 2rem 1.75rem 1.85rem; border-radius: 18px; }
.pm-root.pm-section .pm-offer h3 { font-size: 1.5rem; }
.pm-section .pm-price-new { font-size: 2.4rem; }
.pm-section .pm-includes li { font-size: .88rem; }

.pm-section .pm-welli {
    margin-top: 1.8rem;
    padding: 1.15rem 1.4rem;
}

.pm-root.pm-section .pm-welli p { font-size: .9rem; }

.pm-section-foot {
    margin-top: 1.6rem;
    text-align: center;
}

.pm-section-foot .pm-fineprint { margin-top: .8rem; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 820px) {
    .pm-offers,
    .pm-section .pm-offers { grid-template-columns: 1fr; }

    .pm-flyer-head h2 { font-size: 1.6rem; }
    .pm-section-head h2 { font-size: 2rem; }
    .pm-flyer-body { padding: 1.6rem 1.1rem 1rem; }
    .pm-flyer-head { padding: 1.6rem 1.1rem 1.3rem; }
    .pm-offer-flag { font-size: .54rem; }
}

@media (max-width: 560px) {
    .pm-overlay { padding: .75rem; align-items: flex-start; }
    .pm-flyer { max-height: none; border-radius: 18px; }
    .pm-flyer::before { inset: 6px; }
    .pm-cd-box { min-width: 50px; padding: .42rem .25rem .35rem; }
    .pm-cd-num { font-size: 1.15rem; }
    .pm-cd-lab { font-size: .5rem; }
    .pm-flyer-head h2 { font-size: 1.42rem; }
    .pm-price-new { font-size: 1.7rem; }
    .pm-section { padding: 3.25rem 5% 3.5rem; }
    .pm-section-head h2 { font-size: 1.7rem; }
    .pm-section .pm-price-new { font-size: 2rem; }

    .pm-tab {
        left: 12px;
        bottom: 18px;
        padding: .5rem .85rem .5rem .55rem;
    }
    .pm-tab-txt b { font-size: .72rem; }
    .pm-tab-txt span { font-size: .6rem; }
}

@media (max-width: 380px) {
    .pm-tab-txt b { font-size: .68rem; }
    .pm-tab { max-width: calc(100vw - 100px); }
}

@media (prefers-reduced-motion: reduce) {
    .pm-overlay, .pm-flyer, .pm-tab { transition: none; }
    .pm-tab-pulse { animation: none; }
}
