/* ==========================================================================
   REGALO MÁGICO DE FLORES AMARILLAS - PARA ARIELYS CONCE 🌻✨
   Estilos de Alta Gama · Efectos 3D · Temática Oro y Crepúsculo
   ========================================================================== */

:root {
  /* Paleta de Oro Radiante */
  --gold-pure: #ffd700;
  --gold-glow: #ffc200;
  --gold-warm: #ffb703;
  --gold-light: #fff3b0;
  --gold-dark: #b8860b;
  --amber-rich: #fb8500;
  
  /* Fondos Crepúsculo & Noche Estrellada */
  --bg-dark: #07060d;
  --bg-deep: #0e0a1a;
  --bg-twilight: #1a122e;
  --bg-radial: radial-gradient(circle at 50% 15%, #23163d 0%, #0f0b1c 55%, #05040a 100%);
  
  /* Texturas de Papel & Pergamino */
  --parchment-bg: #fffbf0;
  --parchment-border: #dfc888;
  --wax-red: #d97706;
  --wax-gold: #e69d00;
  
  /* Glassmorphism & Brillo */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 215, 0, 0.22);
  --glass-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.12);
  --gold-shadow: 0 10px 30px rgba(255, 183, 3, 0.35);

  /* Tipografías */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cinzel: 'Cinzel', 'Playfair Display', serif;
  --font-cursive: 'Dancing Script', 'Alex Brush', cursive;
  --font-brush: 'Alex Brush', cursive;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transiciones */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
  background-color: var(--bg-dark);
  background-image: var(--bg-radial);
  background-attachment: fixed;
  color: #f7f6fd;
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Canvas de Fondo (Pétalos, Luciérnagas, Chispas) */
#petalCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Contenedor Central */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ==========================================================================
   BARRA FLOTANTE DE ACCIONES RÁPIDAS (DOCK)
   ========================================================================== */
.floating-dock {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.75rem;
  z-index: 999;
  background: rgba(18, 14, 33, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.15);
  transition: transform 0.3s ease;
}

.dock-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: var(--gold-pure);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s var(--ease-spring);
}

.dock-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-3px) scale(1.08);
  border-color: var(--gold-pure);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.dock-btn.playing {
  background: var(--gold-pure);
  color: #1a1200;
  animation: pulseMusic 1.8s infinite;
}

@keyframes pulseMusic {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.dock-tooltip {
  position: absolute;
  bottom: -28px;
  font-size: 0.7rem;
  color: var(--gold-light);
  background: rgba(10, 8, 18, 0.9);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}

.dock-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PANTALLA DE DESBLOQUEO / OVERLAY DE REGALO
   ========================================================================== */
.unlock-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, #201538 0%, #0c0817 60%, #040308 100%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  transition: opacity 1.2s var(--ease-smooth), visibility 1.2s;
}

.unlock-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stars-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffd700, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 80px 140px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 70px, #ffe066, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 260px 190px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 320px 40px, #ffd700, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 350px 350px;
  opacity: 0.45;
  animation: starsDrift 60s linear infinite;
  pointer-events: none;
}

@keyframes starsDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-350px); }
}

.gift-box-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring);
}

.gift-box-wrapper:hover {
  transform: translateY(-8px) scale(1.06);
}

.gift-glow-halo {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.45) 0%, rgba(255, 183, 3, 0) 70%);
  animation: haloBreath 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes haloBreath {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

.gift-box-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  animation: giftWiggle 4s ease-in-out infinite;
}

@keyframes giftWiggle {
  0%, 85%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-5deg) scale(1.02); }
  92% { transform: rotate(5deg) scale(1.02); }
  96% { transform: rotate(-3deg); }
}

.click-hint-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.unlock-text-group {
  max-width: 550px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.unlock-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-pure);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.unlock-title {
  font-family: var(--font-cinzel);
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.name-highlight {
  font-family: var(--font-cursive);
  font-size: 2.8rem;
  background: linear-gradient(135deg, #fff3b0 0%, #ffd700 50%, #ff9f1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}

.unlock-subtitle {
  color: #cfcbdf;
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}

.btn-open-gift {
  background: linear-gradient(135deg, #ffd700 0%, #ffa751 100%);
  color: #1e1302;
  border: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(255, 183, 3, 0.4), 0 0 20px rgba(255, 215, 0, 0.3);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  z-index: 2;
}

.btn-open-gift:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 15px 40px rgba(255, 183, 3, 0.6), 0 0 30px rgba(255, 215, 0, 0.5);
  color: #000;
}

.btn-open-gift:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-sparkle-icon {
  font-size: 1.3rem;
  animation: rotateGently 8s linear infinite;
}

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

/* ==========================================================================
   SECCIONES Y ENCABEZADOS COMUNES
   ========================================================================== */
section {
  padding: 4.5rem 0;
  position: relative;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--gold-pure);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-cinzel);
  font-size: 2.3rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.section-subtitle {
  color: #b8b2cb;
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.hero-title {
  font-family: var(--font-cinzel);
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #fff;
}

.recipient-name {
  font-family: var(--font-cursive);
  font-size: 4.2rem;
  background: linear-gradient(135deg, #fff7c2 0%, #ffd700 45%, #ff9f1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.45));
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cdc7df;
  font-style: italic;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.hero-art-container {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.5) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 159, 28, 0.4) 100%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(255, 215, 0, 0.2);
  transition: transform 0.5s var(--ease-spring);
}

.hero-art-container:hover {
  transform: translateY(-6px) scale(1.01);
}

.hero-art-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 380px;
}

.hero-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.8s ease;
}

.hero-art-container:hover .hero-art-img {
  transform: scale(1.04);
}

.sunbeam-fx {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(255, 235, 153, 0.35) 0%, rgba(255, 183, 3, 0.1) 45%, transparent 75%);
  pointer-events: none;
}

.hero-art-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 1.25rem 1.75rem;
  background: rgba(12, 9, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-art-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff6d1;
  font-style: italic;
  line-height: 1.45;
}

/* ==========================================================================
   JARDÍN Y RAMO ANIMADO CON BRISA
   ========================================================================== */
.garden-section {
  text-align: center;
}

.garden-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.breeze-garden-bg {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
}

.breeze-stem {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 160px;
  background: linear-gradient(to top, #1a4d2e, #2d6a4f, #52b788);
  border-radius: 4px;
  transform-origin: bottom center;
}

.stem-left {
  left: 18%;
  height: 140px;
  animation: swayBreeze 4.5s ease-in-out infinite alternate;
}

.stem-center {
  left: 50%;
  height: 180px;
  animation: swayBreeze 5.2s ease-in-out infinite alternate-reverse;
}

.stem-right {
  right: 18%;
  height: 150px;
  animation: swayBreeze 4.8s ease-in-out 0.5s infinite alternate;
}

@keyframes swayBreeze {
  0% { transform: rotate(-5deg); }
  50% { transform: rotate(4deg); }
  100% { transform: rotate(-3deg); }
}

.canvas-card-wrapper {
  background: rgba(17, 13, 30, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 215, 0, 0.12);
  position: relative;
  z-index: 2;
}

#bouquetCanvas {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  display: block;
  cursor: pointer;
  background: radial-gradient(circle at 50% 40%, rgba(45, 25, 68, 0.5) 0%, rgba(13, 9, 23, 0.9) 80%);
}

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

.btn-garden {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  backdrop-filter: blur(6px);
}

.btn-garden:hover {
  background: rgba(255, 215, 0, 0.18);
  border-color: var(--gold-pure);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.btn-garden.btn-glow {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 159, 28, 0.2) 100%);
  border-color: var(--gold-pure);
}

/* ==========================================================================
   CARTA INTERACTIVA EN SOBRE 3D CON SELLO DE CERA
   ========================================================================== */
.letter-section {
  text-align: center;
}

.envelope-scene {
  perspective: 1400px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.envelope-box {
  width: 100%;
  max-width: 760px;
  position: relative;
  transition: transform 0.6s ease;
}

/* Solapa superior del sobre */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, #3d2459 0%, #251639 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s;
  z-index: 5;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  border-top: 1px solid rgba(255, 215, 0, 0.3);
}

/* Sello de cera 3D */
.wax-seal {
  position: absolute;
  top: 135px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffcc00 0%, #d48800 65%, #8f5400 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.6), inset 0 -3px 5px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-spring), opacity 0.5s ease;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 10px 30px rgba(255, 183, 3, 0.6), 0 0 20px rgba(255, 215, 0, 0.6);
}

.wax-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-sunflower {
  font-size: 2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.wax-border-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 245, 180, 0.6);
  pointer-events: none;
}

.seal-tooltip {
  position: absolute;
  bottom: -32px;
  background: rgba(12, 8, 22, 0.9);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid rgba(255, 215, 0, 0.4);
  opacity: 0.95;
  pointer-events: none;
  animation: floatTooltip 2s ease-in-out infinite alternate;
}

@keyframes floatTooltip {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

/* Bolsillo frontal del sobre */
.envelope-pocket {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: linear-gradient(135deg, #2b1842 0%, #1a0f2b 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 0 0 18px 18px;
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

/* Papel de la Carta */
.letter-paper {
  background: #fdfaf0;
  color: #29241b;
  border-radius: 16px;
  padding: 2.75rem 2.25rem;
  position: relative;
  z-index: 3;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 215, 0, 0.15);
  transform: translateY(30px) scale(0.96);
  opacity: 0.85;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
}

/* Estado ABIERTO del sobre */
.envelope-box.opened .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-box.opened .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
}

.envelope-box.opened .letter-paper {
  transform: translateY(0) scale(1);
  opacity: 1;
  z-index: 6; /* Se coloca sobre el bolsillo */
}

.parchment-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(207, 181, 120, 0.12) 1px, transparent 0);
  background-size: 20px 20px;
  border-radius: 16px;
  pointer-events: none;
}

.letter-inner-border {
  border: 1px solid rgba(204, 154, 38, 0.4);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  position: relative;
  text-align: left;
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(204, 154, 38, 0.35);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.letter-date {
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  font-weight: 700;
  color: #8c6218;
  letter-spacing: 1px;
}

.letter-stamp {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #cc9a26;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8c6218;
  letter-spacing: 1.5px;
}

.typewriter-box {
  font-family: var(--font-cursive);
  font-size: 1.65rem;
  line-height: 1.85;
  color: #2b2214;
  min-height: 190px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background-color: #8c6218;
  vertical-align: middle;
  margin-left: 2px;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.letter-signature {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(204, 154, 38, 0.35);
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #634b1c;
}

.signature-name {
  font-family: var(--font-cursive);
  font-size: 1.9rem;
  color: #b37400;
  font-weight: 700;
  display: inline-block;
  margin-top: 0.25rem;
}

.letter-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-letter-control {
  background: #f4ebd0;
  border: 1px solid #cc9a26;
  color: #6d4c0b;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-letter-control:hover {
  background: #e8dbb5;
  color: #3b2700;
}

/* ==========================================================================
   PÉTALOS DE CARIÑO (RAZONES INTERACTIVAS CON FLIP 3D)
   ========================================================================== */
.reasons-section {
  text-align: center;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.reason-card {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
}

.reason-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 20px;
}

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

.reason-front, .reason-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.reason-front {
  background: rgba(26, 18, 46, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 215, 0, 0.28);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.reason-card:hover .reason-front {
  border-color: var(--gold-pure);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.25);
}

.reason-icon {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  transition: transform 0.3s var(--ease-spring);
}

.reason-card:hover .reason-icon {
  transform: scale(1.15) rotate(8deg);
}

.reason-number {
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  color: var(--gold-pure);
  font-weight: 700;
  letter-spacing: 1px;
}

.reason-hint {
  font-size: 0.75rem;
  color: #a49cb5;
  margin-top: 0.35rem;
}

.reason-back {
  background: linear-gradient(135deg, #ffd700 0%, #ff9f1c 100%);
  color: #1a1002;
  transform: rotateY(180deg);
  border: 1px solid #ffe57f;
  box-shadow: 0 12px 30px rgba(255, 183, 3, 0.4);
}

.reason-back p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ==========================================================================
   GALERÍA POLAROID INTERACTIVA CON 3D TILT
   ========================================================================== */
.memory-section {
  text-align: center;
}

.polaroid-gallery {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 22px 14px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.1);
  position: relative;
  width: 320px;
  cursor: pointer;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.polaroid-card:nth-child(1) {
  transform: rotate(-2.5deg);
}

.polaroid-card:nth-child(2) {
  transform: rotate(2.5deg);
}

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 215, 0, 0.35);
  z-index: 5;
}

.polaroid-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: rgba(255, 235, 153, 0.7);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.polaroid-tape.gold-tape {
  background: rgba(255, 215, 0, 0.65);
}

.polaroid-img-box {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #110e1a;
  border-radius: 2px;
}

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

.polaroid-card:hover .polaroid-img {
  transform: scale(1.06);
}

.polaroid-caption {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.polaroid-text {
  font-family: var(--font-cursive);
  font-size: 1.35rem;
  color: #241d13;
  font-weight: 700;
  text-align: left;
}

.polaroid-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b37d00;
  background: #fff8d6;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   FOOTER POÉTICO
   ========================================================================== */
.gift-footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  position: relative;
  z-index: 2;
}

.footer-sunflower {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: pulseSunflower 3s infinite ease-in-out alternate;
}

@keyframes pulseSunflower {
  0% { transform: scale(0.95) rotate(-5deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

.footer-msg {
  font-size: 1.15rem;
  color: #ded9f0;
  margin-bottom: 0.5rem;
}

.footer-name {
  font-family: var(--font-cursive);
  font-size: 1.8rem;
  color: var(--gold-pure);
}

.footer-sub {
  font-size: 0.9rem;
  color: #928ca0;
}

/* ==========================================================================
   ADAPTABILIDAD MÓVIL (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .recipient-name {
    font-size: 3.2rem;
  }

  .unlock-title {
    font-size: 1.8rem;
  }

  .name-highlight {
    font-size: 2.2rem;
  }

  .hero-art-frame {
    height: 280px;
  }

  .letter-paper {
    padding: 1.8rem 1.2rem;
  }

  .letter-inner-border {
    padding: 1.2rem 0.9rem;
  }

  .typewriter-box {
    font-size: 1.35rem;
    line-height: 1.7;
  }

  .floating-dock {
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.5rem;
    gap: 0.5rem;
  }

  .dock-btn {
    width: 38px;
    height: 38px;
  }

  .polaroid-gallery {
    gap: 2rem;
  }

  .polaroid-card {
    width: 100%;
    max-width: 310px;
  }
}
