/* =========================================
   CONTACT · TREZE (FINAL REAL)
========================================= */

.c-contact{
  padding-block: clamp(80px, 10vw, 140px);
}


/* =========================================
   CONTAINER
========================================= */

.c-contact__container{
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}


/* =========================================
   GRID
========================================= */

.c-contact__grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.c-contact__info-text{
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* =========================================
   MEDIA
========================================= */

.c-contact__media{
  position: relative;
  height: 100%;
}

.c-contact__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================
   CONTENT
========================================= */

.c-contact__content{
  max-width: 720px;
}


/* TITLE */

.c-contact__title{
  margin: 0 0 16px;

  color: #C98028;
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
}


/* LEAD */

.c-contact__lead{
  margin-bottom: 16px;

  color: #291F46;
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.4;
}


/* TEXT */

.c-contact__text{
  color: #291F46;
  font-family: "Lexend Deca", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.c-contact__text p{
  margin: 0 0 14px;
}


/* LIST */

.c-contact__list{
  margin: 10px 0 20px;
  padding-left: 18px;
}

.c-contact__list li{
  margin-bottom: 6px;
}


/* =========================================
   FORM WRAP (NARANJA)
========================================= */

.c-contact__form-wrap{
  margin-top: 32px;

  padding: clamp(24px, 3vw, 36px);

  border-radius: 16px;

  background: linear-gradient(135deg, #DFB37E 0%, #C98028 100%);
}


/* =========================================
   GRAVITY FORMS (TREZE STYLE)
========================================= */

.c-contact__form-wrap .gform_wrapper{
  margin: 0;
}

.c-contact__form-wrap .gform_fields{
  display: grid;
  gap: 16px;
}


/* INPUTS */

.c-contact__form-wrap input,
.c-contact__form-wrap textarea{
  width: 100%;

  padding: 14px 16px;

  border-radius: 8px;
  border: none;

  background: rgba(255,255,255,.96);

  font-family: "Lexend Deca", sans-serif;
  font-size: 14px;

  outline: none;

  transition: all .2s ease;
}


/* FOCUS */

.c-contact__form-wrap input:focus,
.c-contact__form-wrap textarea:focus{
  box-shadow: 0 0 0 2px rgba(10,5,45,.2);
}


/* TEXTAREA */

.c-contact__form-wrap textarea{
  min-height: 120px;
  resize: vertical;
}


/* BUTTON */

.c-contact__form-wrap .gform_button{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 10px;

  min-height: 44px;
  padding: 0 22px;

  border-radius: 10px;
  border: none;

  background: #0A052D;
  color: #fff;

  font-family: "Lexend Deca", sans-serif;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: all .25s ease;
}

.c-contact__form-wrap .gform_button:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}


/* =========================================
   INFO
========================================= */

.c-contact__info{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;

  margin-top: 40px;
}

.c-contact__info-title{
  margin-bottom: 8px;

  color: #C98028;
  font-family: "Lexend Deca", sans-serif;
  font-size: 28px;
  font-weight: 600;
}

.c-contact__info-text{
  color: #291F46;
  font-family: "Lexend Deca", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}


/* LINKS */

.c-contact__link{
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.c-contact__link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 0;
  height: 1px;

  background: currentColor;
  transition: width .25s ease;
}

.c-contact__link:hover::after{
  width: 100%;
}


/* =========================================
   FOOT (NARANJA)
========================================= */

.c-contact__foot{
  margin-top: clamp(32px, 4vw, 48px);

  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 28px);

  border-radius: 14px;

  background: linear-gradient(135deg, #DFB37E 0%, #C98028 100%);

  color: #0A052D;

  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.6;

  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.c-contact__foot strong{
  display: block;
  margin-top: 6px;
  font-weight: 700;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1024px){

  .c-contact__container{
    width: calc(100% - 40px);
  }

}

@media (max-width: 900px){

  .c-contact__grid{
    grid-template-columns: 1fr;
  }

  .c-contact__media{
    order: -1;
    height: 320px;
  }

  .c-contact__info{
    grid-template-columns: 1fr;
    gap: 24px;
  }

}

@media (max-width: 640px){

  .c-contact{
    padding-block: 64px;
  }

  .c-contact__container{
    width: 100%;
    padding-inline: 20px;
  }

  .c-contact__title{
    font-size: 28px;
  }

  .c-contact__lead{
    font-size: 18px;
  }

  .c-contact__form-wrap{
    padding: 20px;
    border-radius: 14px;
  }

}


/* =========================================
   FIX GLOBAL
========================================= */

.c-contact,
.c-contact *{
  min-width: 0;
  box-sizing: border-box;
}

/* =========================================
   GRAVITY FORMS · TREZE SYSTEM (REAL)
========================================= */

/* RESET CONTROLADO */

.c-contact__form-wrap .gform_wrapper,
.c-contact__form-wrap .gform_wrapper *{
  font-family: "Lexend Deca", sans-serif;
  box-sizing: border-box;
}


/* LAYOUT */

.c-contact__form-wrap .gform_fields{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.c-contact__form-wrap .gfield{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}


/* LABELS */

.c-contact__form-wrap .gfield_label{
  font-size: 13px;
  font-weight: 600;
  color: #0A052D;
}

.c-contact__form-wrap .gfield_required{
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px;
  opacity: .6;
}


/* INPUT BASE (UNIFICADO) */

.c-contact__form-wrap input,
.c-contact__form-wrap textarea,
.c-contact__form-wrap select{

  width: 100%;
  height: 46px;

  padding: 0 14px;

  border-radius: 10px;
  border: 1px solid rgba(10,5,45,.12);

  background: #ffffff;

  font-size: 14px;
  color: #0A052D;

  outline: none;

  transition: all .2s ease;
}


/* TEXTAREA */

.c-contact__form-wrap textarea{
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}


/* FOCUS (MISMO EN TODO) */

.c-contact__form-wrap input:focus,
.c-contact__form-wrap textarea:focus,
.c-contact__form-wrap select:focus{
  border-color: #C98028;
  box-shadow: 0 0 0 2px rgba(201,128,40,.15);
}


/* SELECT (LIMPIO Y ALINEADO) */

.c-contact__form-wrap select{
  appearance: none;
  text-align: left;
  background-image: none;
}


/* RADIO / CHECKBOX (PRO) */

.c-contact__form-wrap .gfield_radio{
  display: grid;
  gap: 10px;
}

.c-contact__form-wrap .gchoice{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 18px;

  border-radius: 10px;
  border: 1px solid rgba(10,5,45,.12);

  background: #fff;

  transition: all .2s ease;
}

/* hover tipo tarjeta */
.c-contact__form-wrap .gchoice:hover{
  border-color: rgba(201,128,40,.4);
}

/* input radio oculto */
.c-contact__form-wrap .gchoice input{
  accent-color: #C98028;
}

/* seleccionado */
.c-contact__form-wrap .gchoice input:checked + label{
  font-weight: 600;
}


/* COMPLEX (nombre/apellidos) */

.c-contact__form-wrap .ginput_complex{
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}


/* SUBLABELS */

.c-contact__form-wrap .gform-field-label--type-sub{
  font-size: 11px;
  opacity: .6;
  margin-bottom: 4px;
}


/* SECTIONS */

.c-contact__form-wrap .gsection_title{
  font-size: 16px;
  font-weight: 600;
  color: #0A052D;
}


/* ERRORES */

.c-contact__form-wrap .gfield_error input,
.c-contact__form-wrap .gfield_error textarea,
.c-contact__form-wrap .gfield_error select{
  border-color: #C98028;
  box-shadow: 0 0 0 2px rgba(201,128,40,.2);
}


/* BOTÓN (COHERENTE CON TREZE) */

.c-contact__form-wrap .gform_button{
  margin-top: 12px;

  min-height: 46px;
  padding: 0 22px;

  border-radius: 10px;
  border: none;

  background: #0A052D;
  color: #fff;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: all .25s ease;
}

.c-contact__form-wrap .gform_button:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* =========================================
   RADIO · TREZE FIX REAL
========================================= */

.c-contact__form-wrap .gchoice{
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 18px;

  border-radius: 12px;
  border: 1px solid rgba(10,5,45,.12);

  background: #fff;

  cursor: pointer;

  transition: all .2s ease;
}


/* INPUT OCULTO (NO ESA PUTA BOLA) */
.c-contact__form-wrap .gchoice input{
  position: absolute;
  inset: 0;

  opacity: 0;
  cursor: pointer;
}


/* LABEL BIEN */
.c-contact__form-wrap .gchoice label{
  width: 100%;
  margin: 0;
  text-align: left;

  font-size: 14px;
  color: #0A052D;
}


.gform_wrapper.gravity-theme .gfield_required {
  color: #0A052D!important;  
}

/* HOVER */
.c-contact__form-wrap .gchoice:hover{
  border-color: rgba(201,128,40,.4);
  background: rgba(255,255,255,.9);
}


/* SELECCIONADO (AQUÍ ESTÁ LA MAGIA) */
.c-contact__form-wrap .gchoice input:checked + label{
  font-weight: 600;
}

.c-contact__form-wrap .gchoice input:checked{
  background: none;
}

.c-contact__form-wrap .gchoice:has(input:checked){
  border-color: #C98028;
  box-shadow: 0 0 0 2px rgba(201,128,40,.15);
}

/* =========================================
   CONSENT · TREZE
========================================= */

.c-contact__form-wrap .ginput_container_consent{
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 16px 18px;

  border-radius: 12px;
  border: 1px solid rgba(10,5,45,.12);

  background: #fff;

  cursor: pointer;

  transition: all .2s ease;
}


/* INPUT OCULTO (COMO RADIO) */

.c-contact__form-wrap .ginput_container_consent input[type="checkbox"]{
  position: absolute;
  inset: 0;

  opacity: 0;
  cursor: pointer;
}


/* TEXTO */

.c-contact__form-wrap .gfield_consent_label{
  margin: 0;
  width: 100%;

  font-family: "Lexend Deca", sans-serif;
  font-size: 14px;
  line-height: 1.5;

  color: #0A052D;
}


/* LINK */

.c-contact__form-wrap .gfield_consent_label a{
  color: #C98028;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.c-contact__form-wrap .gfield_consent_label a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 0;
  height: 1px;

  background: currentColor;
  transition: width .25s ease;
}

.c-contact__form-wrap .gfield_consent_label a:hover::after{
  width: 100%;
}


/* HOVER */

.c-contact__form-wrap .ginput_container_consent:hover{
  border-color: rgba(201,128,40,.4);
  background: rgba(255,255,255,.92);
}


/* CHECKED (MISMO SISTEMA QUE RADIOS) */

.c-contact__form-wrap .ginput_container_consent:has(input:checked){
  border-color: #C98028;
  box-shadow: 0 0 0 2px rgba(201,128,40,.15);
}


/* OPCIONAL: ICONITO CHECK (PRO) */

.c-contact__form-wrap .ginput_container_consent::before{
  content: "";
  flex-shrink: 0;

  width: 18px;
  height: 18px;

  margin-top: 2px;

  border-radius: 4px;
  border: 1px solid rgba(10,5,45,.2);

  transition: all .2s ease;
}

.c-contact__form-wrap .ginput_container_consent:has(input:checked)::before{
  background: #C98028;
  border-color: #C98028;
}

/* =========================================
   STICKY CONTENT (SOLO DESKTOP REAL)
========================================= */

@media (min-width: 1025px){

  .c-contact__content{
    position: sticky;
    top: 120px; /* ajusta según header */
    align-self: start;
  }

}

/* RESPONSIVE */

@media (max-width:640px){

  .c-contact__form-wrap .ginput_complex{
    grid-template-columns: 1fr;
  }

}