:root {
  --forest: #0e2419;
  --forest-dark: #07100b;
  --red-bright: #d92b2b;
  --red-mid: #b31d1d;
  --burgundy: #580f14;
  --cream: #f6f1e7;
  --gold: #c89d47;
  --gold-light: #edd28e;
  --text-light: #f6f2ea;
  --text-muted: rgba(246, 242, 234, 0.76);
  --safe-top: env(safe-area-inset-top, 16px);
  --safe-bottom: env(safe-area-inset-bottom, 20px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--forest-dark);
  color: var(--text-light);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.tap-ripple {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 236, 175, 0.98);
  box-shadow: 0 0 28px rgba(237, 210, 142, 0.9), inset 0 0 14px rgba(255, 244, 200, 0.8);
  transform: translate(-50%, -50%) scale(0.3);
  pointer-events: none;
  z-index: 94;
  animation: rippleOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rippleOut {
  to {
    transform: translate(-50%, -50%) scale(5.6);
    opacity: 0;
  }
}

/* ==================== PANTALLA 1: LA PUERTA CON APERTURA 3D + ZOOM ==================== */
#door-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(34, 82, 58, 0.68) 0%, rgba(9, 22, 15, 0.97) 74%),
    #09160f;
  transform-origin: 50% 54%;
  will-change: transform, opacity;
  transition:
    transform 1.15s cubic-bezier(0.55, 0.04, 0.25, 1),
    opacity 0.95s ease;
  padding: calc(var(--safe-top) + 16px) 22px calc(var(--safe-bottom) + 16px);
}

#door-screen::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 54%, rgba(255, 246, 210, 0.96) 0%, rgba(250, 208, 108, 0.85) 50%, rgba(255, 250, 232, 0.95) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.75s ease 0.25s;
}

#door-screen.zooming {
  transform: scale(4.2);
  opacity: 0;
  pointer-events: none;
}

#door-screen.zooming::after {
  opacity: 1;
}

.door-aura {
  position: absolute;
  width: min(88vw, 360px);
  height: min(115vw, 460px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 210, 142, 0.16) 0%, rgba(217, 43, 43, 0.06) 46%, transparent 74%);
  pointer-events: none;
  transition: transform 1.1s ease, opacity 1.1s ease;
}

#door-screen.opening .door-aura {
  transform: scale(2.4);
  opacity: 1;
}

.door-header-group {
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#door-screen.zooming .door-header-group,
#door-screen.zooming .knock-pill-wrap {
  opacity: 0;
  transform: translateY(-12px);
}

.door-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 2px 12px rgba(237, 210, 142, 0.3);
  animation: fadeSlideDown 0.8s ease both;
}

.door-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 8.2vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 26px;
  max-width: 330px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  animation: fadeSlideDown 0.95s ease 0.08s both;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.door-wrapper {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  animation: fadeSlideUp 1s ease 0.16s both;
}

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

.door-wrapper:active {
  transform: scale(0.97);
}

.door-wrapper.knocking {
  animation: doorKnock 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes doorKnock {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(0.97); }
  55% { transform: scale(1.015); }
  75% { transform: scale(0.985); }
}

.door-frame {
  position: relative;
  width: min(65vw, 244px);
  height: min(94vw, 352px);
  border-radius: 125px 125px 10px 10px;
  border: 6px solid #f7f2e8;
  background: #231206;
  box-shadow:
    0 26px 65px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(237, 210, 142, 0.35),
    0 0 34px rgba(237, 210, 142, 0.16);
  overflow: hidden;
}

.door-interior {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 56%, #ffffff 0%, #ffe699 42%, #e6922e 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

.door-interior::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg at 50% 56%,
    transparent 0deg,
    rgba(255, 255, 255, 0.55) 22deg,
    transparent 44deg,
    rgba(255, 245, 200, 0.45) 130deg,
    transparent 165deg,
    rgba(255, 255, 255, 0.4) 260deg,
    transparent 300deg
  );
  animation: rotateRays 10s linear infinite;
}

@keyframes rotateRays {
  to { transform: rotate(360deg); }
}

.door-interior::after {
  content: '';
  position: relative;
  width: 64%;
  height: 78%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 250, 226, 1) 100%);
  border-radius: 70px 70px 0 0;
  box-shadow: 0 0 55px rgba(255, 246, 195, 1);
}

.door-leaves {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 3;
  perspective: 900px;
  transform-style: preserve-3d;
}

.door-leaf {
  position: relative;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, #e13232 0%, #c62121 100%);
  transition:
    transform 1.05s cubic-bezier(0.22, 0.88, 0.3, 1),
    filter 1.05s ease,
    box-shadow 1.05s ease;
  will-change: transform;
}

.door-leaf::before {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 14px;
  height: 28%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 4px rgba(95, 10, 10, 0.32);
  border-radius: 3px;
  pointer-events: none;
}

.door-leaf.left {
  transform-origin: 0% 50%;
  border-right: 1px solid rgba(70, 5, 5, 0.55);
}

.door-leaf.right {
  transform-origin: 100% 50%;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.door-knob {
  position: absolute;
  top: 56%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4c8, #d4a13b);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.42), 0 0 8px rgba(255, 232, 160, 0.55);
}

.door-leaf.left .door-knob { right: 10px; }
.door-leaf.right .door-knob { left: 10px; }

.door-wrapper.open .door-leaf.left {
  transform: rotateY(76deg);
  filter: brightness(0.76);
  box-shadow: 14px 0 28px rgba(0, 0, 0, 0.55);
}

.door-wrapper.open .door-leaf.right {
  transform: rotateY(-76deg);
  filter: brightness(0.76);
  box-shadow: -14px 0 28px rgba(0, 0, 0, 0.55);
}

.door-ornaments {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 26px;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.door-wrapper.open .door-ornaments {
  opacity: 0;
  transform: scale(0.92);
}

.wreath-svg {
  width: 122px;
  height: 122px;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.36));
}

.name-plate {
  margin-top: 10px;
  background: linear-gradient(180deg, #fdfaf4 0%, #f3ece0 100%);
  padding: 6px 24px;
  border-radius: 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  min-width: 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.name-plate::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0%, 65% { left: -100%; }
  100% { left: 165%; }
}

.name-plate span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: var(--red-mid);
  line-height: 1;
  display: block;
}

.knock-pill-wrap {
  text-align: center;
  transition: opacity 0.35s ease;
}

.knock-pill {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(237, 210, 142, 0.3);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  backdrop-filter: blur(6px);
  animation: pulseHint 2.6s ease-in-out infinite;
}

.knock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light);
}

@keyframes pulseHint {
  0%, 100% { transform: translateY(0); opacity: 0.82; }
  50% { transform: translateY(-2px); opacity: 1; }
}

/* ==================== PANTALLA 2: EL CALENDARIO (25 CAJAS CON TAPA Y MOÑO) ==================== */
#calendar-screen {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 64, 45, 0.72) 0%, rgba(7, 16, 11, 0.98) 65%),
    #07100b;
  padding: calc(var(--safe-top) + 34px) 14px calc(var(--safe-bottom) + 74px);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.85s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  display: none;
}

#calendar-screen.visible {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.cal-header {
  max-width: 560px;
  margin: 0 auto 28px;
  text-align: center;
  padding: 0 8px;
}

.cal-for {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.cal-recipient {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(44px, 12vw, 64px);
  font-weight: 700;
  line-height: 0.98;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.cal-message {
  font-size: 14.5px;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.86);
  max-width: 460px;
  margin: 0 auto 10px;
}

.cal-sender {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--gold-light);
}

.bento-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 104px;
  grid-auto-flow: dense;
  gap: 11px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 112px;
    gap: 13px;
  }
  .pos-7  { grid-column: 1 / span 1; grid-row: 1 / span 1; }
  .pos-15 { grid-column: 2 / span 1; grid-row: 1 / span 1; }
  .pos-1  { grid-column: 3 / span 2; grid-row: 1 / span 1; }
  .pos-22 { grid-column: 5 / span 1; grid-row: 1 / span 1; }
  .pos-10 { grid-column: 6 / span 1; grid-row: 1 / span 1; }

  .tile-25 { grid-column: 1 / span 2; grid-row: 2 / span 2; }
  .pos-4  { grid-column: 3 / span 1; grid-row: 2 / span 1; }
  .pos-12 { grid-column: 4 / span 2; grid-row: 2 / span 1; }
  .pos-6  { grid-column: 6 / span 1; grid-row: 2 / span 2; }

  .pos-9  { grid-column: 3 / span 2; grid-row: 3 / span 1; }
  .pos-19 { grid-column: 5 / span 1; grid-row: 3 / span 1; }

  .pos-14 { grid-column: 1 / span 1; grid-row: 4 / span 1; }
  .pos-20 { grid-column: 2 / span 1; grid-row: 4 / span 1; }
  .pos-13 { grid-column: 3 / span 1; grid-row: 4 / span 2; }
  .pos-18 { grid-column: 4 / span 1; grid-row: 4 / span 1; }
  .pos-2  { grid-column: 5 / span 2; grid-row: 4 / span 1; }

  .pos-3  { grid-column: 1 / span 1; grid-row: 5 / span 1; }
  .pos-11 { grid-column: 2 / span 1; grid-row: 5 / span 1; }
  .pos-16 { grid-column: 4 / span 1; grid-row: 5 / span 1; }
  .pos-8  { grid-column: 5 / span 1; grid-row: 5 / span 2; }
  .pos-21 { grid-column: 6 / span 1; grid-row: 5 / span 2; }

  .pos-5  { grid-column: 1 / span 1; grid-row: 6 / span 1; }
  .pos-24 { grid-column: 2 / span 1; grid-row: 6 / span 1; }
  .pos-17 { grid-column: 3 / span 1; grid-row: 6 / span 1; }
  .pos-23 { grid-column: 4 / span 1; grid-row: 6 / span 1; }
}

@media (max-width: 767px) {
  .pos-1  { grid-column: span 2; }
  .tile-25 { grid-column: span 2; grid-row: span 2; }
  .pos-12 { grid-column: span 2; }
  .pos-2  { grid-column: span 2; }
}

/* ==================== BASE DE LA CAJA + TAPA CON MOÑO CONTRASTANTE ==================== */
.door-tile {
  position: relative;
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
  opacity: 1;
  background: linear-gradient(160deg, #f3ede2 0%, #e3d8c6 100%);
  border: 3.5px solid #ffffff;
  box-shadow:
    inset 0 10px 22px rgba(45, 32, 18, 0.25),
    inset 0 0 0 1px rgba(160, 138, 106, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.36);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}

.door-tile::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(145, 125, 96, 0.34);
  border-radius: 4px;
  pointer-events: none;
}

#calendar-screen.visible .door-tile.animate-in {
  animation: tileEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.door-tile:active {
  transform: scale(0.95) !important;
}

.inside-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  color: #967a50;
  opacity: 0.92;
  position: relative;
  z-index: 2;
}

.gift-lid {
  position: absolute;
  inset: -3.5px;
  border-radius: 11px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  transform: translate(0%, 0%) rotate(0deg);
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-lid::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 11px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 6px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.door-tile.opened .gift-lid {
  transform: translate(-26%, -24%) rotate(-12deg);
  box-shadow: 7px 11px 20px rgba(20, 12, 5, 0.46);
}

.lid-red {
  background: linear-gradient(145deg, #de3030 0%, #b51c1c 100%);
  color: #ffffff;
}

.lid-burgundy {
  background: linear-gradient(145deg, #681318 0%, #460a0e 100%);
  color: #ffffff;
}

.lid-cream {
  background: linear-gradient(145deg, #fcf8f0 0%, #ede4d3 100%);
  color: #b81d1d;
}

.lid-gold {
  background: linear-gradient(135deg, #e4c57d 0%, #b48631 100%);
  color: #ffffff;
}

.lid-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 4;
  transition: opacity 0.25s ease;
}

.door-tile.opened .lid-number {
  opacity: 0;
}

/* Cintas cruzadas */
.lid-ribbon-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 11px;
  transform: translateX(-50%);
  z-index: 1;
}

.lid-ribbon-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 11px;
  transform: translateY(-50%);
  z-index: 1;
}

.lid-red .lid-ribbon-v,
.lid-red .lid-ribbon-h,
.lid-burgundy .lid-ribbon-v,
.lid-burgundy .lid-ribbon-h {
  background: linear-gradient(90deg, rgba(243, 220, 162, 0.9), rgba(255, 245, 214, 0.98), rgba(229, 195, 118, 0.9));
  box-shadow: 0 0 8px rgba(255, 236, 178, 0.28);
}

.lid-cream .lid-ribbon-v,
.lid-cream .lid-ribbon-h {
  background: linear-gradient(90deg, rgba(200, 30, 30, 0.9), rgba(235, 52, 52, 0.98), rgba(185, 24, 24, 0.9));
}

.lid-gold .lid-ribbon-v,
.lid-gold .lid-ribbon-h {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.85));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

/* Moño / lazo navideño contrastante */
.lid-bow-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.34));
}

.lid-red .lid-bow-svg {
  --bow-main: #18703d;
  --bow-shade: #0e4a27;
  --bow-knot: #f7d98c;
}

.lid-burgundy .lid-bow-svg {
  --bow-main: #e63232;
  --bow-shade: #a61414;
  --bow-knot: #f7d98c;
}

.lid-cream .lid-bow-svg {
  --bow-main: #d99f2b;
  --bow-shade: #a67214;
  --bow-knot: #c92020;
}

.lid-gold .lid-bow-svg {
  --bow-main: #d62424;
  --bow-shade: #8f1111;
  --bow-knot: #fff1b8;
}

/* Bloque especial Día 25 (Navidad) */
.tile-25 {
  padding: 16px;
}

.tile-25 .inside-number {
  font-size: 34px;
}

.tile-25 .inside-label {
  position: absolute;
  top: 13px;
  right: 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #967a50;
  z-index: 2;
}

.tile-25 .gift-lid {
  padding: 16px;
}

.tile-25 .big-day-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  position: relative;
  z-index: 4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.tile-25.opened .big-day-label {
  opacity: 0;
}

.tile-25 .lid-number {
  font-size: 44px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tile-25 .lid-ribbon-v {
  left: 52%;
  width: 16px;
}

.tile-25 .lid-ribbon-h {
  height: 16px;
}

.tile-25 .lid-bow-svg {
  left: 52%;
  width: 58px;
  height: 58px;
}

.door-tile.just-opened {
  opacity: 1 !important;
  animation: giftUnwrapPop 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  z-index: 12;
}

@keyframes giftUnwrapPop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 232, 160, 0.95);
  }
  30% {
    transform: scale(1.09);
    box-shadow:
      0 0 42px 12px rgba(255, 224, 130, 0.85),
      inset 0 0 24px rgba(255, 248, 210, 0.9);
  }
  65% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 10px 22px rgba(45, 32, 18, 0.25),
      inset 0 0 0 1px rgba(160, 138, 106, 0.4),
      0 8px 20px rgba(0, 0, 0, 0.36);
  }
}

.door-tile.just-opened::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 250, 220, 0.95) 0%, rgba(255, 215, 110, 0.45) 55%, transparent 80%);
  pointer-events: none;
  z-index: 5;
  animation: innerFlash 0.7s ease-out forwards;
}

@keyframes innerFlash {
  0% { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Toast flotante inferior */
.toast-pill {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(14, 18, 16, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(237, 210, 142, 0.28);
  color: #f5f2eb;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 70;
  max-width: 90vw;
  text-align: center;
}

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

.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light);
  flex-shrink: 0;
}

/* ==================== MODAL DE SORPRESA DEL DÍA ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 8, 0.82);
  backdrop-filter: blur(8px);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.28s ease;
}

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

.day-card {
  background: linear-gradient(180deg, #fdfaf4 0%, #f4ede0 100%);
  color: #1c1917;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 32px 24px 28px;
  position: relative;
  box-shadow:
    0 30px 75px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(200, 157, 71, 0.35);
  animation: cardReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 86dvh;
  overflow-y: auto;
}

@keyframes cardReveal {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.07);
  color: #44403c;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-date-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-mid);
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #181512;
  margin-bottom: 14px;
}

.card-body {
  font-size: 15px;
  line-height: 1.65;
  color: #3f3a36;
  white-space: pre-line;
  margin-bottom: 18px;
}

.card-photo {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
  max-height: 280px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.voucher-box {
  border: 1.5px dashed #b98934;
  background: rgba(237, 210, 142, 0.24);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.voucher-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c631c;
  margin-bottom: 4px;
}

.voucher-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #292218;
}

.media-embed {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.top-sound-btn {
  position: fixed;
  top: calc(var(--safe-top) + 6px);
  right: 16px;
  z-index: 55;
  background: rgba(14, 24, 18, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}