/* =========================
   POPUP (Invicrea - Bodas)
   ========================= */

.boda-popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,.55);
  z-index: 999999;
  padding: 24px;
}

.boda-popup-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.boda-popup-modal {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 15px;
  position: relative;
  max-height: 85vh;
  overflow: visible; 
  outline: none;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  text-align: center;
}

.boda-popup-close {
  position: absolute;
    top: 3px;
    right: 4px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boda-popup-close:hover {
  transform: scale(1.02);
}

.boda-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* =========================
   RSVP FORM
   ========================= */

.boda-rsvp__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.boda-rsvp__row.checkbox{
  flex-direction: row;
  gap: 20px;
  justify-content: center;
}
.boda-rsvp textarea {
  padding: 10px;
  border: none;
  border-bottom: 1px solid #000000;
  border-radius: 0;
  min-height: 60px;
  width: 100%;
  height: 60px;
}

.boda-rsvp__btn {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
}

.boda-rsvp__btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.boda-rsvp__inline-msg {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.boda-rsvp__inline-msg.is-ok { border-color: #cfe9cf; }
.boda-rsvp__inline-msg.is-err { border-color: #f3c1c1; }

.boda-rsvp__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   MAPAS dentro del popup
   ========================= */

.boda-popup-map iframe {
  width: 100%;
  max-width: 100%;
  height: 300px;
  border: 0;
  border-radius: 14px;
  margin-top: 15px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 520px) {
  .boda-popup-overlay { padding: 14px; }
  .boda-popup-modal { padding: 14px; border-radius: 16px; }
  .boda-popup-close { top: 8px; right: 8px; }
  .boda-popup-map iframe { height: 300px; }
}

/*Modal Musica*/
#music-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-family: sans-serif;
}

.modal-content {
    color: #333;
    padding: 20px;
    border-radius: 15px;
}

.modal-buttons {
    margin-top: 20px;
}

.btn-music {
    padding: 10px 25px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin: 0 10px;
    font-weight: bold;
}

#music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: none; /* Se muestra solo tras la elección */
}

.btn-floating {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

/*Responsive*/
@media (max-width: 767.98px) {
  .btn-music{
    width: 100%;
    margin-bottom: 15px;
  }
}