/* ==========================================================================
   NUESTRO CALENDARIO DE ADVIENTO ROMÁNTICO - ESTILOS GLOBALES
   Estética: Coquette / Romántica / Navideña de Lujo
   Paleta: Rosa empolvado, crema cálido, rojo cereza suave, oro champán
   ========================================================================== */

:root {
  --bg-cream: #FAF6F0;
  --bg-cream-warm: #FFFDF9;
  --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #FFF5F7 35%, #FDE8ED 70%, #F5E6E8 100%);
  
  --primary-pink: #F8C8D4;
  --primary-pink-soft: #FDE8ED;
  --primary-pink-hover: #F2AEBF;
  
  --rose-dusty: #C46D7D;
  --rose-deep: #9E3A4B;
  --cherry-red: #B52B40;
  --cherry-dark: #821424;
  
  --gold-light: #F7E7B4;
  --gold-metallic: #DFB15B;
  --gold-dark: #A57C2C;
  --gold-gradient: linear-gradient(135deg, #FFE8A3 0%, #DFB15B 50%, #C99738 100%);
  
  --mint-soft: #E0EDE6;
  --mint-accent: #78A58D;

  --text-dark: #4A2E35;
  --text-muted: #8A6870;
  --text-light: #FFF9FA;

  --border-delicate: rgba(216, 125, 138, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.85);
  
  --shadow-soft: 0 10px 30px rgba(181, 43, 64, 0.08);
  --shadow-medium: 0 14px 40px rgba(181, 43, 64, 0.14);
  --shadow-glow: 0 0 25px rgba(223, 177, 91, 0.45);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Caveat', 'Sacramento', cursive;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Twemoji: banderas e iconos inline perfectamente alineados */
img.emoji {
  height: 1.2em;
  width: 1.2em;
  vertical-align: -0.2em;
  display: inline-block;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}

/* Lienzo de partículas de fondo (Nieve y corazones sutiles) */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   GUIRNALDA DE LUCES NAVIDEÑAS SUPERIOR
   ========================================================================== */
.fairy-lights-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  padding: 0 10px;
}

.fairy-wire {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  border-bottom: 2px solid rgba(138, 104, 112, 0.35);
  border-radius: 50% / 10px;
}

.fairy-light {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 45% 45%;
  position: relative;
  top: 6px;
  animation: lightFlicker 3s infinite ease-in-out;
}

.fairy-light:nth-child(2n) {
  background: #FFE894;
  box-shadow: 0 2px 10px #FFE894;
  animation-delay: 0.3s;
}
.fairy-light:nth-child(2n+1) {
  background: #FFB3C6;
  box-shadow: 0 2px 10px #FFB3C6;
  animation-delay: 0.9s;
}
.fairy-light:nth-child(3n) {
  background: #FFF;
  box-shadow: 0 2px 12px #FFF;
  animation-delay: 1.5s;
}
.fairy-light:nth-child(4n) {
  background: #F7C59F;
  box-shadow: 0 2px 10px #F7C59F;
  animation-delay: 2.1s;
}

@keyframes lightFlicker {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.9); }
}

/* ==========================================================================
   BOTONES FLOTANTES SUPERIORES (Música, Distancia, Modo Admin)
   ========================================================================== */
.top-controls {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
}

.icon-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cherry-red);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: var(--shadow-medium);
  background: #FFF;
  color: var(--rose-deep);
}

.icon-btn.active {
  background: var(--cherry-red);
  color: #FFF;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Indicador pulsante de música */
.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.music-equalizer span {
  width: 3px;
  background: currentColor;
  border-radius: 2px;
  animation: eqBounce 1s infinite ease-in-out;
}
.music-equalizer span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.music-equalizer span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.music-equalizer span:nth-child(3) { height: 40%; animation-delay: 0.2s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Botón flotante discreto de música ambiental */
.floating-music-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border-delicate);
  border-radius: 50px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(181, 43, 64, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--cherry-red);
}

.floating-music-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px rgba(181, 43, 64, 0.28);
  background: #FFF;
}

.floating-music-btn.playing .music-icon-note {
  display: inline-block;
  animation: noteWobble 2s ease-in-out infinite alternate;
}

@keyframes noteWobble {
  0% { transform: rotate(-8deg) scale(0.95); }
  100% { transform: rotate(12deg) scale(1.1); }
}

/* ==========================================================================
   PANTALLA DE BIENVENIDA (SPLASH SCREEN ROMÁNTICO)
   ========================================================================== */
.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, #FFF4F7 0%, #FCE8EE 55%, #F5D3DE 100%);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

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

.welcome-card {
  max-width: 520px;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 42px 32px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(181, 43, 64, 0.16);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gold-gradient);
}

.welcome-bow {
  width: 72px;
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 4px 10px rgba(181, 43, 64, 0.2));
  animation: bowFloat 3s infinite ease-in-out;
}

@keyframes bowFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cherry-red);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.welcome-title span.heart-pulse {
  display: inline-block;
  animation: heartPulse 1.4s infinite;
}

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

.welcome-tagline {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 400;
}

.welcome-quote {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--rose-deep);
  margin-bottom: 30px;
  line-height: 1.35;
  position: relative;
  padding: 0 15px;
}

/* Botón principal romántico */
.btn-primary-romance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--cherry-red) 0%, #D83B52 50%, var(--rose-dusty) 100%);
  color: #FFF;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(181, 43, 64, 0.35);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary-romance::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  animation: buttonShine 4s infinite;
}

@keyframes buttonShine {
  0% { left: -60%; }
  25% { left: 140%; }
  100% { left: 140%; }
}

.btn-primary-romance:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(181, 43, 64, 0.45);
}

.welcome-footnote {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

/* ==========================================================================
   CABECERA PRINCIPAL (ESTILO HASTAEL24 + TOQUES ROMÁNTICOS)
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.calendar-header {
  text-align: center;
  margin-bottom: 34px;
  position: relative;
}

/* Cinta decorativa superior */
.festive-ribbon-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-delicate);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}

.festive-ribbon-bar .ribbon-icon {
  font-size: 1.15rem;
}

.festive-ribbon-bar .ribbon-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rose-deep);
  letter-spacing: 0.3px;
}

/* Título de dedicatoria */
.dedication-badge {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--rose-dusty);
  margin-bottom: -4px;
}

.main-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--cherry-red);
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(181, 43, 64, 0.08);
}

.main-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

/* Banner de distancia y huso horario España - Colombia */
.distance-time-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px auto 0;
  max-width: 700px;
}

.dual-clock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.dual-clock-chip .flag {
  font-size: 1.1rem;
}

.dual-clock-chip .time-bold {
  font-weight: 700;
  color: var(--cherry-red);
}

.reunion-countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 232, 163, 0.7) 0%, rgba(223, 177, 91, 0.4) 100%);
  border: 1px solid var(--gold-metallic);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   BARRA DE PROGRESO DE LOS 24 DÍAS
   ========================================================================== */
.progress-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin: 0 auto 36px;
  max-width: 540px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(216, 125, 138, 0.16);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-dusty), var(--cherry-red), var(--gold-metallic));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shineProgress 2.5s infinite;
}

@keyframes shineProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   SECCIÓN INFERIOR: RINCÓN "AUNQUE ESTÉS LEJOS"
   ========================================================================== */
.distance-care-section {
  margin-top: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.distance-care-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cherry-red);
  margin-bottom: 8px;
}

.distance-care-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 22px;
}

.care-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.care-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #FFF;
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(181, 43, 64, 0.05);
  transition: var(--transition-bounce);
}

.care-pill-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cherry-red);
  color: var(--cherry-red);
  box-shadow: var(--shadow-soft);
}

/* Pie de página */
.romantic-footer {
  text-align: center;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px dashed var(--border-delicate);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.romantic-footer .signature {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--rose-deep);
  display: block;
  margin-top: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVILES Y PANTALLAS PEQUEÑAS)
   ========================================================================== */
@media (max-width: 768px) {
  .main-wrapper {
    padding: 42px 14px 60px;
  }
  .welcome-card {
    padding: 32px 20px;
  }
  .welcome-title {
    font-size: 1.8rem;
  }
  .main-title {
    font-size: 2rem;
  }
  .distance-time-bar {
    flex-direction: column;
    gap: 8px;
  }
  .top-controls {
    top: 12px;
    right: 12px;
    gap: 6px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
  }
}
