/* ==========================================================================
   CONQRIÑO / REGALO DE ANIVERSARIO - ESTILOS PRINCIPALES
   Inspirado fielmente en el diseño visual de la experiencia romántica en video
   ========================================================================== */

:root {
  --bg-gradient: linear-gradient(180deg, #fcecee 0%, #fae6e8 40%, #fdf2f4 100%);
  --bg-card: #ffffff;
  --bg-card-subtle: #fff8f8;
  --primary-rose: #d84564;
  --primary-rose-light: #ff758f;
  --primary-rose-dark: #b82e48;
  --primary-crimson: #c93b54;
  --accent-gold: #d4af37;
  --text-primary: #2d2629;
  --text-secondary: #7a6e73;
  --text-muted: #a6999e;
  --border-delicate: rgba(220, 130, 150, 0.22);
  --border-strong: rgba(216, 69, 100, 0.35);
  --shadow-sm: 0 4px 12px rgba(184, 46, 72, 0.06);
  --shadow-md: 0 8px 24px rgba(184, 46, 72, 0.1);
  --shadow-lg: 0 16px 36px rgba(184, 46, 72, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-quote: 'Cormorant Garamond', Georgia, serif;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

/* Contenedor principal centrado y responsivo */
.app-container {
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 560px;
  }
}

/* ==========================================================================
   BARRA SUPERIOR (NAVBAR)
   ========================================================================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-delicate);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-crimson);
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-rose-light);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.views-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--border-delicate);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.views-pill svg {
  color: var(--primary-rose);
}

/* ==========================================================================
   PANTALLA 1: DESBLOQUEO / BIENVENIDA ("TIENES UN REGALO")
   ========================================================================== */
.unlock-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
  min-height: calc(100vh - 70px);
}

.unlock-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 38px 24px;
  width: 100%;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.unlock-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary-rose);
  font-weight: 700;
  margin-bottom: 12px;
}

.unlock-para {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.unlock-recipient {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-crimson);
  line-height: 1.15;
  margin-bottom: 10px;
}

.unlock-sender {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.unlock-quote-box {
  background: var(--bg-card-subtle);
  border-left: 3px solid var(--primary-rose-light);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  text-align: left;
}

.unlock-quote-text {
  font-family: var(--font-quote);
  font-size: 1.12rem;
  line-height: 1.5;
  font-style: italic;
  color: #443a3d;
}

.unlock-instructions {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-weight: 500;
}

/* Corazón Interactivo que se va llenando */
.heart-unlock-interactive {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  margin: 10px 0 15px;
}

.heart-svg-wrapper {
  position: relative;
  width: 120px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.heart-svg-wrapper:active {
  transform: scale(0.9);
}

.heart-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(216, 69, 100, 0.25));
}

.heart-bg-outline {
  fill: #fff0f3;
  stroke: var(--primary-rose);
  stroke-width: 2.5;
}

.heart-fill-path {
  fill: url(#heartLiquidGradient);
  transition: clip-path 0.35s ease-out;
}

.heart-tap-ripple {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 117, 143, 0.35);
  transform: scale(0);
  pointer-events: none;
}

.heart-tap-ripple.animate {
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.heart-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
}

.heart-tap-count {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-rose);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PANTALLA 2: CONTENIDO PRINCIPAL DESBLOQUEADO
   ========================================================================== */
.gift-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 16px 20px 60px;
  animation: fadeIn 0.8s ease-in-out;
}

.gift-content.hidden,
.unlock-screen.hidden {
  display: none !important;
}

/* Header de regalo abierto */
.opened-header {
  text-align: center;
  padding: 12px 0 4px;
}

.opened-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-crimson);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.opened-date {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* HERO SECTION (Foto principal con overlay) */
.hero-card {
  position: relative;
  width: 100%;
  height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(18, 12, 14, 0.82) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 22px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-tag {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 2px 0 6px;
  color: #ffffff;
}

.hero-couple {
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 8px;
}

.hero-date-line {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 600;
}

/* ==========================================================================
   SECCIÓN: NUESTRA CANCIÓN (VINILO GIRATORIO + SPOTIFY)
   ========================================================================== */
.card-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-delicate);
  position: relative;
  overflow: hidden;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-rose);
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 18px;
}

/* Reproductor Vinilo */
.music-vinyl-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.vinyl-disc-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 0%, #151515 50%, #0d0d0d 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.5s ease;
}

.vinyl-disc::before {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.vinyl-disc::after {
  content: '';
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.vinyl-art {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.vinyl-disc.spinning {
  animation: spinVinyl 6s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-play-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  background: var(--primary-crimson);
  color: #ffffff;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(201, 59, 84, 0.5);
  z-index: 5;
  transition: transform 0.15s ease, background 0.2s ease;
}

.vinyl-play-btn:active {
  transform: scale(0.92);
}

.music-title-sub {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* Card Estilo Spotify */
.spotify-card {
  background: #395026; /* Tono verde oliva o estilo Spotify */
  background: linear-gradient(135deg, #2b3e1c 0%, #1f2c14 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.spotify-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.spotify-info {
  flex: 1;
  min-width: 0;
}

.spotify-song-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1px;
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1db954;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  transition: background 0.2s ease;
}

.spotify-btn:hover {
  background: #1ed760;
}

.spotify-play-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.spotify-play-icon:active {
  transform: scale(0.9);
}

/* ==========================================================================
   SECCIÓN: GALERÍA (CARRUSEL INTERACTIVO)
   ========================================================================== */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
}

.gallery-carousel {
  width: 100%;
  height: 380px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #eee;
  box-shadow: var(--shadow-sm);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: scale(1.02);
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-counter-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 10;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  color: #fff;
  padding: 20px 16px 14px;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(216, 69, 100, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--primary-rose);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--primary-crimson);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.2s ease;
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.9);
}

.gallery-nav-btn.prev {
  left: 10px;
}

.gallery-nav-btn.next {
  right: 10px;
}

/* ==========================================================================
   SECCIÓN: CARTA DE AMOR
   ========================================================================== */
.letter-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-delicate);
  line-height: 1.75;
  color: #3b3134;
  font-size: 0.95rem;
  position: relative;
}

.letter-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(216, 69, 100, 0.08);
  pointer-events: none;
}

.letter-greeting {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-crimson);
  margin-bottom: 16px;
}

.letter-paragraphs p {
  margin-bottom: 16px;
  text-align: justify;
  text-justify: inter-word;
}

.letter-closing {
  margin-top: 24px;
  font-style: italic;
  color: var(--text-secondary);
}

.letter-signature {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-crimson);
  margin-top: 4px;
}

/* ==========================================================================
   SECCIÓN: RECUERDOS (LÍNEA DEL TIEMPO & CONTADOR DE DÍAS)
   ========================================================================== */
.counter-box {
  background: linear-gradient(135deg, #fff0f3 0%, #ffe5ea 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.counter-days-number {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary-crimson);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.counter-days-label {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-rose);
  margin-bottom: 10px;
}

.counter-live-ticker {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.ticker-item span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-crimson);
  display: block;
}

.counter-since {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.counter-city-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}

/* Línea de tiempo vertical */
.timeline-list {
  position: relative;
  padding-left: 20px;
  margin-top: 10px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 25px;
  left: 38px;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--primary-rose-light) 0,
    var(--primary-rose-light) 6px,
    transparent 6px,
    transparent 12px
  );
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.timeline-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(216, 69, 100, 0.25);
  flex-shrink: 0;
  z-index: 2;
  background: #f8d7dc;
}

.timeline-content-card {
  background: #ffffff;
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-rose);
  font-weight: 700;
  margin-bottom: 3px;
}

.timeline-item-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN: MENSAJE DE VOZ
   ========================================================================== */
.voice-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-delicate);
}

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

.voice-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff0f3;
  color: var(--primary-rose);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-title-wrap h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-rose);
  font-weight: 700;
}

.voice-title-wrap p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.voice-player-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  border: 1px solid var(--border-delicate);
}

.voice-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-crimson);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(201, 59, 84, 0.4);
  transition: transform 0.15s ease;
}

.voice-play-btn:active {
  transform: scale(0.9);
}

/* Waveform animado */
.waveform-bars {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  cursor: pointer;
}

.wave-bar {
  flex: 1;
  background: #e5c4cb;
  border-radius: 3px;
  min-height: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.wave-bar.active {
  background: var(--primary-crimson);
}

.waveform-bars.playing .wave-bar {
  animation: waveDance 1.2s ease-in-out infinite alternate;
}

@keyframes waveDance {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

.voice-duration {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 32px;
}

/* ==========================================================================
   SECCIÓN: NUESTROS LUGARES (MAPA INTERACTIVO + CARDS)
   ========================================================================== */
.map-container-box {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-delicate);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
  position: relative;
}

#leafletMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-places-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.place-card {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.place-card:hover,
.place-card.highlighted {
  border-color: var(--primary-rose);
  box-shadow: 0 4px 14px rgba(216, 69, 100, 0.15);
  transform: translateY(-2px);
}

.place-num-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-crimson);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.place-info {
  flex: 1;
}

.place-title-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
  flex-wrap: wrap;
  gap: 4px;
}

.place-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.place-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.place-story {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.place-address {
  font-size: 0.72rem;
  color: var(--primary-rose);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   SECCIÓN: BANNER FINAL DE LA PAREJA
   ========================================================================== */
.couple-banner-card {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.couple-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(20, 12, 14, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
  color: #ffffff;
}

.couple-banner-names {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.couple-banner-dedication {
  font-size: 0.95rem;
  opacity: 0.9;
  font-style: italic;
  margin-bottom: 10px;
}

.couple-banner-author {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

/* ==========================================================================
   SECCIÓN: UNA ÚLTIMA SORPRESA (TRIVIA / QUIZ & VALE ESPECIAL)
   ========================================================================== */
.surprise-teaser-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.surprise-heart-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffe3e8;
  color: var(--primary-crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.surprise-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-crimson);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.surprise-teaser-p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
}

.btn-primary-romantic {
  background: linear-gradient(135deg, var(--primary-rose) 0%, var(--primary-crimson) 100%);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(201, 59, 84, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary-romantic:active {
  transform: scale(0.95);
}

/* Modal del Quiz */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 14, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.quiz-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .quiz-modal-card {
  transform: translateY(0);
}

.quiz-progress-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-rose);
  font-weight: 700;
  margin-bottom: 4px;
}

.quiz-progress-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.quiz-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8d0d5;
}

.quiz-dot.active {
  background: var(--primary-crimson);
  width: 18px;
  border-radius: 6px;
}

.quiz-intro-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
}

.quiz-question-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.35;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.quiz-opt-btn {
  background: #fff8f9;
  border: 1.5px solid var(--border-delicate);
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.quiz-opt-btn:hover {
  background: #ffebee;
  border-color: var(--primary-rose-light);
}

.quiz-opt-btn.correct {
  background: #d4edda !important;
  border-color: #28a745 !important;
  color: #155724 !important;
  animation: pulseCorrect 0.4s ease;
}

.quiz-opt-btn.wrong {
  background: #f8d7da !important;
  border-color: #dc3545 !important;
  color: #721c24 !important;
  animation: shakeWrong 0.4s ease;
}

@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes pulseCorrect {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Pantalla de Éxito / Vale Especial */
.quiz-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-header-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-crimson);
  margin-bottom: 6px;
}

.success-header-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* TICKET CUPÓN "VALE ESPECIAL" */
.voucher-ticket {
  width: 100%;
  background: #fffafa;
  border: 2px dashed #e8a5b2;
  border-radius: var(--radius-md);
  padding: 26px 20px;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 24px rgba(216, 69, 100, 0.12);
  margin-bottom: 22px;
}

.voucher-ticket::before,
.voucher-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.voucher-ticket::before {
  left: -10px;
  border-right: 2px dashed #e8a5b2;
}

.voucher-ticket::after {
  right: -10px;
  border-left: 2px dashed #e8a5b2;
}

.voucher-scissors {
  font-size: 1.2rem;
  color: var(--primary-rose);
  margin-bottom: 4px;
}

.voucher-tag {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-rose);
  font-weight: 700;
  margin-bottom: 12px;
}

.voucher-main-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-crimson);
  line-height: 1.45;
  margin-bottom: 14px;
}

.voucher-author {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
}

/* ==========================================================================
   FOOTER WATERMARK
   ========================================================================== */
.footer-watermark {
  text-align: center;
  padding: 30px 16px 20px;
}

.watermark-text {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   BARRA FLOTANTE DE CONTROL (EDITAR / POLAROID / VISTA REGALO)
   ========================================================================== */
.floating-actions-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.floating-btn {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.floating-btn:hover {
  background: #f7e6e9;
  color: var(--primary-crimson);
}

.floating-btn.primary {
  background: linear-gradient(135deg, var(--primary-rose) 0%, var(--primary-crimson) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(201, 59, 84, 0.3);
}

.floating-btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-rose-light) 0%, var(--primary-rose) 100%);
  color: #ffffff;
}

/* Ocultar barra flotante cuando se activa el modo regalo para compartir */
body.gift-mode-active .floating-actions-bar {
  display: none !important;
}

/* Animaciones globales */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
