* {
  margin: 0;
  padding: 0;
}
h1 {
  padding-bottom: 50px;
  font-size: 35px;
}

h2 {
  margin-top: 20px;
  padding-bottom: 20px;
  font-size: 35px;
}
body {
  background-image: url(../img/fondo-porcorn.jpg);
  font-family: sans-serif;
}

section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-left: 5%;
  margin-top: 5%;
  background-color: rgba(24, 27, 75, 0.7);
  border-radius: 10px;
  color: white;
  font-size: 20px;
  margin-left: 70px;
  margin-right: 70px;
}

.section-left {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 3%;
  width: 50%;
}

.section-left-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
}

.section-left-form label {
  grid-column: 1 / 3;
}

.section-left-form input {
  margin-bottom: 20px;
  padding: 5px;
  width: 100%;
}

.section-right {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 3%;
  width: 50%;
}

.section-right-form {
  display: flex;
  flex-direction: column;
}

.section-right-form input {
  padding: 5px;
  margin-bottom: 20px;
}

.cupon {
  margin-left: 20px;
}

p {
  margin-left: 20px;
}

input#Tarjeta {
  margin-left: 20px;
}

input#Cupon {
  margin-left: 20px;
  margin-bottom: 30px;
}

input#Rapipago {
  margin-right: 25px;
}

input#Codigo {
  width: 40px;
  text-align: center;
  margin-left: 2px;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.botones {
  margin-top: 50px;
}

.confirmar {
  display: inline-block;
  text-decoration: none;
  border: 2px solid black;
  padding: 3px;
  width: 120px;
  text-align: center;
  border-radius: 2px;
  background-color: rgb(71, 209, 163);
  color: black;
}

.cancelar {
  display: inline-block;
  text-decoration: none;
  border: 2px solid black;
  padding: 3px;
  width: 120px;
  text-align: center;
  border-radius: 2px;
  background-color: rgb(253, 52, 52);
  color: black;
  margin-left: 40px;
}

.tick {
  display: none;
  color: green;
  margin-left: 10px;
}

.tick:after {
  content: '✔';
}

.error {
  color: red;
  display: block;
  margin-top: 5px;
  grid-column: 1 / 3;
}

@media (max-width: 48em) {
  section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 80%;
  }
  .section-left {
    width: 100%;
  }
  .section-right {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .contenedor form {
    width: 50%;
    margin-top: 4%; 
  }
}

@media (max-width: 768px) {
  .contenedor form {
    width: 75%; 
  }
}

@media (max-width: 576px) {
  .contenedor form {
    width: 75%; 
    margin-top: 20%;
  }
}
