:root {
  --burdeos: #6d1f2c;
  --burdeos-osc: #4b1420;
  --verde: #1d3b2a;
  --verde-osc: #102419;
  --dorado: #d9b159;
  --dorado-claro: #f3d78f;
  --crema: #faf3e3;
  --crema-osc: #efe3ca;
  --tinta: #3a2a1f;
  --rojo: #a3323f;
  --hand: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--crema);
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(163, 50, 63, 0.35), transparent 60%),
    radial-gradient(800px 700px at -10% 25%, rgba(63, 125, 90, 0.22), transparent 55%),
    linear-gradient(170deg, #0d1f16 0%, #1a2f22 42%, #3a1220 100%);
  background-attachment: fixed;
}

body.no-scroll {
  overflow: hidden;
}

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 40px 16px 22px;
  text-align: center;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
}

.hero-eyebrow span {
  color: var(--dorado-claro);
}

.hero-title {
  margin: 0.35em 0 0.3em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  line-height: 1.05;
  background: linear-gradient(180deg, #fbf0cd 10%, var(--dorado) 60%, #b8893c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4));
}

.hero-intro {
  max-width: 35ch;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(247, 239, 224, 0.82);
}

.hero-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(217, 177, 89, 0.9);
}

.hero-hint::before,
.hero-hint::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 177, 89, 0.8));
}

.hero-hint::after {
  transform: scaleX(-1);
}

.calendar {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

.doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 12px);
}

.door {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  perspective: 640px;
  transform: rotate(var(--rot, 0deg));
  -webkit-tap-highlight-color: transparent;
}

.door-3d {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  transform-style: preserve-3d;
}

.door-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, #2b1a12, #0c0806 75%);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.85);
  color: var(--dorado-claro);
  text-align: center;
  overflow: hidden;
}

.door-icon {
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  line-height: 1;
}

.door-mini {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 215, 143, 0.8);
}

.door-reabrir {
  display: none;
  margin-top: 2px;
  padding: 2px 7px;
  border: 1px solid rgba(217, 177, 89, 0.5);
  border-radius: 999px;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 215, 143, 0.9);
}

.door.is-opened .door-reabrir {
  display: inline-block;
}

.door-front {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(217, 177, 89, 0.55);
  background: linear-gradient(158deg, #82283a 0%, #571724 56%, #3d0f19 100%);
  transform-origin: left center;
  transition: transform 0.85s cubic-bezier(0.2, 0.85, 0.25, 1);
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 7px 14px rgba(0, 0, 0, 0.34);
}

.door-front::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 177, 89, 0.32);
  border-radius: 6px;
  pointer-events: none;
}

.door-front::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 28% 8%, rgba(255, 255, 255, 0.16), transparent 46%);
  pointer-events: none;
}

.door-num {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.35rem, 5.6vw, 1.8rem);
  color: var(--dorado-claro);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 0 14px rgba(217, 177, 89, 0.25);
}

.door-knob {
  position: absolute;
  top: 52%;
  right: 12%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dorado-claro);
  box-shadow: 0 0 6px rgba(243, 215, 143, 0.65);
  z-index: 2;
}

.door-lock {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  opacity: 0.72;
  z-index: 2;
}

.door.is-opened .door-front {
  transform: rotateY(-112deg);
}

.door.is-opened .door-inner {
  background: radial-gradient(circle at 50% 35%, #40301f, #171009 78%);
}

.door.is-today .door-front {
  border-color: var(--dorado-claro);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(243, 215, 143, 0.55), 0 0 22px rgba(217, 177, 89, 0.55);
  animation: doorGlow 2.6s ease-in-out infinite;
}

.door:focus-visible {
  outline: none;
}

.door:focus-visible .door-front {
  outline: 3px solid var(--dorado-claro);
  outline-offset: 3px;
}

@media (hover: hover) {
  .door:hover .door-front {
    filter: brightness(1.12);
  }
}

.door.shake .door-3d {
  animation: doorShake 0.5s ease;
}

@keyframes doorGlow {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(243, 215, 143, 0.45), 0 0 14px rgba(217, 177, 89, 0.35); }
  50% { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(243, 215, 143, 0.75), 0 0 26px rgba(217, 177, 89, 0.65); }
}

@keyframes doorShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-3px) rotate(-2deg); }
  40% { transform: translateX(3px) rotate(2deg); }
  60% { transform: translateX(-2px) rotate(-1deg); }
  80% { transform: translateX(2px) rotate(1deg); }
}

.footer {
  padding: 4px 16px 34px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 239, 224, 0.45);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(217, 177, 89, 0.45);
  background: rgba(17, 32, 23, 0.95);
  color: var(--crema);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 4, 5, 0.82);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}

.modal-panel {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 18px 28px;
  border-radius: 20px;
  border: 1px solid rgba(217, 177, 89, 0.4);
  background: var(--crema);
  color: var(--tinta);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
  animation: popIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.modal-panel--gift {
  background: radial-gradient(circle at 50% 0%, #2f5a3f, #16281d 58%, #3c101c 100%);
  border-color: rgba(217, 177, 89, 0.6);
  color: var(--crema);
  overflow-x: hidden;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(58, 42, 31, 0.1);
  color: #5a4632;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(58, 42, 31, 0.18);
}

.modal-close:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 2px;
}

.modal-panel--gift .modal-close {
  background: rgba(247, 239, 224, 0.94);
  color: #3a2a1f;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.surprise-head {
  padding-right: 34px;
  margin-bottom: 18px;
}

.surprise-kicker {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: #8a6b3d;
}

.surprise-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  line-height: 1.15;
  color: var(--burdeos-osc);
}

.surprise-texto {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #4a382c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(243, 215, 143, 0.5);
  border-radius: 999px;
  background: linear-gradient(160deg, #8d2734, #5c1724);
  color: #f7e6b8;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

.asset-fallback {
  display: grid;
  place-items: center;
  min-height: 140px;
  height: 100%;
  padding: 18px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #8a7458;
  background: repeating-linear-gradient(45deg, #efe7d6, #efe7d6 10px, #e9dfcb 10px, #e9dfcb 20px);
}

.nota-wrap {
  display: grid;
  place-items: center;
  padding: 8px 0 4px;
}

.postit {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 28px 22px 32px;
  border-radius: 3px;
  background: linear-gradient(160deg, #fbe98f, #f2d963);
  color: #4a3a1f;
  font-family: var(--hand);
  font-size: 1.18rem;
  line-height: 1.5;
  transform: rotate(-2deg);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.postit::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 76px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 255, 255, 0.55);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.postit-texto {
  margin: 0;
  min-height: 3em;
  white-space: pre-line;
}

.polaroid {
  width: 100%;
  max-width: 320px;
  margin: 4px auto 0;
  padding: 10px 10px 0;
  background: #fffdf6;
  transform: rotate(1.6deg);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26);
}

.polaroid-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: #e9e1d0;
}

.polaroid-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-pie {
  margin: 0;
  padding: 14px 8px 18px;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.06rem;
  line-height: 1.35;
  color: #6b5540;
}

.audio-card {
  padding: 18px 16px;
  border: 1px solid rgba(217, 177, 89, 0.28);
  border-radius: 16px;
  background: linear-gradient(155deg, #1f3d2b, #132a1d);
  color: #f4ead2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.18);
}

.audio-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.audio-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dorado);
  color: #3a2a1f;
  font-size: 1.1rem;
}

.audio-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

.audio-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #f3d78f, #c39a41);
  color: #3a2a1f;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.audio-play:active {
  transform: scale(0.96);
}

.audio-play:focus-visible {
  outline: 3px solid #f7efe0;
  outline-offset: 3px;
}

.audio-time {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #e7d8b6;
  font-variant-numeric: tabular-nums;
}

.audio-seek {
  display: block;
  width: 100%;
  height: 24px;
  margin-top: 14px;
  accent-color: var(--dorado);
  cursor: pointer;
}

.audio-fallback {
  min-height: 0;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px dashed rgba(217, 177, 89, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #e7d8b6;
}

.envelope {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1.55;
  margin: 12px auto 22px;
  perspective: 900px;
}

.envelope-body {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, #f3e2bd, #dcc08c);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.envelope-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 49.6%, #c9a86d 50%, transparent 50.4%),
    linear-gradient(-45deg, transparent 49.6%, #c9a86d 50%, transparent 50.4%);
  opacity: 0.45;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58%;
  z-index: 3;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f7e7c4, #e7cc9a);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.7s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.envelope.is-open .envelope-flap {
  transform: rotateX(-172deg);
}

.envelope-seal {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c0505c, #8d2734);
  color: #f7e6b8;
  font-size: 1.25rem;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  transition: opacity 0.2s ease 0.1s;
}

.envelope.is-open .envelope-seal {
  opacity: 0;
}

.envelope-open-btn {
  display: flex;
  margin: 0 auto;
}

.letter {
  position: relative;
  padding: 28px 22px;
  border-radius: 4px;
  background-color: #fffaf0;
  background-image: repeating-linear-gradient(180deg, transparent, transparent 31px, #e5d9bf 31px, #e5d9bf 32px);
  color: #4a3a2c;
  transform: rotate(-0.8deg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.letter::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 90px;
  height: 22px;
  transform: translateX(-50%) rotate(1deg);
  background: rgba(217, 177, 89, 0.6);
}

.letter.is-visible {
  animation: letterIn 0.6s ease;
}

.letter:focus {
  outline: none;
}

.letter-texto p {
  margin: 0 0 1em;
  font-size: 0.98rem;
  line-height: 2em;
}

.letter-texto p:last-child {
  margin-bottom: 0;
}

.letter-firma {
  margin: 18px 0 0;
  font-family: var(--hand);
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: right;
  color: #5a4632;
}

.letter-firma span {
  font-size: 1.4rem;
  color: var(--burdeos);
}

@keyframes letterIn {
  from { opacity: 0; transform: translateY(16px) rotate(-0.8deg); }
  to { opacity: 1; transform: translateY(0) rotate(-0.8deg); }
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #0c0a08;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.video-frame .asset-fallback {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  background: radial-gradient(circle at 50% 40%, #2a2016, #0c0a08 75%);
  color: #e7d8b6;
}

.song-card {
  padding: 26px 20px;
  border: 1px solid rgba(217, 177, 89, 0.35);
  border-radius: 18px;
  background: linear-gradient(155deg, #24402e, #152a1e);
  color: #f7efe0;
  text-align: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.song-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9b159, #8d2734);
  font-size: 1.6rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.song-titulo {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}

.song-artista {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #d9c9a5;
}

.song-card .btn {
  border-color: rgba(243, 215, 143, 0.8);
  background: linear-gradient(160deg, #f3d78f, #c39a41);
  color: #402a16;
}

.coupon {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 30px;
  border: 2px dashed #b8893c;
  border-radius: 12px;
  background: #fffaf0;
  color: #4a3423;
  transform: rotate(-1.2deg);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.coupon-label {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: #8d2734;
}

.coupon-texto {
  max-width: 75%;
  margin: 8px 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #3a2a1f;
}

.coupon-seal {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 8px;
  border: 2px double #8d2734;
  border-radius: 50%;
  color: #8d2734;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-align: center;
  transform: rotate(-15deg);
  opacity: 0.85;
}

.riddle {
  padding: 26px 20px;
  border: 1px solid rgba(217, 177, 89, 0.45);
  border-radius: 16px;
  background: linear-gradient(160deg, #f3ead7, #e8d9bb);
  color: #4a3423;
  text-align: center;
}

.riddle-q {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.35;
}

.riddle-a {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #b8893c;
  animation: fadeUp 0.4s ease;
}

.riddle-a p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #8d2734;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gift {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(70svh, 520px);
  overflow: hidden;
  padding: 22px 6px;
}

.confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gift-inner {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: auto;
  text-align: center;
}

.gift-emoji {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  animation: bob 3s ease-in-out infinite;
}

.gift-kicker {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(243, 215, 143, 0.9);
}

.gift-title {
  margin: 6px 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  line-height: 1.1;
  color: #f7e6b8;
}

.gift-texto {
  margin: 0 0 26px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(243, 232, 210, 0.88);
}

.gift .btn {
  border-color: rgba(243, 215, 143, 0.8);
  background: linear-gradient(160deg, #f3d78f, #c39a41);
  color: #402a16;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* ---------- Tipos nuevos (ADV-3) ---------- */

.scratch-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scratch-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 26px 20px;
  border: 1px solid rgba(217, 177, 89, 0.45);
  border-radius: 16px;
  background: linear-gradient(160deg, #f3ead7, #e7d8b8);
  overflow: hidden;
}

.scratch-reveal {
  position: relative;
  z-index: 1;
  text-align: center;
  outline: none;
}

.scratch-texto {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--burdeos-osc);
  overflow-wrap: anywhere;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  touch-action: none;
  cursor: grab;
}

.scratch-canvas:active {
  cursor: grabbing;
}

.scratch-confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scratch-btn {
  align-self: center;
}

.scratch-card.is-revealed .scratch-reveal {
  animation: fadeUp 0.45s ease;
}

.quiz {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-titulo,
.timeline-titulo,
.place-titulo,
.countdown-titulo,
.wishes-titulo {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--burdeos-osc);
  overflow-wrap: anywhere;
}

.quiz-progreso {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6b3d;
}

.quiz-pregunta {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #3a2a1f;
  outline: none;
  overflow-wrap: anywhere;
}

.quiz-opciones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-opcion {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 137, 60, 0.5);
  border-radius: 12px;
  background: #fffaf0;
  color: #4a3423;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quiz-opcion:hover:not(:disabled) {
  background: #f7ecd6;
}

.quiz-opcion:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 2px;
}

.quiz-opcion:disabled {
  cursor: default;
}

.quiz-opcion.is-correcta {
  background: #dcecd9;
  border-color: #3f7d5a;
  color: #1f3d2a;
}

.quiz-opcion.is-fallada {
  background: #f6dcdd;
  border-color: #a3323f;
  color: #6d1f2c;
}

.quiz-feedback {
  min-height: 1.4em;
  margin: 0;
  font-family: var(--hand);
  font-size: 1.08rem;
  line-height: 1.4;
  color: #8a6b3d;
}

.quiz-feedback.is-acierto {
  color: #2f6a4a;
}

.quiz-feedback.is-fallo {
  color: #8d2734;
}

.quiz-siguiente {
  align-self: flex-end;
  margin-top: 2px;
}

.quiz-final-titulo {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--burdeos-osc);
  outline: none;
}

.quiz-final-texto {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #4a382c;
}

.timeline {
  position: relative;
  margin: 14px 0 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(217, 177, 89, 0.15), var(--dorado), rgba(217, 177, 89, 0.15));
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 0.11s);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-card.is-in .timeline-item {
  opacity: 1;
  transform: none;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -26px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--dorado);
  border-radius: 50%;
  background: var(--crema);
  box-shadow: 0 0 0 3px rgba(217, 177, 89, 0.18);
}

.timeline-fecha {
  margin: 0 0 2px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6b3d;
}

.timeline-texto {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #4a382c;
  overflow-wrap: anywhere;
}

.place-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.place-map {
  position: relative;
  height: 150px;
  overflow: hidden;
  border: 1px solid rgba(217, 177, 89, 0.45);
  border-radius: 16px;
  background: linear-gradient(160deg, #e9f0e4, #dde8da);
}

.place-street {
  position: absolute;
  background: #f7f1e2;
  box-shadow: 0 0 0 1px rgba(184, 137, 60, 0.22);
}

.place-street--a {
  top: 58%;
  left: -20%;
  width: 200%;
  height: 18px;
  transform: rotate(-8deg);
}

.place-street--b {
  top: -20%;
  left: 68%;
  width: 16px;
  height: 200%;
  transform: rotate(5deg);
}

.place-street--c {
  top: 30%;
  left: -20%;
  width: 200%;
  height: 11px;
  transform: rotate(14deg);
}

.place-park {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 58px;
  height: 44px;
  border-radius: 45% 55% 60% 40%;
  background: #bcd8b4;
  box-shadow: inset 0 0 0 1px rgba(63, 125, 90, 0.2);
}

.place-river {
  position: absolute;
  top: -12%;
  left: 16%;
  width: 32px;
  height: 130%;
  border-radius: 50% / 12%;
  background: linear-gradient(90deg, #bcd9e2, #a6ccd8);
  transform: rotate(24deg);
}

.place-pin {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -100%) rotate(-45deg);
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(160deg, #c0505c, #8d2734);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  animation: pinBob 2.6s ease-in-out infinite;
}

.place-pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--dorado-claro);
}

@keyframes pinBob {
  0%, 100% { transform: translate(-50%, -100%) rotate(-45deg); }
  50% { transform: translate(-50%, -112%) rotate(-45deg); }
}

.place-texto {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4a382c;
  overflow-wrap: anywhere;
}

.place-btn {
  align-self: flex-start;
}

.ticket {
  position: relative;
  display: flex;
  border: 2px dashed #b8893c;
  border-radius: 14px;
  background: #fffaf0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  right: 63px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--crema);
}

.ticket::before {
  top: -11px;
}

.ticket::after {
  bottom: -11px;
}

.ticket-main {
  flex: 1;
  min-width: 0;
  padding: 20px 14px 22px 16px;
}

.ticket-kicker {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6b3d;
}

.ticket-titulo {
  margin: 5px 0 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--burdeos-osc);
  overflow-wrap: anywhere;
}

.ticket-dato {
  margin: 0 0 3px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #6b5540;
  overflow-wrap: anywhere;
}

.ticket-dato--lugar::before {
  content: "📍 ";
}

.ticket-texto {
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a382c;
  overflow-wrap: anywhere;
}

.ticket-stub {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 72px;
  padding: 12px 0;
  border-left: 2px dashed #b8893c;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #f7e7c4, #ecd9b1);
  color: #8d2734;
}

.ticket-admit,
.ticket-one {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.ticket-estrella {
  margin-top: 4px;
  font-size: 0.9rem;
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 18px;
  border: 1px solid rgba(217, 177, 89, 0.45);
  border-radius: 18px;
  background: linear-gradient(160deg, #f7eeda, #ead9b9);
  text-align: center;
}

.countdown-titulo {
  margin-bottom: 6px;
}

.countdown-num {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.4rem, 20vw, 5.2rem);
  line-height: 1;
  color: var(--burdeos);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
}

.countdown-num--texto {
  font-size: clamp(1.7rem, 9vw, 2.5rem);
  line-height: 1.15;
}

.countdown-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6b3d;
}

.countdown-texto {
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4a382c;
  overflow-wrap: anywhere;
}

.memory {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memory-intro {
  margin: 0;
  font-size: 0.9rem;
  color: #6b5540;
  text-align: center;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.memory-card {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  perspective: 700px;
  -webkit-tap-highlight-color: transparent;
}

.memory-card:focus-visible {
  outline: none;
}

.memory-card:focus-visible .memory-inner {
  outline: 3px solid var(--dorado);
  outline-offset: 2px;
}

.memory-inner {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.memory-card.is-flipped .memory-inner {
  transform: rotateY(180deg);
}

.memory-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  backface-visibility: hidden;
}

.memory-back {
  border: 1px solid rgba(217, 177, 89, 0.55);
  background: radial-gradient(circle at 50% 35%, #2b1a12, #0c0806 75%);
  color: var(--dorado-claro);
  font-size: 1.3rem;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.7);
}

.memory-back::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 177, 89, 0.3);
  border-radius: 6px;
}

.memory-back-icon {
  position: relative;
  z-index: 1;
}

.memory-front {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--mem-color, #6d1f2c), #2c0f16);
}

.memory-front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-emoji {
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.memory-card.is-matched .memory-inner {
  box-shadow: 0 0 0 2px rgba(63, 125, 90, 0.9), 0 0 16px rgba(63, 125, 90, 0.55);
}

.memory-card.is-matched {
  animation: matchPop 0.4s ease;
}

@keyframes matchPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.memory-msg {
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(63, 125, 90, 0.45);
  border-radius: 12px;
  background: rgba(63, 125, 90, 0.14);
  font-family: var(--hand);
  font-size: 1.1rem;
  line-height: 1.4;
  color: #2f5a3f;
  text-align: center;
  outline: none;
}

.memory-msg.is-visible {
  animation: fadeUp 0.45s ease;
}

.chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 177, 89, 0.45);
  border-radius: 18px;
  background: linear-gradient(170deg, #173627, #10241b);
  color: #f4ead2;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(217, 177, 89, 0.28);
  background: rgba(0, 0, 0, 0.22);
}

.chat-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9b159, #8d2734);
  font-size: 1rem;
}

.chat-head-datos {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.chat-nombre {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: #f7e6b8;
  overflow-wrap: anywhere;
}

.chat-estado {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(239, 227, 202, 0.75);
}

.chat-punto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fbf92;
  box-shadow: 0 0 6px rgba(127, 191, 146, 0.8);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 340px);
  padding: 14px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-row {
  display: flex;
}

.chat-row--yo {
  justify-content: flex-end;
}

.chat-row--el {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 82%;
  padding: 9px 12px 7px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  overflow-wrap: anywhere;
}

.chat-row--el .chat-bubble {
  border-bottom-left-radius: 4px;
  background: #f7efdf;
  color: #3a2a1f;
}

.chat-row--yo .chat-bubble {
  border-bottom-right-radius: 4px;
  background: linear-gradient(160deg, #8d2734, #5c1724);
  color: #f7e6b8;
}

.chat-texto {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.chat-hora {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-align: right;
  opacity: 0.65;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: rgba(247, 239, 223, 0.16);
}

.chat-row--yo .chat-typing {
  border-radius: 14px;
  border-bottom-right-radius: 4px;
}

.chat-punto-typing {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e7d8b6;
  animation: typing 1.1s ease-in-out infinite;
}

.chat-punto-typing:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-punto-typing:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-vacio {
  margin: 0;
  padding: 18px;
  font-size: 0.9rem;
  text-align: center;
  color: rgba(239, 227, 202, 0.75);
}

.wishes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wishes-intro {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: #6b5540;
  text-align: center;
}

.wish {
  padding: 4px;
  border: 1px solid rgba(217, 177, 89, 0.4);
  border-radius: 14px;
  background: linear-gradient(160deg, #faf3e3, #efe3ca);
}

.wish-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6b5540;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.wish-btn:hover {
  background: rgba(217, 177, 89, 0.12);
}

.wish-btn:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 2px;
}

.wish-star {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(58, 42, 31, 0.06);
  color: #b3a68c;
  font-size: 1.1rem;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wish-btn.is-lit .wish-star {
  color: #f3d78f;
  background: radial-gradient(circle at 35% 30%, #d9b159, #8d2734);
  box-shadow: 0 0 16px rgba(217, 177, 89, 0.7);
  transform: scale(1.05);
}

.wish-btn.is-lit {
  color: var(--burdeos-osc);
}

.wish-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}

.wish-texto {
  margin: 0;
  padding: 2px 14px 14px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #4a382c;
  overflow-wrap: anywhere;
}

.wish-texto.is-visible {
  animation: fadeUp 0.4s ease;
}

@media (min-width: 620px) {
  .hero {
    padding: 54px 24px 26px;
  }

  .doors {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .modal-panel {
    padding: 32px 28px 30px;
  }

  .surprise-title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .door.is-today .door-front,
  .gift-emoji {
    animation: none;
  }

  .timeline-item {
    transition-delay: 0s !important;
  }

  .place-pin,
  .memory-card.is-matched,
  .chat-punto-typing {
    animation: none;
  }
}
