:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #17191d;
    --muted: #667085;
    --line: #e4e7ec;
    --primary: #17191d;
    --primary-hover: #30343a;
    --success: #067647;
    --success-bg: #ecfdf3;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --warning: #b54708;
    --warning-bg: #fffaeb;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 36px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.brand__mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    letter-spacing: .04em;
}

.site-nav {
    display: flex;
    gap: 22px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 650;
}

.site-nav a:hover {
    color: var(--text);
}

.hero {
    padding: 72px 0 48px;
}

.hero__content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hero h1,
.event-header h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero p {
    max-width: 660px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.13rem;
}

.section {
    padding: 28px 0 70px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -.03em;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.event-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.event-card__image {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #626b78);
    color: white;
    font-size: 2rem;
    font-weight: 900;
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card__body {
    padding: 22px;
}

.event-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    letter-spacing: -.025em;
}

.meta {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: .96rem;
}

.card-actions {
    margin-top: 20px;
}

.button {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
}

.button:hover {
    background: var(--primary-hover);
}

.button--light {
    border-color: var(--line);
    background: white;
    color: var(--text);
}

.button--light:hover {
    background: #f9fafb;
}

.button--full {
    width: 100%;
}

.empty {
    padding: 46px 24px;
    background: white;
    border: 1px dashed #cfd4dc;
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.event-page {
    padding: 42px 0 72px;
}

.event-banner {
    overflow: hidden;
    margin-bottom: 32px;
    border-radius: 24px;
    background: #24282f;
    box-shadow: var(--shadow);
}

.event-banner img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
}

.event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 32px;
    align-items: start;
}

.panel {
    padding: 28px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel + .panel {
    margin-top: 20px;
}

.event-header {
    margin-bottom: 28px;
}

.event-header h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.detail {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.detail strong {
    display: block;
    margin-bottom: 3px;
}

.prose {
    white-space: pre-line;
}

.prose h2,
.panel h2 {
    margin-top: 0;
    letter-spacing: -.025em;
}

.lotes {
    display: grid;
    gap: 13px;
}

.lote {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.lote__top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.lote__price {
    font-size: 1.28rem;
    font-weight: 850;
    white-space: nowrap;
}

.lote__meta {
    margin-top: 7px;
    color: var(--muted);
    font-size: .92rem;
}

.lote .button {
    margin-top: 15px;
}

.form-page {
    padding: 45px 0 75px;
}

.form-card {
    max-width: 780px;
    margin-inline: auto;
    padding: 30px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card h1 {
    margin: 0 0 7px;
    letter-spacing: -.035em;
}

.form-card__intro {
    margin: 0 0 28px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 750;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    background: white;
    color: var(--text);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.summary-box {
    margin: 22px 0;
    padding: 19px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 0;
}

.summary-row--total {
    margin-top: 8px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    font-size: 1.12rem;
    font-weight: 850;
}

.participants {
    display: grid;
    gap: 13px;
}

.alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 11px;
    border: 1px solid transparent;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert--error {
    background: var(--danger-bg);
    border-color: #fecdca;
    color: var(--danger);
}

.alert--success {
    background: var(--success-bg);
    border-color: #abefc6;
    color: var(--success);
}

.alert--warning {
    background: var(--warning-bg);
    border-color: #fedf89;
    color: var(--warning);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: .82rem;
    font-weight: 800;
}

.status-badge--success {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge--danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.order-code {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 9px;
    background: #f2f4f7;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 800;
}

.ticket-list {
    display: grid;
    gap: 14px;
}

.ticket-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
    text-decoration: none;
}

.ticket-link:hover {
    background: #f9fafb;
}

.ticket-page {
    padding: 38px 0 70px;
}

.ticket {
    width: min(620px, 100%);
    margin-inline: auto;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.ticket__header {
    padding: 25px;
    background: #17191d;
    color: white;
}

.ticket__header h1 {
    margin: 0;
    font-size: 1.65rem;
}

.ticket__body {
    padding: 28px;
}

.ticket__name {
    margin: 0 0 22px;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.ticket__qr {
    width: min(310px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 26px auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.ticket__qr canvas {
    width: 100%;
    height: auto;
}

.ticket__footer {
    padding: 18px 28px;
    background: #f8fafc;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .92rem;
}

.site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 880px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-nav {
        gap: 12px;
        font-size: .9rem;
    }

    .hero {
        padding-top: 50px;
    }

    .cards,
    .form-grid,
    .event-details {
        grid-template-columns: 1fr;
    }

    .container {
        width: min(100% - 24px, 1120px);
    }

    .panel,
    .form-card {
        padding: 21px;
    }

    .lote__top {
        flex-direction: column;
        gap: 5px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .ticket-page {
        padding: 0;
    }

    .ticket {
        border: 0;
        box-shadow: none;
    }
}
