/* =========================================================
   PARA TI — hoja de estilos completa
   ========================================================= */

/* ---------- Reset & variables ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rosa: #b3455e;
  --rosa-claro: #ff8fa8;
  --rosa-palido: #fce4ea;
  --crema: #fdfbf7;
  --tinta: #4a2b33;
  --tinta-suave: #7c5a63;
  --papel: #fff9f4;
  --sombra: 0 10px 40px rgba(179, 69, 94, .12);
  --sombra-fuerte: 0 15px 50px rgba(179, 69, 94, .25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--crema);
  color: var(--tinta);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--rosa); }

.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(179, 69, 94, .04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(179, 69, 94, .04) 0%, transparent 40%);
}

#hearts-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Tipografía decorativa */
.eyebrow {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .15em;
  text-transform: lowercase;
  color: var(--tinta-suave);
  opacity: .8;
  margin-bottom: .8rem;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--rosa);
  text-align: center;
  margin-bottom: 2rem;
}

/* =========================================================
   SOBRE / PANTALLA DE APERTURA
   ========================================================= */
#envelope-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff7f9 0%, #fce4ea 100%);
  z-index: 100;
  transition: opacity .8s ease, visibility .8s ease;
  cursor: pointer;
}
#envelope-screen.oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope {
  position: relative;
  width: 260px;
  height: 180px;
  perspective: 1000px;
}

.envelope-back,
.envelope-flap,
.envelope-front,
.envelope-letter {
  pointer-events: none;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #fff6f8 0%, #fce4ea 100%);
  border-radius: 4px;
  box-shadow: var(--sombra-fuerte);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, #f8d5dd 0%, #f0b8c5 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 1s ease;
  z-index: 3;
}
.envelope.abierto .envelope-flap {
  transform: rotateX(180deg);
}

.envelope-letter {
  position: absolute;
  top: 10%;
  left: 8%;
  right: 8%;
  bottom: 10%;
  background: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(179, 69, 94, .1);
  transition: transform 1s ease;
  z-index: 2;
}
.envelope.abierto .envelope-letter {
  transform: translateY(-40px);
}

.letter-peek {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rosa);
  font-size: 1.1rem;
}

.envelope-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #fff6f8 0%, #fce4ea 100%);
  border-radius: 4px;
  clip-path: polygon(0 50%, 50% 25%, 100% 50%, 100% 100%, 0 100%);
  z-index: 4;
}

.wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d66077 0%, #b3455e 60%, #7c2e42 100%);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(179, 69, 94, .5),
              inset 0 -3px 8px rgba(0,0,0,.15);
  z-index: 5;
  pointer-events: auto;
  transition: transform .3s ease, box-shadow .3s ease;
}
.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.wax-seal span { animation: latido 2s ease-in-out infinite; }

.envelope-hint {
  margin-top: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: .95rem;
}

main.hidden { display: none; }
main {
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--rosa);
  line-height: 1.1;
  margin: .5rem 0 1rem;
  letter-spacing: -.02em;
}

.hero-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-letter {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  background: transparent;
  border: 1.5px solid var(--rosa);
  color: var(--rosa);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  letter-spacing: .03em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .2s ease;
  text-decoration: none;
}
.btn-letter:hover {
  background: var(--rosa);
  color: #fff;
  transform: translateY(-2px);
}
.btn-letter-icon { font-size: 1.05rem; }
.btn-letter--link {
  background: var(--rosa);
  color: #fff;
}
.btn-letter--link:hover {
  background: #a23b52;
  color: #fff;
}

/* =========================================================
   CONTADOR
   ========================================================= */
.timer-section {
  padding: 2rem 1.5rem 4rem;
  display: flex;
  justify-content: center;
}

.timer-frame {
  background: var(--papel);
  border: 1px solid rgba(179, 69, 94, .18);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  max-width: 640px;
  width: 100%;
  position: relative;
  box-shadow: var(--sombra);
}
.timer-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(179, 69, 94, .1);
  border-radius: 4px;
  pointer-events: none;
}

.timer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.timer-grid--small {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(179, 69, 94, .12);
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.timer-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--rosa);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.timer-grid--small .timer-number {
  font-size: clamp(1.3rem, 4vw, 2rem);
}

.timer-label {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: .85rem;
  color: var(--tinta-suave);
  margin-top: .3rem;
  letter-spacing: .05em;
}

.timer-divider {
  font-size: 2rem;
  color: rgba(179, 69, 94, .4);
  align-self: center;
}

.timer-caption {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: 1rem;
  margin-top: 1.5rem;
  opacity: .8;
}

/* =========================================================
   FRASES
   ========================================================= */
.frases-section {
  text-align: center;
  padding: 2rem 1rem 3rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frase-loop {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--rosa);
  transition: opacity .8s ease, transform .8s ease;
  text-align: center;
  padding: 0 1rem;
}
.frase-loop.fade {
  opacity: 0;
  transform: translateY(-10px);
}

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery-section {
  padding: 3rem 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.flash {
  background: var(--rosa-palido);
  border-left: 3px solid var(--rosa);
  padding: 1rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.flash p { margin: 0; }

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border: 2px dashed rgba(179, 69, 94, .35);
  border-radius: 8px;
  background: var(--papel);
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, transform .2s ease;
  text-align: center;
}
.upload-drop:hover,
.upload-drop.dragover {
  border-color: var(--rosa);
  background: var(--rosa-palido);
  transform: translateY(-2px);
}
.upload-icon {
  font-size: 2rem;
  color: var(--rosa);
  margin-bottom: .5rem;
}
.upload-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: .95rem;
}

.btn-submit {
  padding: .9rem 1.6rem;
  background: var(--rosa);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .3s ease, transform .2s ease;
}
.btn-submit:hover {
  background: #a23b52;
  transform: translateY(-2px);
}

.gallery-grid--cascada {
  column-count: 2;
  column-gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-grid--cascada { column-count: 3; column-gap: 1.2rem; }
}
@media (min-width: 1024px) {
  .gallery-grid--cascada { column-count: 4; column-gap: 1.5rem; }
}

.polaroid {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: #fff;
  padding: 10px 10px 24px;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(179, 69, 94, .12);
  cursor: pointer;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
  transform: rotate(-1deg);
}
.polaroid:nth-child(odd) { transform: rotate(1deg); }
.polaroid:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 15px 40px rgba(179, 69, 94, .25);
  z-index: 2;
}
.polaroid img {
  width: 100%;
  border-radius: 2px;
  display: block;
}

.delete-form {
  position: absolute;
  top: 14px;
  right: 14px;
  opacity: 0;
  transition: opacity .2s ease;
}
.polaroid:hover .delete-form,
.polaroid:focus-within .delete-form {
  opacity: 1;
}
.delete-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(179, 69, 94, .9);
  color: #fff;
  border: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.delete-btn:hover {
  background: #7c2e42;
  transform: scale(1.1);
}

.gallery-empty {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: 1.1rem;
  padding: 3rem 1rem;
  column-span: all;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: .95rem;
  opacity: .75;
}

/* =========================================================
   MODAL CARTA
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 15, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1500;
  opacity: 0;
  transition: opacity .3s ease;
}
.modal-overlay.visible {
  display: flex;
  opacity: 1;
}

.love-letter {
  background:
    radial-gradient(circle at 20% 20%, rgba(179, 69, 94, .04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(179, 69, 94, .05) 0%, transparent 50%),
    linear-gradient(160deg, #fffdf8 0%, #fdf6ee 100%);
  border-radius: 4px;
  padding: 3.5rem 2.5rem 3rem;
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,.45),
    0 0 0 1px rgba(179, 69, 94, .1),
    inset 0 0 80px rgba(179, 69, 94, .04);
  animation: cartaIn .5s ease;
  transform: rotate(-.4deg);
}

@keyframes cartaIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.92) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-.4deg);
  }
}

.love-letter::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(179, 69, 94, .18);
  border-radius: 2px;
  pointer-events: none;
}
.love-letter::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(179, 69, 94, .1);
  border-radius: 2px;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--tinta-suave);
  cursor: pointer;
  line-height: 1;
  transition: color .2s ease, transform .2s ease;
  z-index: 3;
}
.modal-close:hover {
  color: var(--rosa);
  transform: rotate(90deg);
}

.love-letter-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rosa);
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: lowercase;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.carta-decor-arriba,
.carta-decor-abajo {
  text-align: center;
  color: var(--rosa);
  opacity: .6;
  letter-spacing: .6em;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}
.carta-decor-arriba { margin-bottom: 1.5rem; }
.carta-decor-abajo {
  margin-top: 2rem;
  letter-spacing: .5em;
}
.carta-decor-abajo span { margin: 0 .2rem; }

.love-letter-body {
  font-family: 'EB Garamond', serif;
  color: var(--tinta);
  font-size: 1.1rem;
  line-height: 1.9;
  position: relative;
  z-index: 2;
}
.love-letter-body p { margin-bottom: 1.1rem; }
.love-letter-body strong {
  color: var(--rosa);
  font-weight: 600;
}

.carta-saludo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem !important;
  font-style: italic;
  color: var(--rosa);
  margin-bottom: 1.3rem !important;
}

.carta-cierre {
  margin-top: 1.5rem !important;
  font-style: italic;
}

.love-letter-signature {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: var(--rosa);
  font-size: 1.6rem;
  text-align: right;
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
  letter-spacing: .01em;
}

/* =========================================================
   MODAL NOTIFICACIONES
   ========================================================= */
.love-letter--notif {
  text-align: center;
  max-width: 480px;
  transform: rotate(0deg);
  animation: cartaIn .5s ease;
}

.notif-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--rosa);
  line-height: 1.3;
  margin-bottom: 1.2rem !important;
  font-weight: 600;
}

.notif-texto {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--tinta);
  line-height: 1.7;
  margin-bottom: 1rem !important;
}

.notif-texto--chico {
  font-style: italic;
  font-size: .95rem;
  opacity: .7;
  margin-bottom: 1.8rem !important;
}

.btn-submit--romantico {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  letter-spacing: .04em;
  box-shadow: 0 8px 24px rgba(179, 69, 94, .35);
}
.btn-submit--romantico:hover {
  box-shadow: 0 12px 32px rgba(179, 69, 94, .45);
}

.notif-luego {
  display: block;
  margin: 1rem auto 0;
  background: transparent;
  border: none;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: .95rem;
  cursor: pointer;
  padding: .5rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.notif-luego:hover {
  color: var(--rosa);
  border-bottom-color: var(--rosa);
}

.notif-status {
  font-family: 'EB Garamond', serif;
  font-size: .9rem;
  color: var(--tinta-suave);
  margin-top: 1rem;
  min-height: 1.2em;
}

/* =========================================================
   MÚSICA
   ========================================================= */
.music-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 249, 244, .95);
  border: 1px solid rgba(179, 69, 94, .25);
  color: var(--rosa);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(179, 69, 94, .2);
  transition: transform .2s ease, background .2s ease;
}
.music-toggle:hover {
  transform: scale(1.08);
  background: #fff;
}
.music-toggle.playing {
  background: var(--rosa);
  color: #fff;
}
.music-toggle.playing #musicIcon {
  animation: latido 1.2s ease-in-out infinite;
}

/* =========================================================
   BOTÓN "TE EXTRAÑO"
   ========================================================= */
.btn-extrano {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.3rem;
  background: var(--rosa);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(179, 69, 94, .4);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-extrano:hover {
  transform: translateY(-2px) scale(1.03);
  background: #a23b52;
  box-shadow: 0 12px 30px rgba(179, 69, 94, .5);
}
.btn-extrano:active { transform: scale(.97); }
.btn-extrano.enviado { background: #7c2e42; }
.btn-extrano-icon {
  font-size: 1.2rem;
  animation: latido 1.8s ease-in-out infinite;
}
@media (max-width: 480px) {
  .btn-extrano-text { display: none; }
  .btn-extrano { padding: 1rem; border-radius: 50%; }
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(45, 30, 35, .95);
  color: #fff;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-family: 'EB Garamond', serif;
  font-size: .95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 1600;
  max-width: 90vw;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 15, .92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1700;
  padding: 2rem 1rem;
}
.lightbox.visible { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox-frase {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #ffd5de;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-top: 1.5rem;
  text-align: center;
  max-width: 500px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* =========================================================
   PÁGINA "NUESTRO DÍA"
   ========================================================= */
.dia-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.dia-cinta {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rosa);
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: lowercase;
  margin-bottom: 1.5rem;
  opacity: .85;
}

.dia-candado {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: flotar 3s ease-in-out infinite;
}
.dia-candado--abierto { animation: latido 1.5s ease-in-out infinite; }
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.dia-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--rosa);
  margin: .5rem 0 1.5rem;
  font-weight: 600;
  line-height: 1.15;
}

.dia-carta {
  background: rgba(255, 250, 245, .9);
  border: 1px solid rgba(179, 69, 94, .25);
  border-radius: 4px;
  padding: 2.5rem 1.8rem;
  box-shadow: var(--sombra);
  margin: 1.5rem 0;
  position: relative;
}
.dia-carta::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(179, 69, 94, .12);
  border-radius: 2px;
  pointer-events: none;
}
.dia-carta--cerrada { background: rgba(245, 240, 235, .9); }

.dia-carta-decor {
  font-size: 1.1rem;
  color: var(--rosa);
  opacity: .5;
  margin-bottom: 1rem;
  letter-spacing: .5em;
}
.dia-carta-decor--abajo {
  margin-top: 1rem;
  margin-bottom: 0;
}

.dia-mensaje {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--tinta);
  margin: 0;
}
.dia-mensaje strong { color: var(--rosa); }

.dia-foto-wrap {
  margin: 2.5rem auto;
  max-width: 520px;
}
.dia-foto-marco {
  background: #fff;
  padding: 12px 12px 40px;
  box-shadow: 0 15px 50px rgba(179, 69, 94, .25),
              0 4px 12px rgba(0,0,0,.08);
  border-radius: 2px;
  transform: rotate(-1.5deg);
  transition: transform .4s ease;
}
.dia-foto-marco:hover { transform: rotate(0deg) scale(1.02); }
.dia-foto { width: 100%; display: block; border-radius: 2px; }
.dia-foto-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: 1rem;
  margin-top: 1rem;
}

.dia-corazones-final {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
  color: var(--rosa);
}
.dia-corazones-final span:nth-child(1) { animation: latido 1.5s ease-in-out infinite; }
.dia-corazones-final span:nth-child(2) { animation: latido 1.5s ease-in-out .3s infinite; }
.dia-corazones-final span:nth-child(3) { animation: latido 1.5s ease-in-out .6s infinite; }

.dia-firma {
  font-family: 'Dancing Script', cursive;
  color: var(--rosa);
  font-size: 1.5rem;
  margin-top: 2rem;
}

.dia-contador {
  margin: 2.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dia-contador-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 6rem);
  color: var(--rosa);
  line-height: 1;
  font-weight: 600;
  margin: .3rem 0;
  text-shadow: 0 4px 20px rgba(179, 69, 94, .2);
}
.dia-contador-label {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--tinta-suave);
  letter-spacing: .08em;
  text-transform: lowercase;
  margin: 0;
}

.dia-contador-siguiente {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(179, 69, 94, .15);
  text-align: center;
}
.dia-contador-siguiente-label {
  font-family: 'EB Garamond', serif;
  font-size: .9rem;
  color: var(--tinta-suave);
  opacity: .7;
  text-transform: lowercase;
  letter-spacing: .08em;
  margin: 0;
}
.dia-contador-siguiente-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rosa);
  font-size: 1.3rem;
  margin: .3rem 0 0;
}

.dia-sobre-cerrado {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.sobre-mini {
  position: relative;
  width: 140px;
  height: 90px;
  filter: drop-shadow(0 8px 24px rgba(179, 69, 94, .25));
}
.sobre-mini-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #fff6f8 0%, #fce4ea 100%);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(179, 69, 94, .15);
}
.sobre-mini-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, #f8d5dd 0%, #f0b8c5 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 3px 3px 0 0;
  z-index: 2;
}
.sobre-mini-sello {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  background: var(--rosa);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  box-shadow: 0 3px 10px rgba(179, 69, 94, .4);
  z-index: 3;
}

.dia-proximo {
  font-family: 'EB Garamond', serif;
  font-size: .95rem;
  color: var(--tinta-suave);
  opacity: .85;
  margin-top: 1rem;
}

.dia-volver {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 3rem;
  font-family: 'EB Garamond', serif;
  color: var(--rosa);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, gap .2s ease;
}
.dia-volver:hover {
  border-bottom-color: var(--rosa);
  gap: .6rem;
}
.dia-volver-flecha { transition: transform .2s ease; }
.dia-volver:hover .dia-volver-flecha { transform: translateX(-3px); }

body.dia24-abierto {
  background: linear-gradient(160deg, #fff7f9 0%, #ffe9ef 100%);
}
body.dia24-cerrado {
  background: linear-gradient(160deg, #fdfbf7 0%, #f5efe8 100%);
}

/* =========================================================
   CORAZONES CAYENDO
   ========================================================= */
.heart-float {
  position: fixed;
  top: -40px;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 1;
  animation: caer linear forwards;
  opacity: .8;
  user-select: none;
}
@keyframes caer {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}
body.dia24-abierto .heart-float {
  font-size: 1.6rem;
  opacity: 1;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 1rem 2rem; }
  .timer-frame { padding: 1.8rem 1.2rem; }
  .timer-divider { font-size: 1.5rem; }
  .love-letter { padding: 2.5rem 1.5rem 2rem; }
  .dia-wrap { padding: 3rem 1rem 5rem; }
  .btn-extrano { bottom: 20px; right: 20px; }
  .music-toggle { bottom: 20px; left: 20px; }
}
