#gift-sec-1 {
  z-index: 3;
}

#gift-sec-1 a,
#gift-sec-3 a {
  margin: 10px;
}

#gift-sec-1 a:first-child .btn-new,
#gift-sec-3 a .btn-new {
  padding: 19px;
}

#gift-sec-2 .row:last-child {
  background: url(../images/patron-1.svg);
  background-size: 200px;
  background-position: 0 50px;
  background-repeat: repeat;
}

#gift-sec-2 .row:last-child > div {
  margin-top: -50px;
  margin-bottom: -50px;
}

#gift-sec-2 .gift-container {
  border-radius: calc(var(--esquina) * 2);
  max-width: 820px;
  padding: 0 20px;
  margin: auto;
  position: relative;
}

#gift-sec-2 .iframe-container {
  padding: 25px 25px 0;
  background: var(--blanco);
  max-width: 430px;
  position: relative;
}

#gift-sec-2 img {
  box-shadow: 0 0 20px #88888870;
  background: none;
  border-radius: 20px;
  margin: 0 auto 25px;
}

#gift-sec-2 iframe {
  position: relative;
  top: 0;
  left: 0;
  border-radius: var(--esquina) var(--esquina);
  height: 800px;
}

#gift-sec-3 {
  margin: 180px 0 80px;
  position: relative;
  background: linear-gradient(
    -180deg,
    var(--rosa) calc(100% - 50px),
    var(--blanco) calc(100% - 50px)
  );
}

#gift-sec-3::before {
  background: url(../images/img-giftrow1.svg) center no-repeat;
  background-size: cover;
  width: 100%;
  position: absolute;
  content: "";
  height: 120px;
  top: -60px;
}

#gift-sec-3::after {
  background: url(../images/img-giftrow2.svg) center no-repeat;
  background-size: cover;
  width: 100%;
  position: absolute;
  content: "";
  height: 120px;
  bottom: -30px;
}

#gift-sec-3 img.flecha {
  max-height: 80px;
  max-width: 80px;
  margin: 0 30px;
}

/* Remover botones de flechas en Chrome, Edge y Safari */
#gift-sec-3 input[type="number"]::-webkit-inner-spin-button,
#gift-sec-3 input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remover botones de flechas en Firefox */
#gift-sec-3 input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  background: white;
  border: var(--borde-negro);
  border-radius: calc(var(--esquina) * 1.5);
  font-size: 45px;
  padding: 15px;
  width: 65px;
  height: 75px;
  margin: 4px;
  text-align: center;
  font-family: "Urbanist";
  font-weight: 300;
}

#code-input-container {
  background: #dfdfdf;
  border: var(--borde-negro);
  border-radius: calc(var(--esquina) * 2);
  padding: 15px;
}

#gift-sec-3 h5 {
  margin: 0;
  text-align: center;
  padding: 10px;
  border-radius: var(--esquina) var(--esquina) 0 0;
  letter-spacing: var(--distancia-letras);
  font-size: 1.1em;
  text-wrap: balance;
  margin: 10px auto 5px;
  text-transform: uppercase;
  font-weight: 800;
  font-family: "Urbanist";
}

/* Modal Container */
.custom-modal {
  background: var(--blanco);
  border: var(--borde-negro);
  border-radius: calc(var(--esquina) * 2);
  padding: 30px;
  margin: auto;
  text-align: center;
  max-width: 400px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close-modal {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  color: var(--negro, #333);
}

.close-modal:hover {
  color: red;
}

/* Input Field */
.custom-modal .username-input {
  width: 80%;
  margin: 15px auto;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  border: var(--borde-negro);
  border-radius: calc(var(--esquina) * 1.5);
}

/* Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

/* Show overlay when modal is visible */
.custom-modal[style*="display: block"] + body::before {
  display: block;
}

.hidden {
  display: none;
}

#modal-message {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
}

#modal-message.error {
  color: red;
  background: #f8d7da;
  padding: 10px;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  #gift-sec-3 div.row {
    background-size: contain;
    min-height: 200px;
  }
}

@media screen and (min-width: 992px) {
  #gift-sec-2 h2 {
    font-size: 3.5em;
  }

  #gift-sec-1 button,
  #gift-sec-3 button {
    font-size: 1.2em;
    min-height: 80px;
    padding: 8px 30px;
    min-width: 350px;
  }

  #gift-sec-1 a,
  #gift-sec-3 a {
    margin: 0 40px;
  }

  #gift-sec-3 button {
    min-height: 70px;
  }

  #gift-sec-2 .gift-container {
    padding: 0 110px;
  }

  #gift-sec-2 .iframe-container::before,
  #gift-sec-2 .iframe-container::after {
    background: url(../images/img-gift2.png) center no-repeat;
    background-size: contain;
    width: 370px;
    height: 370px;
    position: absolute;
    content: "";
    z-index: 2;
    top: -10px;
    left: -380px;
  }

  #gift-sec-2 .iframe-container::after {
    background: url(../images/img-gift3.png) center no-repeat;
    background-size: contain;
    left: auto;
    right: -380px;
  }

  #gift-sec-3 .btn-new {
    max-width: 380px;
    font-size: 1.1em;
    margin: 0;
  }

  #gift-sec-3::before {
    background: url(../images/img-giftrow1.svg) top left no-repeat;
    background-size: contain;
    width: 100%;
    position: absolute;
    content: "";
    height: 120px;
    top: -60px;
  }

  #gift-sec-3::after {
    background: url(../images/img-giftrow2.svg) top left no-repeat;
    background-size: contain;
    width: 100%;
    position: absolute;
    content: "";
    height: 120px;
    bottom: -40px;
  }
}
