html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.pantalla-bienvenida {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #001241;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden; 
}

button#abrirSobre { 
  z-index: 5;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  background: white;
  border: none;
  border-radius: 5px;
}

.triangulo {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 100vh solid transparent;
  border-bottom: 100vh solid transparent;
  z-index: 0; /* al fondo */
  transition: transform 1s ease;
}

.izquierda {
  border-right: 50vw solid #06003d;
  left: 50%;
  transform: translateX(0);
}

.derecha {
  border-left: 50vw solid #06003d;
  right: 50%;
  transform: translateX(0);
}

.triangulo.animar.izquierda {
  transform: translateX(-100%);
}

.triangulo.animar.derecha {
  transform: translateX(100%);
}

/*RESTRINGE ANIMATION---------------------------*/
@keyframes abrirTarjeta {
  0% {
    transform: rotateX(90deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

.animacion-abrir {
  animation: abrirSobre 1s ease-out forwards;
  transform-origin: top;
}

.animar-salida {
  animation: abrirTarjeta 1s forwards;
  transform-origin: center;
}


.animar-salida {
  animation: salir 1s forwards;
}

@keyframes salir {
  from { opacity: 1; }
  to { opacity: 0; }
}


/*----------RETRINGE****--------**/
.contenedor-circulo {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.imagen-galleta {
  position: absolute;
  width: 170px;
  height: 170px;
  z-index: 1;
  pointer-events: none;
  animation: latido 2s ease-in-out infinite;
}

.circulo-bienvenida {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  z-index: 2;
  background-color: transparent;
  pointer-events: none;
  font-family: 'Great Vibes', cursive;
  animation: pulso 2s ease-in-out infinite;
}

.circulo-bienvenida h1 {
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.linea-superior {
  font-family: 'Playfair Display', serif;

  font-size: 21px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #701515e1;
}

.linea-inferior {
  font-family: 'Playfair Display', serif;

  font-size: 21px;
  margin-top: 5px;
  color: #701515e1;
}


@keyframes latido {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.10);
  }
}

@keyframes pulso {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.10);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes saltoEntrada {
  0% {
    opacity: 0;
    transform: translateY(-80px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(20px) scale(1.05);
  }
  80% {
    transform: translateY(-10px) scale(0.97);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.animar-salto {
  animation: saltoEntrada 1s ease-out forwards;
}

/*part2*/


.tarjeta-informativa {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.tarjeta {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 400px;
  width: 100%;
}

.tarjeta .titulo {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #aa5a5a;
}

.tarjeta .texto,
.tarjeta .lugar,
.tarjeta .hora {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.linea-decorativa {
  width: 100%;
  height: 2px;
  background: #e3c6c6;
  margin: 1rem 0;
}

.botones {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.boton {
  padding: 0.6rem 1.2rem;
  background: #aa5a5a;
  color: white;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.boton:hover {
  background: #8a4545;
}
.fondo-general {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('098.webp');
  background-size: cover;
  background-position: center;
  z-index: -1; /* debe estar detrás */
}



.contenedor-blanco {
  background-color: white;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* permite que bajen en pantallas chicas */
  gap: 10px;
  margin-top: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.time {
  background: #fff8f0;
  border: 1.5px solid #e0b7b7;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  flex: 1 1 60px; /* más pequeño */
  max-width: 70px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.time:hover {
  transform: scale(1.04);
}

.time span {
  display: block;
  font-size: 1.4em;
  color: #b15e5e;
  font-weight: bold;
}

.time p {
  margin: 3px 0 0;
  font-size: 0.7em;
  color: #5c4b4b;
}


/* 📱 Ajustes para móviles */
@media (max-width: 480px) {
  .time {
    width: 65px;
    padding: 10px;
  }
  .time span {
    font-size: 1.5em;
  }
  .time p {
    font-size: 0.8em;
  }
}


.corazon {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  z-index: 9999;
  animation: flotar 2s ease-out forwards;
}

@keyframes flotar {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y));
    opacity: 0;
  }
}
.video-invitacion {
  text-align: center;
  padding: 40px 0;
}

.marco-video {
  display: inline-block;
  padding: 12px;
  background: linear-gradient(135deg, #d4af37, #f7e7ce);
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(0,0,0,0.25);
  max-width: 90%; /* No ocupará más del 90% de la pantalla */
}

.marco-video video {
  display: block;
  width: 100%;  /* Ajusta el video al ancho del marco */
  height: auto; /* Mantiene proporción */
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

