/* AFA Escola Jacint Verdaguer — La Granada */
:root {
    /* Colors del logotip de l'AFA */
    --red: #d9151c;
    --red-dark: #b01016;
    --red-soft: #fde8e8;
    --yellow: #fbdc08;
    --yellow-dark: #d9bd00;
    --yellow-soft: #fff9cc;
    --green: #078838;
    --green-dark: #056a2b;
    --green-soft: #e6f4eb;
    --grey: #d6d7d7;
    --ink: #1d1d1b;
    /* Àlies semàntics */
    --sun: var(--yellow);
    --sun-dark: var(--yellow-dark);
    --coral: var(--red);
    --muted: #5d605f;
    --line: #e5e6e6;
    --bg: #ffffff;
    --cream: #f4f5f5;
    --white: #fff;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(29, 29, 27, .08);
    --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Outfit", "Nunito", system-ui, sans-serif;
    /* Llavors de magrana (motiu decoratiu) */
    --seeds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23d6d7d7' fill-opacity='.32'%3E%3Cpath d='M20 14c5 0 8 5 7 11s-5 9-9 8-6-6-5-11 3-8 7-8z'/%3E%3Cpath d='M78 30c5-1 9 3 9 9s-3 10-8 10-7-5-7-10 2-8 6-9z'/%3E%3Cpath d='M42 72c5 0 8 4 8 10s-4 9-8 9-7-5-7-10 3-9 7-9z'/%3E%3Cpath d='M98 86c4 0 7 4 7 9s-3 8-7 8-6-4-6-9 2-8 6-8z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, .h2, .h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 3rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; vertical-align: -3px; }
.icon-lg { width: 36px; height: 36px; }
.icon-xl { width: 56px; height: 56px; }

/* Header */
.site-header::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--red) 0 33.33%, var(--green) 33.33% 66.66%, var(--yellow) 66.66% 100%); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 60px; width: auto; }
.brand-logo.custom { height: 50px; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: .5rem .8rem; border-radius: 999px; font-size: .97rem; }
.nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.nav a.active { color: var(--green); background: var(--green-soft); }
.nav a.nav-cta { background: var(--green); color: #fff; margin-left: .4rem; display: inline-flex; gap: .35rem; align-items: center; }
.nav a.nav-cta:hover { background: var(--green-dark); }
@media (max-width: 520px) { .brand-logo { height: 42px; } }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .2s; }
@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .nav { position: fixed; inset: 83px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 1rem 20px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s; max-height: calc(100vh - 83px); overflow: auto; }
    .nav.open { transform: none; opacity: 1; visibility: visible; }
    .nav a { padding: .8rem 1rem; }
    .nav a.nav-cta { margin: .5rem 0 0; justify-content: center; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 800; font-family: var(--font); font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-accent { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--yellow-dark); }
.btn-accent:hover { background: #ffe633; color: var(--ink); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-dark); }
.btn-red:hover { background: #e52a31; color: #fff; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.08rem; }
.btn-small { padding: .45rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 800; text-decoration: none; }
.link-arrow.light { color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--seeds), linear-gradient(160deg, #fff 0%, var(--cream) 100%); padding: clamp(3rem, 7vw, 6rem) 0; }
.hero::before { content: ""; position: absolute; left: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(7, 136, 56, .08); }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(251, 220, 8, .22); }
.hero.with-image { background: linear-gradient(100deg, rgba(5, 106, 43, .92) 0%, rgba(5, 106, 43, .6) 60%, rgba(5, 106, 43, .25) 100%), var(--hero-img) center/cover; color: #fff; }
.hero.with-image h1, .hero.with-image .lead, .hero.with-image .eyebrow { color: #fff; }
.hero.with-image .btn-ghost { color: #fff; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero.with-image .hero-inner { grid-template-columns: 1fr; max-width: 820px; margin-left: max(20px, calc((100vw - 1180px) / 2 + 20px)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 520px; margin-left: auto; position: relative; z-index: 1; }
.hero-art img { filter: drop-shadow(0 18px 30px rgba(29, 29, 27, .10)); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--green); margin-bottom: .6rem; }
.eyebrow a { text-decoration: none; }
.eyebrow.light { color: var(--yellow); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { display: none; } }

.page-hero { position: relative; background: var(--seeds), linear-gradient(160deg, var(--green-soft), var(--yellow-soft)); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero.small { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.page-hero.with-image { background: linear-gradient(100deg, rgba(5, 80, 33, .9) 0%, rgba(5, 106, 43, .72) 55%, rgba(5, 106, 43, .45) 100%), var(--hero-img) center/cover; }
.page-hero.with-image h1, .page-hero.with-image .lead, .page-hero.with-image p { color: #fff; }
.page-hero.with-image .eyebrow, .page-hero.with-image .eyebrow a, .page-hero.with-image .link-arrow { color: var(--yellow); }
.page-hero.with-image .big-icon { color: var(--red); }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.big-icon { display: inline-flex; width: 96px; height: 96px; border-radius: 50%; background: #fff; color: var(--red); align-items: center; justify-content: center; margin-bottom: 1rem; box-shadow: var(--shadow); }
.big-icon.ok { color: var(--green); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.tinted { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.cover { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 2rem; }

.stat-cloud { display: grid; gap: 1rem; }
.stat-cloud > div { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); }
.stat-cloud > div:nth-child(2) { margin-left: 2rem; }
.stat-cloud .icon { grid-row: span 2; color: var(--green); background: var(--green-soft); border-radius: 14px; padding: 10px; width: 58px; height: 58px; }
.stat-cloud > div:nth-child(2) .icon { color: #8a7600; background: var(--yellow-soft); }
.stat-cloud > div:nth-child(3) .icon { color: var(--red); background: var(--red-soft); }
.stat-cloud strong { font-family: var(--font-head); font-size: 1.25rem; }
.stat-cloud span { color: var(--muted); }

/* Features */
.feature { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, .03); transition: transform .15s; }
.feature:hover { transform: translateY(-3px); }
.feature-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 1rem; }
.feature-icon .icon { width: 30px; height: 30px; }
.features .feature:nth-child(3n+2) .feature-icon { background: var(--yellow-soft); color: #8a7600; }
.features .feature:nth-child(3n+3) .feature-icon { background: var(--red-soft); color: var(--red); }
.feature-body p:last-child { margin-bottom: 0; }
.feature-body { color: var(--muted); }
.benefits .feature { background: var(--cream); box-shadow: none; }
.member-cta { margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--green); color: #fff; padding: 1.8rem 2rem; border-radius: var(--radius); }
.member-cta h3 { color: #fff; margin-bottom: .2rem; }
.member-cta p { margin: 0; opacity: .9; }

/* Cards */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card.pad { padding: 1.6rem; margin-bottom: 1.4rem; overflow: visible; }
.card-media { position: relative; display: block; aspect-ratio: 16/10; background: var(--green-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--red); background: var(--seeds), linear-gradient(135deg, var(--red-soft), var(--yellow-soft)); }
.media-placeholder.alt { color: var(--green); background: var(--seeds), linear-gradient(135deg, var(--green-soft), var(--yellow-soft)); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body p { color: var(--muted); }
.card-body .btn { margin-top: auto; }
.chip { position: absolute; top: 12px; left: 12px; background: #fff; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.chip-dark { background: var(--ink); color: #fff; }
.date-badge { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 14px; padding: .35rem .7rem; text-align: center; font-weight: 800; font-size: .8rem; text-transform: uppercase; line-height: 1.1; box-shadow: var(--shadow); }
.date-badge b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--red); }
.meta { list-style: none; padding: 0; margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.meta li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .3rem; }
.meta.big li { font-size: 1.02rem; color: var(--ink); margin-bottom: .7rem; }
.meta.big .icon { color: var(--green); margin-top: 3px; }
.meta small { color: var(--muted); }
.past .card { opacity: .75; }

/* Progress */
.progress { height: 14px; background: var(--cream); border-radius: 999px; overflow: hidden; margin: .6rem 0 1rem; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--green), #6fbf3f 60%, var(--yellow)); border-radius: 999px; transition: width 1s ease; min-width: 6px; }
.progress-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin-bottom: 1.2rem; }
.progress-meta div { display: flex; flex-direction: column; line-height: 1.2; }
.progress-meta strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }
.progress-meta span { font-size: .85rem; color: var(--muted); }
.progress-meta div:first-child strong { color: var(--green); }

/* Layout with sidebar */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2.5rem; align-items: start; }
.sticky { position: sticky; top: 96px; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .sticky { position: static; } }

/* Prose */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote { border-left: 4px solid var(--yellow); margin: 1.5rem 0; padding: .5rem 1.2rem; background: var(--cream); border-radius: 0 12px 12px 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-size-large { font-size: 1.3em; }
.prose .ql-size-small { font-size: .85em; }
.prose li[data-list="bullet"] { list-style-type: disc; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; margin-bottom: 2rem; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.donor-list { list-style: none; padding: 0; }
.donor-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.donor-list p { margin: .2rem 0 0; color: var(--muted); font-style: italic; }
.avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; display: grid; place-items: center; }

/* Forms */
.form fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.form legend { font-weight: 800; margin-bottom: .6rem; font-family: var(--font-head); font-size: 1.1rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .3rem; }
.field small { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input:not([type]), textarea, select {
    width: 100%; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; margin: .5rem 0 .9rem; cursor: pointer; }
.check input { margin-top: .3rem; accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .8rem; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: block; text-align: center; padding: .7rem .3rem; border: 2px solid var(--line); border-radius: 12px; font-weight: 800; cursor: pointer; transition: .15s; }
.amount input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.amount input:focus-visible + span { outline: 3px solid var(--sun); }
.other-amount { display: none; }
.other-amount.show { display: block; }
.secure { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; text-align: center; }
.attendee { display: flex; gap: .4rem; margin-bottom: .5rem; }
.attendee input { flex: 1; }
.attendee input.course { flex: 0 0 110px; }
.attendee .remove { border: 0; background: var(--cream); border-radius: 10px; width: 40px; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.attendee:only-child .remove { visibility: hidden; }
.total { font-size: 1.1rem; margin: 1rem 0; padding: .9rem 1rem; background: var(--cream); border-radius: 12px; display: flex; justify-content: space-between; }
.total strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--green); }

/* Alerts */
.flashes { padding-top: 1rem; }
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: #e3f4ea; color: #155c34; }
.alert-error { background: #fdecea; color: #8a1c1c; }
.alert-info { background: #e8f2f9; color: #1d4f6e; }
.alert-warn { background: #fff4d6; color: #7a5300; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.badge-ok { background: #e3f4ea; color: #155c34; }
.badge-warn { background: #fff4d6; color: #7a5300; }
.badge-bad { background: #fdecea; color: #8a1c1c; }
.badge-muted { background: #eee; color: #555; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; background: var(--cream); border-radius: var(--radius); }

/* App band */
.app-band { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.app-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(251, 220, 8, .18); }
.app-band .container { position: relative; z-index: 1; }
.app-band h2, .app-band .lead { color: #fff; }
.app-band .lead { opacity: .9; }
.app-screens { display: grid; place-items: center; width: 100%; max-width: 380px; margin: 0 auto; padding: 1.5rem 0 2rem; }
.app-screens .screen { grid-area: 1 / 1; height: auto; border-radius: 26px; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .22)); }
.app-screens .screen-front { width: 56%; max-width: 215px; z-index: 2; transform: translateX(-16%); }
.app-screens .screen-back { width: 50%; max-width: 190px; z-index: 1; transform: translateX(34%) translateY(-4%) rotate(9deg); filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .18)) brightness(.96); }
.app-screens.single .screen-front { transform: none; width: 60%; max-width: 230px; }
@media (max-width: 860px) { .app-screens { max-width: 320px; } }

.store-badges { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; background: #111; color: #fff; text-decoration: none; padding: .55rem 1.1rem .55rem .9rem; border-radius: 12px; border: 1px solid #333; transition: transform .12s; }
.store-badge:hover { color: #fff; transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.store-badge small { font-weight: 600; font-size: .7rem; opacity: .8; }

/* Tickets */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.ticket { display: flex; gap: 1rem; align-items: center; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--ink); }
.ticket img { width: 120px; height: 120px; }
.ticket strong { display: block; font-size: 1.1rem; }
.ticket span { display: block; color: var(--muted); }
.ticket code { font-size: .85rem; color: var(--muted); }
.ticket-full { background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; max-width: 460px; margin: 0 auto 1.5rem; }
.ticket-full.invalid { filter: grayscale(1); opacity: .8; }
.ticket-head { background: var(--green); color: #fff; padding: 1.6rem; }
.ticket-head h1 { color: #fff; margin: .3rem 0; }
.ticket-head p { margin: 0; opacity: .9; }
.ticket-body { padding: 1.6rem; text-align: center; border-top: 3px dashed var(--line); }
.ticket-body img { margin: 0 auto 1rem; width: 240px; height: 240px; }
.ticket-body .attendee { font-size: 1.25rem; display: block; }
.staff-box { max-width: 460px; margin: 0 auto; }
.checkin-result { font-weight: 800; text-align: center; margin-top: 1rem; }

/* Footer */
.tricolor { height: 6px; background: linear-gradient(90deg, var(--red) 0 33.33%, var(--green) 33.33% 66.66%, var(--yellow) 66.66% 100%); }
.site-footer { background: var(--cream); color: var(--muted); padding: 3.5rem 0 1.5rem; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.site-footer h3 { color: var(--ink); font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
    .site-header, .site-footer, .staff-box, .nav-toggle { display: none !important; }
    body { background: #fff; }
}

/* Contacte */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.contact-layout { align-items: start; }
.contact-info a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-info a:hover { color: var(--green); }
.contact-app { background: var(--green-soft); box-shadow: none; }

/* Missatge enviat */
.sent-section { position: relative; overflow: hidden; min-height: 62vh; display: grid; place-items: center; background: var(--seeds), linear-gradient(160deg, var(--green-soft), var(--yellow-soft)); }
.sent-box { position: relative; z-index: 2; }
.sent-emoji { font-size: clamp(6rem, 18vw, 9.5rem); line-height: 1; margin-bottom: 1rem; display: inline-block; animation: sent-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; transform-origin: 50% 80%; }
.sent-box h1 { animation: sent-up .6s .15s ease-out both; }
.sent-box .lead { margin-left: auto; margin-right: auto; font-size: 1.3rem; animation: sent-up .6s .25s ease-out both; }
.sent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; animation: sent-up .6s .35s ease-out both; }
.confetti-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
@keyframes sent-pop { 0% { transform: scale(0) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.15) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes sent-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sent-emoji, .sent-box h1, .sent-box .lead, .sent-actions { animation: none; } }
