:root {
    --bg: #090406;
    --panel: rgba(20, 8, 10, 0.76);
    --panel-border: rgba(222, 132, 45, 0.18);
    --text-main: #f1ebe7;
    --text-muted: #c9b7af;
    --accent: #c8842b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: var(--bg);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(9, 4, 6, 0.78), rgba(9, 4, 6, 0.55)),
        url("../img/fondo.png") center / cover no-repeat;
    background:
        linear-gradient(180deg, rgba(9, 4, 6, 0.78), rgba(9, 4, 6, 0.55)),
        image-set(
            url("../img/optimized/fondo.avif") type("image/avif"),
            url("../img/optimized/fondo.webp") type("image/webp"),
            url("../img/fondo.png") type("image/png")
        ) center / cover no-repeat;
    filter: saturate(0.9);
    opacity: 0.36;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 15%, rgba(200, 132, 43, 0.2), rgba(200, 132, 43, 0) 42%),
        radial-gradient(circle at 50% 85%, rgba(200, 132, 43, 0.18), rgba(200, 132, 43, 0) 40%);
    pointer-events: none;
}

main {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 18px 10px;
}

.flyer,
.flyer-page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid var(--panel-border);
    padding: clamp(24px, 3.4vw, 34px) clamp(22px, 3.6vw, 38px) 18px;
    background:
        linear-gradient(180deg, rgba(21, 8, 10, 0.88), rgba(14, 6, 8, 0.88)),
        url("../img/fondo.png") center / 130% no-repeat;
    background:
        linear-gradient(180deg, rgba(21, 8, 10, 0.88), rgba(14, 6, 8, 0.88)),
        image-set(
            url("../img/optimized/fondo.avif") type("image/avif"),
            url("../img/optimized/fondo.webp") type("image/webp"),
            url("../img/fondo.png") type("image/png")
        ) center / 130% no-repeat;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(1px);
}

.lead {
    margin: 0;
    font-size: clamp(2.15rem, 8.4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.lead .gradient-text {
    color: var(--accent);
    font-size: 1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.block {
    margin: 16px 0 0;
    font-size: clamp(0.97rem, 2.53vw, 1.24rem);
    line-height: 1.5;
    color: var(--text-muted);
}

.block strong {
    color: var(--accent);
}

.spacer {
    height: 1px;
    margin: 18px 0;
    border: 0;
    background: linear-gradient(90deg, rgba(200, 132, 43, 0), rgba(200, 132, 43, 0.72), rgba(200, 132, 43, 0));
}

.questions {
    margin: 0;
    display: grid;
    gap: 9px;
    font-size: clamp(0.9rem, 2.36vw, 1.08rem);
    line-height: 1.5;
    color: #e6d8d1;
}

.question-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.question-bullet {
    width: 10px;
    height: 10px;
    margin-top: 0.5em;
    border-radius: 50%;
    border: 1px solid rgba(235, 221, 215, 0.82);
    background: radial-gradient(circle, rgba(238, 227, 222, 0.95) 0 30%, rgba(238, 227, 222, 0) 42%);
    flex: 0 0 10px;
}

.question-text,
.brand p {
    margin: 0;
}

.brand {
    margin: 6px 0 0;
    display: grid;
    justify-items: center;
    text-align: center;
    line-height: 1.35;
    background: transparent;
    filter: none;
    mix-blend-mode: normal;
}

.brand-icon {
    width: clamp(68px, 18vw, 98px);
    height: auto;
    margin-bottom: -2px;
    background: transparent;
    filter: none;
    mix-blend-mode: normal;
}

.brand-name {
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(2rem, 5.3vw, 2.5rem);
    letter-spacing: 0.01em;
}

.brand-tagline {
    margin-top: 4px;
    font-size: clamp(1.14rem, 3vw, 1.28rem);
    color: #ded0c9;
}

.brand-link {
    margin: 16px 0 8px;
    text-align: center;
    font-size: clamp(1.06rem, 2.9vw, 1.25rem);
}

.brand-link a {
    color: var(--accent);
    text-decoration-color: rgba(200, 132, 43, 0.85);
    text-underline-offset: 2px;
}

.qr-wrap {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.qr {
    width: clamp(106px, 24vw, 150px);
    height: auto;
    background: #f2ece7;
    border: 1px solid rgba(225, 213, 205, 0.95);
    border-radius: 9px;
    padding: 8px;
}

.qr-note {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(201, 183, 175, 0.85);
}

@media (max-width: 640px) {
    body::before {
        background:
            linear-gradient(180deg, rgba(9, 4, 6, 0.8), rgba(9, 4, 6, 0.6)),
            image-set(
                url("../img/optimized/fondo-mobile.avif") type("image/avif"),
                url("../img/optimized/fondo-mobile.webp") type("image/webp"),
                url("../img/optimized/fondo.avif") type("image/avif")
            ) center / cover no-repeat;
    }

    .flyer,
    .flyer-page {
        background:
            linear-gradient(180deg, rgba(21, 8, 10, 0.88), rgba(14, 6, 8, 0.88)),
            image-set(
                url("../img/optimized/fondo-mobile.avif") type("image/avif"),
                url("../img/optimized/fondo-mobile.webp") type("image/webp"),
                url("../img/optimized/fondo.avif") type("image/avif")
            ) center / 135% no-repeat;
    }

    main {
        padding: 10px 8px 12px;
    }

    .flyer,
    .flyer-page {
        border-radius: 14px;
        padding: 20px 14px 14px;
    }

    .brand-name {
        font-size: clamp(1.7rem, 9vw, 2.15rem);
    }
}

@media print {
    @page {
        margin: 10mm;
    }

    body {
        min-height: auto;
        background: #fff;
        color: #111;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body::before,
    body::after {
        content: none;
    }

    main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .flyer,
    .flyer-page {
        max-width: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .brand-link a {
        color: inherit;
    }
}
