html{
    scroll-behavior: smooth;
}

body{
    background-color: #FAFCFE;
    overflow-x: hidden;
}

main {
    max-width: 1600px;
    margin: auto;
}

:root{
    --navy:      #021942;
      --navy-dark: #091428;
      --cyan:      #00AFEF;
      --cyan-dark: #0D67A5;
      --white:     #ffffff;
      --grey: #828181;
      --grey-tit: #3D3D3D;
}

/* HERO */

header{
    background-image: url("../images/contacto-hero.webp");
    background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  min-height: 420px;
  position: relative;
}

.hero{
    margin: 0px 10px;
    padding: 140px 10px 180px 10px;
}

.hero-content{
  max-width: 720px;
  margin: auto;
}

.hero-content h1{
    color: var(--white);
    font-size: 16px;
    font-variant: small-caps;
    left: 2px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 8px;
}

.hero-content div p:first-of-type{
    color: var(--white);
    font-size: 36px;
    letter-spacing: 2px;
    font-weight: bolder;
    text-align: center;
    margin-bottom: 34px;
    line-height: 1;
}

.hero-content div p:first-of-type span{
    background: linear-gradient(135deg, #00AFEF 70%, #78CFEA 100%);
    -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p:first-of-type{
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--white);
    line-height: 1.5;
    text-align: center;
    margin-bottom: 34px;
}



.btn-relleno,
.btn-banner-cta{
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 12px 30px;
  border-radius: 16px;
  color: white;
  font-variant: small-caps;
  align-items: center;
    justify-content: center;
    max-width: 280px;
    transition: transform 0.25s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #0D67A5 70%, #00AFEF 100%);
}

.btn-relleno:hover,
.btn-banner-cta:hover{
  transform: translate(2px, -2px);
}

.ctas-hero{
      display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 74px;
}

.btn-transparente{
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 8px 26px;
  border: 1px solid var(--cyan);
  border-radius: 16px;
  color: white;
  font-variant: small-caps;
  align-items: center;
    justify-content: center;
    max-width: 320px;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.btn-transparente:hover{
  transform: translate(2px, -2px);
}



/* FORMULARIO */

.form-secc{
  margin: 64px auto;
    display: flex;
    justify-content: center;
    max-width: 1200px;
}

.success-message,
.error-message {
  display: none;
  margin-bottom: 40px;
}

.success-message { color: #0a7b28 !important; font-size: 16px !important;}
.error-message   { color: #b00020 !important; font-size: 16px !important;}



.form-div h2{
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  color: var(--grey-tit);
  margin-bottom: 44px;
}

.form-content{
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 24px;
  padding: 0 16px;
  justify-content: center;
}

.form-derecha,
.form-izquierda{
  background-color: #FAFCFE;
  border-radius: 40px;
  padding: 44px 20px;
  box-shadow: 0 8px 24px rgba(110, 130, 145, 0.25);
}

.form-derecha{
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.form-derecha a{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.form-derecha a span{
  color: var(--grey-tit);
  font-size: 16px;
}

.form-derecha a span:hover{
  text-decoration: underline;
}

.form-derecha a i{
  color: var(--cyan-dark);
  font-size: 26px;
}



.form-box,
.form-box-msj{
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-box,
.form-box-msj label{
  font-variant: small-caps;
  font-size: 16px;
  color: var(--grey-tit);
}

.form-box input{
  height: 34px;
  border: solid rgb(204, 202, 202);
  border-width: 1px 0 1px 0;
}

.form-box-msj textarea{
  height: 64px;
  border: solid rgb(204, 202, 202);
  border-width: 1px 0 1px 0;
  resize: vertical;
}

.cta-form{
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 8px 26px;
  border: none;
  border-radius: 16px;
  color: white;
  font-variant: small-caps;
  align-items: center;
    justify-content: center;
    max-width: 240px;
    transition: transform 0.25s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #0D67A5 70%, #00AFEF 100%);
    margin: 34px auto 0 auto;
}

.cta-form:hover{
  transform: translate(2px, -2px);
}



@media (min-width: 768px) {

  /* HERO */

  .header {
    min-height: 520px;
  }


  .ctas-hero{
    flex-direction: row;
    justify-content: center;
    margin-top: 64px;
  }

    /* FORMULARIO */

 

  .form-content {
    flex-direction: row;
    gap: 20px;
}

.form-izquierda{
  padding: 44px 64px;
}
}


@media (min-width: 1024px) {

  /* HERO */

  .header {
    min-height: 620px;
  }

  .hero{
    padding: 200px 10px 180px 0px;
        max-width: 800px;
        margin: auto;
}

  .hero-content h1,
  .hero-content p:first-of-type,
  .hero-content div p:first-of-type{
    text-align: left;
  }

  .ctas-hero{
    justify-content: left;
    padding-bottom: 80px;
  }

  .hero-content {
    margin: 0;
  }

  /* FORMULARIO */


  .form-box input{
    width: 380px;
  }

 

}

@media (min-width: 1240px) {

    /* FORMULARIO */

    .form-derecha, .form-izquierda {
        padding: 44px 80px;
    }

}


@media (min-width: 1440px) {

  /* HERO */

  .header {
    min-height: 720px;
  }

}