/* INNER Descuentos & Promos — Frontend
   Inyectado por wp_head: --inner-primary, --inner-accent, --inner-soft, --inner-cream
*/

/* ---------- LOOP / CATALOG BADGE ---------- */
.inner-loop-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--inner-primary, #713422), var(--inner-accent, #B36E51));
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 100px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(113, 52, 34, 0.25);
    animation: inner-pop 0.4s ease-out;
}
.products li.product, .products .product {
    position: relative;
}
@keyframes inner-pop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ---------- PRODUCT BANNER (ticket / cupón) ---------- */
.inner-banner-ticket {
    --ticket-stub-w: 110px;
    --ticket-radius: 18px;
    --ticket-cocoa: #5C2C18;
    position: relative;
    display: grid;
    grid-template-columns: var(--ticket-stub-w) 1fr;
    margin: 22px 0;
    border-radius: var(--ticket-radius);
    min-height: 130px;
    filter: drop-shadow(0 8px 22px rgba(113, 52, 34, 0.10));
    overflow: visible;
    isolation: isolate;
}

/* LEFT STUB ----------------------------------- */
.inner-banner-ticket__stub {
    background: var(--inner-accent, #B36E51);
    border-radius: var(--ticket-radius) 0 0 var(--ticket-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* dashed line in the center vertical of stub */
.inner-banner-ticket__stub::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 0;
    width: 0;
    border-right: 1.5px dashed rgba(255, 255, 255, 0.55);
}
.inner-banner-ticket__stub-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff7f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ticket-cocoa);
    border: 1.5px dashed var(--inner-accent, #B36E51);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* RIGHT BODY --------------------------------- */
.inner-banner-ticket__body {
    background: #fbece1;
    border-radius: 0 var(--ticket-radius) var(--ticket-radius) 0;
    position: relative;
    padding: 24px 30px 22px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
/* Inner dashed border on the cream area */
.inner-banner-ticket__body::before {
    content: "";
    position: absolute;
    inset: 8px 8px 8px 0;
    border: 1.5px dashed rgba(179, 110, 81, 0.55);
    border-left: none;
    border-radius: 0 12px 12px 0;
    pointer-events: none;
    z-index: 1;
}

/* (right-side notch omitted — the circular badge already breaks the right edge visually) */

/* Wave SVG on the right */
.inner-banner-ticket__wave {
    position: absolute;
    inset: 0 0 0 auto;
    width: 60%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Botanical leaves — sit to the left of the badge */
.inner-banner-ticket__leaves {
    position: absolute;
    right: 130px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: 160px;
    color: rgba(179, 110, 81, 0.50);
    pointer-events: none;
    z-index: 1;
}

/* Sparkles */
.inner-banner-ticket__sparkle {
    position: absolute;
    color: var(--inner-accent, #B36E51);
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
}
.inner-banner-ticket__sparkle svg { width: 100%; height: 100%; }
.inner-banner-ticket__sparkle--a { width: 18px; height: 18px; top: 22px;  left: 28px;  opacity: 0.85; }
.inner-banner-ticket__sparkle--b { width: 12px; height: 12px; top: 50%;  left: 18px;  opacity: 0.7; }
.inner-banner-ticket__sparkle--c { width: 14px; height: 14px; bottom: 18px; left: 60%; opacity: 0.6; }

/* CONTENT */
.inner-banner-ticket__content {
    position: relative;
    z-index: 4;
    flex: 1;
    padding-left: 8px;
    padding-right: 150px; /* clear of badge (130px) + breathing room */
}
.inner-banner-ticket__headline {
    margin: 0 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ticket-cocoa);
}
.inner-banner-ticket__num {
    color: var(--inner-accent, #B36E51);
}
.inner-banner-ticket__subtitle {
    margin: 0;
    color: #6b3f2c;
    font-size: 14px;
    line-height: 1.4;
}

/* Circular badge — sits comfortably inside the right edge */
.inner-banner-ticket__badge {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
    height: 130px;
    z-index: 6;
    filter: drop-shadow(0 8px 18px rgba(113, 52, 34, 0.22));
    animation: inner-banner-bob 4.5s ease-in-out infinite;
}
@keyframes inner-banner-bob {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50%      { transform: translateY(-52%) scale(1.03); }
}
.inner-banner-ticket__badge-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.inner-banner-ticket__badge-svg text { font-family: -apple-system, "Segoe UI", "Inter", sans-serif; }

/* Mobile chip — hidden on desktop, replaces the SVG badge below 600px */
.inner-banner-ticket__chip {
    display: none;
}

/* TABLET (720 → 601) — keep circular badge but compact */
@media (max-width: 720px) and (min-width: 601px) {
    .inner-banner-ticket {
        --ticket-stub-w: 84px;
        min-height: 120px;
    }
    .inner-banner-ticket__stub-circle { width: 54px; height: 54px; }
    .inner-banner-ticket__stub-circle svg { width: 20px; height: 20px; }
    .inner-banner-ticket__body { padding: 18px 18px 18px 14px; }
    .inner-banner-ticket__leaves { right: 100px; width: 200px; opacity: 0.55; }
    .inner-banner-ticket__content { padding-right: 110px; padding-left: 0; }
    .inner-banner-ticket__headline { font-size: 19px; letter-spacing: 0.3px; }
    .inner-banner-ticket__subtitle { font-size: 12.5px; }
    .inner-banner-ticket__badge { width: 100px; height: 100px; right: 4px; }
    .inner-banner-ticket__sparkle--b { display: none; }
}

/* MOBILE (≤ 600px) — restructured layout, chip replaces SVG badge */
@media (max-width: 600px) {
    .inner-banner-ticket {
        --ticket-stub-w: 56px;
        min-height: auto;
        margin: 18px 0;
    }
    .inner-banner-ticket__stub::before { top: 10px; bottom: 10px; }
    .inner-banner-ticket__stub-circle { width: 38px; height: 38px; }
    .inner-banner-ticket__stub-circle svg { width: 16px; height: 16px; }

    .inner-banner-ticket__body {
        padding: 16px 14px 16px 12px;
        min-height: 80px;
    }
    .inner-banner-ticket__body::before {
        inset: 6px 6px 6px 0;
        border-radius: 0 8px 8px 0;
    }

    /* Decorations: simplified */
    .inner-banner-ticket__leaves { display: none; }
    .inner-banner-ticket__wave   { width: 100%; opacity: 0.55; }
    .inner-banner-ticket__sparkle--a { top: 8px; left: 10px; width: 10px; height: 10px; }
    .inner-banner-ticket__sparkle--b,
    .inner-banner-ticket__sparkle--c { display: none; }

    /* Reserve right space for the chip so headline doesn't run under it */
    .inner-banner-ticket__content {
        padding-right: 96px;
        padding-left: 4px;
    }
    .inner-banner-ticket__headline {
        font-size: 15px;
        letter-spacing: 0.2px;
        line-height: 1.18;
        margin-bottom: 4px;
    }
    .inner-banner-ticket__subtitle {
        font-size: 11.5px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    /* Hide the SVG circular badge — chip takes over */
    .inner-banner-ticket__badge { display: none; }

    /* Chip: flat pill rendered inside the content area */
    .inner-banner-ticket__chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: var(--inner-accent, #B36E51);
        color: #fff;
        padding: 5px 12px 5px 8px;
        border-radius: 100px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(113, 52, 34, 0.20);
        border: 1px dashed rgba(255, 255, 255, 0.7);
        position: absolute;
        right: 12px;
        top: 12px;
        z-index: 5;
    }
    .inner-banner-ticket__chip-icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
}

/* SMALL MOBILE (≤ 380px) — last polish */
@media (max-width: 380px) {
    .inner-banner-ticket { --ticket-stub-w: 48px; }
    .inner-banner-ticket__stub-circle { width: 32px; height: 32px; }
    .inner-banner-ticket__stub-circle svg { width: 14px; height: 14px; }
    .inner-banner-ticket__content { padding-right: 84px; }
    .inner-banner-ticket__headline { font-size: 13.5px; }
    .inner-banner-ticket__subtitle { font-size: 11px; }
    .inner-banner-ticket__chip {
        font-size: 10px;
        letter-spacing: 1.1px;
        padding: 4px 10px 4px 7px;
        right: 8px;
        top: 8px;
    }
    .inner-banner-ticket__chip-icon { width: 12px; height: 12px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .inner-banner-ticket__badge {
        animation: none !important;
    }
}

/* ---------- PRODUCT PROGRESS STEPPER ---------- */
.inner-product-progress {
    background: #fff;
    border: 1px solid #ecdfd4;
    border-radius: 18px;
    padding: 28px 30px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(113, 52, 34, 0.06);
    position: relative;
    overflow: hidden;
}
.inner-product-progress::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(219, 150, 134, 0.08), transparent 60%);
    pointer-events: none;
}
.inner-product-progress__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.inner-product-progress__pill {
    background: var(--inner-primary, #713422);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.inner-product-progress__title {
    margin: 0;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: 24px;
    color: var(--inner-primary, #713422);
    font-weight: 500;
}
.inner-product-progress__steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.inner-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 2;
}
.inner-step__circle {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--inner-cream, #f4ddd1);
    border: 2px dashed #e9c9bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--inner-accent, #B36E51);
    font-size: 18px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
}
.inner-step__placeholder {
    width: 64%;
    height: 64%;
    object-fit: contain;
    opacity: 0.85;
    pointer-events: none;
}
.inner-step__num {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    line-height: 1;
    color: var(--inner-accent, #B36E51);
    background: rgba(255,255,255,0.85);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.inner-step__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}
.inner-step__check {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: #67a671;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(103, 166, 113, 0.35);
    animation: inner-check-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes inner-check-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
.inner-step--done .inner-step__circle {
    background: #fff;
    border-style: solid;
    border-color: var(--inner-primary, #713422);
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(113, 52, 34, 0.18);
}
.inner-step--next .inner-step__circle {
    border-color: var(--inner-accent, #B36E51);
    background: #fff;
    animation: inner-pulse 1.8s ease-in-out infinite;
}
@keyframes inner-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(179, 110, 81, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(179, 110, 81, 0); }
}
.inner-step__label {
    font-size: 12px;
    color: #6b5345;
    text-align: center;
    max-width: 100px;
    line-height: 1.35;
    min-height: 32px;
}
.inner-step--done .inner-step__label { color: var(--inner-primary, #713422); font-weight: 600; }
.inner-step--next .inner-step__label { color: var(--inner-accent, #B36E51); font-weight: 600; }

.inner-step__bar {
    flex: 1;
    height: 3px;
    background: #e9d8cc;
    margin: 38px 4px 0;
    border-radius: 100px;
    transition: background 0.4s;
    position: relative;
    overflow: hidden;
}
.inner-step__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--inner-primary, #713422), var(--inner-accent, #B36E51));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.inner-step__bar--done::after { transform: scaleX(1); }

/* Swap animation when AJAX refreshes the stepper */
.inner-product-progress.is-updating { opacity: 0.6; transform: scale(0.99); transition: all 0.15s ease; }
.inner-product-progress.is-updated  { animation: inner-progress-flash 0.7s ease; }
@keyframes inner-progress-flash {
    0%   { box-shadow: 0 0 0 0 rgba(179, 110, 81, 0.35); }
    50%  { box-shadow: 0 0 0 8px rgba(179, 110, 81, 0); }
    100% { box-shadow: 0 6px 20px rgba(113, 52, 34, 0.06); }
}
.inner-product-progress__msg {
    text-align: center;
    margin: 0;
    font-size: 15px;
    color: #4a3528;
    background: var(--inner-cream, #f4ddd1);
    padding: 12px 18px;
    border-radius: 12px;
}

/* ---------- POPUPS ---------- */
.inner-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 24, 16, 0.55);
    backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.inner-popup-overlay[hidden] { display: none; }
.inner-popup-overlay.is-open { opacity: 1; }

.inner-popup {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.inner-popup-overlay.is-open .inner-popup { transform: scale(1); }

.inner-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    color: var(--inner-primary, #713422);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}
.inner-popup__close:hover { transform: rotate(90deg) scale(1.05); }

.inner-popup__hero {
    background: linear-gradient(135deg, var(--inner-primary, #713422) 0%, var(--inner-accent, #B36E51) 50%, var(--inner-soft, #DB9686) 100%);
    padding: 44px 30px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.inner-popup__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.25), transparent 60%);
}
.inner-popup__hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 221, 209, 0.4), transparent 60%);
}
.inner-popup__pill {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
}
.inner-popup__body {
    padding: 30px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--inner-cream, #f4ddd1) 200%);
}
.inner-popup__title {
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: 28px;
    margin: 0 0 12px;
    color: var(--inner-primary, #713422);
    line-height: 1.15;
    font-weight: 500;
}
.inner-popup__message {
    color: #4a3528;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
}
.inner-popup__cta {
    display: inline-flex;
    align-items: center;
    background: var(--inner-primary, #713422);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s;
    box-shadow: 0 8px 22px rgba(113, 52, 34, 0.3);
}
.inner-popup__cta:hover {
    background: #5b2918;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(113, 52, 34, 0.4);
}

/* ---------- CHECKOUT / CART PROGRESS BAR ---------- */
.inner-checkout-bars {
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.inner-checkout-bar {
    background: #fff;
    border: 1px solid #ecdfd4;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 4px 14px rgba(113, 52, 34, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.inner-checkout-bar.is-active {
    border-color: var(--inner-primary, #713422);
    background: linear-gradient(135deg, #fff 0%, #fdf6f0 100%);
}
.inner-checkout-bar.is-active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(103, 166, 113, 0.08), transparent 60%);
}
.inner-checkout-bar__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.inner-checkout-bar__pill {
    background: var(--inner-primary, #713422);
    color: #fff;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    flex-shrink: 0;
}
.is-active .inner-checkout-bar__pill { background: #67a671; }
.inner-checkout-bar__msg { font-size: 14px; color: #4a3528; flex: 1; min-width: 200px; }
.inner-checkout-bar__msg strong { color: var(--inner-primary, #713422); }

.inner-checkout-bar__track {
    height: 8px;
    background: #f0e1d4;
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}
.inner-checkout-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--inner-primary, #713422), var(--inner-accent, #B36E51));
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.inner-checkout-bar__fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: inner-shimmer 2s ease-in-out infinite;
}
@keyframes inner-shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.is-active .inner-checkout-bar__fill { background: linear-gradient(90deg, #67a671, #8bc499); }

.inner-checkout-bar__steps {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.inner-checkout-bar__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e9d8cc;
    transition: background 0.3s;
}
.inner-checkout-bar__dot.is-done { background: var(--inner-primary, #713422); }
.is-active .inner-checkout-bar__dot.is-done { background: #67a671; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .inner-loop-badge, .inner-step--next .inner-step__circle, .inner-checkout-bar__fill::after {
        animation: none !important;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .inner-product-progress { padding: 22px 18px; }
    .inner-product-progress__title { font-size: 20px; }
    .inner-step__circle { width: 36px; height: 36px; font-size: 14px; }
    .inner-step__label { font-size: 11px; max-width: 70px; }
    .inner-popup__hero { padding: 36px 20px 50px; }
    .inner-popup__pill { font-size: 26px; padding: 10px 22px; }
    .inner-popup__title { font-size: 22px; }
}
