/* ==========================================================================
   Nicole Birthday — Paleta "Wonderland Rose & Champagne Editorial"
   ========================================================================== */

:root {
  --bg-ivory: #fbf7f2;
  --bg-cream: #fffdfb;
  --bg-blush: #f5e9e4;
  --bg-wine-deep: #3d121d;
  --bg-wine: #5c1f2e;
  --bg-wine-hover: #471622;

  --gold: #c59b5f;
  --gold-soft: #e6d2b1;
  --rosewood: #9e5a63;
  --sage: #38664e;

  --ink-primary: #25151a;
  --ink-secondary: #624d53;
  --ink-muted: #8b747a;
  --border-soft: rgba(92, 31, 46, 0.14);
  --border-gold: rgba(197, 155, 95, 0.42);

  --shadow-sm: 0 8px 24px rgba(59, 20, 31, 0.07);
  --shadow-md: 0 20px 50px rgba(59, 20, 31, 0.12);
  --shadow-lg: 0 30px 80px rgba(45, 13, 22, 0.22);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: var(--bg-ivory);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(197, 155, 95, 0.14), transparent 36%),
    radial-gradient(circle at 88% 22%, rgba(158, 90, 99, 0.11), transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(197, 155, 95, 0.09), transparent 44%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

/* Canvas de celebración */
#celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
}

/* ==========================================================================
   BOTONES Y FORMULARIOS COMPARTIDOS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--bg-wine) 0%, #73273a 100%);
  color: #fffaf5;
  box-shadow: 0 10px 26px rgba(92, 31, 46, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--bg-wine-hover) 0%, var(--bg-wine) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(92, 31, 46, 0.34);
}

.btn-secondary {
  background: rgba(255, 253, 251, 0.85);
  color: var(--bg-wine);
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  background: var(--bg-cream);
  border-color: var(--bg-wine);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.68rem 1.3rem;
  font-size: 0.88rem;
}

.text-input {
  width: 100%;
  padding: 0.92rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(92, 31, 46, 0.2);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input::placeholder {
  color: #ab989d;
}

.text-input:focus {
  outline: none;
  border-color: var(--bg-wine);
  box-shadow: 0 0 0 4px rgba(92, 31, 46, 0.11);
}

.form-error {
  min-height: 1.35rem;
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: #a62639;
  text-align: center;
}

/* ==========================================================================
   SECCIÓN 1: PANTALLA DE LOGIN ("Nicole Birthday")
   ========================================================================== */

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(197, 155, 95, 0.2), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(158, 90, 99, 0.24), transparent 50%),
    linear-gradient(155deg, #2d0e17 0%, #4b1826 52%, #2a0d15 100%);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), visibility 0.75s;
}

.login-screen.is-exiting {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  visibility: hidden;
}

.login-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 340px;
  height: 340px;
  background: #c59b5f;
  top: -80px;
  left: -60px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: #a9495d;
  bottom: -100px;
  right: -70px;
  animation-delay: -4s;
}

.orb-3 {
  width: 240px;
  height: 240px;
  background: #f0d7b5;
  top: 45%;
  right: 16%;
  opacity: 0.16;
  animation-delay: -7s;
}

@keyframes floatOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -22px, 0) scale(1.08);
  }
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(250, 243, 236, 0.97) 100%);
  box-shadow: 0 32px 90px rgba(13, 3, 6, 0.55), 0 0 0 1px rgba(230, 210, 177, 0.35);
  animation: cardAppear 0.8s var(--ease-out) both;
}

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

.login-card-frame {
  border: 1px solid var(--border-gold);
  border-radius: 22px;
  padding: 2.3rem 2rem 1.8rem;
  text-align: center;
}

.login-crest {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-wine) 0%, #7c2b40 100%);
  border: 2px solid var(--gold-soft);
  box-shadow: 0 10px 24px rgba(92, 31, 46, 0.25);
  display: grid;
  place-items: center;
  color: #fff6ea;
}

.crest-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.crest-paw {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--bg-wine);
  border: 1px solid var(--border-gold);
}

.login-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.login-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--bg-wine);
}

.login-subtitle {
  margin: 0.65rem auto 1.7rem;
  max-width: 32ch;
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

.login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
}

.password-wrapper {
  position: relative;
}

.password-wrapper .text-input {
  padding-right: 3rem;
}

.icon-btn {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  color: var(--bg-wine);
  background: rgba(92, 31, 46, 0.06);
}

.terms-row {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 233, 228, 0.55);
  border: 1px solid rgba(92, 31, 46, 0.1);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.terms-row.needs-attention {
  border-color: #b43045;
  background: rgba(180, 48, 69, 0.07);
  animation: shake 0.42s ease;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  user-select: none;
}

.checkbox-hit {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.checkbox-text-label {
  cursor: pointer;
  margin-right: 0.25rem;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.checkbox-custom {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.8px solid rgba(92, 31, 46, 0.35);
  background: #ffffff;
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.checkbox-custom svg {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--bg-wine);
  border-color: var(--bg-wine);
}

.checkbox-input:checked + .checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox-input:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(92, 31, 46, 0.22);
}

.checkbox-text {
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.terms-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--bg-wine);
  font-weight: 700;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
  cursor: pointer;
}

.terms-link:hover {
  color: var(--bg-wine-hover);
}

.login-footnote {
  margin: 1.4rem 0 0;
  font-size: 0.79rem;
  color: var(--ink-muted);
}

.shake {
  animation: shake 0.42s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}

/* ==========================================================================
   NAVEGACIÓN FLOTANTE
   ========================================================================== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0.85rem 1rem 0;
}

.top-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(92, 31, 46, 0.11);
  box-shadow: 0 10px 30px rgba(59, 20, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--bg-wine);
}

.nav-monogram {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-wine);
  color: #fff8f0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  background: rgba(92, 31, 46, 0.08);
  color: var(--bg-wine);
}

.nav-badge {
  padding: 0.1rem 0.46rem;
  border-radius: 999px;
  background: var(--bg-blush);
  color: var(--bg-wine);
  font-size: 0.74rem;
  font-weight: 700;
}

/* ==========================================================================
   LAYOUT GENERAL Y HERO
   ========================================================================== */

.container {
  width: min(1080px, 100% - 2.4rem);
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(2.8rem, 5vw, 4.2rem);
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--bg-wine);
}

.section-lead {
  margin: 0.9rem auto 0;
  font-size: 1rem;
  color: var(--ink-secondary);
}

.hero-section {
  min-height: calc(90vh - 70px);
  display: grid;
  place-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(3.5rem, 6vw, 5rem);
  text-align: center;
}

.hero-inner {
  max-width: 780px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--bg-wine);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  margin: 1.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
  color: var(--ink-primary);
}

.hero-name {
  font-style: italic;
  color: var(--bg-wine);
}

.hero-subtitle {
  margin: 1.4rem auto 0;
  max-width: 56ch;
  font-size: clamp(1rem, 2vw, 1.14rem);
  color: var(--ink-secondary);
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-ornament {
  margin: 3rem auto 0;
  max-width: 240px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold);
}

.hero-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* Animación de aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SECCIÓN 2: RECORRIDO DE FOTOS CON FRASES
   ========================================================================== */

.journey-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5.2rem);
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-gold) 12%, var(--border-gold) 88%, transparent);
  transform: translateX(-50%);
}

.memory-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.memory-item:nth-child(even) .memory-photo-col {
  order: 2;
}

.memory-item:nth-child(even) .memory-text-col {
  order: 1;
  text-align: right;
}

.memory-item:nth-child(even) .memory-chapter {
  justify-content: flex-end;
}

.memory-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-ivory);
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 0 6px var(--bg-ivory);
  z-index: 2;
}

.memory-photo-btn {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 14px 14px 44px;
  border: 1px solid rgba(92, 31, 46, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform: rotate(var(--tilt, -1.2deg));
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  text-align: left;
}

.memory-photo-btn.is-portrait,
.memory-photo-btn.is-tall {
  max-width: 420px;
}

.memory-item:nth-child(even) .memory-photo-btn {
  --tilt: 1.2deg;
}

.memory-photo-btn:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.memory-photo-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-blush);
}

.memory-photo-btn.is-portrait .memory-photo-wrap {
  aspect-ratio: 4 / 5;
}

.memory-photo-btn.is-tall .memory-photo-wrap {
  aspect-ratio: 3 / 4;
}

.memory-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.memory-photo-btn:hover .memory-photo-wrap img {
  transform: scale(1.04);
}

.memory-photo-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 21, 26, 0.68);
  backdrop-filter: blur(6px);
  color: #fff8f2;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.memory-photo-btn:hover .memory-photo-zoom {
  opacity: 1;
  transform: translateY(0);
}

.memory-polaroid-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding: 0 0.25rem;
}

.polaroid-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-secondary);
}

.polaroid-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.memory-text-col {
  padding: 0.5rem 0;
}

.memory-chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.memory-chapter::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.memory-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.02rem);
  font-weight: 500;
  line-height: 1.38;
  color: var(--ink-primary);
}

/* ==========================================================================
   CARTA FINAL / GRAN DEDICATORIA
   ========================================================================== */

.letter-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.letter-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(155deg, #4f1927 0%, #380f1a 100%);
  box-shadow: var(--shadow-lg);
}

.letter-card-inner {
  border: 1px solid rgba(230, 210, 177, 0.35);
  border-radius: 22px;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.6rem, 5vw, 3.8rem);
  text-align: center;
  color: #fdf6ee;
  background:
    radial-gradient(circle at top center, rgba(197, 155, 95, 0.18), transparent 55%);
}

.letter-seal {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #d7b278 0%, #ad8043 100%);
  color: #380f1a;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.letter-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.letter-heading {
  margin: 0.5rem 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  color: #ffffff;
}

.letter-body {
  margin: 0 auto;
  max-width: 58ch;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.62rem);
  line-height: 1.6;
  color: rgba(253, 246, 238, 0.92);
}

.letter-declaration {
  margin: 2rem auto 0;
  padding: 1.25rem 1.4rem;
  border-top: 1px solid rgba(230, 210, 177, 0.28);
  border-bottom: 1px solid rgba(230, 210, 177, 0.28);
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #f3d7a8;
}

.letter-signature {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.signature-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #fff8f0;
  line-height: 1.2;
}

.signature-date {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 210, 177, 0.78);
}

/* ==========================================================================
   SECCIÓN 3: 4 CAJAS INCÓGNITAS (ADIVINA EL REGALO)
   ========================================================================== */

.gifts-progress-bar {
  margin: 1.6rem auto 0;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bg-wine);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(92, 31, 46, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--bg-wine) 100%);
  transition: width 0.5s var(--ease-out);
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 860px;
  margin: 0 auto;
}

.gift-box-card {
  position: relative;
  width: 100%;
  padding: 2rem 1.6rem 1.75rem;
  border-radius: 26px;
  border: 1.5px solid var(--border-soft);
  background: linear-gradient(180deg, #fffdfb 0%, #f9f1ea 100%);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s ease;
}

.gift-box-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.gift-box-card.is-unlocked {
  background: linear-gradient(180deg, #ffffff 0%, #f8f2ec 100%);
  border-color: rgba(197, 155, 95, 0.65);
}

.gift-card-top-badge {
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg-blush);
  color: var(--bg-wine);
}

.gift-box-card.is-unlocked .gift-card-top-badge {
  background: rgba(56, 102, 78, 0.12);
  color: var(--sage);
}

/* Caja de regalo ilustrada en CSS */
.mystery-box-art {
  position: relative;
  width: 132px;
  height: 126px;
  margin: 0.5rem 0 0.2rem;
  display: grid;
  place-items: center;
}

.box-lid {
  position: absolute;
  top: 24px;
  width: 118px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #74263a 0%, #531726 100%);
  box-shadow: 0 6px 14px rgba(59, 20, 31, 0.22);
  z-index: 3;
  transition: transform 0.38s var(--ease-out);
}

.box-lid::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #e7c995 0%, #c19252 100%);
}

.box-bow {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 24px;
  z-index: 4;
  transition: transform 0.38s var(--ease-out);
}

.box-bow::before,
.box-bow::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 26px;
  height: 18px;
  border-radius: 50% 50% 6px 50%;
  border: 4px solid #d5ac6d;
}

.box-bow::before {
  left: 2px;
  transform: rotate(-16deg);
}

.box-bow::after {
  right: 2px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(16deg);
}

.box-body {
  position: absolute;
  top: 48px;
  width: 106px;
  height: 70px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #5d1e2e 0%, #3e111d 100%);
  box-shadow: 0 12px 24px rgba(59, 20, 31, 0.24);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.box-body::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #d7b172 0%, #b58646 100%);
}

.box-question {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff9f2;
  color: var(--bg-wine);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(34, 9, 16, 0.28);
}

.gift-box-card:hover .box-lid,
.gift-box-card:hover .box-bow {
  transform: translateY(-6px) rotate(-2deg);
}

.gift-box-card:hover .box-bow {
  transform: translateX(-50%) translateY(-6px) rotate(-2deg);
}

/* Vista previa cuando el regalo ya fue descubierto */
.gift-unlocked-thumb {
  width: 132px;
  height: 126px;
  margin: 0.4rem 0 0.2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold-soft);
  box-shadow: var(--shadow-sm);
  background: var(--bg-blush);
}

.gift-unlocked-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.gift-box-card:hover .gift-unlocked-thumb img {
  transform: scale(1.06);
}

.gift-box-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.gift-box-cta {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-secondary);
}

.all-gifts-banner {
  max-width: 720px;
  margin: 2.4rem auto 0;
  padding: 1.3rem 1.7rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(197, 155, 95, 0.16), rgba(92, 31, 46, 0.08));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.all-gifts-banner p {
  margin: 0;
  color: var(--ink-primary);
  font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN 4: INVITACIÓN A LA CITA (GOOGLE MAPS)
   ========================================================================== */

.date-section {
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.date-card {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.date-card-visual {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(circle at 30% 30%, rgba(197, 155, 95, 0.25), transparent 55%),
    linear-gradient(145deg, #4b1826 0%, #2c0c15 100%);
  display: grid;
  place-items: center;
  padding: 2.2rem;
  overflow: hidden;
}

.map-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 22px;
  border: 1px solid rgba(230, 210, 177, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  overflow: hidden;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(230, 210, 177, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 210, 177, 0.45) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotate(-8deg) scale(1.25);
}

.map-pulse-ring {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 210, 177, 0.55);
  animation: pulseRing 2.6s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.7);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.map-pin-badge {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8cca0 0%, #be9051 100%);
  color: #360f1a;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.map-tag {
  position: relative;
  z-index: 2;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 210, 177, 0.35);
  color: #fdf6ee;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-card-content {
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--bg-wine);
}

.date-text {
  margin: 1rem 0 1.8rem;
  font-size: 1rem;
  color: var(--ink-secondary);
}

.date-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.copy-feedback {
  min-height: 1.3rem;
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sage);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 2.5rem 0 3.2rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.footer-heart {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg-wine);
}

.footer-sub {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-tools {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.footer-link-btn {
  border: none;
  background: none;
  padding: 0.2rem 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--bg-wine);
}

/* ==========================================================================
   MODALES (Términos, Adivinar Regalo, Lightbox)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  padding: 1.25rem;
  background: rgba(29, 9, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  overflow-y: auto;
  animation: fadeIn 0.25s ease both;
}

.modal-overlay-dark {
  background: rgba(16, 6, 9, 0.88);
}

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

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  padding: 2.3rem 2rem 2rem;
  background: linear-gradient(180deg, #fffdfb 0%, #fbf4ed 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 32px 80px rgba(15, 4, 8, 0.45);
  text-align: center;
  animation: modalRise 0.34s var(--ease-out) both;
}

.modal-card-sm {
  max-width: 470px;
}

.modal-card-gift {
  max-width: 540px;
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(92, 31, 46, 0.08);
  color: var(--bg-wine);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(92, 31, 46, 0.16);
  transform: rotate(90deg);
}

.modal-close-light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.modal-close-light:hover {
  background: rgba(255, 255, 255, 0.26);
}

.modal-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-blush);
  color: var(--bg-wine);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-badge-success {
  background: rgba(56, 102, 78, 0.14);
  color: var(--sage);
}

.modal-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--bg-wine);
}

.modal-subtitle {
  margin: 0.55rem auto 1.25rem;
  max-width: 40ch;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.terms-quote-box {
  margin: 1.35rem 0 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 0 0 4px rgba(245, 233, 228, 0.45);
}

.terms-quote-box p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-style: italic;
  line-height: 1.48;
  color: var(--ink-primary);
}

.modal-micro-note {
  margin: 0 0 1.4rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.modal-actions {
  margin-top: 1.3rem;
}

/* Modal Adivinar Regalo */
.modal-gift-illustration {
  margin: 1rem auto 0.25rem;
  display: grid;
  place-items: center;
}

.mystery-orb {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-wine) 0%, #7d2c40 100%);
  border: 2.5px solid var(--gold-soft);
  box-shadow: 0 12px 26px rgba(92, 31, 46, 0.24);
  display: grid;
  place-items: center;
}

.mystery-q {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff6ea;
  line-height: 1;
}

.attempts-panel {
  margin: 0 auto 1.2rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: rgba(245, 233, 228, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.attempts-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.attempts-hearts {
  display: flex;
  gap: 0.35rem;
}

.attempt-dot {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.attempt-dot.is-active {
  color: var(--bg-wine);
}

.attempt-dot.is-used {
  color: #c9b7bc;
  opacity: 0.55;
  transform: scale(0.85);
}

.gift-guess-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.previous-guesses {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.guess-chip {
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  background: rgba(92, 31, 46, 0.08);
  color: var(--ink-muted);
  font-size: 0.78rem;
  text-decoration: line-through;
}

.hint-wrapper {
  margin-top: 1.05rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(92, 31, 46, 0.1);
}

.hint-toggle-btn {
  border: none;
  background: none;
  color: var(--rosewood);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hint-text {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-secondary);
  font-style: italic;
}

/* Estado revelado del regalo */
.reveal-image-frame {
  margin: 1.25rem auto;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--gold-soft);
  background: #fcf8f4;
  box-shadow: var(--shadow-md);
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal-image-frame img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.reveal-message {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: #ffffff;
  border-left: 3.5px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.48;
  color: var(--ink-primary);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

/* Lightbox de fotos */
.lightbox-card {
  position: relative;
  width: min(860px, 100%);
  border-radius: 24px;
  padding: 1.2rem;
  background: rgba(31, 12, 18, 0.92);
  border: 1px solid rgba(230, 210, 177, 0.25);
  animation: modalRise 0.3s var(--ease-out) both;
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  background: #14070b;
}

.lightbox-caption {
  margin-top: 1rem;
  padding: 0 0.5rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.42;
  color: #fdf5ed;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 860px) {
  .journey-timeline::before,
  .memory-node {
    display: none;
  }

  .memory-item,
  .memory-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }

  .memory-item:nth-child(even) .memory-photo-col,
  .memory-item:nth-child(even) .memory-text-col {
    order: initial;
    text-align: left;
  }

  .memory-item:nth-child(even) .memory-chapter {
    justify-content: flex-start;
  }

  .date-card {
    grid-template-columns: 1fr;
  }

  .date-card-visual {
    min-height: 230px;
  }
}

@media (max-width: 640px) {
  .top-nav-inner {
    padding: 0.55rem 0.85rem;
    border-radius: 20px;
    flex-direction: column;
    gap: 0.45rem;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }

  .login-card-frame {
    padding: 1.85rem 1.35rem 1.45rem;
  }

  .gifts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .modal-card {
    padding: 1.9rem 1.35rem 1.55rem;
  }

  .all-gifts-banner {
    justify-content: center;
    text-align: center;
  }
}
