body {
   font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: url('../img/fondo-baby.jpg') no-repeat center center fixed;
  background-size: cover;
 color: #2c2c2c;
}

main {
  padding: 2em;
  background: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: auto;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

h1, h2 {
    
  color: #4e9a9a;
    font-family: 'Dancing Script', cursive;
  text-align: center;
}

section {
  margin-bottom: 2em;
  text-align: center;
}

.buttons .btn {
  display: inline-block;
  margin: 0.5em;
  padding: 0.7em 1.5em;
  background: #3c7e7e;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.buttons .btn:hover {
  background: #1a6464;
}

.qr {
  width: 150px;
  margin: 1em auto;
  display: block;
}

.music-control {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 1.5em;
  cursor: pointer;
  opacity: 0.7;
  z-index: 1000;
  color: #4e9a9a;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  padding: 0.3em;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.music-control.playing {
  color: #28a745;
}

.hidden {
  display: none;
}



/* Bienvenida */
.welcome-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.welcome-box {
  text-align: center;
  backdrop-filter: blur(4px);
  background: 
    url('../img/estrellas.gif') center center no-repeat,
    #b6eae2; /* Color de fondo base */
  background-size: cover;
  padding: 2em;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.welcome-box h2 {
  margin-bottom: 1em;
  color: #4e9a9a;
}

.welcome-box button {
  margin-top: 1em;
  padding: 0.7em 2em;
  background: #4e9a9a;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.welcome-box button:hover {
  background: #1a6464;
}

@media screen and (max-width: 600px) {
  main {
    margin: 1em;
    padding: 1.5em;
  }

  .buttons .btn {
    padding: 0.6em 1.2em;
  }

  .music-control {
    font-size: 1.2em;
  }
}





.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 2em 0;
  flex-wrap: nowrap; /* ðŸ”’ no se parte en mÃ³viles */
  overflow-x: auto; /* ðŸ“± permite hacer scroll si no entra */
  padding: 0 10px;
}

.countdown-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 8px;
  border-radius: 12px;
  min-width: 65px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex: 0 0 auto; /* ðŸ§· no se expande */
}

.countdown-box div {
  font-size: 1.6em;
  font-weight: bold;
  color: #4e9a9a;
}

.countdown-box span {
  display: block;
  font-size: 0.75em;
  color: #555;
  margin-top: 4px;
}








@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.evento-fecha {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  color: #497b8c;
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin: 10px auto;
  animation: fadeSlideIn 1.5s ease-out;
}



@keyframes titleAppear {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.titulo-principal {
  font-family: 'Pacifico', cursive;
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  color: #3b6978;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  margin-top: 1em;
  margin-bottom: 0.4em;
  animation: titleAppear 1.2s ease-out;
}



.frase-bienvenida {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  font-weight: 700; /* negrita */
  text-align: center;
  color: #000000; /* el color actual */
  margin: 20px auto;
  padding: 10px 20px;
  max-width: 600px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}





#welcomeOverlay canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}






.emojis {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.emojis span {
  position: absolute;
  font-size: 2em;
  animation: flotar 10s linear forwards;
  opacity: 0.8;
  user-select: none;
}

@keyframes flotar {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) rotate(360deg);
    opacity: 0;
  }
}



.emojis {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

@keyframes subir {
  to {
    transform: translateY(-120vh);
    opacity: 0;
  }
}




.form-asistencia {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
}

.form-asistencia input {
  padding: 0.7em 1em;
  font-size: 1em;
  border-radius: 20px;
  border: 1px solid #ccc;
  width: 80%;
  max-width: 300px;
  text-align: center;
}

.form-asistencia button {
  background: #4e9a9a;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.7em 2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.form-asistencia button:hover {
  background: #1a6464;
}

.mensaje-exito {
  color: #4e9a9a;
  font-weight: bold;
  margin-top: 1em;
}


.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: #4e9a9a;
  font-size: 1.1em;
  font-weight: bold;
  padding: 1.2em 1.5em;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  z-index: 9999;
  text-align: center;
  width: 80%;
  max-width: 300px;
}

@media screen and (max-width: 480px) {
  .popup {
    font-size: 1em;
    padding: 1em;
    width: 85%;
  }
}

body {
  overflow-x: hidden;
  position: relative;
}

.hidden {
    
    
    
    
  display: none;
}

@keyframes aparecerDesaparecer {
  0% { opacity: 0; transform: translate(-50%, -60%); }
  10% { opacity: 1; transform: translate(-50%, -50%); }
  90% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -40%); }
}


.btn-asistire {
  background: linear-gradient(135deg, #6fb1fc, #4364f7);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.8em 2em;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(67, 100, 247, 0.3);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.btn-asistire:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(67, 100, 247, 0.4);
}

.btn-asistire:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(67, 100, 247, 0.2);
}

@media screen and (max-width: 600px) {
  .btn-asistire {
    font-size: 1em;
    padding: 0.7em 1.6em;
  }
}


.asistencia-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap; /* Para m¨®viles */
  margin-top: 1.5em;
}

.asistencia-form input[type="text"] {
  padding: 0.8em 1em;
  border: 2px solid #b0d8ff;
  border-radius: 30px;
  font-size: 1em;
  width: 220px;
  max-width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: border-color 0.3s;
}

.asistencia-form input[type="text"]:focus {
  border-color: #4e9a9a;
  outline: none;
}

.btn-asistire {
  background: linear-gradient(135deg, #4e9a9a, #1a6464);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.8em 1.6em;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(67, 100, 247, 0.3);
}

.btn-asistire:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(67, 100, 247, 0.4);
}

.btn-asistire:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(67, 100, 247, 0.2);
}



.frase-destacada {
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  color: #4e9a9a;
  padding: 1em;
  margin: 1em auto;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  animation: fadeInUp 1.5s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Dancing Script', cursive;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.vestimenta-box {
  text-align: center;
  background: #f3fdfc;
  margin: 2em;
  animation: fadeInUp 1.5s ease-out;
  padding: 1em;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 500px;
}





.icono-vestimenta {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}

.texto-vestimenta {
  font-size: 1.4em;
  font-weight: bold;
  color: #3b6978;
  font-family: 'Dancing Script', cursive;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}





.decoracion-fondo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 150px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.decoracion-fondo2 {
  position: absolute;
  bottom: 800px;
  right: 200px;
  width: 250px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.decoracion-fondo3 {
   position: relative;
  text-align: center;
  margin-top: 40px;
  padding-top: 0px; /* Espacio para que no tape el t¨ªtulo */
}



/* Imagen decorativa en PNG */
.decoracion-fondo3::before {
  content: "";
  background-image: url('../img/decoracion.png'); /* Ruta hacia tu imagen PNG */
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  position: absolute;
  opacity: 0.25;
  top: 0;
  left: 0;
  right: 0;
  height: 120px; /* Ajusta el alto de la imagen */
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


main {
  animation: fadeSlideIn 3s ease-in-out;
}

#invitationContent {
  background: rgba(255, 255, 255, 0.85); /* blanco con transparencia */
  background-image: url('../img/fondotarjeta3.png'); /* usa tu imagen */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 20px;
  padding: 2em;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}



@media screen and (max-width: 480px) {
  .countdown-container {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    padding: 5px;
    flex-wrap: nowrap; /* fuerza a una sola fila */
  }

  .countdown-box {
    flex: 1;
    min-width: 0;
    padding: 6px;
    font-size: 0.8em;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  .countdown-box div {
    font-size: 1.2em;
  }
}



