/* Para animar titulos */

h2 {
  font-family: "RougeScript-Regular", cursive;
  font-size: 3rem;
  font-weight: 100;
}

/* Video de fondo */
.regalo-animado {
  position: relative;
  width: 94vw;
  height: 35vh;
  max-width: 600px;
  margin: 120px auto; /* centrado horizontalmente */
  /* border-radius: 18px; */
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transform-origin: center center; /* asegura que las animaciones partan del centro */
  /* La imagen de fondo se mueve a ::before para poder aplicarle un blur sin afectar el contenido */
}

.regalo-animado::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/jp.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* filter: blur(1px); */
  transform: scale(1.06);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: grayscale(50%);
  opacity: 0.5;
}
.regalo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
  /* border-radius: 18px; */
}
.regalo-text {
  position: relative;
  z-index: 3;
  color: var(--color-claro);
  text-align: center;
}
.texto-regalo1 {
  font-family: "RougeScript-Regular", cursive;
  margin-top: 40px;
}
.texto-regalo2 {
  font-family: "RougeScript-Regular", cursive;
}

.texto-regalo {
  padding: 24px 32px;
  opacity: 0;
  margin-bottom: 5%;
}
.detalle-cuenta {
  margin-bottom: 15%;
}
.titulares-cuenta {
  margin-bottom: 16px;
}
.num-cuenta {
  font-weight: bold;
}

@media (max-width: 600px) {
  .regalo-animado {
    max-width: 98vw;
    min-height: 340px;
  }
  .regalo-contenido {
    padding: 20px 20px;
  }
}
