/* ========================================
   PROMOTIONS & WHATSAPP
   ======================================== */


/* =========================
   ANNOUNCEMENT
   ========================= */


/* =========================
   OFFER
   ========================= */

.promo-section {
    padding: 44px 0;
    background: var(--color-white);
}


.offer-card {
    position: relative;
    padding: clamp(30px, 4vw, 52px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
    overflow: hidden;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(
            135deg,
            #15191c 0%,
            #252b30 100%
        );
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}


.offer-content {
    max-width: 700px;
}


.offer-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #ff7373;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.offer-card h2 {
    margin-bottom: 16px;
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3.2rem);
}


.offer-description {
    max-width: 620px;
    margin-bottom: 16px;
    color: #d9dde0;
    font-size: 1.08rem;
}


.offer-terms {
    color: #9fa7ad;
    font-size: 0.78rem;
}


.offer-action {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}


.offer-value {
    color: var(--color-white);
    font-size: clamp(3.2rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}


/* =========================
   PROMOTION DIALOG
   ========================= */

.promotion-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 32px));
    max-height: 88dvh;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.42);
}


.promotion-dialog[open] {
    animation:
        promotion-dialog-in
        220ms
        ease-out
        both;
}


.promotion-dialog[open]::backdrop {
    animation:
        promotion-backdrop-in
        220ms
        ease-out
        both;
}


.promotion-dialog.is-closing {
    animation:
        promotion-dialog-out
        180ms
        ease-in
        both;
}


.promotion-dialog.is-closing::backdrop {
    animation:
        promotion-backdrop-out
        180ms
        ease-in
        both;
}


@keyframes promotion-dialog-in {
    from {
        opacity: 0;

        transform:
            translate(-50%, -48%)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }
}


@keyframes promotion-dialog-out {
    from {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    to {
        opacity: 0;

        transform:
            translate(-50%, -48%)
            scale(0.97);
    }
}


@keyframes promotion-backdrop-in {
    from {
        background:
            rgba(7, 10, 12, 0);

        backdrop-filter:
            blur(0);

        -webkit-backdrop-filter:
            blur(0);
    }

    to {
        background:
            rgba(7, 10, 12, 0.72);

        backdrop-filter:
            blur(3px);

        -webkit-backdrop-filter:
            blur(3px);
    }
}


@keyframes promotion-backdrop-out {
    from {
        background:
            rgba(7, 10, 12, 0.72);

        backdrop-filter:
            blur(3px);

        -webkit-backdrop-filter:
            blur(3px);
    }

    to {
        background:
            rgba(7, 10, 12, 0);

        backdrop-filter:
            blur(0);

        -webkit-backdrop-filter:
            blur(0);
    }
}


.promotion-dialog::backdrop {
    background:
        rgba(7, 10, 12, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


.promotion-dialog-panel {
    position: relative;
    max-height: 88dvh;
    overflow-y: auto;
    border-radius: 18px;
    background: var(--color-white);
}


.promotion-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.promotion-dialog-close:hover {
    background:
        rgba(255, 255, 255, 0.2);
    transform: rotate(4deg);
}


.promotion-dialog-hero {
    padding:
        52px
        54px
        44px;
    background:
        linear-gradient(
            135deg,
            #121619 0%,
            #22282d 100%
        );
    color: var(--color-white);
    text-align: center;
}


.promotion-dialog-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: #ff7373;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.promotion-dialog-value {
    margin-bottom: 8px;
    color: var(--color-white);
    font-size:
        clamp(
            4rem,
            11vw,
            6rem
        );
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.06em;
}


.promotion-dialog-hero h2 {
    margin: 0;
    color: var(--color-white);
    font-size:
        clamp(
            1.7rem,
            4vw,
            2.35rem
        );
}


.promotion-dialog-body {
    padding:
        36px
        42px
        40px;
}


.promotion-dialog-description {
    margin-bottom: 24px;
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
}


.promotion-countdown {
    margin-bottom: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius:
        var(--radius-small);
    background:
        var(--color-light);
    color: var(--color-text);
    font-size: 0.88rem;
}


.promotion-countdown strong {
    color: var(--color-primary);
}


.promotion-dialog-terms {
    margin-bottom: 28px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
}


.promotion-dialog-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}


.promotion-dialog-actions .button {
    width: 100%;
}


.promotion-dismiss-button {
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}


.promotion-dismiss-button:hover {
    color: var(--color-text);
}


/* =========================
   WHATSAPP INLINE
   ========================= */

.appointment-whatsapp {
    margin-top: 22px;
    padding-top: 22px;
    border-top:
        1px solid rgba(255, 255, 255, 0.12);
}


.appointment-whatsapp > span {
    display: block;
    margin-bottom: 8px;
    color: #aeb5ba;
    font-size: 0.85rem;
}


.appointment-whatsapp a {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--color-white);
    font-weight: 800;
}


.appointment-whatsapp a:hover {
    color: #7ee29b;
}


.appointment-whatsapp-icon {
    width: 20px;
    height: 20px;
    color: #25d366;
}


/* =========================
   WHATSAPP FLOAT
   ========================= */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1800;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: #25d366;
    color: #0d2615;
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.28);
}


.whatsapp-float-icon {
    width: 26px;
    height: 26px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {


    .promo-section {
        padding: 28px 0;
    }


    .offer-card {
        padding: 28px 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }


    .offer-action {
        min-width: 0;

        align-items: flex-start;
    }


    .offer-value {
        font-size: 3.4rem;
    }


    .offer-action .button {
        width: 100%;
    }


    .whatsapp-float {
        display: none;
    }


    .promotion-dialog {
        top: auto;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        width: min(520px, calc(100% - 24px));
        max-height: 85dvh;
        margin: 0;
    }

    .promotion-dialog-panel {
        max-height: 85dvh;
    }

    .promotion-dialog-hero {
        padding:
            46px
            24px
            34px;
    }

    .promotion-dialog-body {
        padding:
            28px
            22px
            32px;
    }

    .promotion-dialog-value {
        font-size: 4rem;
    }

        @keyframes promotion-dialog-in {
        from {
            opacity: 0;

            transform:
                translateX(-50%)
                translateY(18px)
                scale(0.98);
        }

        to {
            opacity: 1;

            transform:
                translateX(-50%)
                translateY(0)
                scale(1);
        }
    }


    @keyframes promotion-dialog-out {
        from {
            opacity: 1;

            transform:
                translateX(-50%)
                translateY(0)
                scale(1);
        }

        to {
            opacity: 0;

            transform:
                translateX(-50%)
                translateY(18px)
                scale(0.98);
        }
    }
}


@media (prefers-reduced-motion: reduce) {

    .promotion-dialog[open],
    .promotion-dialog[open]::backdrop,
    .promotion-dialog.is-closing,
    .promotion-dialog.is-closing::backdrop {
        animation-duration: 1ms;
    }
}