/* ================== VARIABLES GLOBALES ================== */
:root {
  --verde-olivo: #708238;
  --oliva-transparente-suave: #7082383f;
  --beige: #f5f0e6;
  --rosa-suave: #f2c9c1;
  --dorado: #d4af37;
  --marfil: #fdfcf7;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 60px;
}

/* ================== ESTILOS GLOBALES ================== */
body {
  margin: 0;
  font-family: "Georgia", serif;
  background: #70823823;
  overflow-x: hidden;
  color: #2c2c2c;
}

/* ================== PRELOADER ================== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--marfil);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  flex-direction: column;
  overflow: hidden;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55);
}

.preloader-text {
  margin-top: 5rem;
  font-size: 1.5rem;
  font-family: "Great Vibes", cursive;
  color: var(--marfil);
  font-weight: bold;
  letter-spacing: 2px;
  z-index: 3;
  text-shadow: 0 0 5px rgba(240, 205, 7, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);
  animation: pulseMarfil 2s ease-in-out infinite alternate;
}

@keyframes pulseMarfil {
  from {
    opacity: 0.5;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* ================== ESTRELLAS ================== */
#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: transparent;
}

#stars::before,
#stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--dorado) 1.5px, transparent 1.5px),
    radial-gradient(circle, var(--rosa-suave) 1.5px, transparent 1.5px);
  background-size: 100px 100px, 150px 150px;
  animation: twinkle 6s infinite linear;
  opacity: 0.7;
}

@keyframes twinkle {
  0% {
    opacity: 0.4;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
    transform: translateY(-15px);
  }
}

/* ================== PRELOADER STACK ================== */
.stack {
  position: relative;
  width: 250px;
  height: 350px;
  z-index: 2;
}

.img-wrapper {
  position: absolute;
  top: -600px;
  left: 0;
  width: 100%;
  height: 100%;
  animation: dropIn 1s ease forwards;
  animation-delay: calc(var(--i) * 0.5s);
  border-radius: 12px;
  overflow: hidden;
  
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
  z-index: 2;
  border-radius: 12px;
  background:
    radial-gradient(ellipse farthest-corner at 50% 100%,
      rgba(255, 248, 240, 0.45),
      rgba(255, 248, 240, 0) 60%),
    radial-gradient(ellipse farthest-corner at 30% 90%,
      rgba(255, 248, 240, 0.15),
      rgba(255, 248, 240, 0) 70%),
    radial-gradient(ellipse farthest-corner at 70% 95%,
      rgba(255, 248, 240, 0.15),
      rgba(255, 248, 240, 0) 70%);
}

@keyframes dropIn {
  0% {
    top: -400px;
    opacity: 0;
    transform: rotate(0deg) scale(0.9);
  }

  70% {
    top: 0;
    opacity: 1;
    transform: rotate(var(--angle, 0deg)) scale(1.05);
  }

  100% {
    top: 0;
    opacity: 1;
    transform: rotate(var(--angle, 0deg)) scale(1);
  }
}

/* ================== MARIPOSA ================== */
.butterfly {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 70px;
  height: 70px;
  background: url("imagenes/mariposa.webp") no-repeat center/contain;
  transform: translateX(-50%) scale(1);
  filter: drop-shadow(0 0 8px gold);
  pointer-events: none;
  z-index: 99;
  animation: butterfly-fly 4.6s ease-in-out forwards;
}

/* ✨ Vuelo más corto (menos desplazamiento) pero termina a mitad de pantalla */
@keyframes butterfly-fly {
  0% {
    bottom: 0;
    opacity: 0;
    transform: translateX(-50%) scale(0.9) rotate(0deg);
  }



  100% {
    bottom: 50%;
    transform: translateX(-50%) scale(1.1) rotate(0deg);
    opacity: 1;
  }
}

/* ================== CHISPAS ================== */
.spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 1), transparent);
  pointer-events: none;
  animation: spark-fade 3s ease-out forwards;
  opacity: 1;
  z-index: 100;
  overflow: hidden;
  transform-origin: center;

}

@keyframes spark-fade {
  0% {
    transform: scale(0.6) translate(0, 0);
    opacity: 1;
  }

  50% {
    transform: scale(1.1) translate(-3px, 10px);

    opacity: 0.7;
  }

  100% {
    transform: scale(1.4) translate(-5px, 20px);
    
    opacity: 0;
  }
}

.spark-circle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd700, transparent);
  pointer-events: none;
  opacity: 0;
  animation: spark-circle-fade 2.5s ease-out forwards;
  z-index: 100;
}

@keyframes spark-circle-fade {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: scale(2.5) translate(var(--x), var(--y));
  }
}

/* ================== EFECTO RIPPLE ================== */
.ripple {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background-color: rgba(128, 128, 0, 0.288);
  opacity: 0.6;
  transform: scaleX(1) scaleY(1);
  animation: ripple-elliptic 0.8s ease-out forwards;
  z-index: 40;
}

@keyframes ripple-elliptic {
  0% {
    transform: scaleX(0.5) scaleY(0.5);
    opacity: 0.6;
  }

  50% {
    transform: scaleX(1.5) scaleY(0.8);
    opacity: 0.4;
  }

  100% {
    transform: scaleX(2) scaleY(0.6);
    opacity: 0;
  }
}

/* ================== ANIMACIONES DE BOTONES ================== */
@keyframes bounce-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

@keyframes up-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.animate-up-bounce {
  animation: up-bounce 2.5s ease-in-out infinite;
}

/* ================== CONTENIDO PRINCIPAL ================== */
#main-content {
  display: none;
  opacity: 1;

}

#main-content.visible {
  display: block;
  opacity: 1;
}

header {
  height: 100vh;
  background: linear-gradient(rgba(210, 230, 210, 0), rgb(14, 13, 13)),
    url("fondos/fondo.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  filter: brightness(1.1) hue-rotate(-15deg);

}

/* ================== MENÚ ================== */
.menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease;
  display: none;
}

.menu-container.scrolled {
  background-color: var(--marfil);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.151);
}

.menu-container.scrolled .desktop-menu a {
  color: var(--verde-olivo);
}

.menu-container.scrolled .desktop-menu a:hover {
  color: var(--dorado);
}

.menu-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  box-sizing: border-box;
}

.logo {
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
  color: rgba(253, 252, 247, 1);
  text-decoration: none;
  z-index: 1001;
  text-shadow: 0 0 8px rgba(112, 130, 56, 0.5);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.logo.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo.scrolled {
  color: var(--verde-olivo);
  text-shadow: none;
}

.desktop-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu li {
  margin-left: 30px;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInScale 0.8s ease forwards;
}


.desktop-menu a {
  text-decoration: none;
  color: var(--marfil);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.desktop-menu a:hover {
  color: var(--verde-olivo);
}

.desktop-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--dorado);
  transition: width 0.3s ease;
}

.desktop-menu a:hover::after {
  width: 100%;
}

/* Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hamburger.visible {
  opacity: 1;
  transform: translateY(0);
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: rgb(74, 110, 2);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Menú móvil */
.mobile-menu,
.nav-links {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - 60px);
  background-color: var(--marfil);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
  gap: 1.5rem;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-menu.active,
.nav-links.show {
  right: 0;
}

.mobile-menu ul,
.nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li,
.nav-links li {
  border-bottom: 1px solid rgba(112, 130, 56, 0.1);
}

.mobile-menu a,
.nav-links a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--verde-olivo);
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.mobile-menu a:hover,
.nav-links a:hover {
  background-color: rgba(112, 130, 56, 0.05);
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-container.visible {
  display: block;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================== invitacion inicial ================== */
.invitation h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 5rem;
  color: var(--marfil);
  text-shadow: 0 3px 6px rgba(44, 10, 10, 0.4);
  transform: translateY(0);
  transition: transform 0.6s ease, font-size 0.6s ease;
  will-change: transform, font-size;
}

.invitation.shrink h1 {
  transform: translateY(-2rem); /* en vez de margin-top negativo */
  font-size: 2rem;
}

.invitation h2 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--marfil);
  opacity: 0;
  text-shadow:
    0 0 5px rgba(211, 198, 22, 0.7),
    0 0 8px rgba(145, 114, 13, 0.418);
  transition: opacity 0.5s ease, transform 0.6s ease, font-size 0.6s ease;
  transform: translateY(0);
  will-change: transform, opacity;
}

.invitation.shrink h2 {
  transform: translateY(0.5rem);
  font-size: 2.5rem;
  opacity: 1;
}


.invitation .date {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--rosa-suave);
  opacity: 0;
}

.invitation.visible h1,
.invitation.visible h2,
.invitation.visible .date {
  animation: fadeInScale 0.5s ease forwards;
  transform-origin: center;
}

.invitation.visible h1 {
  animation-delay: 0s;
}

.invitation.visible h2 {
  animation-delay: 0.6s;
}

.invitation.visible .date {
  animation-delay: 0.9s;
}

/* ================== CONTADOR CIRCULAR ================== */
.text-dorado {
  color: #c9a33a;
}

.text-marfil {
  color: #fdfdf5;
}

.countdown-container svg circle:first-child {
  stroke: #fdfdf5;
  stroke-width: 5;
  fill: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.countdown-container svg circle#countdown-progress {
  stroke: #708238;
  stroke-width: 6;
  fill: transparent;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s linear;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.countdown-container {
  animation: heartbeat-soft 3s infinite ease-in-out;
}

#countdown-text span {
  font-family: 'Playfair Display', serif;
  color: #c9a33a;
  text-shadow: 0 2px 4px rgb(34, 56, 10);
}

#countdown-text span+span {
  color: #fdfdf5;
  font-size: 0.9rem;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 2rem auto;
  background: linear-gradient(to right,
      rgba(112, 130, 56, 0),
      rgba(194, 194, 117, 0.5),
      rgba(112, 130, 56, 0));
  border-radius: 1px;
}

@keyframes heartbeat-soft {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  }

  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  }
}

.countdown-container {
  transform-origin: center center;
  display: inline-block;
}

@keyframes progress-glow {
  0% {
    filter: drop-shadow(0 2px 4px rgba(201, 163, 58, 0.18));
  }

  50% {
    filter: drop-shadow(0 8px 20px rgba(201, 163, 58, 0.36));
  }

  100% {
    filter: drop-shadow(0 2px 4px rgba(201, 163, 58, 0.18));
  }
}

.countdown-container svg circle#countdown-progress {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: progress-glow 3s ease-in-out infinite;
}

/* ================== REPRODUCTOR DE AUDIO ================== */
.audio-player {
  background: rgba(253, 253, 245, 0.178);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  width: 25rem;
}

.audio-player span {
  font-family: 'Great Vibes', cursive;
  font-style: italic;
  color: var(--marfil);
}

.audio-player button {
  color: #d4af37;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--verde-olivo);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: visible;
}

.audio-player button:hover {
  color: var(--dorado);
  box-shadow: 0 0 12px rgba(112, 130, 56, 0.5);
  transform: scale(1.1);
}

.audio-player button span.ping-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: var(--verde-olivo);
  border-radius: 50%;
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(0.5);
  animation: ping-out 1.2s infinite;
  z-index: -1;
}

@keyframes ping-out {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.audio-player .progress-bar-container {
  flex: 1;
  height: 0.5rem;
  background: rgba(112, 130, 56, 0.678);
  border-radius: 0.25rem;
  overflow: hidden;
}

.audio-player #progress-bar {
  background: var(--dorado);
  height: 100%;
  width: 0%;
  transition: width 0.2s linear;
  border-radius: 0.25rem;
}

/* ==========================================================header fin============================================= */

/* ================== FRASES ROMÁNTICAS Te INVITAMOS================== */
.frases {
  padding: 2rem 1rem;
  background: transparent;
  position: relative;
  z-index: 10;
}

/* Estilo base de textos */
.frases h1 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #273604;
  text-shadow: 0 1px 2px rgba(39, 54, 4, 0.15);
  line-height: 1.4;
  margin-bottom: 0rem;
}

.frases p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #7c7c31;
  text-shadow: 0 1px 2px rgba(124, 124, 49, 0.1);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

/* animacion de frases seccion te invitamos  */
/* Estado inicial (fuera de vista) */
.fade-in-view {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estado visible (cuando el observer lo activa) */
.animate-in {
  opacity: 1;
  transform: translateY(0);
 
}

/* ================== PORTRAITS: EL Y ELLA ================== */
.portraits {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.portrait {
  width: 220px;
  height: 220px;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  border: 4px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9));
  flex: 0 0 auto;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform .2s ease;
}

.portrait:hover img {
  transform: scale(1.06);
}

.bridge-left,
.bridge-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 28px;
  background: var(--oliva-transparente-suave);
  border: 6px solid rgba(255, 255, 255, 0);
  z-index: 10;
  box-shadow: 0 6px 18px rgba(83, 39, 39, 0.06);
}

.bridge-left {
  right: 100%;
  margin-right: -6px;
  border-right: none;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
}

.bridge-right {
  left: 100%;
  margin-left: -6px;
  border-left: none;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}

.heart {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart svg {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
  animation: heartbeat 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  20% {
    transform: scale(1.15);
  }

  40% {
    transform: scale(0.95);
  }

  60% {
    transform: scale(1.1);
  }

  80% {
    transform: scale(0.98);
  }
}

.person-info {
  margin-top: 1rem;
  text-align: center;
  max-width: 240px;
}

.person-name {
  font-family: "Great Vibes", cursive;
  font-size: 1.45rem;
  color: var(--verde-olivo);
  letter-spacing: 0.6px;
}

.person-desc {
  margin-top: .5rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.person-left {
  margin-left: 4rem;
}

.person-right {
  margin-right: 4rem;
}

/*PÉTALOS  */
.petal {
  position: absolute;
  top: -13px;
  left: 0;
  width: 16px;
  height: 22px;
  background: radial-gradient(circle at 60% 30%, #ffd8d1 0%, var(--rosa-suave) 40%, transparent 70%);
  border-radius: 50% 50% 40% 40%;
  opacity: 0.95;
  transform-origin: center;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  z-index: 100;
  animation-fill-mode: forwards;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.9);
    opacity: 1;
  }

  100% {
    transform: translateY(260%) rotate(360deg) scale(1);
    opacity: 0.9;
  }
}

/*PANEL*/
.panel {
  background: rgba(201, 206, 189, 0.25);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(95, 141, 21, 0.15);

}

/* ===================================================fin seccion portraits o tarjetaa de boda=========================== */
/* ======================SECCION  EVENTO love hero=================== */

/* Estilo de textos */
.evento p {
  font-family: "Dancing Script", cursive;
  font-size: 1.7rem;
  color: #c6e67e;
  text-shadow: 0 1px 2px rgba(39, 54, 4, 0.15);
  line-height: 1.4;
  margin-bottom: 0rem;
}

.evento h2 {
  font-family: "Great Vibes", cursive;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--marfil);
  text-shadow: 0 1px 2px rgba(124, 124, 49, 0.1);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

/* ================== nosotros/ TIMELINE ================== */
.nosotros h2 {
  font-family: "Great Vibes", cursive;

}

.nosotros h5 {
  font-family: "Dancing Script", cursive;
  font-size: xx-large;
}

/* ================== TIMELINE ULTRA LIGERO ================== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 45rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: rgba(212, 175, 55, 0.3);
  transform: translateX(-50%);
  z-index: 0;
}

/* Imagen circular central */
.timeline-badge {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  z-index: 10;
  top: 3.5rem;
  opacity: 0;

}

/* Panel */
.timeline-panel {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 2px solid #556b2fef;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 50%;
  position: relative;
  z-index: 5;
  opacity: 0;

}

/* Flechas decorativas */
.triangle-left,
.triangle-right {
  width: 1rem;
  height: 1rem;
  background-color: #556B2F;
  position: absolute;
  top: 6rem;
  transform: rotate(45deg);
  z-index: 5;
}

/* Posiciones */
.timeline-left {
  left: calc(35% - 50%);
  margin-top: 2rem;
  text-align: center;
  z-index: 10;
}

.triangle-left {
  right: -0.5rem;
}

.timeline-right {
  left: calc(60% + 5%);
  margin-top: 3rem;
  text-align: center;
}

.triangle-right {
  left: -0.5rem;
  top: 5.5rem;
}

/* ================== ANIMACIONES SUAVES ================== */

/* 🔹 Desde la izquierda */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 🔹 Desde la derecha */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 🔹 Imagen central */
@keyframes popInCenter {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* ✅ Se activan al entrar en viewport */
.timeline-left.animate-in {
  animation: slideInLeft 0.8s ease-out forwards;
}

.timeline-right.animate-in {
  animation: slideInRight 0.8s ease-out forwards;
}

.timeline-badge.animate-in {
  animation: popInCenter 1s ease-out forwards;
}

/* ============================fin de seccion nosotros o timeline================= */

/* ================== GALERÍA ================== */

.carrusel-nuevo {
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  width: min(90%, 1200px);
  height: 400px;
  margin: 4rem auto 8rem auto;
  scrollbar-width: none;
  cursor: grab;
  overflow-x: auto;
  overflow-y: hidden;
  user-select: none;
}

.carrusel-nuevo::-webkit-scrollbar {
  display: none;
}

.carrusel-nuevo.grabbing {
  cursor: grabbing;
}

.carrusel-nuevo img {
  width: 300px;
  height: 100%;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.carrusel-nuevo img:hover {
  transform: scale(1.05);
}

#gallery h2 {
  font-family: "Great Vibes", serif;
  margin-top: 2rem;
  font-style: italic;
}

#gallery h5,
#gallery h2 {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#gallery>.absolute {
  pointer-events: none;
}

/* ================== CARTAS DE AMOR (LIGERA Y OPTIMIZADA) ================== */
#love-letters {
  background-color: #f8f9f3;
  /* tono oliva muy suave */
  padding: 5rem 1rem;
}

/* --- Base de ambas cartas --- */
.carta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 101, 21, 0.25);
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  width: 100%;
  max-width: 20rem;
  background: rgba(245, 248, 237, 0.92);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

/* --- Eliminar fondos pesados --- */
.carta-novia,
.carta-novio {
  background-image: none !important;
}

/* --- Título --- */
.carta h3 {
  font-family: var(--font-cursive, 'Great Vibes', cursive);
  color: var(--verde-olivo, #556B2F);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* --- Texto --- */
.carta p {
  color: #2c2c2c;
  line-height: 1.7;
  font-weight: 500;
  font-size: 0.9rem;
}

/* --- Firma --- */
.carta .firma {
  color: var(--dorado, #bfa35a);
  font-weight: 700;
  text-align: right;
  margin-top: 1rem;
}

/* --- Hover suave --- */
.carta:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(85, 107, 47, 0.25);
}

/* --- Rotaciones específicas --- */
.carta-novia:hover {
  transform: scale(1.03) rotate(-1.2deg);
}

.carta-novio:hover {
  transform: scale(1.03) rotate(1.2deg);
}

/* --- Fotos redondas --- */
#love-letters .rounded-full {
  border: 3px solid rgba(255, 255, 255, 0.7);
}

/* --- Corazón (solo 1 rebote al entrar) --- */
.heart {
  display: inline-block;
  animation: bounceOnce 1s ease-out;
}

@keyframes bounceOnce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* ================== CÍRCULO ULTRA LIGERO ================== */
#circle {
  background: url('fondos/fondo4.webp') center/cover no-repeat;
  position: relative;
  color: var(--marfil);
  overflow: hidden;
}

/* Encabezados coherentes */
#circle h5 {
  font-family: "Playfair Display", serif;
  color: #dec32b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

#circle h2,
#circle h3 {
  font-family: "Dancing Script", cursive;
  color: #93ae42;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.613);
}

#circle p,
#circle span {
  font-family: "Playfair Display", serif;
  color: var(--marfil);
  font-style: italic;
}

/* Animación continua — ligera y fluida */
@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
  
}

/* ocupar toda la pantalla */
.familia {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}
/* ================== RSVP ================== */
.rsvp-section {
  scroll-margin-top: 0px !important;
  padding: 8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg,
      rgba(128, 128, 0, 0.05) 0%,
      rgba(152, 151, 0, 0.1) 50%,
      rgba(245, 240, 230, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

/* Fondo sutil decorativo */
.rsvp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(112, 130, 56, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.rsvp-container {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

/* ---------- Textos ---------- */
.rsvp-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.75rem;
}

.rsvp-title {
  font-family: "Dancing Script", cursive;
  font-size: 3.5rem;
  color: var(--verde-olivo);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(112, 130, 56, 0.1);
}

.rsvp-description {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a4a4a;
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* ---------- Botón ---------- */
.rsvp-button {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  background: var(--verde-olivo);
  color: var(--marfil);
  border: 2px solid var(--verde-olivo);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(112, 130, 56, 0.25);
  position: relative;
  overflow: hidden;
}

.rsvp-button:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.rsvp-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
/* Estilos del formulario */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
  animation: fadeInDown 0.5s ease;
}

.rsvp-input {
  padding: 1rem;
  border: 2px solid var(--verde-olivo);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--marfil);
  color: var(--texto-oscuro);
  transition: all 0.3s ease;
}

.rsvp-input:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.rsvp-input::placeholder {
  color: #999;
}

.rsvp-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mensaje de agradecimiento */
.mensaje-gracias {
  max-width: 500px;
  margin: 2rem auto 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(112, 130, 56, 0.1));
  border-radius: 12px;
  text-align: center;
  animation: fadeInScale 0.5s ease;
}

.gracias-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gracias-icon {
  font-size: 4rem;
  animation: bounce 1s ease infinite;
}

.mensaje-gracias h3 {
  font-size: 1.75rem;
  color: var(--verde-olivo);
  margin: 0;
}

.mensaje-gracias p {
  margin: 0.25rem 0;
  color: var(--texto-oscuro);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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


/* ================== CONTACTO ================== */
.contacto-section {
  padding: 8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg,
      rgba(242, 201, 193, 0.15) 0%,
      rgba(245, 240, 230, 0.95) 50%,
      rgba(212, 175, 55, 0.08) 100%);
  position: relative;
  overflow: hidden;
}

/* Fondo sutil decorativo */
.contacto-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(242, 201, 193, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(112, 130, 56, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contacto-container {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

/* ---------- Textos ---------- */
.contacto-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.75rem;
}

.contacto-title {
  font-family: "Dancing Script", cursive;
  font-size: 3.5rem;
  color: var(--verde-olivo);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(112, 130, 56, 0.1);
}

.contacto-description {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a4a4a;
  font-style: italic;
  margin-bottom: 3rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* ---------- Información de contacto ---------- */
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contacto-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.contacto-link {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  color: var(--verde-olivo);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  padding-bottom: 0.25rem;
}

.contacto-link:hover {
  color: var(--dorado);
  border-bottom-color: var(--dorado);
  transform: translateY(-2px);
}

/* ================== FOOTER ================== */
.footer-section {
  background: var(--verde-olivo);
  padding: 3rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Decoración elegante en el footer */
.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--dorado) 50%,
      transparent 100%);
}

.footer-container {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-names {
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  color: var(--marfil);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.25rem;
}

.footer-date {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  color: var(--dorado);
  font-style: italic;
  letter-spacing: 0.05em;
}

.footer-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--dorado) 50%,
      transparent 100%);
  margin: 1rem 0;
}

.footer-copyright {
  font-family: "Playfair Display", serif;
  font-size: 0.875rem;
  color: rgba(253, 252, 247, 0.8);
  margin-top: 0.5rem;
}

.footer-credit {
  font-family: "Playfair Display", serif;
  font-size: 0.875rem;
  color: rgba(253, 252, 247, 0.7);
  font-style: italic;
}
/* ======BOTON VOLVER ARRIBA===== */
#btnTop {
    background-color: var(--verde-olivo);
    color: var(--marfil) ;
  }

/* ========================================================media queries==================== */
/* =================================================== */
/* ================== MEDIA QUERIES ================== */
/* =================================================== */

@media (max-width: 768px) {

  .stack {
    width: 180px;
    height: 250px;
  }

  .invitation h1 {
    font-size: 2.5rem;
    margin-top: -2rem;
  }

  .invitation h2 {
    font-size: 2rem;
  }

  .invitation .date {
    font-size: 1.5rem;
  }

  /*transiciones del header */
  .invitation h1,
  .invitation h2 {
    transition-duration: 0.4s;
  }

  .invitation.shrink h1 {
    font-size: 2rem;
    transition: font-size 0.8s ease-in-out;
  }

  .invitation.shrink h2 {
    font-size: 2.5rem;
    transition: font-size 0.8s ease-in-out;
  }

  .audio-player {
    width: 20rem;
  }

  /* menu */

  .logo {
    font-size: 1.5rem;
  }

  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }


  .menu-wrapper {
    justify-content: space-between;
  }

  .mobile-menu {
    width: 100%;
    max-width: 100vw;
    transition: right 0.4s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .mobile-menu.active {
    right: 0;
    opacity: 1;
  }

  .mobile-menu li {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
  }

  .mobile-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* frases */
  .frases {
    padding: 1.5rem 1rem;
    margin-top: 1rem;
  }

  .frases h1 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    line-height: 1.3;
    margin-top: 1rem;
  }

  .frases p {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    line-height: 1.5;
    text-shadow: none;

  }

  /* portraits */
  .wedding-card {
    overflow-x: hidden;
  }

  .portraits {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .portrait {
    width: 160px;
    height: 160px;
  }

  .connector {
    width: 60px;
    height: 60px;
    margin: 0 0.5rem;
  }

  .person-info {
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 90%;
    text-align: center;
  }

  .person-left,
  .person-right {
    margin: 0;
  }

  .person-name {
    font-size: 1.2rem;
  }

  .person-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* 🔹 Estructura general del timeline */
  .timeline-left,
  .timeline-right {
    left: 0;
    width: 92%;
    margin: 5rem auto 3rem;
    text-align: center;
  }

.timeline-panel{
 backdrop-filter: none !important;
    background-color: rgba(250, 252, 243, 0.808);
}
  /* 🔹 Ajuste del punto central */
  .timeline-badge {
    width: 6.5rem;
    height: 6.5rem;
    top: -1.5rem;
  }

  /* 🔹 Centrar y espaciar mejor contenido */
  .timeline-item {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* 🔹 Ajuste de texto para lectura cómoda */
  .timeline-text {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1rem;
  }
  .triangle-left,
  .triangle-right{
  display: none;
  }
  /* circulo nosotros */
  #circulo h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  #circulo h2 {
    font-size: 2.2rem;
    margin-top: 0.3rem;
  }
  
  #circulo h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
  }
  
  #circul > .relative > .relative {
    padding-top: 1rem; 
  }

  /* === Ajuste para que el marquee ocupe toda la pantalla === */
.overflow-hidden.relative.w-full {
  width: 100vw;       
  position: relative;  
  left: 50%;
  right: 50%;
  margin-left: -50vw; 
  margin-right: -50vw;
  overflow: hidden;
}

/* === Animación fluida e infinita === */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}


  /* amistades */
  .amistadesm{
    overflow-x: hidden;
  }
  /* RSVP */
  .rsvp-section {
    padding: 6rem 1.5rem;
  }

  .rsvp-subtitle {
    font-size: 0.875rem;
  }

  .rsvp-title {
    font-size: 2.5rem;
  }

  .rsvp-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .rsvp-button {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
  /* contactos */
    .contacto-section {
    padding: 6rem 1.5rem;
  }

  .contacto-subtitle {
    font-size: 0.875rem;
  }

  .contacto-title {
    font-size: 2.5rem;
  }

  .contacto-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
  }

  .contacto-link {
    font-size: 1rem;
  }

  .contacto-icon {
    font-size: 1.25rem;
  }
    .footer-section {
    padding: 2.5rem 1.5rem 1.75rem;
  }

  .footer-names {
    font-size: 2rem;
  }

  .footer-date {
    font-size: 1rem;
  }

  .footer-copyright,
  .footer-credit {
    font-size: 0.8rem;
  }

}
