/* ==========================================================================
   ANIVERSARIO DE NOVIOS - FLOR FLORECIENTE (BLOOMING ROMANCE)
   Diseño Romántico, Moderno, Dinámico y Elegante
   ========================================================================== */

:root {
  /* Paleta de Colores Romántica */
  --bg-dark: #090710;
  --bg-gradient: radial-gradient(circle at 50% 20%, #200e26 0%, #0d0915 50%, #06040a 100%);
  --panel-bg: rgba(26, 17, 36, 0.55);
  --panel-border: rgba(255, 182, 193, 0.18);
  --panel-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 77, 109, 0.15);

  --rose-primary: #ff4d6d;
  --rose-light: #ff8fab;
  --rose-deep: #c9184a;
  --rose-dark: #590d22;
  --gold-accent: #ffd166;
  --gold-glow: #ffeaa7;

  --text-primary: #fff0f3;
  --text-secondary: #ffccd5;
  --text-muted: #c49ba6;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bloom: all 2.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* CANVAS DE PARTÍCULAS Y PÉTALOS */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ORBES DE LUZ AMBIENTAL DE FONDO */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #ff4d6d, transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #7209b7, transparent 70%);
  bottom: 5%;
  right: -150px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #ffd166, transparent 70%);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  animation-duration: 15s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.9); }
}

/* BARRA DE NAVEGACIÓN FLOTANTE */
.floating-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 100;
}

.nav-btn {
  background: rgba(30, 15, 40, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 143, 171, 0.3);
  color: var(--text-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.nav-btn:hover {
  background: var(--rose-deep);
  border-color: var(--rose-light);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 25px rgba(255, 77, 109, 0.4);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-deep));
  border-color: var(--gold-accent);
}

/* Indicador de onda musical animado */
.music-wave {
  display: none;
  align-items: center;
  gap: 2px;
  position: absolute;
  bottom: 6px;
}

.nav-btn.playing .music-wave {
  display: flex;
}

.music-wave span {
  width: 3px;
  height: 6px;
  background: var(--gold-accent);
  border-radius: 2px;
  animation: waveAnim 1s ease-in-out infinite alternate;
}

.music-wave span:nth-child(2) { animation-delay: 0.2s; height: 10px; }
.music-wave span:nth-child(3) { animation-delay: 0.4s; height: 8px; }

@keyframes waveAnim {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* PANTALLA INTRODUCION (SOBRE / SELLO DE CERA) */
.intro-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
  background: rgba(8, 5, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

.intro-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
  position: relative;
  overflow: hidden;
}

.intro-card {
  max-width: 520px;
  width: 100%;
  padding: 48px 36px;
  text-align: center;
  border-top: 1px solid rgba(255, 209, 102, 0.3);
  animation: introPop 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes introPop {
  0% { transform: scale(0.85) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.wax-seal-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 24px auto;
  cursor: pointer;
}

.wax-seal {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 35% 35%, #ff4d6d, #b80033 70%, #590d22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(255, 77, 109, 0.5), inset 0 3px 6px rgba(255, 255, 255, 0.4), inset 0 -4px 8px rgba(0,0,0,0.5);
  border: 2px dashed rgba(255, 209, 102, 0.6);
  transition: transform 0.4s ease;
  animation: sealFloat 3s ease-in-out infinite;
}

.wax-seal-container:hover .wax-seal {
  transform: scale(1.1) rotate(6deg);
}

@keyframes sealFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.seal-ripple {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--rose-light);
  border-radius: 50%;
  animation: sealPulse 2.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  opacity: 0;
}

@keyframes sealPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.intro-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.intro-subtitle {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--rose-light);
  margin-bottom: 24px;
}

.intro-instruction {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* BOTONES PRIMARIOS */
.primary-btn {
  background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 50%, #800f2f 100%);
  color: #fff;
  border: 1px solid rgba(255, 209, 102, 0.4);
  padding: 14px 34px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(201, 24, 74, 0.45), 0 0 15px rgba(255, 77, 109, 0.3);
  font-family: var(--font-sans);
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(201, 24, 74, 0.65), 0 0 25px rgba(255, 209, 102, 0.5);
  border-color: var(--gold-accent);
}

.pulse-btn {
  animation: btnHeartbeat 2.4s infinite;
}

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

/* CONTENIDO PRINCIPAL */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 20px 100px 20px;
  transition: opacity 1.2s ease;
}

.hidden {
  display: none !important;
}

/* HEADER HERO */
.romantic-header {
  text-align: center;
  margin-bottom: 50px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 143, 171, 0.3);
  color: var(--gold-accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.main-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #ffccd5 40%, #ff758f 80%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-subtitle {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--rose-light);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   SECCIÓN DE LA FLOR FLORECIENTE (BLOOMING FLOWER)
   ========================================================================== */
.flower-stage-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 80px;
}

.flower-glow-halo {
  position: absolute;
  top: 15%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.35) 0%, rgba(255, 209, 102, 0.15) 45%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  animation: haloBreathe 5s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.85; }
}

.flower-viewport {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  perspective: 1000px;
}

.rose-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
  transition: transform 0.6s ease;
}

.flower-viewport:hover .rose-svg {
  transform: scale(1.02);
}

/* ANIMACIONES DEL TALLO Y HOJAS */
.stem-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaf-left {
  transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 295px 490px;
  transform: rotate(0deg) scale(1);
  animation: leafSwayLeft 6s ease-in-out infinite alternate;
}

.leaf-right {
  transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 297px 540px;
  transform: rotate(0deg) scale(1);
  animation: leafSwayRight 7s ease-in-out infinite alternate;
}

@keyframes leafSwayLeft {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-4deg); }
}

@keyframes leafSwayRight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(5deg); }
}

/* ANIMACIONES DE LAS CAPAS DE PÉTALOS (BLOOM / UNBLOOM) */
.petal {
  transform-origin: 300px 290px;
  transition: transform var(--transition-bloom), opacity 1.5s ease;
}

/* Corazón Radiante Central */
.flower-radiant-heart {
  transition: opacity 1.5s ease, transform 1.5s ease;
  transform-origin: 300px 235px;
  animation: radiantPulse 2s ease-in-out infinite;
}

@keyframes radiantPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 15px #ffd166); }
}

/* ==========================================================================
   ESTADOS DE FLORECIMIENTO
   ========================================================================== */

/* ESTADO CERRADO (CAPULLO - UNBLOOMED) */
.rose-svg.unbloomed .stem-path {
  stroke-dashoffset: 400;
}

.rose-svg.unbloomed .leaf-left {
  transform: rotate(45deg) scale(0.2);
  opacity: 0.3;
}

.rose-svg.unbloomed .leaf-right {
  transform: rotate(-45deg) scale(0.2);
  opacity: 0.3;
}

/* Pétalos Exteriores cerrados (apretados hacia el centro) */
.rose-svg.unbloomed .petal-out-bl { transform: rotate(35deg) scale(0.35) translate(40px, 30px); opacity: 0.2; }
.rose-svg.unbloomed .petal-out-br { transform: rotate(-35deg) scale(0.35) translate(-40px, 30px); opacity: 0.2; }
.rose-svg.unbloomed .petal-out-b  { transform: scale(0.2) translateY(50px); opacity: 0; }
.rose-svg.unbloomed .petal-out-tl { transform: rotate(40deg) scale(0.4) translate(30px, 40px); opacity: 0.3; }
.rose-svg.unbloomed .petal-out-tr { transform: rotate(-40deg) scale(0.4) translate(-30px, 40px); opacity: 0.3; }
.rose-svg.unbloomed .petal-out-top{ transform: scale(0.35) translateY(40px); opacity: 0.3; }

/* Pétalos Medios cerrados */
.rose-svg.unbloomed .petal-mid-l { transform: rotate(25deg) scale(0.5) translate(25px, 20px); }
.rose-svg.unbloomed .petal-mid-r { transform: rotate(-25deg) scale(0.5) translate(-25px, 20px); }
.rose-svg.unbloomed .petal-mid-front { transform: scale(0.6) translateY(20px); }
.rose-svg.unbloomed .petal-mid-wrap  { transform: scale(0.6) translateY(20px); }

/* Pétalos Interiores cerrados */
.rose-svg.unbloomed .petal-in-a { transform: rotate(15deg) scale(0.7) translate(15px, 10px); }
.rose-svg.unbloomed .petal-in-b { transform: rotate(-15deg) scale(0.7) translate(-15px, 10px); }
.rose-svg.unbloomed .petal-in-c { transform: scale(0.75); }

/* Capullo central apretado */
.rose-svg.unbloomed .flower-radiant-heart {
  transform: scale(0.1);
  opacity: 0;
}

/* ESTADO FLORECIDO (BLOOMED - ABIERTO EN PLENO ESPLENDOR) */
.rose-svg.bloomed .stem-path {
  stroke-dashoffset: 0;
}

.rose-svg.bloomed .leaf-left {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.rose-svg.bloomed .leaf-right {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.rose-svg.bloomed .petal-out-bl {
  transform: rotate(-22deg) translate(-25px, 15px) scale(1.12);
  opacity: 1;
}

.rose-svg.bloomed .petal-out-br {
  transform: rotate(22deg) translate(25px, 15px) scale(1.12);
  opacity: 1;
}

.rose-svg.bloomed .petal-out-b {
  transform: translateY(18px) scale(1.15);
  opacity: 1;
}

.rose-svg.bloomed .petal-out-tl {
  transform: rotate(-18deg) translate(-20px, -12px) scale(1.08);
  opacity: 1;
}

.rose-svg.bloomed .petal-out-tr {
  transform: rotate(18deg) translate(20px, -12px) scale(1.08);
  opacity: 1;
}

.rose-svg.bloomed .petal-out-top {
  transform: translateY(-20px) scale(1.08);
  opacity: 1;
}

.rose-svg.bloomed .petal-mid-l {
  transform: rotate(-12deg) translate(-10px, 0) scale(1.04);
}

.rose-svg.bloomed .petal-mid-r {
  transform: rotate(12deg) translate(10px, 0) scale(1.04);
}

.rose-svg.bloomed .petal-mid-front {
  transform: rotate(-6deg) scale(1.02);
}

.rose-svg.bloomed .petal-mid-wrap {
  transform: rotate(6deg) scale(1.02);
}

.rose-svg.bloomed .flower-radiant-heart {
  transform: scale(1);
  opacity: 1;
}

/* Destellos alrededor de la flor */
.sparkles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flower-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-accent);
  animation: sparkleRise 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkleRise {
  0% { transform: scale(0) translateY(0); opacity: 0; }
  30% { transform: scale(1.4) translateY(-30px); opacity: 1; }
  100% { transform: scale(0.2) translateY(-100px); opacity: 0; }
}

/* CONTROLES DE LA FLOR */
.flower-controls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

.bloom-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: rgba(255, 77, 109, 0.12);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 77, 109, 0.25);
}

.flower-action-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn-bloom {
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  color: #fff;
  border: 1px solid rgba(255, 209, 102, 0.4);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
  box-shadow: 0 8px 25px rgba(255, 77, 109, 0.35);
}

.action-btn-bloom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.55);
}

.action-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
}

.action-btn-secondary:hover {
  background: rgba(255, 77, 109, 0.2);
  border-color: var(--rose-light);
  transform: translateY(-2px);
}

/* Slider de Flor */
.bloom-slider-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.romantic-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 143, 171, 0.25);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.romantic-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 10px var(--rose-primary);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.romantic-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* ==========================================================================
   SECCIÓN DEL CONTADOR DE TIEMPO
   ========================================================================== */
.counter-section, .memories-section, .reasons-section, .letter-section {
  margin-bottom: 70px;
}

.section-card {
  padding: 45px 35px;
  text-align: center;
}

.section-card-wide {
  padding: 45px 35px;
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 143, 171, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 1.6rem;
  color: var(--rose-light);
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.2);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.total-days-card {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.18) 0%, rgba(201, 24, 74, 0.12) 50%, rgba(26, 17, 36, 0.7) 100%);
  border: 1px solid rgba(255, 143, 171, 0.35);
  border-radius: 24px;
  padding: 26px 20px;
  max-width: 540px;
  margin: 0 auto 28px auto;
  box-shadow: 0 15px 35px rgba(255, 77, 109, 0.15), inset 0 0 25px rgba(255, 77, 109, 0.08);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.total-days-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.total-days-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.total-days-num {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--gold-accent);
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 209, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.total-days-unit {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--text-primary);
  font-weight: 700;
}

.total-days-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 30px auto;
}

.time-box {
  background: rgba(20, 10, 28, 0.6);
  border: 1px solid rgba(255, 143, 171, 0.2);
  border-radius: 20px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.time-box:hover {
  transform: translateY(-4px);
  border-color: var(--rose-light);
  box-shadow: 0 10px 25px rgba(255, 77, 109, 0.2);
}

.highlight-box {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.4);
}

.time-value {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold-accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.time-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.anniversary-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.3);
  padding: 10px 24px;
  border-radius: 50px;
}

.anniversary-date-badge span {
  color: var(--gold-accent);
  font-weight: 600;
}

/* ==========================================================================
   SECCIÓN DE LA CARTA DE AMOR VINTAGE ELEGANTE
   ========================================================================== */
.letter-envelope-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.vintage-letter {
  padding: 50px 45px;
  background: radial-gradient(circle at 10% 10%, rgba(45, 20, 45, 0.75), rgba(20, 10, 25, 0.85));
  border: 1px solid rgba(255, 209, 102, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(255, 77, 109, 0.06);
  position: relative;
}

.letter-stamp {
  position: absolute;
  top: 30px;
  right: 35px;
  width: 65px;
  height: 75px;
  border: 2px dashed rgba(255, 209, 102, 0.4);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--rose-light);
  font-size: 1.2rem;
  background: rgba(255, 77, 109, 0.08);
  transform: rotate(8deg);
}

.letter-stamp span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold-accent);
  margin-top: 4px;
}

.letter-header {
  margin-bottom: 25px;
}

.letter-date {
  display: block;
  font-size: 0.9rem;
  color: var(--gold-accent);
  margin-bottom: 8px;
  font-style: italic;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-primary);
}

.letter-body {
  margin-bottom: 35px;
}

.typewriter-text {
  font-family: var(--font-script);
  font-size: 1.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
  word-spacing: 2px;
}

.letter-signature-block {
  text-align: right;
  margin-bottom: 25px;
}

.letter-closing {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.letter-sender-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--rose-light);
  font-weight: 600;
  margin-top: 4px;
}

.letter-footer-decor {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN DE POLAROIDS 3D (RECUERDOS)
   ========================================================================== */
.polaroid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
  perspective: 1200px;
}

.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 24px 14px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  color: #2b2b2b;
  cursor: pointer;
}

.polaroid-card:nth-child(1) { transform: rotate(-3deg); }
.polaroid-card:nth-child(2) { transform: rotate(2deg) translateY(-8px); }
.polaroid-card:nth-child(3) { transform: rotate(-2deg); }

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.04);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 77, 109, 0.4);
  z-index: 10;
}

.pin {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ff4d6d, #800f2f);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.polaroid-img-frame {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}

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

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

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 77, 109, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.polaroid-card:hover .photo-overlay {
  opacity: 1;
}

.polaroid-caption {
  padding-top: 14px;
  text-align: center;
}

.polaroid-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a0b16;
  margin-bottom: 4px;
}

.polaroid-text {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: #5e3046;
  line-height: 1.3;
}

/* ==========================================================================
   SECCIÓN DEL FRASCO DE RAZONES
   ========================================================================== */
.reason-display-card {
  max-width: 650px;
  margin: 30px auto;
  padding: 35px 30px;
  background: rgba(20, 10, 25, 0.7);
  border: 1px solid rgba(255, 143, 171, 0.25);
  border-radius: 24px;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 30px rgba(255, 77, 109, 0.08);
}

.quote-icon {
  font-size: 1.8rem;
  color: var(--gold-accent);
  opacity: 0.5;
  margin-bottom: 10px;
}

.reason-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 15px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reason-counter-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose-light);
  font-weight: 600;
}

.glow-btn {
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.45);
}

.pulse-slow {
  animation: heartPulse 3s infinite ease-in-out;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); color: var(--gold-accent); }
}

/* FOOTER ROMÁNTICO */
.romantic-footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-sub {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--rose-light);
  margin-top: 6px;
}

/* ==========================================================================
   MODAL DE PERSONALIZACIÓN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.modal-card {
  max-width: 580px;
  width: 100%;
  padding: 35px 30px;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--rose-light);
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: var(--rose-primary);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input,
.form-group textarea {
  background: rgba(10, 5, 15, 0.7);
  border: 1px solid rgba(255, 143, 171, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rose-primary);
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVIDAD Y AJUSTES MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.2rem;
  }

  .main-subtitle {
    font-size: 1.45rem;
  }

  .intro-title {
    font-size: 2rem;
  }

  .intro-subtitle {
    font-size: 1.4rem;
  }

  .intro-card {
    padding: 35px 20px;
  }

  .flower-viewport {
    height: 480px;
  }

  .countdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .time-value {
    font-size: 1.8rem;
  }

  .vintage-letter {
    padding: 35px 20px;
  }

  .typewriter-text {
    font-size: 1.45rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .total-days-card {
    padding: 20px 15px;
  }

  .total-days-num {
    font-size: 2.8rem;
  }

  .total-days-unit {
    font-size: 1.8rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flower-viewport {
    height: 400px;
  }

  .action-btn-bloom, .action-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
