:root {
    --gold: #ffd24a;
    --gold-2: #ff9a1f;
    --pink: #ff3d8a;
    --ink: #fff7e8;
}
html, body { min-height: 100%; }
.festa-body {
    background:
        linear-gradient(180deg, rgba(20, 0, 28, .28), rgba(8, 0, 16, .42)),
        url('/assets/img/festa-night.jpg') center/cover fixed;
    color: var(--ink);
    font-family: Outfit, system-ui, sans-serif;
    overflow-x: hidden;
}
.sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.brand-logo { height: 58px; width: auto; max-width: min(70vw, 340px); border-radius: 12px; }
.invite-logo { width: min(420px, 92%); height: auto; display: block; margin: 0 auto 12px; border-radius: 16px; }
.festa-badge { background: linear-gradient(90deg, #ff3d8a, #ff9a1f); color: #fff; }
.festa-body h1, .festa-body h2 { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; }
.festa-body h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); }
.eyebrow { letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; color: var(--gold); font-weight: 800; }
.glow { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.btn-gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--pink));
    color: #1a0a00;
    border: 0;
    font-weight: 800;
}
.btn-gold:hover { filter: brightness(1.08); color: #1a0a00; }
.glass {
    background: rgba(12, 4, 18, .72);
    border: 1px solid rgba(255, 210, 74, .28);
    border-radius: 28px;
    backdrop-filter: blur(16px);
}
.pop-in { animation: rise .8s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.invite-stage {
    min-height: 78vh;
    display: grid;
    place-items: center;
    perspective: 1400px;
}

.mail {
    width: min(360px, 92vw);
    height: 250px;
    position: relative;
    perspective: 1200px;
    transform-style: preserve-3d;
}
.mail-letter {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 70px;
    height: 150px;
    background: linear-gradient(#fff8ee, #ffe9c4);
    color: #3b2208;
    border-radius: 8px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    text-align: center;
}
.mail-letter small { letter-spacing: .18em; text-transform: uppercase; font-size: .65rem; }
.mail-letter strong { font-family: "Bebas Neue", sans-serif; font-size: 1.7rem; }
.mail-letter em { font-style: normal; font-size: .9rem; }
.mail-front {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 175px;
    background: linear-gradient(180deg, #ffcc3d, #e08900);
    clip-path: polygon(0 58px, 50% 118px, 100% 58px, 100% 100%, 0 100%);
    border-radius: 0 0 18px 18px;
    z-index: 3;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.mail-flap {
    position: absolute;
    top: 18px;
    left: 0; right: 0;
    height: 128px;
    background: linear-gradient(#ffe789, #f0b000);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    z-index: 4;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.18));
    backface-visibility: hidden;
}
.mail-seal {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 6;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    background: #1a0410;
    color: #ffd24a;
    box-shadow: 0 0 0 6px #ff3d8a, 0 10px 24px rgba(0,0,0,.35);
    animation: bob 1.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, calc(-50% - 7px)); } }
.mail.is-open .mail-seal { display: none; }

.invite-card {
    display: none;
    width: min(760px, 94vw);
    padding: 28px 22px;
    text-align: center;
    background: linear-gradient(180deg, rgba(28, 4, 36, .92), rgba(10, 0, 16, .94));
    border: 1px solid rgba(255, 210, 74, .4);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(255, 61, 138, .18);
}
.invite-card.is-on { display: block; }
.meta-row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px;
    margin-top: 16px;
}
.rsvp { text-align: left; }
.form-control, .form-control:focus {
    background: #14010c; border-color: rgba(255,210,74,.35); color: #fff;
}
.mini {
    background: rgba(12, 2, 16, .86);
    border: 1px solid rgba(255,210,74,.25);
    border-radius: 16px;
    padding: 8px;
    text-align: center;
    min-height: 100%;
}
.mini img { width: 100%; height: 88px; object-fit: cover; border-radius: 10px; }
.mini strong { display: block; font-size: .78rem; margin: 6px 0 4px; }
.mini .tag { font-size: .7rem; color: #ffb4a8; }
.tiny-check { font-size: .75rem; display: flex; gap: 4px; justify-content: center; align-items: center; }
.mini.is-taken { opacity: .5; }
.tiny { font-size: .75rem; opacity: .8; }

.cha-elisa {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f3ead8, #e7eedd);
    color: #3f4a32;
    border-radius: 32px;
    padding: 28px 20px 24px;
    text-align: center;
    margin-bottom: 22px;
    border: 2px dashed #c9a3b0;
}
.cha-ribbons {
    position: absolute; inset: 0;
    background:
        linear-gradient(115deg, transparent 40%, rgba(232, 164, 188, .35) 42%, transparent 44%),
        linear-gradient(70deg, transparent 55%, rgba(232, 164, 188, .3) 57%, transparent 59%);
    pointer-events: none;
}
.cha-kicker {
    position: relative;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .78rem;
    color: #6b7a4e;
    font-weight: 800;
}
.cha-elisa h1 {
    position: relative;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    color: #55623c;
    margin-bottom: 14px;
}
.cha-hero {
    position: relative;
    width: min(720px, 100%);
    border-radius: 22px;
    margin: 0 auto 16px;
    display: block;
}
.pais { position: relative; }
.pais p { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #8a6a74; }
.pais strong { display: block; font-size: 1.2rem; color: #3f4a32; }
.aviso {
    position: relative;
    background: rgba(255,255,255,.65);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: .9rem;
    color: #4a3b40;
    margin: 14px auto 0;
    max-width: 640px;
}
.presente {
    background: #f7f1e6;
    color: #3f4a32;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d7cbb8;
    height: 100%;
}
.presente img { width: 100%; height: 120px; object-fit: cover; }
.presente-body { padding: 10px; }
.presente-body strong { display: block; font-size: .92rem; }
.presente-body small { display: block; color: #6d6458; margin-bottom: 8px; }
.presente.is-taken { opacity: .55; }
.presente.is-on { outline: 2px solid #c9a3b0; }
.select-gift span {
    display: block; text-align: center; border-radius: 999px;
    padding: 6px; background: #6b7a4e; color: #fff; font-weight: 700; cursor: pointer;
}
.select-gift input { display: none; }
.select-gift input:checked + span { background: #c45b78; }
.btn-cha { background: #6b7a4e; color: #fff; font-weight: 800; border: 0; }
.btn-pix {
    background: #32BCAD; color: #083b36; font-weight: 800; border: 0;
    display: inline-flex; align-items: center; gap: 8px;
}
.pix-mark {
    width: 22px; height: 22px; border-radius: 6px;
    background: #fff;
    position: relative;
    display: inline-block;
}
.pix-mark:before {
    content: "";
    position: absolute; inset: 5px;
    background: #32BCAD;
    clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0 50%);
}
.pix-mark.lg { width: 28px; height: 28px; }
.pix-box { background: #0e2a28; color: #e9fff8; }
.pix-key { font-family: ui-monospace, monospace; word-break: break-all; }

@media (max-width: 576px) {
    .mail { height: 230px; }
    .brand-logo { height: 42px; }
    .presente img { height: 96px; }
}
