* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffd166, #ff9f1c);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  padding: 20px;
}



form {
  max-width: 480px;
  margin: auto;
  background: #fffaf0;
  padding: 25px;
  border-radius: 16px;
  border: 3px dashed #ffb703;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

h2 {
  text-align: center;
  margin-bottom: 5px;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
  color: #6a4e2f;
}

.input-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #6a4e2f;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #ffb703;
}

textarea {
  resize: none;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #fb8500;
}



.photos-title {
  font-weight: bold;
  margin: 10px 0;
  display: block;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  grid-template-rows: repeat(2, 120px);
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.photo-box {
  position: relative;
  width: 120px;
  height: 120px;
  border: 2px dashed #fb8500;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}


.photo-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}


.photo-box span {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: bold;
  color: #fb8500;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}


.photo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 2;
  pointer-events: none;
}



#nextBtn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #fb8500, #f77f00);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px #c25d00;
}

#nextBtn:active {
  transform: translateY(4px);
  box-shadow: 0 2px #c25d00;
}

/* ================= MODAL ================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fffaf0;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  min-width: 250px;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #fb8500;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
  color: #2a9d8f;
  font-weight: bold;
  margin-top: 20px;
}

.success .checkmark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2a9d8f;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
}

.success .checkmark::after {
  content: '';
  width: 12px;
  height: 24px;
  border-right: 4px solid white;
  border-bottom: 4px solid white;
  transform: rotate(45deg);
}


.remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: none;
  z-index: 4;
}

.photo-box.has-image .remove-photo {
  display: block;
}


input[type="text"] {
  background-color: #fff;
}

.image-row {
  display: flex;
  justify-content: center; /* centradas */
  gap: 10px;
  margin: 12px 0 22px;
}

.image-banner {
  width: 90px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  background: #eee;
}

.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.back-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  background: #e9dccb;
  border: none;
  border-radius: 14px;
  color: #6a4e2f;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #d6c4aa;
}


.summary-box {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.summary-box h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #6a4e2f;
}

.summary-box p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}


.payment-card {
  max-width: 420px;
  margin: auto;
  background: #fffaf0;
  padding: 24px;
  border-radius: 18px;
  border: 3px dashed #ffb703;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  text-align: center;
}

.spei-box {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.clabe-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef3c7;
  border-radius: 10px;
  padding: 10px;
  margin: 12px 0;
  font-weight: bold;
  font-size: 14px;
}

.clabe-box button {
  background: #fb8500;
  border: none;
  color: white;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.amount {
  font-size: 18px;
  color: #2a9d8f;
  margin-top: 10px;
}

.note {
  font-size: 14px;
  color: #6a4e2f;
  margin-bottom: 18px;
}

/* adornos animados */
.sparkles {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

#paidBtn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #fb8500, #f77f00);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px #c25d00;
}

#paidBtn:active {
  transform: translateY(4px);
  box-shadow: 0 2px #c25d00;
}


