html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Courier New', Courier, monospace;
  color: #561c24;
  overflow-x: hidden;
}

/* Contenedor relativo de toda la invitación */
.fondo-container {
  position: relative;
  width: 100%;
}

/* Imagen responsiva que hace scroll */
.fondo-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mapas y formulario flotando sobre la imagen */
.mapa, .formulario {
  position: absolute;
  z-index: 2;
}

.mapa {
  width: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.mapa iframe {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  border: none;
}

/* Posiciones de mapas */
.mapa-derecha-arriba {
  top: 1250px;    /* <-- antes estaba en 1500px, lo subí */
  right: 20px;
}

.mapa-izquierda-abajo {
  top: 950px;     /* <-- antes estaba en 1200px, lo subí */
  left: 20px;
}

/* Formulario al final */
.formulario {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

/* Inputs y botón */
#confirmacion-form input[type="text"] {
  width: 90%;
  max-width: 300px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#confirmacion-form button {
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  background-color: #561c24;
  color: white;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
}

#confirmacion-form button:hover {
  background-color: #b83b5e;
}

/* Responsividad */
@media (max-width: 768px) {
  .mapa iframe { height: 180px; }
}

@media (max-width: 430px) {
  .mapa iframe { height: 150px; }
}

/* Reproductor de audio */
.audio-player {
  position: absolute;
  top: 340px;
  left: 30%;
  transform: translateX(-50%) scale(0.5);
  z-index: 3;
  transform-origin: top left;
}

.mapas-container {
  position: absolute;       /* encima de la imagen */
  bottom: 450px;            /* distancia desde abajo, ajusta según tu formulario */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 3;               /* encima del fondo */
}

.mapas-container iframe {
  width: 80%;
  max-width: 300px;
  height: 200px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: none;
}

@media (max-width: 480px) {
  .mapas-container iframe {
    width: 85%;
    height: 180px;
  }
}