:root {
    /* Black/red campaign palette, shared with the hero banner card. */
    --bmw-cadou-red: #d50018;
    --bmw-cadou-red-bright: #ff2440;
    --bmw-cadou-red-deep: #7a000e;
    --bmw-cadou-hairline: rgba(213, 0, 24, 0.55);
    --bmw-cadou-ink: #ffffff;

    --bmw-cadou-ticket:
        radial-gradient(120% 88% at 50% -12%, rgba(213, 0, 24, 0.42) 0%, rgba(213, 0, 24, 0) 62%),
        linear-gradient(180deg, #191919 0%, #070707 100%);

    --bmw-cadou-notch: #08080a;
}

/* Doubled up with .logo-download-btn so this beats the shared header gradient
   without touching the "Descarca sigla AutoDE" button next to it. */
.logo-download-btn.bmw-cadou-header-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #ff2440 0%,
        #d50018 45%,
        #7a000e 100%
    );
    background: linear-gradient(
        135deg,
        var(--bmw-cadou-red-bright) 0%,
        var(--bmw-cadou-red) 45%,
        var(--bmw-cadou-red-deep) 100%
    );
    box-shadow:
        0 6px 18px rgba(213, 0, 24, 0.4),
        inset 0 0 0 1px rgba(255, 120, 135, 0.35);
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: box-shadow 0.2s ease;
}

.logo-download-btn.bmw-cadou-header-btn:hover {
    box-shadow:
        0 8px 24px rgba(255, 36, 64, 0.55),
        inset 0 0 0 1px rgba(255, 150, 165, 0.5);
}

.bmw-cadou-header-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: bmw-cadou-shine 4.5s ease-in-out infinite;
}

@keyframes bmw-cadou-shine {
    0%,
    70% {
        left: -60%;
    }
    100% {
        left: 130%;
    }
}

.bmw-cadou-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bmw-cadou-modal[hidden] {
    display: none;
}

.bmw-cadou-modal__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(4, 2, 3, 0.8);
    backdrop-filter: blur(2px);
    animation: bmw-cadou-fade 0.25s ease both;
}

.bmw-cadou-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 26rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(213, 0, 24, 0.55);
    border: 1px solid var(--bmw-cadou-hairline);
    border-radius: 1.1rem;
    background: radial-gradient(120% 88% at 50% -12%, rgba(213, 0, 24, 0.42) 0%, rgba(213, 0, 24, 0) 62%),
        linear-gradient(180deg, #191919 0%, #070707 100%);
    background: var(--bmw-cadou-ticket);
    color: #fff;
    font-family: Poppins, sans-serif;
    text-align: center;
    box-shadow:
        0 34px 80px -22px rgba(0, 0, 0, 0.88),
        0 0 60px -18px rgba(213, 0, 24, 0.5);
    animation: bmw-cadou-pop 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.bmw-cadou-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(213, 0, 24, 0.55);
    border: 1px solid var(--bmw-cadou-hairline);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    transition:
        background 0.15s ease, border-color 0.15s ease;
}

.bmw-cadou-modal__close:hover {
    background: #d50018;
    background: var(--bmw-cadou-red);
    border-color: #ff2440;
    border-color: var(--bmw-cadou-red-bright);
}

.bmw-cadou-modal__header {
    position: relative;
    padding: 2.4rem 2rem 1.9rem;
}

.bmw-cadou-modal__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #ff2440;
    color: var(--bmw-cadou-red-bright);
}

.bmw-cadou-modal__title {
    margin: 0.75rem 0 0;
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 18px rgba(255, 36, 64, 0.55),
        0 2px 0 rgba(0, 0, 0, 0.4);
}

.bmw-cadou-modal__header::after {
    content: "";
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 0;
    border-bottom: 2px dashed rgba(213, 0, 24, 0.7);
}

.bmw-cadou-info::before,
.bmw-cadou-info::after {
    content: "";
    position: absolute;
    top: -0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #08080a;
    background: var(--bmw-cadou-notch);
}

.bmw-cadou-info::before {
    left: -0.75rem;
}

.bmw-cadou-info::after {
    right: -0.75rem;
}

.bmw-cadou-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 1.9rem 2rem 2.1rem;
}

.bmw-cadou-info__text {
    margin: 0;
    max-width: 22rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.bmw-cadou-info__text strong {
    color: #fff;
    font-weight: 700;
}

.bmw-cadou-info__stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.15rem;
}

.bmw-cadou-store {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1 1 0;
    min-width: 9.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(213, 0, 24, 0.55);
    border: 1px solid var(--bmw-cadou-hairline);
    border-radius: 0.7rem;
    background: linear-gradient(180deg, #1c1c1c 0%, #0c0c0c 100%);
    color: #ffffff;
    color: var(--bmw-cadou-ink);
    -webkit-text-decoration: none;
    text-decoration: none;
    transition:
        transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bmw-cadou-store:hover {
    color: #ffffff;
    color: var(--bmw-cadou-ink);
    transform: translateY(-2px);
    border-color: #ff2440;
    border-color: var(--bmw-cadou-red-bright);
    box-shadow: 0 14px 26px -10px rgba(213, 0, 24, 0.75);
}

.bmw-cadou-store__icon {
    flex: 0 0 auto;
}

.bmw-cadou-store__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
}

.bmw-cadou-store__top {
    font-size: 0.625rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.bmw-cadou-store__name {
    font-size: 1rem;
    font-weight: 700;
}

.bmw-cadou-info__legal {
    margin: 0.35rem 0 0;
    max-width: 22rem;
    font-size: 0.75rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

.bmw-cadou-info__legal a {
    color: rgba(255, 255, 255, 0.92);
    -webkit-text-decoration: underline;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 12px;
}

.bmw-cadou-store:focus-visible,
.bmw-cadou-modal__close:focus-visible,
.bmw-cadou-info__legal a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@keyframes bmw-cadou-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bmw-cadou-pop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .bmw-cadou-modal__header {
        padding: 2rem 1.35rem 1.7rem;
    }

    .bmw-cadou-modal__title {
        font-size: 2.6rem;
    }

    .bmw-cadou-info {
        padding: 1.7rem 1.35rem 1.6rem;
    }

    .bmw-cadou-info__stores {
        flex-direction: column;
    }

    .bmw-cadou-store {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmw-cadou-header-btn::after,
    .bmw-cadou-modal__overlay,
    .bmw-cadou-modal__dialog {
        animation: none;
    }
}

.footer-copyright ul {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}
