html{
    scroll-behavior: smooth;
}

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

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

 :root {
      --gris-texto : #6C6E6E;
      --verde-oscuro: #2C4A3E;
      --dorado: #CBA86D;
      --dorado-oscuro: #c49553;
      --tit-negro: #191A1A;
    }

/* HERO */


header{
  min-height: 420px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}


.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  display: block;
  object-fit: cover;
  object-position: center top;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(25, 26, 26, 0.95) 0%,
    rgba(25, 26, 26, 0) 100%
  );
}

.hero{
  max-width: 780px;
    display: flex;
    justify-content: center;
}

.hero-content{
  padding: 160px 10px 120px 10px;
}

h1{
  color: var(--dorado);
  font-size: 18px;
  font-variant: small-caps;
  font-weight: bold;
  margin-bottom: 14px;
}

.hero-tit{
  color: white;
  font-size: 36px;
  font-weight: 600;
  font-family: "Baskervville", serif;
  line-height: 1;
  margin-bottom: 24px;
}


.hero-content hr{
  background-color: var(--dorado);
  height: 4px;
  border: 1px solid var(--dorado);
  border-radius: 16px;
  width: 64px;
  margin-bottom: 34px;
}

.cta-div{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 64px;
}

.cta-transparente{
  color: white;
  font-weight: 400;
  padding: 16px 34px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border: 1px solid white;
  background-color: #6c6e6e63;
  border-radius: 40px;
  max-width: 380px;
  transition: transform 0.25s ease;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.cta-verde{
  color: white;
  background-color: var(--verde-oscuro);
  font-weight: 400;
  padding: 16px 34px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--verde-oscuro);
  border-radius: 40px;
  max-width: 380px;
  transition: transform 0.25s ease;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.cta-transparente:hover,
.cta-verde:hover,
.ent-dr a:hover,
.cta-btn a:hover{
  transform: translate(2px, -2px); 
}

.form-sectin{
  margin-top: 84px;
}

.insta-secc{
  display: flex;
    flex-wrap: wrap;
    margin-top: 34px;
}

.insta-secc a{
  padding: 16px;
}



/* 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-family: "Baskervville", serif;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  color: var(--tit-negro);
  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: white;
  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(--tit-negro);
  font-size: 16px;
}

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

.form-derecha a i{
  color: var(--dorado);
  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: 12px 26px;
  border: none;
  border-radius: 8px;
  color: white;
  font-variant: small-caps;
  align-items: center;
    justify-content: center;
    max-width: 240px;
    transition: transform 0.25s ease;
    cursor: pointer;
    background-color: var(--verde-oscuro);
    margin: 34px auto 0 auto;
}

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

/* WHATSAPP */
  
  #whatsapp-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    transform: translateX(200%); /* Start hidden off the screen */
    float: right;
  }
  
  .logo-whatsapp{
    color: #4FCE5D;
    font-size: 64px;
  }

  .logo-whatsapp:hover{
        box-shadow: 0px 4px 4px rgba(252, 251, 251, 0.25);
        transform: translateY(-2px) translateX(2px) scale(1);
        transition: transform 0.3s ease-in-out;
    }

@media (min-width: 768px) {

  /* HERO */

  header{
  min-height: 520px;
  max-width: 1800px;
  margin: auto;
}

header::after {
  background: linear-gradient(
    to right,
    rgba(25, 26, 26, 0.95) 40%,
    rgba(25, 26, 26, 0) 100%
  );
}

.hero-media img {
  object-position: calc(50% - 80px) top;
}

.hero-content {
    padding: 180px 10px 120px 10px;
    max-width: 620px;
}

.cta-div{
  justify-content: flex-start;
}


    /* FORMULARIO */

 

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

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


@media (min-width: 1024px) {

  /* HERO */

  .hero-media img {
  object-position: calc(50% - 0px) top;
}

  .hero-content {
    padding: 180px 10px 120px 60px;
    max-width: 720px;
}

  /* FORMULARIO */


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

 

}

@media (min-width: 1240px) {

    /* FORMULARIO */

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

}


@media (min-width: 1440px) {

  /* HERO */

  .hero-media img {
    object-position: center top;
  }

  .hero-content {
    padding: 180px 10px 120px 120px;
}

}