/* ==========================================================================
   INVITACIÓN DIGITAL DE BAUTIZO - DYLAN ALVAREZ ESCOBEDO
   Diseño Exclusivo: Celestial Dusty Blue & Champagne Gold (Bautizo Niño)
   ========================================================================== */

:root {
  /* Lienzo y Fondos */
  --color-canvas: #f2f7fb;
  --color-paper: #ffffff;
  --color-paper-alt: #f8fbfe;
  
  /* Azul Polvo / Celeste Etereo (Boy Baptism Modern Palette) */
  --blue-primary: #5282a6;
  --blue-dark: #2f5470;
  --blue-light: #d6e8f5;
  --blue-soft: #edf5fa;
  --blue-border: #bfd8ec;
  --blue-gradient: linear-gradient(135deg, #6ba0c7 0%, #46789b 100%);
  --blue-gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f2f7fb 100%);

  /* Oro Champaña Suave / Foil Dorado Sutil */
  --gold-primary: #c5a059;
  --gold-light: #faeac7;
  --gold-dark: #8c6e33;
  --gold-subtle: #e6ce9e;
  --gold-border: #dfc79b;
  --gold-gradient: linear-gradient(135deg, #dfbe7e 0%, #faeac7 40%, #c5a059 70%, #9e7a35 100%);
  --gold-gradient-soft: linear-gradient(180deg, #ffffff 0%, #f9fcfe 100%);
  --gold-shine: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 60%);

  /* Textos */
  --color-text-main: #2d3e4e;
  --color-text-muted: #5e7488;
  --color-text-light: #8ba0b2;
  
  /* Tipografías */
  --font-script: 'Alex Brush', 'Pinyon Script', 'Great Vibes', cursive;
  --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --card-radius: 20px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-card: 0 14px 38px rgba(70, 110, 140, 0.10), 0 4px 12px rgba(0, 0, 0, 0.02);
}

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

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

body {
  background-color: var(--color-canvas);
  background-image: 
    radial-gradient(#dce8f2 1px, transparent 1px),
    radial-gradient(#dce8f2 1px, #f2f7fb 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ocultar elementos */
.hidden {
  display: none !important;
}

/* ==========================================================================
   1. PANTALLA INICIAL: SOBRE INTERACTIVO 3D (CELESTIAL & GOLD)
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #ffffff 0%, #e9f2f8 65%, #d5e5f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 380px;
  width: 100%;
}

.envelope-intro {
  text-align: center;
  margin-bottom: 22px;
}

.envelope-cross-top {
  display: inline-block;
  color: var(--gold-primary);
  font-size: 1.5rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(197, 160, 89, 0.3));
}

.envelope-tagline {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-primary);
  font-weight: 600;
}

.envelope-title {
  font-family: var(--font-script);
  font-size: 3.4rem;
  color: var(--blue-dark);
  line-height: 1.05;
  margin: 2px 0 4px 0;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.9);
}

.envelope-sub {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Geometría 3D del Sobre en Azul Pastel y Oro */
.envelope {
  position: relative;
  width: 320px;
  height: 220px;
  background: #cbdfe9;
  border-radius: 10px;
  box-shadow: 
    0 22px 48px rgba(70, 110, 140, 0.25),
    0 8px 16px rgba(0, 0, 0, 0.05);
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.envelope:hover {
  transform: translateY(-4px);
}

/* Interior del sobre */
.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #c0d7e6 0%, #a8c4d8 100%);
  border-radius: 10px;
}

/* Carta interior que se desliza */
.envelope-letter {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 10px;
  height: 195px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--blue-border);
  box-shadow: 0 6px 16px rgba(47, 84, 112, 0.12);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.letter-content {
  border: 1px dashed var(--gold-border);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafe 100%);
}

.letter-cross {
  color: var(--gold-primary);
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.letter-names {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--blue-dark);
}

.letter-child {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--blue-primary);
  line-height: 1.1;
  margin: 2px 0;
}

.letter-sub {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}

.letter-date {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--blue-primary);
  font-weight: 600;
  margin-top: 5px;
}

/* Bolsillo frontal del sobre */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  clip-path: polygon(0 0, 160px 115px, 320px 0, 320px 220px, 0 220px);
  background: linear-gradient(135deg, #e1eff7 0%, #d0e4f2 60%, #bed8ea 100%);
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.75);
}

/* Solapa superior que dobla en 3D */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #d3e5f2 0%, #bcd6e7 100%);
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

/* Sello de cera en relieve con brillo dorado */
.wax-seal {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #faeac7 0%, #dfbe7e 55%, #a68138 100%);
  border-radius: 50%;
  box-shadow: 
    0 6px 16px rgba(140, 110, 51, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -3px 5px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.4s ease;
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.08);
}

.wax-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 80%);
}

.wax-monogram {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: #ffffff;
  text-shadow: 
    1px 1px 2px rgba(80, 55, 10, 0.8),
    -1px -1px 1px rgba(255, 255, 255, 0.6);
}

.seal-ripple {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(223, 190, 126, 0.7);
  animation: rippleGlow 2s infinite ease-out;
  pointer-events: none;
}

@keyframes rippleGlow {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.tap-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--blue-dark);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.bounce-icon {
  animation: bounceHint 1.8s infinite ease-in-out;
  font-size: 1.2rem;
  color: var(--gold-primary);
}

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

/* Estado de apertura del sobre */
.envelope.opening .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope.opening .wax-seal {
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
}

.envelope.opening .envelope-letter {
  transform: translateY(-90px);
  z-index: 3;
}


/* ==========================================================================
   BOTÓN FLOTANTE DE MÚSICA
   ========================================================================== */
.floating-music-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 84, 112, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.floating-music-btn:hover {
  transform: scale(1.08);
}

.music-note-icon {
  font-size: 1.15rem;
}

.music-bars {
  position: absolute;
  bottom: 8px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.music-bars span {
  width: 2px;
  height: 100%;
  background: #fff;
  border-radius: 1px;
  animation: soundBar 1s infinite alternate ease-in-out;
}

.music-bars span:nth-child(1) { animation-delay: 0.1s; }
.music-bars span:nth-child(2) { animation-delay: 0.3s; }
.music-bars span:nth-child(3) { animation-delay: 0.2s; }
.music-bars span:nth-child(4) { animation-delay: 0.4s; }

@keyframes soundBar {
  0% { height: 2px; }
  100% { height: 10px; }
}

.floating-music-btn.paused .music-bars span {
  animation-play-state: paused;
  height: 2px;
}

.floating-music-btn.paused {
  opacity: 0.75;
  filter: grayscale(0.4);
}


/* ==========================================================================
   2. CONTENIDO PRINCIPAL DE LA INVITACIÓN
   ========================================================================== */
.invitation-container {
  max-width: 490px;
  margin: 0 auto;
  padding: 24px 16px 105px 16px;
  animation: fadeInApp 1s ease forwards;
}

@keyframes fadeInApp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.invitation-scroll-view {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Tarjeta / Estilo Papel Opalina & Borde Arqueado */
.invitation-card {
  position: relative;
  background: var(--color-paper);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 12px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(191, 216, 236, 0.4);
}

/* Marco interior con doble línea: fina dorada exterior + dashed azul interior */
.card-frame {
  position: relative;
  border: 1px solid var(--gold-border);
  border-radius: calc(var(--card-radius) - 4px);
  padding: 34px 22px;
  text-align: center;
  background: var(--gold-gradient-soft);
}

.card-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(82, 130, 166, 0.35);
  border-radius: calc(var(--card-radius) - 8px);
  pointer-events: none;
}

/* Esquinas ornamentales botánicas en oro y eucalipto */
.corner-ornament {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}

.corner-ornament.top-left {
  top: 8px;
  left: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M2 38 C 2 12, 12 2, 38 2 M2 22 C 10 16, 18 10, 30 10 M10 30 C 16 18, 22 10, 30 10' fill='none' stroke='%23c5a059' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M8 8 Q 16 16 24 8 Q 16 2 8 8 Z' fill='%23d6e8f5' stroke='%235282a6' stroke-width='1'/%3E%3C/svg%3E");
}

.corner-ornament.top-right {
  top: 8px;
  right: 8px;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M2 38 C 2 12, 12 2, 38 2 M2 22 C 10 16, 18 10, 30 10 M10 30 C 16 18, 22 10, 30 10' fill='none' stroke='%23c5a059' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M8 8 Q 16 16 24 8 Q 16 2 8 8 Z' fill='%23d6e8f5' stroke='%235282a6' stroke-width='1'/%3E%3C/svg%3E");
}

.corner-ornament.bottom-left {
  bottom: 8px;
  left: 8px;
  transform: scaleY(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M2 38 C 2 12, 12 2, 38 2 M2 22 C 10 16, 18 10, 30 10 M10 30 C 16 18, 22 10, 30 10' fill='none' stroke='%23c5a059' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M8 8 Q 16 16 24 8 Q 16 2 8 8 Z' fill='%23d6e8f5' stroke='%235282a6' stroke-width='1'/%3E%3C/svg%3E");
}

.corner-ornament.bottom-right {
  bottom: 8px;
  right: 8px;
  transform: scale(-1, -1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M2 38 C 2 12, 12 2, 38 2 M2 22 C 10 16, 18 10, 30 10 M10 30 C 16 18, 22 10, 30 10' fill='none' stroke='%23c5a059' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M8 8 Q 16 16 24 8 Q 16 2 8 8 Z' fill='%23d6e8f5' stroke='%235282a6' stroke-width='1'/%3E%3C/svg%3E");
}

/* ==========================================================================
   PORTADA DE BAUTIZO
   ========================================================================== */
.card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--blue-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.badge-cross {
  color: var(--gold-primary);
  font-size: 1rem;
}

.baptism-art-container {
  max-width: 185px;
  margin: 6px auto 14px auto;
  position: relative;
}

.baptism-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(82, 130, 166, 0.18));
}

.intro-phrase {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 10px;
  font-style: italic;
}

.child-name {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 11vw, 4.2rem);
  line-height: 1.05;
  color: var(--blue-dark);
  margin: 6px 0;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}

.child-name .surname {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-top: 4px;
}

/* Divisores ornamentales */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto;
  max-width: 220px;
}

.divider-ornament.small {
  margin: 12px auto;
  max-width: 160px;
}

.divider-ornament .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.divider-ornament .diamond {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.sacrament-lead {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-light);
  font-weight: 500;
}

.sacrament-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue-dark);
  line-height: 1.4;
  margin-top: 4px;
  text-transform: uppercase;
}

.quick-details {
  margin-top: 24px;
  padding: 16px;
  background: rgba(242, 247, 251, 0.85);
  border-radius: 14px;
  border: 1px solid var(--blue-border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--color-text-main);
}

.quick-item i {
  color: var(--blue-primary);
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
}

.swipe-hint {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--blue-primary);
  font-weight: 500;
}

.swipe-hint i {
  animation: bounceHint 2s infinite ease-in-out;
  color: var(--gold-primary);
}


/* ==========================================================================
   ICONOS SUPERIORES Y TÍTULOS DE SECCIÓN
   ========================================================================== */
.card-top-icon {
  margin-bottom: 6px;
}

.icon-gold {
  font-size: 2.2rem;
  color: var(--gold-primary);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(197, 160, 89, 0.25));
}

.section-title-script {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 10vw, 4rem);
  color: var(--blue-dark);
  line-height: 1.05;
  margin-bottom: 4px;
}

.section-sub {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  padding: 0 10px;
}


/* ==========================================================================
   TARJETA 2: PADRINOS
   ========================================================================== */
.godparents-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.godparent-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 20px 16px;
  position: relative;
  box-shadow: 0 4px 14px rgba(82, 130, 166, 0.08);
}

.godparent-badge {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background: var(--blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(82, 130, 166, 0.35);
  border: 2px solid #ffffff;
}

.role-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.godparent-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.role-desc {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 6px;
}


/* ==========================================================================
   TARJETA 3: MENSAJE & ORACIÓN
   ========================================================================== */
.prayer-box {
  padding: 10px 6px;
}

.prayer-intro {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.prayer-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--color-text-main);
  line-height: 1.7;
}

.prayer-outro {
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.6;
}

.prayer-outro strong {
  color: var(--blue-dark);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}


/* ==========================================================================
   TARJETA 4: FECHA Y CUENTA REGRESIVA
   ========================================================================== */
.date-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--blue-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.date-hero {
  margin: 16px 0;
}

.date-day-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 4px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.date-main-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.date-month, .date-year {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 2.5px;
  color: var(--blue-dark);
  font-weight: 700;
}

.date-big {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-dark);
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(82, 130, 166, 0.15);
}

.ceremony-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 26px;
  background: linear-gradient(135deg, #ffffff 0%, #edf5fa 100%);
  border: 1.5px solid var(--blue-border);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 1.5px;
  box-shadow: 0 4px 14px rgba(82, 130, 166, 0.12);
}

.ceremony-time-pill i {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.countdown-title {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.time-card {
  background: #fff;
  border: 1.5px solid var(--blue-border);
  border-radius: 12px;
  padding: 10px 8px;
  min-width: 66px;
  box-shadow: 0 4px 12px rgba(82, 130, 166, 0.08);
}

.time-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
}

.time-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.time-colon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-top: -12px;
}


/* ==========================================================================
   TARJETA 5: UBICACIONES Y MAPAS
   ========================================================================== */
.venue-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 18px 14px;
  margin: 14px 0;
  box-shadow: 0 4px 14px rgba(82, 130, 166, 0.05);
}

.venue-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f7fb;
  border: 1px solid var(--blue-border);
  color: var(--blue-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.venue-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
}

.venue-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: #fdfaf3;
  padding: 4px 14px;
  border-radius: 14px;
  margin: 6px 0 10px 0;
  border: 1px dashed var(--gold-border);
}

.venue-time-badge i {
  color: var(--gold-primary);
}

.venue-address {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 6px 0 14px 0;
}

.map-embed-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--blue-border);
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.map-embed-wrapper iframe {
  display: block;
  width: 100% !important;
}

.btn-action-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: var(--blue-gradient);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(82, 130, 166, 0.35);
  transition: var(--transition-smooth);
}

.btn-action-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(82, 130, 166, 0.45);
}


/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.invitation-footer {
  text-align: center;
  padding: 30px 10px 15px 10px;
  color: var(--color-text-light);
}

.footer-blessing {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 3rem);
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.1;
}

.footer-family {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}

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


/* ==========================================================================
   3. BARRA DE NAVEGACIÓN INFERIOR FIJA
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--blue-border);
  border-radius: 35px;
  box-shadow: 0 10px 30px rgba(70, 110, 140, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.nav-btn i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.nav-btn:hover i {
  transform: translateY(-2px);
}

.nav-btn.active {
  color: var(--blue-dark);
  font-weight: 700;
}

.nav-btn.active i {
  color: var(--blue-primary);
  transform: scale(1.18);
}


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 360px) {
  .envelope {
    width: 290px;
    height: 200px;
  }
  .child-name {
    font-size: 2.8rem;
  }
  .time-card {
    min-width: 58px;
    padding: 8px 4px;
  }
  .time-val {
    font-size: 1.35rem;
  }
  .bottom-nav {
    height: 58px;
  }
  .nav-btn span {
    font-size: 0.6rem;
  }
}
