/* ==========================================================================
   ESTILOS GENERALES Y PALETA DE COLORES (LUXURY GOLD & IVORY)
   ========================================================================== */
:root {
  --color-canvas: #f5f0e6;
  --color-paper: #fffdf9;
  --color-paper-alt: #faf6ee;
  
  --gold-primary: #b88d3b;
  --gold-light: #f5e0a9;
  --gold-dark: #8c6721;
  --gold-subtle: #d9c49d;
  --gold-border: #d4b988;
  
  --gold-gradient: linear-gradient(135deg, #b88d3b 0%, #f6e1a8 45%, #d4af37 70%, #9a7024 100%);
  --gold-gradient-soft: linear-gradient(180deg, #fdfbf7 0%, #f7f1e4 100%);
  --gold-shine: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%);

  --color-text-main: #332d28;
  --color-text-muted: #766d64;
  --color-text-light: #9d948b;
  
  --font-script: 'Pinyon Script', 'Great Vibes', cursive;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --card-radius: 18px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-card: 0 12px 35px rgba(184, 141, 59, 0.12), 0 4px 15px rgba(0, 0, 0, 0.04);
}

* {
  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(#e7ded0 0.8px, transparent 0.8px),
    radial-gradient(#e7ded0 0.8px, #f5f0e6 0.8px);
  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
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #faf7f2 0%, #ede5d5 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: 24px;
}

.envelope-tagline {
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
}

.envelope-title {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold-dark);
  line-height: 1.1;
  margin: 4px 0;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.envelope-sub {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Geometría y 3D del Sobre */
.envelope {
  position: relative;
  width: 320px;
  height: 220px;
  background: #ecdcc1;
  border-radius: 8px;
  box-shadow: 
    0 20px 45px rgba(110, 80, 25, 0.25),
    0 8px 15px rgba(0, 0, 0, 0.08);
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.envelope:hover {
  transform: translateY(-4px);
}

/* Fondo interior del sobre */
.envelope-back {
  position: absolute;
  inset: 0;
  background: #deb887;
  background: linear-gradient(180deg, #d8bc8f 0%, #c49e68 100%);
  border-radius: 8px;
}

/* Carta interior que sale al abrir */
.envelope-letter {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 10px;
  height: 195px;
  background: #fffdf9;
  border-radius: 6px;
  border: 1px solid #e2d2b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  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);
  padding: 12px 14px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.letter-cross {
  color: var(--gold-primary);
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.letter-names {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.letter-child {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold-dark);
  line-height: 1.2;
}

.letter-date {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 600;
  margin-top: 4px;
}

/* Bolsillo frontal del sobre (solapas izquierda, derecha e inferior unidas) */
.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, #f7ebd7 0%, #ecd6b2 60%, #e1c79c 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.6);
}

/* Solapa superior que se 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, #ecd1a8 0%, #e2bf8c 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 */
.wax-seal {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #e0bd7e 0%, #ba8b39 60%, #875c1b 100%);
  border-radius: 50%;
  box-shadow: 
    0 6px 14px rgba(120, 75, 15, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -3px 5px rgba(0, 0, 0, 0.3);
  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.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 80%);
}

.wax-monogram {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff9ed;
  text-shadow: 
    1px 1px 2px rgba(90, 55, 10, 0.8),
    -1px -1px 1px rgba(255, 255, 255, 0.4);
}

.seal-ripple {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.6);
  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: 28px;
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.bounce-icon {
  animation: bounceHint 1.8s infinite ease-in-out;
  font-size: 1.2rem;
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Estado al abrir el 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: 20px;
  right: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184, 141, 59, 0.45);
  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.7;
  filter: grayscale(0.5);
}


/* ==============================================
   2. CONTENIDO PRINCIPAL DE LA INVITACIÓN
   ============================================== */
.invitation-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 110px 16px;
  animation: fadeInApp 1s ease forwards;
}

@keyframes fadeInApp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.invitation-scroll-view {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Tarjeta / Estilo Papel de Lujo */
.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;
}

/* Marco interior con doble línea dorada */
.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: 4px;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: calc(var(--card-radius) - 8px);
  pointer-events: none;
}

/* Esquinas ornamentales con motivos de hojas idénticas a Canva */
.corner-ornament {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.85;
}

/* Dibujo SVG de esquineros de hojas elegantes */
.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 10, 10 2, 38 2 M2 20 C 10 14, 20 10, 30 10 M10 30 C 14 20, 20 10, 30 10' fill='none' stroke='%23b88d3b' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M8 8 Q 16 16 24 8 Q 16 2 8 8 Z' fill='%23f5dfa8' stroke='%23b88d3b' 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 10, 10 2, 38 2 M2 20 C 10 14, 20 10, 30 10 M10 30 C 14 20, 20 10, 30 10' fill='none' stroke='%23b88d3b' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M8 8 Q 16 16 24 8 Q 16 2 8 8 Z' fill='%23f5dfa8' stroke='%23b88d3b' 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 10, 10 2, 38 2 M2 20 C 10 14, 20 10, 30 10 M10 30 C 14 20, 20 10, 30 10' fill='none' stroke='%23b88d3b' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M8 8 Q 16 16 24 8 Q 16 2 8 8 Z' fill='%23f5dfa8' stroke='%23b88d3b' 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 10, 10 2, 38 2 M2 20 C 10 14, 20 10, 30 10 M10 30 C 14 20, 20 10, 30 10' fill='none' stroke='%23b88d3b' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M8 8 Q 16 16 24 8 Q 16 2 8 8 Z' fill='%23f5dfa8' stroke='%23b88d3b' stroke-width='1'/%3E%3C/svg%3E");
}

/* ==============================================
   DETALLES DE LA PORTADA
   ============================================== */
.parents-names {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.chalice-container {
  max-width: 170px;
  margin: 10px auto;
}

.chalice-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(184, 141, 59, 0.15));
}

.intro-phrase {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 14px;
}

.child-name {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 9vw, 3.6rem);
  line-height: 1.1;
  color: var(--gold-dark);
  margin: 8px 0;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.9);
}

.child-name .surname {
  font-size: clamp(2.2rem, 7.5vw, 3rem);
  display: block;
}

/* Divisores ornamentales */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 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.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-light);
}

.sacrament-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-text-main);
  line-height: 1.4;
  margin-top: 4px;
}

.sacrament-title .amp {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold-primary);
  vertical-align: middle;
}

.quick-details {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--color-text-main);
}

.quick-item i {
  color: var(--gold-primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.swipe-hint {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 500;
}

.swipe-hint i {
  animation: bounceHint 2s infinite ease-in-out;
}


/* ==============================================
   ICONOS SUPERIORES Y TÍTULOS DE SECCIÓN
   ============================================== */
.card-top-icon {
  margin-bottom: 8px;
}

.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(184, 141, 59, 0.25));
}

.section-title-script {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 3.8rem);
  color: var(--gold-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.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.7);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 20px 16px;
  position: relative;
  box-shadow: 0 4px 12px rgba(184, 141, 59, 0.06);
}

.godparent-badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(184, 141, 59, 0.3);
}

.role-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.godparent-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.5px;
}

.role-desc {
  font-size: 0.82rem;
  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.92rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.prayer-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  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(--gold-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: 2px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.date-hero {
  margin: 16px 0;
}

.date-day-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: var(--color-text-muted);
}

.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: 1rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-weight: 600;
}

.date-big {
  font-family: var(--font-heading);
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-dark);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(184, 141, 59, 0.15);
}

.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: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 10px 8px;
  min-width: 66px;
  box-shadow: 0 4px 10px rgba(184, 141, 59, 0.08);
}

.time-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-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(--gold-primary);
  margin-top: -12px;
}


/* ==============================================
   TARJETA 5: UBICACIONES Y MAPAS
   ============================================== */
.venue-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 18px 14px;
  margin: 14px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.venue-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fcf6eb;
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 10px;
}

.venue-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
}

.venue-address {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 8px 0 14px 0;
}

.map-embed-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  margin-bottom: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.map-embed-wrapper iframe {
  display: block;
}

.btn-action-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  background: var(--gold-gradient);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(184, 141, 59, 0.35);
  transition: var(--transition-smooth);
}

.btn-action-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 141, 59, 0.45);
}


/* ==============================================
   TARJETA 6: CONFIRMAR ASISTENCIA (RSVP)
   ============================================== */
.photo-portrait-box {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 16px auto 20px auto;
}

.photo-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 5px;
  background: var(--gold-gradient);
  box-shadow: 0 8px 24px rgba(184, 141, 59, 0.25);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  display: block;
}

.photo-cross-icon {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--gold-gradient);
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rsvp-sub {
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: -6px;
}

.rsvp-notice {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 18px 0;
  padding: 0 10px;
}

.rsvp-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.35);
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp i {
  font-size: 1.4rem;
}

.call-direct-wrap {
  margin-top: 4px;
}

.call-direct-txt {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-phone:hover {
  background: #fff;
  border-color: var(--gold-primary);
}

.final-blessing-box {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--gold-dark);
}

.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(2rem, 6.5vw, 2.6rem);
  color: var(--gold-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.footer-family {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.footer-date {
  font-size: 0.78rem;
  margin-top: 4px;
}


/* ==============================================
   3. BARRA DE NAVEGACIÓN INFERIOR FIJA
   ============================================== */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  height: 64px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: 35px;
  box-shadow: 0 10px 30px rgba(110, 80, 25, 0.18);
  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(--gold-dark);
  font-weight: 600;
}

.nav-btn.active i {
  color: var(--gold-primary);
  transform: scale(1.15);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 360px) {
  .envelope {
    width: 290px;
    height: 200px;
  }
  .child-name {
    font-size: 2.5rem;
  }
  .time-card {
    min-width: 58px;
    padding: 8px 4px;
  }
  .time-val {
    font-size: 1.35rem;
  }
}
