/* ============================================================
   INVITACIÓN DE BODA — VERSIÓN LAVANDA
   Fondo crema, paleta morada/lavanda y tipografía serif elegante.
   ------------------------------------------------------------
   Cambia colores y fuentes en el bloque :root.
   ============================================================ */

:root {
  /* 🎨 COLORES */
  --color-fondo:    #f3ece2;   /* Crema (fondo) */
  --color-papel:    #efe6da;   /* Crema un poco más cálido (tarjetas) */
  --color-texto:    #6f5b91;   /* Morado suave (texto) */
  --color-titulo:   #574080;   /* Morado profundo (títulos) */
  --color-script:   #8264ac;   /* Morado lavanda (cursivas) */
  --color-acento:   #9b86c4;   /* Lavanda */
  --color-acento-claro: #c8b6e2;
  --color-dorado:   #c9b487;   /* Tono arena para botón "VER UBICACIÓN" */

  /* ✍️ FUENTES */
  --font-title:  'Cinzel', serif;                /* Títulos / texto principal (mayúsculas, tracking amplio) */
  --font-script: 'Great Vibes', cursive;         /* Nombres y cursivas (VB, novios, etc.) */
  --font-body:   'Cormorant Garamond', serif;    /* Texto general */
  --font-fecha:  'Playfair Display', serif;      /* Fechas y números */

  --ancho-invitacion: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;   /* evita que el móvil agrande el texto por bloque */
  text-size-adjust: 100%;
  background-color: var(--color-fondo);
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    radial-gradient(100% 60% at 50% 100%, rgba(155,134,196,0.07), rgba(155,134,196,0) 60%);
  color: var(--color-texto);
  font-family: var(--font-body);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.invitacion {
  max-width: var(--ancho-invitacion);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  text-align: center;
}

img { max-width: 100%; }

/* ============================================================
   RAMILLETES DE LAVANDA (decoración lateral)
   ============================================================ */
.sprig {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 66px;
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 4px 7px rgba(120, 90, 150, 0.15));
}
.sprig.izq { left: -16px; }
.sprig.der { right: -16px; transform: translateY(-50%) scaleX(-1); }
.sprig.alto { top: 30%; }
.sprig.bajo { top: 70%; }

/* El contenido por encima de la decoración */
section > *:not(.sprig) { position: relative; z-index: 1; }

/* ============================================================
   DIVISOR FLORAL
   ============================================================ */
.divisor {
  display: block;
  width: 210px;
  max-width: 70%;
  margin: 22px auto;
  opacity: 0.95;
}

/* ============================================================
   PORTADA TIPO SOBRE (marco dorado + foto saliendo)
   ============================================================ */
.sobre-hero {
  position: relative;
  padding: 34px 10px 30px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(200,182,226,0.30), rgba(200,182,226,0) 60%);
}

/* ---- Marco dorado ---- */
.marco-oro {
  position: absolute;
  inset: 12px;
  border: 1.5px solid #c2a25f;
  border-radius: 5px;
  pointer-events: none;
  z-index: 6;
}
.marco-oro::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(194, 162, 95, 0.55);
  border-radius: 3px;
}
.esq { position: absolute; width: 60px; height: 60px; }
.e-tl { top: 4px;  left: 4px;  }
.e-tr { top: 4px;  right: 4px;  transform: rotate(90deg); }
.e-br { bottom: 4px; right: 4px; transform: rotate(180deg); }
.e-bl { bottom: 4px; left: 4px;  transform: rotate(270deg); }

/* ---- Ramo de lavanda (ilustración) a los lados ---- */
.hero-sprig {
  position: absolute;
  top: 26%;
  width: 124px;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(120, 90, 150, 0.18));
}
.hero-sprig.hs-izq { left: -22px; transform: rotate(-5deg); }
.hero-sprig.hs-der { right: -22px; transform: scaleX(-1) rotate(-5deg); }

/* ---- Sobre ---- */
.envelope {
  position: relative;
  width: 300px;
  max-width: 82%;
  height: 372px;
  margin: 58px auto 56px;
  background: linear-gradient(135deg, #d4bde7 0%, #c4a9da 100%);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(120, 90, 150, 0.38);
  z-index: 1;
}
/* Solapa abierta (parte clara, detrás de la foto) */
.env-flap {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #e3d3ef, #d3bce6);
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  border-radius: 8px 8px 0 0;
  z-index: 1;
}
/* Bolsillo frontal (cubre la base de la foto: efecto "dentro del sobre") */
.env-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #cbb0de, #bd9fd5);
  clip-path: polygon(0 100%, 100% 100%, 50% 28%);
  border-radius: 0 0 8px 8px;
  z-index: 3;
  box-shadow: inset 0 3px 10px rgba(120, 90, 150, 0.18);
}

/* ---- Foto saliendo del sobre ---- */
.polaroid {
  position: absolute;
  left: 50%;
  top: -50px;
  z-index: 2;
  margin: 0;
  background: #fff;
  padding: 8px 8px 12px;
  border-radius: 2px;
  box-shadow: 0 12px 22px rgba(80, 50, 110, 0.30);
  transform: translateX(-50%);
  animation: salir-sobre 1.8s cubic-bezier(.22, 1, .36, 1) 0.5s both;
}
.polaroid img { display: block; width: 150px; height: 150px; object-fit: cover; }
@keyframes salir-sobre {
  0%   { transform: translate(-50%, 130px) scale(0.92); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

/* ---- Contenido central (VB + adorno + texto) ---- */
.env-contenido {
  position: absolute;
  left: 0; right: 0;
  top: 132px;
  z-index: 4;
  text-align: center;
}
.env-monograma {
  font-family: 'Great Vibes', cursive;
  font-size: 56px;
  line-height: 1;
  color: var(--color-titulo);
  margin-bottom: -2px;
}
.env-flourish { width: 112px; display: block; margin: 2px auto 10px; }
.env-texto {
  margin: 0 auto;
  max-width: 82%;
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;          /* tracking amplio */
  line-height: 1.75;
  text-transform: uppercase;
  color: var(--color-titulo);
}

/* ---- Sello con la fecha ---- */
.fecha-badge {
  position: absolute;
  z-index: 5;
  left: 50%; bottom: -44px;
  transform: translateX(-50%);
  width: 124px; height: 124px;
  border-radius: 50%;
  background: #f5edda;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #c2a25f, 0 12px 24px rgba(80, 50, 110, 0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--color-titulo);
}
.fb-orn { width: 48px; opacity: 0.9; }
.fb-top { margin-bottom: 1px; }
.fb-bot { margin-top: 1px; }
.fb-dia  { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 40px; line-height: 0.95; }
.fb-mes  { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin: 1px 0; }
.fb-anio { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 26px; line-height: 1; }

/* ---- Nombres bajo el sobre ---- */
.sobre-nombres {
  margin: 16px 0 0;
  font-family: var(--font-script);
  font-size: 58px;
  line-height: 1;
  color: var(--color-script);
}
.sobre-nombres span { font-family: var(--font-title); font-size: 24px; }

/* ============================================================
   PORTADA (foto a pantalla — versión alterna, ya no se usa)
   ============================================================ */
.portada {
  height: 90vh;
  max-height: 520px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -150px 150px -20px rgba(60, 40, 80, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 28px;
}
.portada-nombres {
  font-family: var(--font-script);
  color: #fff;
  font-size: 76px;
  line-height: 1;
  margin: 0;
  text-transform: capitalize;
  text-shadow: 0 2px 14px rgba(60,40,80,0.5);
}
.portada-nombres .amp {
  font-family: var(--font-title);
  font-size: 26px;
  vertical-align: middle;
  margin: 0 6px;
}
.portada-sub {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  font-size: 15px;
  margin: 10px 0 0;
}

/* Flecha hacia abajo (morada, sobre el fondo crema) */
.bounceloop { margin-top: 16px; }
.bounceloop a { color: var(--color-acento); font-size: 24px; text-decoration: none; }
.bounceloop i { display: inline-block; animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* ============================================================
   TEXTOS
   ============================================================ */
.titulos {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 4px;          /* tracking amplio */
  line-height: 1.4;
  margin: 14px 0;
  padding: 0 14px;
  font-weight: 400;             /* Cinzel Regular */
  color: var(--color-titulo);
  text-transform: uppercase;
}
.intro-text {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-texto);
  margin: 8px auto;
  max-width: 86%;
  white-space: pre-line;
}
.quote-top {
  font-family: var(--font-script);
  font-size: 58px;
  line-height: 1.1;
  color: var(--color-script);
  margin: 18px 0 2px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.de-button {
  display: inline-block;
  background-image: linear-gradient(160deg, #e7d9b7, #cdb784);
  color: var(--color-titulo);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 2px;
  padding: 11px 24px;
  border: 1px solid rgba(155,134,196,0.5);
  border-radius: 8px;
  cursor: pointer;
  margin: 8px 0;
  box-shadow: 0 3px 8px rgba(120, 95, 150, 0.18);
}
.de-button.primary {
  background-image: linear-gradient(160deg, #ab92cf, #876bb1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.de-button.outline {
  background: transparent;
  color: var(--color-titulo);
  border: 1px solid var(--color-acento);
  box-shadow: none;
}
.de-button:hover { filter: brightness(1.03); }

/* Botón "Agendar recordatorio" (lavanda) */
.agregar-btn {
  display: inline-block;
  padding: 13px 26px;
  background-image: linear-gradient(160deg, #ab92cf, #8a6fb0);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 14px rgba(130, 100, 172, 0.3);
}
.agregar-btn:hover { filter: brightness(1.04); }

/* ============================================================
   CUENTA REGRESIVA
   ============================================================ */
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px auto 26px;
}
.cd-bloque { display: flex; flex-direction: column; align-items: center; }
.cd-circulo {
  position: relative;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--color-papel);
  border: 2px solid var(--color-acento);
  box-shadow: 0 0 0 4px rgba(200,182,226,0.35), inset 0 0 14px rgba(155,134,196,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-fecha);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-titulo);
}
/* (Sin flores en los círculos: se dejan limpios) */
.cd-label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-title);
  color: var(--color-texto);
}

/* ============================================================
   SECCIONES
   ============================================================ */
section { padding: 14px 0; position: relative; }

.icono-seccion { width: 90px; margin: 10px auto 0; }

/* Iconos Font Awesome (dress code, cámara, etc.) */
.icono-fa {
  font-size: 54px;
  color: var(--color-acento);
  margin: 14px 0 2px;
  display: inline-block;
}
#dresscode .icono-fa { font-size: 48px; }

/* ----- Iconos vectoriales delgados y animados (anillos / copas) ----- */
.ico-anim {
  width: 84px;
  height: auto;
  display: inline-block;
  margin: 14px 0 2px;
  overflow: visible;
}
.ico-copas { width: 90px; }

/* Anillos: balanceo suave + destello que titila */
.ico-anillos { transform-origin: 50% 60%; animation: ring-sway 3.4s ease-in-out infinite; }
@keyframes ring-sway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}
.ico-anillos .chispa {
  transform-box: fill-box;
  transform-origin: center;
  animation: chispa 1.9s ease-in-out infinite;
}
@keyframes chispa {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

/* Copas: el choque lo maneja SMIL en el SVG; aquí solo las rayitas */
/* Rayitas del "chin" que destellan al chocar */
.ico-copas .chispas {
  stroke: #8264ac;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: chispa-pop 2.8s ease-in-out infinite;
}
@keyframes chispa-pop {
  0%, 6%, 38%, 100% { opacity: 0; transform: scale(0.3); }
  13%               { opacity: 1; transform: scale(1.15); }
  24%               { opacity: 0; transform: scale(0.85); }
}

/* Dress code: traje y vestido se mecen suavemente */
.ico-dress { width: 96px; }
.ico-dress .traje,
.ico-dress .vestido { transform-box: fill-box; transform-origin: 50% 100%; }
.ico-dress .traje   { animation: vaiven-a 3.2s ease-in-out infinite; }
.ico-dress .vestido { animation: vaiven-b 3.2s ease-in-out infinite; }
@keyframes vaiven-a { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes vaiven-b { 0%, 100% { transform: rotate(2.5deg); }  50% { transform: rotate(-2.5deg); } }

/* Fila fecha | barra | hora */
.fecha-hora {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 24px 0 30px;
}
.fecha-hora .dato {
  font-size: 32px;
  font-family: var(--font-fecha);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-titulo);
}
.fecha-hora .dato small { font-size: 16px; }
.fecha-hora .barra {
  width: 1px;
  height: 78px;
  background: linear-gradient(var(--color-acento-claro), var(--color-acento), var(--color-acento-claro));
}

/* ============================================================
   FIRMA ANIMADA "V & B" (ceremonia civil)
   ============================================================ */
.firma {
  position: relative;
  display: inline-block;
  margin: 16px auto 6px;
  padding: 0 8px 6px;
  height: 84px;
  line-height: 84px;
}
.firma-texto {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 64px;
  color: var(--color-script);
  white-space: nowrap;
  padding: 0 26px;
  clip-path: inset(0 100% 0 0);
  animation: firmar 4s ease-in-out infinite;
}
.firma-amp { font-size: 0.7em; }
.firma-pluma {
  position: absolute;
  bottom: 12px;
  left: 0;
  font-size: 22px;
  color: var(--color-script);
  transform: rotate(12deg);
  animation: pluma 4s ease-in-out infinite;
}
.firma::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  height: 1px;
  background: var(--color-acento);
  opacity: 0.6;
}
@keyframes firmar {
  0%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  55%  { clip-path: inset(0 0 0 0);    opacity: 1; }
  80%  { clip-path: inset(0 0 0 0);    opacity: 1; }
  92%  { clip-path: inset(0 0 0 0);    opacity: 0; }
  100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}
@keyframes pluma {
  0%   { left: 2%;  opacity: 0; transform: rotate(12deg) translateY(0); }
  8%   { opacity: 1; }
  22%  { transform: rotate(12deg) translateY(-2px); }
  38%  { transform: rotate(12deg) translateY(2px); }
  50%  { transform: rotate(12deg) translateY(-1px); }
  55%  { left: 84%; opacity: 1; transform: rotate(12deg) translateY(0); }
  70%  { left: 84%; opacity: 0; }
  100% { left: 84%; opacity: 0; }
}

/* Corazón con latido sutil */
.latido {
  display: inline-block;
  transform-origin: center;
  animation: latido 1.6s ease-in-out infinite;
}
@keyframes latido {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.12); }
  20%  { transform: scale(1); }
  30%  { transform: scale(1.08); }
  40%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ============================================================
   PADRES Y PADRINOS
   ============================================================ */
#familias { padding: 26px 0 10px; }
.familia-grupo { margin: 20px 0; }
.familia-rol {
  font-family: var(--font-script);
  font-size: 42px;
  line-height: 1;
  color: var(--color-script);
  margin: 0 0 2px;
}
.familia-grupo .intro-text { margin-top: 0; }

/* ============================================================
   UBICACIÓN (tarjeta lavanda)
   ============================================================ */
.ubicacion-card {
  background: linear-gradient(160deg, #ece4f3, #e3d7ef);
  border: 1px solid rgba(155,134,196,0.35);
  border-radius: 16px;
  max-width: 90%;
  margin: 8px auto;
  padding: 18px 16px;
  box-shadow: 0 6px 16px rgba(130,100,172,0.12);
}

/* ============================================================
   TARJETA "COMPARTE FOTOS"
   ============================================================ */
.foto-card {
  background: linear-gradient(160deg, #f5efe5, #ece2f0);
  border: 1px solid rgba(155,134,196,0.3);
  border-radius: 18px;
  max-width: 92%;
  margin: 0 auto;
  padding: 26px 16px;
  color: var(--color-titulo);
  box-shadow: 0 8px 20px rgba(130,100,172,0.12);
}
.foto-card h3 {
  font-size: 26px;
  letter-spacing: 2px;
  margin: 6px 0;
  font-family: var(--font-title);
  color: var(--color-titulo);
}
.foto-card .intro-text { color: var(--color-texto); }
.foto-card .icono-fa { font-size: 60px; color: var(--color-acento); }
#formFoto { display: none; margin-top: 14px; }
#formFoto label { color: var(--color-titulo); display: block; margin-bottom: 8px; }

/* ============================================================
   GALERÍA
   ============================================================ */
.galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}
.galeria img {
  height: 200px;
  width: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 5px 12px rgba(130,100,172,0.18);
}

/* ============================================================
   FORMULARIO CONFIRMACIÓN
   ============================================================ */
#attendanceOptions {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 14px 0;
}
#attendanceOptions label { margin-left: 4px; }
.form-confirmacion { max-width: 92%; margin: 0 auto; }
.btn-form {
  display: block;
  width: 100%;
  padding: 0 14px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--color-titulo);
  background-color: rgba(255,255,255,0.6);
  border: 1px solid var(--color-acento);
  border-radius: 10px;
  font-size: 17px;
  font-family: var(--font-body);
  font-weight: 500;
}
textarea.btn-form { height: 120px; padding-top: 12px; resize: vertical; }
.btn-form::placeholder { color: #a08fc0; }

/* ============================================================
   FINAL
   ============================================================ */
#final { padding: 36px 0 6px; }
#save-date {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 16px;
  color: var(--color-titulo);
}
.final-nombres {
  font-family: var(--font-script);
  font-size: 76px;
  margin-top: 6px;
  color: var(--color-script);
  text-transform: capitalize;
}

/* Pie de página */
.pie { padding: 6px 0 26px; }
.pie a { color: var(--color-acento); text-decoration: none; font-size: 15px; font-family: var(--font-body); }

/* ============================================================
   REPRODUCTOR DE MÚSICA (lavanda)
   ============================================================ */
.music-player {
  width: 56px; height: 56px;
  background-image: linear-gradient(160deg, #ab92cf, #8a6fb0);
  border-radius: 50%;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: fixed;
  right: 0; top: 20px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(130,100,172,0.35);
}
.music-player .icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 28px; height: 18px;
}
.music-player .bar {
  width: 5px; height: 18px;
  background-color: #fff;
  border-radius: 3px;
  animation: bounce-player 1s infinite;
}
.music-player .bar:nth-child(1) { animation-delay: 0.1s; }
.music-player .bar:nth-child(2) { animation-delay: 0.2s; }
.music-player .bar:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce-player {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.5); }
}
.music-player.paused .bar { animation: none; }
