:root {
    --wine-950: #300811;
    --wine-900: #4a0b19;
    --wine-800: #641024;
    --wine-700: #7f1830;
    --wine-600: #9a2741;
    --gold-700: #a66b18;
    --gold-600: #bf8426;
    --gold-500: #d9a43c;
    --gold-300: #f0cf7d;
    --ivory: #fbf7ed;
    --cream: #f4ebd8;
    --paper: #fffdf8;
    --ink: #2c2522;
    --muted: #776d66;
    --line: #ded5c7;
    --green: #2f7458;
    --shadow-soft: 0 18px 60px rgba(48, 8, 17, 0.12);
    --shadow-card: 0 24px 80px rgba(36, 18, 16, 0.16);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 30px;
    --container: min(1180px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: var(--container); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.honeypot { position: absolute !important; left: -9999px !important; }

.hero {
    min-height: 780px;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 16% 14%, rgba(217, 164, 60, 0.18), transparent 25%),
        linear-gradient(125deg, var(--wine-950) 0%, var(--wine-900) 48%, #78152b 100%);
    position: relative;
}
.hero::before {
    content: "50";
    position: absolute;
    left: -4vw;
    bottom: -24vh;
    color: rgba(255,255,255,.022);
    font: 800 min(56vw, 800px)/.8 Georgia, serif;
    letter-spacing: -.12em;
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 7px;
    background: linear-gradient(90deg, var(--gold-700), #f7df91, var(--gold-600));
}
.site-nav {
    position: relative;
    z-index: 5;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.13);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img {
    width: 72px; height: 58px; object-fit: contain;
    background: white; border-radius: 12px; padding: 4px;
}
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font: 700 19px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .015em; }
.brand small { margin-top: 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .68; }
.nav-cta {
    padding: 12px 20px;
    border: 1px solid rgba(240,207,125,.65);
    border-radius: 999px;
    color: #ffe7a2;
    font-weight: 700;
    font-size: 14px;
    transition: .2s ease;
}
.nav-cta:hover { color: var(--wine-950); background: var(--gold-300); transform: translateY(-1px); }
.hero-content {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px;
    align-items: center; min-height: 660px; padding: 55px 0 75px;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gold-300); font-size: 12px; font-weight: 800;
    letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow > span { width: 26px; height: 1px; background: currentColor; }
.hero h1, .section-heading h2, .registration-intro h2, .thanks-card h1,
.login-visual h1, .login-card h2, .admin-title-row h1 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.035em;
}
.hero h1 { margin: 22px 0 18px; max-width: 600px; font-size: clamp(58px, 6.5vw, 92px); font-weight: 500; line-height: .96; }
.hero-lead { max-width: 570px; margin: 0; color: rgba(255,255,255,.79); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 50px; padding: 13px 24px; border: 0; border-radius: 10px;
    font-weight: 800; font-size: 14px; cursor: pointer; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-gold { color: var(--wine-950); background: linear-gradient(135deg, #f5d379, #c88c27); box-shadow: 0 12px 30px rgba(196,137,38,.24); }
.button-gold:hover { box-shadow: 0 15px 38px rgba(196,137,38,.38); }
.button-wine { color: #fff; background: var(--wine-800); box-shadow: 0 9px 24px rgba(100,16,36,.2); }
.button-wine:hover { background: var(--wine-700); }
.button-secondary { color: var(--wine-800); background: #f7f1e7; border: 1px solid var(--line); }
.button-small { min-height: 44px; padding: 10px 20px; color: #fff; background: var(--wine-800); }
.text-link { color: rgba(255,255,255,.88); font-size: 14px; font-weight: 700; }
.text-link span { display: inline-block; margin-left: 7px; color: var(--gold-300); transition: transform .2s; }
.text-link:hover span { transform: translateY(4px); }
.hero-facts { display: flex; align-items: center; gap: 0; margin-top: 48px; }
.hero-facts div { display: flex; align-items: baseline; gap: 8px; padding: 0 25px; border-right: 1px solid rgba(255,255,255,.16); }
.hero-facts div:first-child { padding-left: 0; }
.hero-facts div:last-child { border-right: 0; }
.hero-facts strong { color: var(--gold-300); font: 500 26px/1 Georgia, serif; }
.hero-facts span { color: rgba(255,255,255,.62); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero-photo {
    position: relative;
    width: 100%; height: 580px;
    margin: 0;
}
.hero-photo-frame {
    position: relative;
    width: 100%; height: 100%;
    overflow: hidden;
    border-radius: 300px 300px 30px 30px;
    box-shadow: 0 30px 70px rgba(22,4,9,.4);
}
.hero-photo-frame::before {
    content: ""; position: absolute; inset: 14px; z-index: -1;
    border: 1px solid rgba(255,226,143,.7); border-radius: inherit;
}
.hero-photo-frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(48,8,17,.1), transparent 30%);
    pointer-events: none;
}
.hero-photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}
.hero-photo::after {
    content: ""; position: absolute; left: -22px; top: 36%;
    width: 44px; height: 44px; border: 1px solid var(--gold-300); border-radius: 50%;
    box-shadow: 0 0 0 9px rgba(240,207,125,.08);
}
.photo-badge {
    position: absolute; right: -28px; bottom: 34px;
    display: flex; flex-direction: column; width: 320px;
    padding: 15px 20px; color: var(--wine-950); background: var(--paper);
    border-left: 5px solid var(--gold-500); border-radius: 5px 12px 12px 5px;
    box-shadow: var(--shadow-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
}
.photo-badge strong { margin-top: 4px; font: 600 14px/1.35 Georgia, serif; text-transform: none; letter-spacing: 0; }
.photo-badge small { margin-top: 7px; color: var(--gold-700); font-size: 8px; font-weight: 900; letter-spacing: .08em; }

.events-section { padding: 105px 0 115px; background: var(--ivory); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: end; margin-bottom: 50px; }
.eyebrow-dark { color: var(--wine-700); }
.section-heading h2 { max-width: 700px; margin: 16px 0 0; color: var(--wine-950); font-size: clamp(38px, 4vw, 58px); font-weight: 500; line-height: 1.08; }
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.event-strip { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-strip article { min-height: 220px; padding: 28px 20px; border-right: 1px solid var(--line); transition: .25s ease; }
.event-strip article:last-child { border-right: 0; }
.event-strip article:hover { background: var(--paper); transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.event-date { display: flex; align-items: baseline; gap: 8px; margin-bottom: 26px; color: var(--gold-700); }
.event-date strong { font: 600 30px/1 Georgia, serif; }
.event-date span { font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.event-strip ul { margin: 0; padding: 0; list-style: none; }
.event-strip li { color: var(--wine-900); font: 600 17px/1.25 Georgia, serif; }
.event-strip li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.event-strip li small { display: block; margin-top: 6px; color: var(--gold-700); font: 800 8px/1.2 "Segoe UI", sans-serif; letter-spacing: .1em; text-transform: uppercase; }

.registration-section {
    position: relative; padding: 105px 0 120px; overflow: hidden;
    color: white;
    background:
        linear-gradient(rgba(48,8,17,.96), rgba(74,11,25,.96)),
        url("../images/modelos-camiseta.jpg") center/cover fixed;
}
.registration-section::before {
    content: "25"; position: absolute; left: -80px; bottom: -120px;
    color: rgba(255,255,255,.025); font: 700 450px/.8 Georgia, serif;
}
.registration-layout { position: relative; display: grid; grid-template-columns: .74fr 1.26fr; gap: 80px; align-items: start; }
.registration-intro { position: sticky; top: 40px; padding-top: 48px; }
.eyebrow-gold { color: var(--gold-300); }
.registration-intro h2 { margin: 20px 0 24px; font-size: clamp(38px, 4.5vw, 58px); font-weight: 500; line-height: 1.08; }
.registration-intro > p { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.75; }
.registration-intro blockquote { margin: 45px 0; padding: 0 0 0 22px; color: var(--gold-300); border-left: 2px solid var(--gold-500); font: italic 21px/1.55 Georgia, serif; }
.privacy-note { display: flex; gap: 13px; padding: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: 13px; }
.privacy-note > span { display: grid; flex: 0 0 28px; height: 28px; place-items: center; color: var(--wine-950); background: var(--gold-300); border-radius: 50%; font-weight: 900; }
.privacy-note p { margin: 0; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.6; }
.privacy-note strong { display: block; color: white; font-size: 13px; }
.form-card { color: var(--ink); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.form-card-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 38px 44px 30px; border-bottom: 1px solid #e9e1d4; }
.form-card-header span, .admin-kicker { color: var(--gold-700); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.form-card-header h2 { margin: 5px 0 0; color: var(--wine-950); font: 600 28px/1.2 Georgia, serif; }
.form-card-header > p { color: var(--muted); font-size: 11px; }
.form-card-header b, .field > span b, .consent-field b { color: var(--wine-600); }
.registration-form { padding: 34px 44px 44px; }
.registration-form fieldset, .edit-events { min-width: 0; margin: 0 0 36px; padding: 0 0 35px; border: 0; border-bottom: 1px solid #e9e1d4; }
.registration-form legend, .edit-events legend { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 22px; color: var(--wine-900); font: 700 17px/1.2 Georgia, serif; }
.registration-form legend span { display: grid; width: 30px; height: 30px; place-items: center; color: white; background: var(--wine-800); border-radius: 50%; font: 800 10px/1 "Segoe UI", sans-serif; }
.form-grid { display: grid; gap: 19px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { color: #443a35; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea, .records-toolbar input, .records-toolbar select {
    width: 100%; min-height: 48px; padding: 11px 13px;
    color: var(--ink); background: #fff; border: 1px solid #d9d0c3; border-radius: 9px;
    outline: none; transition: border .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 95px; }
.field input::placeholder, .field textarea::placeholder, .records-toolbar input::placeholder { color: #aaa199; }
.field input:focus, .field select:focus, .field textarea:focus, .records-toolbar input:focus, .records-toolbar select:focus {
    border-color: var(--gold-600); box-shadow: 0 0 0 3px rgba(191,132,38,.14); background: #fffefb;
}
.field small, .form-hint, .fieldset-help { margin: 0; color: #938982; font-size: 10px; line-height: 1.5; }
.form-hint { margin-top: 11px; }
.fieldset-help { margin: -12px 0 16px; font-size: 11px; }
.field-error { padding: 9px 12px; color: #8f1830; background: #fcecef; border-radius: 8px; font-size: 12px; }
.photo-upload {
    position: relative; display: flex; align-items: center; gap: 15px; min-height: 92px; padding: 17px 18px;
    color: #5d514b; background: linear-gradient(135deg, #fffdf8, #faf2e3); border: 1px dashed #cfae6d;
    border-radius: 13px; cursor: pointer; transition: border .18s, box-shadow .18s, transform .18s, background .18s;
}
.photo-upload:hover { border-color: var(--gold-700); box-shadow: 0 9px 25px rgba(99,59,20,.09); transform: translateY(-1px); }
.photo-upload:has(input:focus-visible) { outline: 3px solid rgba(191,132,38,.28); outline-offset: 3px; }
.photo-upload.has-file { background: #f0f8f3; border-color: #78a58c; }
.photo-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-upload-icon {
    display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; color: white;
    background: linear-gradient(135deg, var(--wine-800), var(--wine-600)); border-radius: 12px; font-size: 22px; box-shadow: 0 8px 20px rgba(100,16,36,.18);
}
.photo-upload-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.photo-upload-copy strong { color: var(--wine-900); font-size: 13px; }
.photo-upload-copy small { overflow: hidden; color: #897e76; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.photo-upload-action { padding: 7px 10px; color: var(--wine-700); background: white; border: 1px solid #e2d4c0; border-radius: 7px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.photo-preview { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; background: #f5faf7; border: 1px solid #cce1d3; border-radius: 12px; }
.photo-preview img { width: 88px; height: 68px; object-fit: cover; border-radius: 8px; }
.photo-preview div { display: flex; min-width: 0; flex-direction: column; }
.photo-preview strong { color: var(--green); font-size: 12px; }
.photo-preview small { color: #728078; font-size: 10px; line-height: 1.5; }
.photo-consent { margin-top: 17px; margin-bottom: 0; }
.event-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.check-card, .consent-field { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-card { min-height: 48px; padding: 10px 12px; background: #faf6ed; border: 1px solid transparent; border-radius: 9px; color: #5a504b; font-size: 12px; font-weight: 650; }
.check-card:hover { border-color: var(--gold-300); }
.check-card input, .consent-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-mark { display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; color: transparent; background: white; border: 1px solid #cfc5b7; border-radius: 5px; font-size: 12px; font-weight: 900; }
.check-card input:checked + .check-mark, .consent-field input:checked + .check-mark { color: white; background: var(--wine-800); border-color: var(--wine-800); }
.check-card:has(input:focus-visible), .consent-field:has(input:focus-visible) { outline: 3px solid rgba(191,132,38,.3); outline-offset: 2px; }
.extra-fields { align-items: start; margin-top: 20px; }
.consent-field { align-items: flex-start; margin: 3px 0 25px; color: #625853; font-size: 11px; line-height: 1.55; }
.consent-field .check-mark { margin-top: 1px; }
.button-submit { width: 100%; min-height: 56px; justify-content: space-between; padding-inline: 22px; color: white; background: linear-gradient(135deg, var(--wine-800), var(--wine-600)); box-shadow: 0 12px 30px rgba(100,16,36,.22); }
.button-submit span:last-child { font-size: 22px; font-weight: 400; }
.submit-note { margin: 10px 0 0; color: #948a82; text-align: center; font-size: 10px; }
.alert { margin: 0 0 24px; padding: 14px 17px; border-radius: 9px; font-size: 13px; }
.form-card > .alert { margin: 25px 44px 0; }
.alert ul { margin: 7px 0 0; padding-left: 19px; }
.alert-error { color: #7d1629; background: #fcecef; border: 1px solid #f1c9d1; }
.alert-info { color: #355d72; background: #ebf5fa; border: 1px solid #cbe2ec; }
.alert-warning { color: #74500c; background: #fff6d9; border: 1px solid #eed99c; }
.alert-success { color: #235b43; background: #e9f7ef; border: 1px solid #bee1cb; }

.site-footer { padding: 35px 0; color: rgba(255,255,255,.72); background: #24060d; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 58px; height: 48px; object-fit: contain; padding: 3px; background: white; border-radius: 8px; }
.footer-brand p { display: flex; flex-direction: column; margin: 0; font-size: 12px; }
.footer-brand span { opacity: .62; }
.footer-inner > p { margin: 0; font: italic 14px Georgia, serif; }

/* Gracias */
.thanks-page {
    min-height: 100vh; color: white;
    background:
        linear-gradient(120deg, rgba(48,8,17,.98), rgba(100,16,36,.91)),
        url("../images/modelos-camiseta.jpg") center/cover;
}
.thanks-shell { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 45px 20px 25px; }
.thanks-card {
    width: min(580px, 100%); padding: 46px 54px 42px; color: var(--ink); text-align: center;
    background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 30px 90px rgba(20,2,7,.45);
}
.thanks-brand img { width: 130px; height: 82px; margin: 0 auto 20px; object-fit: contain; }
.success-seal { display: grid; width: 72px; height: 72px; margin: 0 auto 22px; place-items: center; color: white; background: var(--wine-800); border: 6px solid #eed592; border-radius: 50%; box-shadow: 0 0 0 6px #f6ead0; }
.success-seal span { font-size: 27px; font-weight: 900; }
.centered { justify-content: center; }
.thanks-card h1 { margin: 12px 0; color: var(--wine-950); font-size: 48px; font-weight: 500; }
.thanks-card > p { max-width: 430px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.folio-box { margin: 28px 0 25px; padding: 18px; background: var(--ivory); border: 1px dashed var(--gold-600); border-radius: 12px; }
.folio-box span, .folio-box small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.folio-box strong { display: block; margin: 3px 0; color: var(--wine-800); font: 700 27px/1.3 Georgia, serif; letter-spacing: .05em; }
.photo-received { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 8px 12px; color: var(--green); background: #edf8f1; border: 1px solid #c7e2d0; border-radius: 99px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.thanks-card .redirect-message { margin-top: 0; font-size: 11px; }
.countdown-track { height: 4px; margin: 12px 0 25px; overflow: hidden; background: #ebe3d7; border-radius: 99px; }
.countdown-track span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--wine-700)); animation: countdown var(--countdown) linear forwards; transform-origin: left; }
@keyframes countdown { to { transform: scaleX(0); } }
.thanks-card .button { min-width: 190px; }
.thanks-footer { margin: 25px 0 0; color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Inicio de sesión */
.admin-login-page { min-height: 100vh; background: var(--ivory); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-visual {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    padding: 50px max(45px, 7vw) 75px; overflow: hidden; color: white;
    background:
        linear-gradient(120deg, rgba(48,8,17,.98), rgba(100,16,36,.68)),
        url("../images/modelos-camiseta.jpg") center/cover;
}
.login-visual::after { content: "50"; position: absolute; left: -40px; bottom: -100px; color: rgba(255,255,255,.045); font: 600 360px/.9 Georgia, serif; }
.brand-light { position: relative; z-index: 2; width: max-content; }
.login-visual > div { position: relative; z-index: 2; max-width: 570px; }
.login-visual h1 { margin: 20px 0; font-size: clamp(48px, 5vw, 74px); font-weight: 500; line-height: .98; }
.login-visual p { max-width: 470px; color: rgba(255,255,255,.72); font-size: 17px; }
.login-panel { display: grid; place-items: center; padding: 45px; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 7px 0 8px; color: var(--wine-950); font-size: 43px; font-weight: 500; }
.login-card > p { margin: 0 0 30px; color: var(--muted); font-size: 14px; }
.login-card .field { margin-bottom: 18px; }
.login-card .button { margin-top: 6px; }
.back-link { display: block; margin-top: 22px; color: var(--wine-700); text-align: center; font-size: 12px; font-weight: 700; }

/* Panel administrativo */
.admin-page { min-height: 100vh; background: #f5f1e9; }
.admin-header { color: white; background: var(--wine-950); border-bottom: 4px solid var(--gold-500); }
.admin-nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-brand img { width: 62px; height: 50px; }
.admin-nav nav { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.admin-nav nav a:hover { color: var(--gold-300); }
.admin-main { padding-top: 50px; padding-bottom: 70px; }
.admin-title-row { display: flex; justify-content: space-between; gap: 25px; align-items: flex-end; margin-bottom: 32px; }
.admin-title-row h1 { margin: 7px 0 4px; color: var(--wine-950); font-size: clamp(36px, 4vw, 52px); font-weight: 500; line-height: 1; }
.admin-title-row p { margin: 0; color: var(--muted); font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 25px; }
.stats-grid article { position: relative; padding: 22px 23px; overflow: hidden; background: var(--paper); border: 1px solid #e7dfd2; border-radius: 14px; box-shadow: 0 8px 24px rgba(45,28,23,.045); }
.stats-grid article::after { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold-500); }
.stats-grid span, .stats-grid small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stats-grid strong { display: block; margin: 3px 0 0; color: var(--wine-900); font: 600 33px/1.3 Georgia, serif; }
.stats-grid small { font-size: 9px; text-transform: none; letter-spacing: 0; }
.records-card { background: var(--paper); border: 1px solid #e4dccf; border-radius: 16px; box-shadow: 0 10px 35px rgba(44,25,20,.06); overflow: hidden; }
.records-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 260px auto auto; gap: 11px; align-items: center; padding: 20px; border-bottom: 1px solid #e8e1d6; }
.records-toolbar input, .records-toolbar select { min-height: 44px; background: #faf8f3; font-size: 12px; }
.clear-filter { color: var(--wine-700); font-size: 11px; font-weight: 800; }
.records-meta { display: flex; justify-content: space-between; gap: 15px; padding: 15px 20px; color: var(--muted); background: #faf8f3; border-bottom: 1px solid #e8e1d6; font-size: 11px; }
.records-meta strong { color: var(--wine-800); }
.table-wrap { width: 100%; overflow-x: auto; }
.records-table { width: 100%; border-collapse: collapse; min-width: 1030px; }
.records-table th { padding: 13px 15px; color: #857a72; background: #fffdf9; border-bottom: 1px solid #e8e1d6; text-align: left; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.records-table td { padding: 15px; border-bottom: 1px solid #eee8df; vertical-align: middle; font-size: 12px; }
.records-table tbody tr:hover { background: #fffcf5; }
.person-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.avatar { display: grid; flex: 0 0 37px; width: 37px; height: 37px; place-items: center; color: white; background: linear-gradient(135deg, var(--wine-800), var(--gold-700)); border-radius: 50%; font-size: 10px; font-weight: 900; }
.avatar-photo { overflow: hidden; border: 2px solid #e6cc8c; background: #f3ead8; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-cell div, .records-table td:nth-child(2), .records-table td:nth-child(3) { display: flex; flex-direction: column; }
.person-cell strong { color: var(--wine-950); }
.person-cell small, .records-table td small, .records-table time { color: #8b817a; font-size: 10px; }
.records-table td:nth-child(2) > strong { color: var(--gold-700); font: 600 17px Georgia, serif; }
.records-table td:nth-child(3) a { color: #5d514b; font-size: 11px; }
.records-table td:nth-child(3) a:hover { color: var(--wine-700); text-decoration: underline; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; min-width: 150px; }
.tag-list span { padding: 4px 7px; color: var(--wine-700); background: #f7e9ec; border-radius: 99px; font-size: 8px; font-weight: 800; }
.row-actions { display: flex; gap: 7px; align-items: center; }
.row-actions a, .row-actions button { padding: 6px 8px; color: var(--wine-700); background: transparent; border: 1px solid #e2d7ca; border-radius: 6px; font-size: 9px; font-weight: 800; cursor: pointer; }
.row-actions button { color: #9a3a3a; }
.row-actions a:hover, .row-actions button:hover { background: #f8f2e9; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 18px; }
.pagination a { color: var(--wine-700); font-size: 11px; font-weight: 800; }
.pagination span { color: var(--muted); font-size: 10px; }
.empty-state { padding: 70px 30px; text-align: center; }
.empty-state > span { display: grid; width: 66px; height: 66px; margin: 0 auto 18px; place-items: center; color: var(--gold-700); background: var(--cream); border-radius: 50%; font: 600 22px Georgia, serif; }
.empty-state h2 { margin: 0; color: var(--wine-900); font: 600 24px Georgia, serif; }
.empty-state p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.narrow-admin { max-width: 940px; }
.admin-photo-card { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; margin-bottom: 22px; padding: 20px; background: var(--paper); border: 1px solid #e4dccf; border-radius: 16px; box-shadow: var(--shadow-soft); }
.admin-photo-card > a { display: block; overflow: hidden; border-radius: 12px; }
.admin-photo-card img { width: 100%; height: 180px; object-fit: cover; transition: transform .2s ease; }
.admin-photo-card > a:hover img { transform: scale(1.025); }
.admin-photo-card h2 { margin: 5px 0; color: var(--wine-950); font: 600 26px/1.2 Georgia, serif; }
.admin-photo-card p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.admin-photo-card p strong { color: var(--wine-700); }
.admin-photo-card > div > div { display: flex; flex-wrap: wrap; gap: 9px; }
.admin-photo-card .button { min-height: 42px; padding: 9px 15px; font-size: 11px; }
.edit-card { padding: 34px; background: var(--paper); border: 1px solid #e4dccf; border-radius: 16px; box-shadow: var(--shadow-soft); }
.edit-card .form-grid { margin-bottom: 30px; }
.edit-events { padding-bottom: 28px; }
.edit-events legend { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.edit-actions { display: flex; justify-content: flex-end; gap: 11px; margin-top: 25px; }

@media (max-width: 1080px) {
    .hero-content { grid-template-columns: .95fr 1.05fr; gap: 38px; }
    .hero-photo { height: 535px; }
    .event-strip { grid-template-columns: repeat(3, 1fr); }
    .event-strip article:nth-child(3) { border-right: 0; }
    .event-strip article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .registration-layout { gap: 45px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    :root { --container: min(100% - 30px, 680px); }
    .hero { min-height: 0; }
    .site-nav { height: 90px; }
    .hero-content { display: flex; flex-direction: column; align-items: stretch; padding: 55px 0 80px; }
    .hero-copy { position: relative; z-index: 2; }
    .hero h1 { max-width: 650px; }
    .hero-photo { height: 560px; width: min(100%, 630px); margin: 0 auto; }
    .photo-badge { right: 18px; width: min(320px, calc(100% - 36px)); }
    .section-heading { grid-template-columns: 1fr; gap: 22px; }
    .event-strip { grid-template-columns: repeat(2, 1fr); }
    .event-strip article { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .event-strip article:nth-child(even) { border-right: 0; }
    .event-strip article:last-child { border-right: 0; border-bottom: 0; }
    .registration-layout { grid-template-columns: 1fr; }
    .registration-intro { position: static; max-width: 650px; padding-top: 0; }
    .registration-intro blockquote { margin: 30px 0; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 480px; }
    .login-panel { min-height: 580px; }
    .records-toolbar { grid-template-columns: 1fr 1fr; }
    .admin-photo-card { grid-template-columns: 210px 1fr; }
}

@media (max-width: 600px) {
    :root { --container: calc(100% - 24px); }
    .brand img { width: 59px; height: 48px; }
    .brand strong { font-size: 16px; }
    .brand small { font-size: 8px; }
    .nav-cta { padding: 9px 12px; font-size: 11px; }
    .hero-content { gap: 45px; padding-top: 42px; }
    .hero h1 { margin-top: 17px; font-size: 53px; }
    .hero-lead { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 17px; }
    .text-link { text-align: center; }
    .hero-facts { justify-content: space-between; margin-top: 38px; }
    .hero-facts div { flex-direction: column; gap: 2px; padding: 0 15px; }
    .hero-facts div:first-child { padding-left: 0; }
    .hero-facts div:last-child { padding-right: 0; }
    .hero-photo { height: 430px; }
    .hero-photo-frame { border-radius: 220px 220px 22px 22px; }
    .hero-photo::after { display: none; }
    .photo-badge { right: 12px; bottom: 16px; width: calc(100% - 24px); padding: 13px 16px; }
    .photo-badge strong { font-size: 13px; }
    .events-section, .registration-section { padding: 78px 0 85px; }
    .section-heading h2, .registration-intro h2 { font-size: 39px; }
    .event-strip { grid-template-columns: 1fr; }
    .event-strip article, .event-strip article:nth-child(3) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .event-strip article:last-child { border-bottom: 0; }
    .form-card { border-radius: 20px; }
    .form-card-header { padding: 28px 23px 22px; }
    .form-card-header > p { display: none; }
    .registration-form { padding: 27px 23px 32px; }
    .form-card > .alert { margin: 20px 23px 0; }
    .two-columns, .event-options { grid-template-columns: 1fr; }
    .registration-form fieldset { margin-bottom: 29px; padding-bottom: 29px; }
    .photo-upload { align-items: flex-start; flex-wrap: wrap; }
    .photo-upload-action { margin-left: 63px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .thanks-card { padding: 35px 22px; border-radius: 22px; }
    .thanks-card h1 { font-size: 40px; }
    .login-visual { min-height: 420px; padding: 35px 25px 55px; }
    .login-visual h1 { font-size: 48px; }
    .login-panel { min-height: 540px; padding: 45px 24px; }
    .admin-nav { min-height: 74px; }
    .admin-nav nav a:first-child { display: none; }
    .admin-title-row { align-items: stretch; flex-direction: column; }
    .admin-title-row .button { width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stats-grid article { padding: 17px; }
    .stats-grid strong { font-size: 27px; }
    .records-toolbar { grid-template-columns: 1fr; }
    .records-toolbar .button { width: 100%; }
    .records-meta { flex-direction: column; gap: 2px; }
    .admin-photo-card { grid-template-columns: 1fr; padding: 16px; }
    .admin-photo-card img { height: 220px; }
    .edit-card { padding: 22px; }
    .edit-actions { flex-direction: column-reverse; }
    .edit-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
