header {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
form input {
  box-sizing: border-box;
  width: 100%;
}
form button {
  background: #e3dfda;
  border: 2px solid white;
  border-radius: 0.44rem;
  color: black;
  font-size: 1.125rem;
  line-height: 1;
  padding: 1.25rem 4rem;
}
section#contacta {
  background: #dbd1c5;
  padding: 3rem 0;
}
section#contacta ul {
  color: white;
}
section#contacta ul li:nth-of-type(1) div:nth-of-type(1) a {
  color: white;
}
section#contacta ul a.button {
  border-color: white;
  color: white;
}
#academy {
  background: url('../img/academy/academy.jpg');
  background-position: center;
  background-size: cover;
  height: 97.5rem;
}
#academy .headerImg {
  width: 100%;
}
#academy .headerImgMob {
  display: none;
}
#bsportwidget {
  margin: 0 auto;
  width: 80%;
}
.blockContainer {
  background: var(--color-tierra);
  position: relative;
}
.bigTitle {
  color: white;
  font-size: 5rem;
  font-weight: 900;
  line-height: 3.25rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.firstRow {
  align-items: center;
  display: flex;
  gap: 2rem;
  margin-bottom: 2.69rem;
  width: 100%;
}
.footer {
  background: #dbd1c5;
}
.formField {
  display: flex;
  flex-direction: column;
}
.formField label {
  color: white;
  font-size: 1.125rem;
  padding-left: 1rem;
}
.formField input,
.formField textarea {
  background: rgba(227, 223, 218, 0.63);
  border: 2px solid white;
  border-radius: 0.44rem;
  color: black;
  padding: 0.5rem 1rem;
}
.formField textarea {
  height: 10rem;
}
.line {
  background: white;
  border: none;
  height: 2px;
  margin-bottom: 4.56rem;
  width: 100%;
}
.overImg {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 50%;
  max-width: 81.25rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}
.overImg .academyHeadline {
  margin-bottom: 7.875rem;
  width: 27.875rem;
}
.overImg .academyHeadlineMob {
  display: none;
}
.overImg .logo {
  width: 7.95rem;
}
.secondRow {
  margin-bottom: 2rem;
}
.subTitle {
  color: white;
  font-size: 3.75rem;
  line-height: 6.5rem;
  margin-bottom: 3.125rem;
}
.thirdRow {
  align-content: center;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
@media screen and (max-width: 1920px) and (min-width: 1822px) {
  .subTitle {
    font-size: 3.25rem;
  }
}
@media screen and (max-width: 1820px) and (min-width: 1461px) {
  form button {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
  #academy {
    height: 76.5rem;
  }
  .bigTitle {
    font-size: 4rem;
    line-height: 2.5rem;
    margin-bottom: 0.75rem;
  }
  .firstRow {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .formField label {
    font-size: 1rem;
    padding-left: 0.8rem;
  }
  .formField input,
  .formField textarea {
    padding: 0.5rem 1rem;
  }
  .line {
    margin-bottom: 2rem;
  }
  .overImg .academyHeadline {
    margin-bottom: 5rem;
    width: 20rem;
  }
  .overImg .logo {
    width: 7.95rem;
  }
  .secondRow {
    margin-bottom: 1.5rem;
  }
  .subTitle {
    font-size: 3rem;
    line-height: 4rem;
    margin-bottom: 2.5rem;
  }
  .thirdRow {
    margin-bottom: 1.5rem;
  }
}
@media screen and (max-width: 1460px) and (min-width: 1025px) {
  form {
    max-width: 60rem;
    width: 100%;
  }
  form button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
  #academy {
    height: 57.5rem;
  }
  .bigTitle {
    font-size: 3rem;
    line-height: 1.5rem;
  }
  .firstRow {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .formField label {
    font-size: 0.8rem;
    padding-left: 0.5rem;
  }
  .formField input,
  .formField textarea {
    padding: 0.5rem 1rem;
  }
  .formField textarea {
    height: 6rem;
  }
  .line {
    margin-bottom: 2rem;
  }
  .overImg .academyHeadline {
    margin-bottom: 3rem;
    width: 15rem;
  }
  .overImg .logo {
    width: 3rem;
  }
  .secondRow {
    margin-bottom: 1.5rem;
  }
  .subTitle {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 1rem;
  }
  .thirdRow {
    margin-bottom: 1.5rem;
  }
}
@media screen and (max-width: 1024px) and (min-width: 977px) {
  form {
    max-width: 60rem;
    width: 100%;
  }
  form button {
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
  }
  #academy {
    height: 52.5rem;
  }
  .bigTitle {
    font-size: 2rem;
    line-height: 1;
  }
  .firstRow {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .formField label {
    font-size: 0.8rem;
    padding-left: 0.5rem;
  }
  .formField input,
  .formField textarea {
    padding: 0.5rem 1rem;
  }
  .formField textarea {
    height: 6rem;
  }
  .line {
    margin-bottom: 2rem;
  }
  .overImg .academyHeadline {
    margin-bottom: 2.5rem;
    width: 12rem;
  }
  .overImg .logo {
    width: 2rem;
  }
  .secondRow {
    margin-bottom: 1.5rem;
  }
  .subTitle {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 1rem;
  }
  .thirdRow {
    margin-bottom: 1.5rem;
  }
}
@media screen and (max-width: 977px) {
  form {
    max-width: 60rem;
    width: 100%;
  }
  form button {
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
  }
  #academy {
    background: url('../img/academy/academy-mob.jpg') no-repeat;
    background-position: center;
    background-size: cover;
    height: 66rem;
  }
  .bigTitle {
    font-size: 2.25rem;
    line-height: 1;
  }
  .firstRow {
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .formField {
    margin: 0 auto;
    width: 90%;
  }
  .formField label {
    font-size: 0.8rem;
    padding-left: 0.5rem;
  }
  .formField input,
  .formField textarea {
    padding: 1rem 1rem;
  }
  .formField textarea {
    height: 6rem;
  }
  .line {
    height: 1px;
    margin-bottom: 2rem;
  }
  .overImg .academyHeadlineMob {
    display: block;
    margin: 3.375rem auto 1.875rem;
    width: 14rem;
  }
  .overImg .academyHeadline {
    display: none;
  }
  .overImg .logo {
    width: 4rem;
  }
  .secondRow {
    margin-bottom: 1.5rem;
  }
  .subTitle {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-align: center;
  }
  .thirdRow {
    margin-bottom: 1.5rem;
  }
}
input.wrong,
textarea.wrong {
  border-color: #b00020 !important;
  background-color: #ffeaea;
  outline: none;
}

.modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 9999;
}
.modal.open {
  display: block;
}
.modal__backdrop {
  background: rgba(0, 0, 0, 0.5);
  inset: 0;
  position: absolute;
}
.modal__dialog {
  background: #b09a7d;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-size: 1.125rem;
  margin: 10vh auto 0;
  outline: none;
  padding: 1.5rem;
  position: relative;
  width: 80%;
}
.modal__dialog .modalHeadline {
  display: block;
  max-width: 28.25rem;
  margin: 9.75rem auto 4.875rem;
}
.modal__dialog .modalMessage {
  color: white;
  font-size: 2rem;
  margin: 0 auto;
  text-align: center;
  width: 70%;
}
.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}
.modal__actions {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  text-align: right;
}
.modal__actions button {
  display: block;
  background: none;
  border: none;
}
.modal__actions button:hover {
  cursor: pointer;
}
.modal__actions button:hover img {
  opacity: 0.8;
}
.modal__actions img {
  width: 2.5rem;
}

/* opcional: foco accesible coherente con tu UI */
form input:focus-visible,
form textarea:focus-visible,
form button:focus-visible,
.modal__close:focus-visible,
.modal__actions .button:focus-visible {
  outline: 3px solid rgba(227, 223, 218, 0.9);
  outline-offset: 2px;
}
@media screen and (max-width: 1460px) {
  .modal__dialog .modalHeadline {
    margin: 4rem auto 2.625rem;
    max-width: 14.125rem;
  }
  .modal__dialog .modalMessage {
    font-size: 1.125rem;
    line-height: 1.375rem;
    width: 100%;
  }
  .modal__actions img {
    width: 2rem;
  }
}
