body {
  background: url('../img/bg/fondo-citas.webp') center / cover no-repeat fixed;
  min-height: calc(100vh - 90px);
}

.contenedor {
  width: 500px;
  max-width: 90%;
  min-width: 320px;
  margin: 10px auto;
  padding: 20px;
  border-radius: 24px;
  background-color: var(--color-fondo-form);
  font-family: var(--font-family-form);
  box-shadow: var(--shadow);
}

.form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titulo {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  color: var(--color-rosa);
  text-align: center;
  text-shadow:
    -1px -1px 0 white,
     1px -1px 0 white,
    -1px  1px 0 white,
     1px  1px 0 white;
  margin: 0;
}

.logo2 {
  width: clamp(90px, 12vw, 130px);
  height: auto;
}

form {
  display: flex;
  flex-direction: column;
  height: 680px;
}

input,
textarea,
select {
  height: 45px;
  width: 100%;
  resize: none;
  text-align: center;
  font-family: var(--font-family-form);
  font-style: italic;
  margin-bottom: 23px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}

select:invalid {
  color: #888;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-azul);
  outline: none;
}

.env {
  height: 55px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background-color: var(--color-azul);
  border: 2px solid var(--main-bg-color);
  color: white;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  top: -12px;
}

.env:hover {
  background-color: var(--color-hover-btn);
}

small {
  font-size: 0.85em;
  color: var(--color-rosa);
  font-weight: bold;
  display: flex;
}

.btn-agregar {
  color: var(--color-azul);
  font-weight: 600;
  border: none;
  background: none;
  text-align: left;
  position: relative;
  top: -18px;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.mascota-bloque {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 15px auto;
  border: 1px solid #ccc;
  padding: 15px;
  margin-top: 15px;
  border-radius: 24px;
  color: var(--color-rosa);
  background-color: var(--color-fondo-form);
  box-shadow: var(--shadow);
}

.btn-eliminar {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 24px;
  cursor: pointer;
}

@media (max-width: 480px) {

  .contenedor {
    position: relative;
    width: calc(100% - 30px);
    height: auto;
    padding: 50px 15px 30px;
    background-color: var(--color-fondo-form-alt);
  }

  .titulo {
    margin: -20px auto;
    text-align: center;
  }

  .logo2 {
    display: block;
    margin: 10px auto 0;
    width: 120px;
  }

  .env {
    width: 100%;
  }

  .mascota-bloque {
    margin-top: 45px;
    width: calc(100% - 30px);
  }

  .mascota-bloque input,
  .mascota-bloque textarea,
  .mascota-bloque select {
    width: 100%;
  }

}

@media (min-width: 481px) and (max-width: 768px) {

  .contenedor {
    width: 90vw;
    max-width: 600px;
    padding: 20px 30px 40px;
  }

  .titulo {
    font-size: clamp(34px, 5vw, 32px);
    text-align: center;
  }

  .logo2 {
    width: clamp(100px, 10vw, 140px);
  }

  .env,
  .btn-agregar {
    width: 380px;
  }

  .mascota-bloque {
    margin-top: 45px;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {

  .contenedor {
    width: 80vw;
    max-width: 700px;
    padding: 20px 40px 40px;
  }

  .titulo {
    font-size: clamp(36px, 4vw, 36px);
    text-align: center;
  }

  .logo2 {
    width: clamp(110px, 10vw, 150px);
  }

  .env,
  .btn-agregar {
    width: 100%;
  }

  .mascota-bloque {
    margin-top: 45px;
  }

}