@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --gold: #dfc36b;
  --cream: #fff1d6;
  --paper: #f3e6ce;
  --ink: #28171b;
  --wine: #642e3a;
  --night: #1d1114;
  --edge: #57403a;
  --mast: 4.75rem;
  color: var(--cream);
  background: var(--night);
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-synthesis: none;
}
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html:has(dialog:modal) { overflow: hidden; }
h1,h2,h3,h4,p,figure { margin: 0; }
h1,h2,h3,h4 { font-weight: 480; }
a { color: inherit; text-underline-offset: .24em; }
button,input,textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
svg.icon { width: 1.14rem; height: 1.14rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; }
.skip { position: fixed; z-index: 8; top: .5rem; left: .5rem; transform: translateY(-180%); color: var(--ink); background: var(--paper); padding: .7rem; }
.skip:focus { transform: none; }
.masthead { position: relative; z-index: 3; min-height: var(--mast); display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .54rem clamp(1.2rem,4vw,3.8rem); background: #211417; border-bottom: 1px solid #80634091; }
.identity, .mast-actions { display: flex; align-items: center; gap: clamp(.65rem,1.65vw,1.65rem); }
.identity { gap: .75rem; }
.identity span { width: 1px; height: 1.75rem; background: #ad915578; }
.isotipo { width: 2.6rem; height: 2.6rem; }
.campaign-mark { width: 4.65rem; height: auto; }
.mast-actions a { display: inline-flex; align-items: center; font-size: .94rem; min-height: 44px; }
.guide-link { color: #ead5b8; }
.nav-action { gap: .45rem; color: var(--gold); text-decoration: none; border: 1px solid #ad9056; border-radius: 50px; padding: .4rem 1.1rem; }
.nav-action[aria-current] { background: #432328; }
.nav-action:hover, .guide-link:hover { color: #ffecb2; }
.primary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .58rem; background: var(--gold); color: #29171b; border: 1px solid var(--gold); border-radius: 99px; font-weight: 620; line-height: 1.18; text-decoration: none; padding: .76rem 1.3rem; }
.primary:hover { background: #f3d986; }
.experience { min-height: calc(100svh - var(--mast)); }
.entry { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; }
.entry-art,.entry-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.entry-art { z-index: -2; }
.entry-art img { object-fit: cover; object-position: 51% 54%; }
.entry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 49% 43%,#2113197d 0,#211315ae 52%,#1d1114f5 100%),linear-gradient(0deg,#1d1114 0,transparent 34%); }
.entry-frame { position: absolute; z-index: -1; pointer-events: none; inset: clamp(.65rem,1.3vw,1.15rem); border: 1px solid #d4ae636d; border-radius: 47% 47% .25rem .25rem / 17% 17% .25rem .25rem; }
.entry-frame::before { content: ""; position: absolute; inset: .35rem; border: 1px solid #d4ae633c; border-radius: inherit; }
.entry-content { position: relative; text-align: center; padding: clamp(5.6rem,9vw,8rem) 1rem clamp(7rem,11vw,12rem); }
.entry-content::before { content: "✧"; display: block; color: var(--gold); font-size: 2.45rem; line-height: 1; margin-bottom: 1.25rem; }
.entry-kicker { color: #ead299; font-size: .74rem; font-weight: 630; text-transform: uppercase; letter-spacing: .16em; }
.entry h1 { max-width: 92vw; margin: .68rem auto .95rem; font-size: clamp(3.75rem,9.45vw,9.4rem); font-weight: 430; letter-spacing: -.078em; line-height: .97; text-wrap: balance; text-shadow: 0 .15rem 1.2rem #1b0b0c90; }
.entry h1 em { color: var(--gold); font-weight: 420; }
.entry-lead { font-size: clamp(1.15rem,2.25vw,1.8rem); letter-spacing: -.023em; line-height: 1.26; }
.entry-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .68rem; margin-top: 1.55rem; }
.entry-actions .primary { padding-inline: 1.5rem; min-height: 54px; box-shadow: 0 .4rem 2.5rem #160a0d9c; }
.entry-actions .entry-participate { background: #28161ce8; color: var(--gold); }
.entry-actions .entry-participate:hover { background: #46262e; }
.entry-hint { max-width: 36ch; margin: 1rem auto 0; color: #f0ddcc; font-size: .97rem; line-height: 1.4; }
.entry-foot { display: flex; justify-content: space-between; align-items: end; gap: .75rem 1rem; position: absolute; inset: auto clamp(1.8rem,4vw,4.1rem) clamp(1.65rem,3.2vw,3rem); font-size: .86rem; color: #e1cda6; }
.entry-foot span:empty { display: none; }
.entry-foot a { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; text-align: right; }
.entry-foot small { font-size: inherit; opacity: .95; }
#confesar.writing {
  min-height: calc(100svh - var(--mast));
  scroll-margin-top: var(--mast);
  background: radial-gradient(circle at 40% 64%,#5b2e31a3,#251519f5 74%), url("assets/escena.webp") center/cover #251519;
  padding-block: clamp(2.5rem,6vw,6rem);
  color: var(--paper);
}
body #confesar.writing .participation-layout { margin: auto; max-width: 74rem; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(1.75rem,6.1vw,6rem); }
#confesar.writing .participation-intro :is(.participation-kicker, h2 em, [aria-current]) { color: var(--gold); }
#confesar.writing .participation-intro h2 { color: var(--cream); }
.return-to-room { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); }
#confesar.writing .participation-intro :is(#participation-copy,.participation-steps) { color: #ebd8c6; }
#confesar.writing .participation-steps [aria-current] i { background: var(--gold); color: #2b171d; }
#confesar.writing .participation-panel {
  color: #30201d;
  background: radial-gradient(at 12% 8%,#fff7e6,#f5e6ca);
  border: 1px solid #caac74;
  border-radius: 2px 3px 4px 2px;
  box-shadow: .25rem .3rem 0 #b4a17e, .5rem .6rem 0 #534036, 0 1.7rem 4rem #1b0c0c8f;
}
#confesar.writing .participation-primary { background-color: #5a2a35; }
#confesar.writing .participation-seal { background: #893c48; border: 1px solid #ac6166; color: #ffe6ac; font-size: 1.65rem; box-shadow: 0 2px 2px #45202068; }
.writing:not([hidden]) .participation-layout { animation: writing-arrival .38s ease-out; }
@keyframes writing-arrival { from { opacity: .55; transform: translateY(.65rem); } to { opacity: 1; transform: none; } }
.circle-close { display: grid; place-items: center; height: 44px; width: 44px; border: 1px solid #9f8063; border-radius: 50%; background: transparent; color: #61313b; }
.circle-close:hover { background: #ead5af; }
.guide,.legal-dialog { width: min(51rem, calc(100% - 1.4rem)); max-height: calc(100dvh - 1.5rem); overscroll-behavior: contain; margin: auto; padding: 0; border: 1px solid #ad8858; color: var(--ink); background: #f9eed8; box-shadow: 0 2rem 7rem #120609b3; }
.guide::backdrop,.legal-dialog::backdrop { background: #1e0d15d6; backdrop-filter: blur(3px); }
.guide-top { padding: .85rem clamp(1rem,4vw,2.25rem) .12rem; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid #cab897; background: #f9eed8; }
.guide-titlebar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.guide-top h2 { font-size: clamp(1.9rem, 4.7vw, 3.05rem); line-height: 1; letter-spacing: -.047em; }
.guide-top em { color: var(--wine); }
.guide-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.7rem,3vw,1.5rem); }
.guide-nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; margin-bottom: -.13rem; color: #6a3943; font-size: .9rem; }
.guide-nav a[aria-current] { border-color: #6a3943; color: #482129; font-weight: 630; text-decoration: none; }
.guide-body { padding: clamp(1rem,4vw,2.25rem); }
.guide-body section + section { margin-top: 1.6rem; padding-top: 1.65rem; border-top: 1px solid #cab998; }
.guide-body h3,.legal-dialog h2 { font-size: clamp(1.58rem,3.5vw,2.15rem); line-height: 1.12; letter-spacing: -.046em; margin-bottom: .55rem; }
.guide :is(p,li),.legal-dialog p { line-height: 1.5; }
#prize-status { margin-bottom: .95rem; color: #664c46; }
.monthly-title { margin: 1.35rem 0 .6rem; font-size: 1.25rem; letter-spacing: -.03em; }
.prize-row { display: flex; gap: .8rem; align-items: center; padding: .78rem 0; border-top: 1px solid #cbb99b; }
.prize-row time { flex: 0 0 6.2rem; font-size: .87rem; }
.prize-row h4 { font-weight: 610; }
.prize-row p { font-size: .87rem; }
.prize-row img { width: 3rem; height: 3rem; object-fit: cover; }
.trip { overflow: hidden; border: 1px solid #af8867; border-radius: .3rem; color: var(--cream); background: #3f2328; }
.trip img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #302627; }
.trip figcaption { padding: clamp(.9rem,3vw,1.45rem); }
.trip h4 { line-height: 1.1; font-size: clamp(1.42rem,3.3vw,2.3rem); letter-spacing: -.035em; margin-bottom: .25rem; }
.trip p { font-size: .95rem; }
.trip .trip-date { color: var(--gold); font-size: .8rem; line-height: 1.4; margin-bottom: .35rem; }
#como .primary { margin-top: 1rem; }
.faq details { border-bottom: 1px solid #cbb99b; }
.faq summary { cursor: pointer; padding: .9rem 0; }
.faq details p { padding-bottom: .95rem; color: #604840; }
#legal-nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; border-top: 1px solid #cab998; margin-top: 1.5rem; padding-top: .65rem; }
#legal-nav :is(a,button) { display: inline-flex; min-height: 44px; padding: 0; align-items: center; border: 0; background: none; color: #5f2d39; text-decoration: underline; cursor: pointer; font-size: .9rem; text-underline-offset: .23em; }
.legal-dialog { max-width: 28rem; padding: clamp(1.25rem,5vw,2rem); }
.legal-dialog p { margin-bottom: 1rem; }
:is(.guide,.legal-dialog) :focus-visible { outline-color: #843d42; }
.noscript { position: fixed; z-index: 9; bottom: 1rem; inset-inline: 1rem; background: var(--paper); color: var(--ink); padding: .85rem; }

.receipt-scene { position: fixed; z-index: 6; inset: 0; display: grid; place-items: center; background: #211317eb; pointer-events: none; animation: dispatch-overlay 2.55s both; }
.receipt-table { position: relative; width: min(86vw,26rem); aspect-ratio: 1.48; background: radial-gradient(ellipse at 50% 62%,#ed965c4f,transparent 66%); }
.receipt-slot { position: absolute; z-index: 2; top: 19%; left: 18%; right: 18%; height: 1.4rem; border: 5px ridge #a8653e; border-radius: .24rem; background: #170b0a; box-shadow: 0 0 2.2rem #ee966880; }
.receipt-envelope { position: absolute; z-index: 1; top: 49%; left: 27%; width: 46%; height: 39%; background: #f4e3be; border-radius: .16rem; box-shadow: 0 .6rem 1.2rem #15090aa3; animation: dispatch-envelope 2.55s both; }
.receipt-paper { position: absolute; inset: 4% 9% 19%; border: 1px solid #ceaf72; background: repeating-linear-gradient(#f8eccf 0 .7rem,#bf9d6457 .7rem .76rem,#f8eccf .76rem 1rem); animation: dispatch-paper 2.55s both; }
.receipt-front { position: absolute; inset: 0; background: linear-gradient(27deg,#e0c392 49%,transparent 50%),linear-gradient(-27deg,#e8d0a5 49%,transparent 50%); }
.receipt-flap { position: absolute; inset: 0 0 22%; background: #e1c28d; clip-path: polygon(0 0,100% 0,50% 90%); transform-origin: 50% 0; animation: dispatch-flap 2.55s both; }
.receipt-wax { position: absolute; top: 50%; left: calc(50% - .75rem); width: 1.5rem; height: 1.5rem; border-radius: 46%; background: #893c48; border: 2px ridge #aa5d6b; animation: dispatch-wax 2.55s both; }
.receipt-flash { position: absolute; z-index: 3; width: 70%; height: .11rem; top: 23%; left: 15%; background: #ffdf92; box-shadow: 0 0 1.4rem .35rem #faba57a0; animation: dispatch-flash 2.55s both; }
@keyframes dispatch-overlay { 0%,100% { opacity: 0; } 12%,77% { opacity: 1; } }
@keyframes dispatch-envelope { 0% { transform: translateY(18%) rotate(-7deg); } 12%,56% { transform: translateY(0); opacity: 1; } 69% { transform: translateY(-34%) scale(.96); opacity: 1; } 84%,100% { transform: translateY(-99%) scale(.73,.17); opacity: 0; } }
@keyframes dispatch-paper { 0%,13% { transform: translateY(-51%) rotate(-4deg); } 31%,100% { transform: none; } }
@keyframes dispatch-flap { 0%,26% { transform: rotateX(180deg); } 42%,100% { transform: none; } }
@keyframes dispatch-wax { 0%,42% { opacity: 0; transform: scale(2.3); } 54%,100% { opacity: 1; transform: scale(1); } }
@keyframes dispatch-flash { 0%,71%,91%,100% { opacity: 0; transform: scaleX(.4); } 81% { opacity: .9; transform: scaleX(1); } }

@media (max-width: 660px) {
  :root { --mast: 4rem; }
  .masthead { padding-inline: .75rem; }
  .identity, .mast-actions { gap: .58rem; }
  .isotipo { width: 2.08rem; height: 2.08rem; }
  .identity span { height: 1.35rem; }
  .campaign-mark { width: 3.55rem; }
  .mast-actions a { font-size: .84rem; }
  .nav-action { padding: .36rem .64rem; }
  .nav-action .icon { width: .9rem; height: .9rem; }
  .entry h1 { font-size: clamp(3.38rem,13.5vw,5.8rem); max-width: 8.9ch; letter-spacing: -.066em; }
  .entry h1 em { display: block; }
  .entry-kicker { font-size: .66rem; letter-spacing: .12em; }
  .entry-content { padding: 3.7rem .5rem 7.4rem; }
  .entry-content::before { margin-bottom: .85rem; }
  .entry-foot { inset: auto 1.45rem 1.55rem; flex-direction: column; align-items: center; text-align: center; font-size: .78rem; }
  .entry-foot a { margin-left: 0; justify-content: center; text-align: center; }
  body #confesar.writing .participation-layout { grid-template-columns: minmax(0,1fr); }
  #confesar.writing { background-image: radial-gradient(ellipse at 50% 31%,#532a2e,#29161c 71%); }
  #confesar.writing .participation-intro h2 { margin-block: .75rem; }
  #confesar.writing .participation-steps { margin-top: 1rem; }
  body #confesar.writing input { font-size: 1rem; }
}
@media (max-width: 500px) {
  .entry-actions { flex-direction: column; align-items: center; }
  .entry-actions .primary { width: min(100%,16.25rem); }
}
@media (max-width: 400px) {
  .prize-row { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .prize-row time { flex: none; }
}
@media (max-width: 360px) {
  .masthead { padding-inline: .55rem; }
  .mast-actions { gap: .42rem; }
  .mast-actions a { font-size: .8rem; }
  .entry h1 { font-size: 3rem; }
}
/* Móvil en horizontal: poca altura, se compacta la portada y la guía. */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --mast: 3.5rem; }
  .masthead { padding-block: .3rem; }
  .isotipo { width: 2rem; height: 2rem; }
  .campaign-mark { width: 3.4rem; }
  .entry-content { padding: 1.4rem 1rem 4.2rem; }
  .entry-content::before { display: none; }
  .entry h1 { font-size: min(9.45vw, 17svh); max-width: none; margin-block: .35rem .5rem; }
  .entry h1 em { display: inline; }
  .entry-actions { flex-direction: row; margin-top: .9rem; }
  .entry-actions .primary { width: auto; min-height: 48px; }
  .entry-hint { margin-top: .6rem; font-size: .88rem; }
  .entry-foot { inset: auto 1.5rem .5rem; flex-direction: row; }
  .trip img { max-height: 45svh; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

