:root {
  --night: #101e19;
  --forest: #102d24;
  --gold: #eac988;
  --marfil: #f4ebdd;
  --cream: #f7f2e9;
  --ink: #172a22;
  --line: #ded4c2;
  --muted: #5f665a;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .65; cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .27em; }
:focus-visible { outline: 3px solid #ad7233; outline-offset: 4px; }
p { line-height: 1.62; }
.frame { width: min(100% - 96px, 1232px); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 8px; left: 8px; transform: translateY(-160%); background: white; color: var(--ink); padding: 12px; }
.skip:focus { transform: none; }
.top { background: #0c1814; color: var(--cream); border-bottom: 1px solid #eac9882a; }
.top-inner { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: grid; place-items: center; position: relative; background: white; width: 139px; height: 55px; flex: none; overflow: hidden; border-radius: 3px; }
.brand img { width: 180px; height: auto; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.top-actions { display: flex; align-items: center; gap: clamp(18px, 4vw, 46px); }
.nav-link { font-size: .91rem; text-decoration: none; }
.nav-link:hover, .footer a:hover { text-decoration: underline; }
.music { color: var(--gold); background: transparent; border: 1px solid #eac98850; border-radius: 100px; padding: 10px 15px; display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.music:hover { background: #eac98818; }
.music [aria-hidden] { font-size: 1rem; }
.hero { color: var(--cream); background: radial-gradient(ellipse at 18% 72%, #20382c 0%, #132820 42%, #0c1915 94%); border-bottom: 3px solid #aa874d; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(26px, 5vw, 82px); min-height: 640px; padding-block: 34px 30px; }
.hero-copy { padding: 28px 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #65502f; margin: 0 0 17px; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.hero .eyebrow { color: var(--gold); }
.small-star { font-size: 1.2em; line-height: 1; }
h1, h2, .footer p { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(3.25rem, 6.5vw, 6.25rem); letter-spacing: -.065em; line-height: .98; }
h1 em { color: var(--gold); font-weight: 400; }
.hero-line { margin: 30px 0 9px; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.56rem); line-height: 1.4; }
.welcome { margin: 0; color: #e4e3d1; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 23px; margin-top: 28px; }
.primary, .outline { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 5px; padding: 11px 17px; min-height: 46px; font-weight: 700; text-decoration: none; }
.primary { background: #eac785; color: #242515; }
.primary:hover:not(:disabled) { background: #ffe0a3; box-shadow: 0 3px 15px #d4a75538; }
.outline { background: transparent; color: var(--forest); border-color: #9f9c88; }
.outline:hover:not(:disabled) { background: #eadfcb; }
.soft-link { color: var(--cream); text-decoration-color: #eac98880; }
.soft-link:hover { color: var(--gold); }
.deadline { display: flex; align-items: baseline; gap: 9px; margin: 16px 0 0; font-size: .875rem; color: #e1d6bd; }
.deadline > span:first-child { width: 7px; height: 7px; border: 1px solid var(--gold); border-radius: 50%; flex: none; }
.preview-badge { display: inline-block; border: 1px solid #eac98845; padding: 4px 9px; margin: 10px 0 0; border-radius: 3px; color: #e4d3ae; font-size: .875rem; }
.tree { margin: 0; width: min(100%, 458px); justify-self: center; }
.tree-stage { position: relative; aspect-ratio: 1122 / 1402; background: #101b0d; overflow: hidden; border-radius: 46% 46% 4px 4px / 26% 26% 4px 4px; border: 1px solid #eac98876; box-shadow: 0 0 0 6px #eac98815, 0 20px 65px #0005; isolation: isolate; }
.tree-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.ornament-layer, .flakes { position: absolute; inset: 0; }
.flakes { pointer-events: none; background-image: radial-gradient(2px 2px at 23px 23px, #fff7d6 35%, transparent 72%), radial-gradient(1.5px 1.5px at 91px 67px, #faedc6 40%, transparent 76%), radial-gradient(2px 2px at 147px 147px, #fcf4da 30%, transparent 70%); background-size: 190px 210px; animation: drift 28s linear infinite; opacity: .38; }
@keyframes drift { to { background-position: 190px 210px; } }
.tree figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 13px; min-height: 36px; margin: 10px 0 0; text-align: center; color: #ede1c6; font-size: .875rem; }
.tree-next { padding: 7px 5px; color: var(--gold); border: none; text-decoration: underline; text-underline-offset: 4px; background: transparent; }
.orb { --tone: #bc873e; --glint: #ffe0a1; --shade: #4e2b13; position: relative; display: inline-grid; width: var(--size, 27px); aspect-ratio: 1; place-items: center; border-radius: 50%; flex: none; color: #fff6db; background: radial-gradient(circle at 31% 24%, #fff9 0%, transparent 22%), radial-gradient(circle at 38% 29%, var(--glint), var(--tone) 38%, var(--shade) 94%); box-shadow: inset 0 0 0 1px #fff5, 0 4px 8px #0005; text-shadow: 0 1px 3px #27180a; line-height: 1; }
.orb::before { position: absolute; bottom: 96%; width: 26%; height: 12%; background: linear-gradient(90deg, #a77d3b, #ffe2a6, #9b7237); border-radius: 2px; content: ''; }
.tree-marker { --size: clamp(22px, 3vw, 33px); position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: inherit; border: 0; background: transparent; border-radius: 50%; }
.tree-marker .orb { transition: scale .18s ease, filter .18s ease; }
button.tree-marker { z-index: 1; }
button.tree-marker .orb { animation: twinkle 5s ease-in-out infinite alternate; }
button.tree-marker:hover .orb, button.tree-marker:focus-visible .orb { scale: 1.22; filter: brightness(1.25); }
.tree-marker.decorative .orb { opacity: .55; scale: .75; }
@keyframes twinkle { 80%, 100% { box-shadow: inset 0 0 0 1px #fff6, 0 0 12px 2px #f8e1a15a; } }
.community { background: var(--cream); padding: 64px 0; scroll-margin-top: 16px; }
.community-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.community h2, dialog h2 { font-size: clamp(2.15rem, 4.2vw, 3.75rem); line-height: 1.06; margin: 0; letter-spacing: -.055em; }
.community-top .eyebrow { margin-bottom: 12px; }
#totals { color: var(--muted); margin: 7px 0 0; }
.search { width: min(100%, 306px); }
label, legend { display: block; margin: 0 0 5px; font-weight: 650; font-size: .92rem; }
input:not([type="checkbox"], [type="radio"]), textarea, select { display: block; width: 100%; padding: 10px 12px; min-height: 45px; color: var(--ink); background: #fffefa; border: 1px solid #aaa693; border-radius: 4px; }
textarea { resize: vertical; }
.wish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wish-card { display: flex; align-items: flex-start; gap: 13px; padding: 20px; min-width: 0; text-align: left; color: var(--ink); background: #fffbf3; border: 1px solid var(--line); border-radius: 4px; transition: border-color .16s ease, translate .16s ease; }
.wish-card:hover { border-color: #9b7c4c; translate: 0 -2px; }
.wish-card strong, .wish-card small { display: block; }
.wish-card small { color: #5b624e; margin-top: 7px; font-size: .875rem; }
.wish-card .excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin-top: 4px; }
.card-copy { min-width: 0; overflow-wrap: anywhere; }
.more-row { margin-top: 20px; }
.more-row:empty { display: none; }
.footer { background: var(--night); color: var(--cream); padding: 29px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer p { margin: 0; font-size: 1.65rem; color: var(--gold); }
.footer small { font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; font-size: .9rem; }
.footer a, .text-button { text-decoration: none; }
.text-button { padding: 0; border: 0; background: none; color: inherit; }
.text-button:hover { text-decoration: underline; }
dialog { width: min(calc(100% - 22px), 530px); max-height: calc(100% - 22px); border: 1px solid var(--line); border-radius: 9px; background: var(--cream); color: var(--ink); padding: 0; }
dialog::backdrop { background: #07110cdc; }
.dialog-body { position: relative; padding: clamp(19px, 5vw, 34px); }
dialog .eyebrow { margin-bottom: 9px; }
dialog h2 { font-size: clamp(1.95rem, 5vw, 2.8rem); padding-right: 28px; margin-bottom: 17px; }
.close { position: absolute; top: 12px; right: 12px; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 50%; background: #fffefa; color: var(--ink); font-size: 1.64rem; line-height: 1; }
.decorate { display: grid; grid-template-columns: minmax(74px, 110px) 1fr; align-items: center; gap: 14px; padding: 12px; background: #eee5d5; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 13px; }
.ornament-sample { display: grid; place-items: center; }
.ornament-sample .orb { --size: clamp(46px, 12vw, 70px); font-size: 1.9rem; }
fieldset { border: none; padding: 0; margin: 0 0 5px; min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 3px; }
.swatch { position: relative; display: grid; place-items: center; padding: 0; margin: 0; width: 37px; height: 37px; border-radius: 50%; }
.swatch .orb { --size: 25px; }
.swatch .orb::before { display: none; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: inset 0 0 0 2px #564128; }
.swatch:has(input:focus-visible) { outline: 3px solid #ad7233; outline-offset: 1px; }
#wish-form > input, #wish-form textarea, #email { margin-bottom: 9px; }
#mail-section { margin-block: 11px 0; }
.optional, #email-note { color: var(--muted); font-weight: 400; }
.check { display: flex; align-items: center; font-weight: 500; gap: 7px; margin: 8px 0; }
.check input { width: 19px; height: 19px; accent-color: var(--forest); }
.form-note, .form-status { margin: 8px 0; font-size: .9rem; }
.form-status { color: #761f32; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; left: -10000px; }
.reading-ornament .orb { --size: 42px; margin-bottom: 15px; }
.reading-body, .reply { white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { background: #e5ebdf; border-left: 3px solid #527660; padding: 12px; margin-bottom: 18px; }
.reply p { margin: 3px 0 0; }
.admin-page { min-height: 100vh; }
.admin-main { padding-block: 44px; }
.admin-main h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
.admin-login { max-width: 420px; }
.admin-login button { margin-top: 12px; }
.admin-metrics { font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 21px; }
#filter { max-width: 350px; }
.admin-list { display: grid; gap: 12px; margin-top: 18px; }
.admin-entry { background: #fffbf3; border: 1px solid var(--line); border-radius: 4px; padding: 16px; overflow-wrap: anywhere; }
.admin-entry details > summary { cursor: pointer; font-weight: 650; }
.admin-entry textarea { margin-bottom: 8px; }
.admin-entry .toolbar { margin: 12px 0 0; }
.danger { color: #761f32; border-color: #a47c81; }
.no-script { width: min(100% - 32px, 700px); margin: 15px auto; }

@media (max-width: 999px) {
  .frame { width: min(100% - 60px, 1232px); }
  .hero-grid { min-height: auto; }
  .wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 38px); }
  .top-inner { min-height: 71px; }
  .top .nav-link[href="#comunidad"] { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 15px; padding-top: 25px; }
  .hero-copy { padding: 14px 0 6px; }
  h1 { font-size: clamp(2.95rem, 10vw, 5.2rem); }
  .hero-line { margin-top: 20px; }
  .hero-actions { margin-top: 20px; }
  .tree { width: min(100%, 400px); }
  .tree-marker { width: 36px; height: 36px; }
  .community { padding-block: 39px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: start; }
}
@media (max-width: 505px) {
  .community-top { align-items: stretch; flex-direction: column; gap: 12px; }
  .search { width: 100%; }
  .wish-grid { grid-template-columns: 1fr; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
