/* ============================================
   SECCIÓN DE CONTACTO - DISEÑO FINAL
   ============================================ */

.g6-form-cta {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* (Fondo movido a .g6-form-top::before) */

/* ============================================
   PARTE SUPERIOR - FORMULARIO
   ============================================ */
.g6-form-cta .g6-form-top {
  position: relative;
  padding: clamp(150px, 18vw, 200px) 20px 0;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.g6-form-cta .g6-form-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(
      to bottom,
      rgba(30, 28, 26, 0.4) 0%,
      rgba(30, 28, 26, 0.7) 100%
    ),
    var(--g6-form-bg, url("../images/renders/MARIATEGUI_FACHADA_JARDINES_02_11112024.webp"));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.g6-form-cta .g6-form-cta__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.g6-form-cta .g6-editorial-project-card--form {
  background: #fff !important;
  border: 1px solid var(--g6-border) !important;
  box-shadow: 0 8px 40px rgba(114, 108, 99, 0.15) !important;
  padding: 0 !important;
}

body.g6-brand .g6-form-cta .g6-editorial-project-card--form::before,
body.g6-brand .g6-form-cta .g6-editorial-project-card--form::after {
  display: none !important;
}

.g6-form-cta .g6-card-header {
  background: var(--g6-stone);
  padding: 40px 48px;
  margin-bottom: 0;
  text-align: center;
}

.g6-form-cta .g6-card-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--g6-cream);
  display: block;
}

.g6-form-cta__form {
  position: relative;
  padding: 50px 60px 60px;
  background: #fff;
  border: none !important;
  box-shadow: none !important;
}

.g6-form-cta__form .g6-field {
  margin-bottom: 2.5rem;
}

.g6-form-cta__form label {
  display: block;
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g6-stone);
}

.g6-form-cta__form input[type="text"],
.g6-form-cta__form input[type="email"],
.g6-form-cta__form input[type="tel"] {
  display: block;
  width: 100%;
  padding: 1rem 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: var(--g6-ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--g6-border-strong);
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color 0.25s ease;
}

.g6-form-cta__form input:focus {
  outline: none;
  border-bottom-color: var(--g6-orange);
  border-bottom-width: 2px;
}

.g6-form-cta__form input::placeholder {
  color: var(--g6-ink-muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Botón posicionado en la frontera con la sección crema */
.g6-form-cta__actions {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(50%);
  z-index: 20;
}

body.g6-brand .g6-form-cta .g6-form-submit {
  border: none !important;
  cursor: pointer;
  background: var(--g6-accent) !important;
  color: var(--g6-white) !important;
  padding: 22px 100px;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(254, 59, 31, 0.3);
}

body.g6-brand .g6-form-cta .g6-form-submit:hover {
  background: color-mix(in srgb, var(--g6-orange) 85%, #000 15%) !important;
  color: var(--g6-white) !important;
}

body.g6-brand .g6-form-cta .g6-form-submit.g6-leads-form--sending {
  opacity: 0.78;
  cursor: wait !important;
  box-shadow: none !important;
}

body.g6-brand .g6-form-cta .g6-form-submit.g6-leads-form--sent,
body.g6-brand .g6-form-cta .g6-form-submit.g6-leads-form--sent:disabled {
  background: var(--g6-stone, #726c63) !important;
  color: var(--g6-cream, #e1ded0) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1;
  pointer-events: none;
  letter-spacing: 0.12em !important;
}

body.g6-brand .g6-form-cta .g6-form-submit.g6-leads-form--sent:hover,
body.g6-brand .g6-form-cta .g6-form-submit.g6-leads-form--sent:focus {
  background: var(--g6-stone, #726c63) !important;
  color: var(--g6-cream, #e1ded0) !important;
  box-shadow: none !important;
}

.g6-leads-form--sent .g6-field input {
  opacity: 0.55;
  pointer-events: none;
}

.g6-leads-response {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.g6-leads-response--success {
  color: #1a6b3c;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.g6-leads-response--success::before {
  content: "✓ ";
}

.g6-leads-response--error {
  color: #b42318;
}

/* ============================================
   PARTE INFERIOR - FONDO OSCURO
   ============================================ */
.g6-form-cta .g6-form-bottom {
  position: relative;
  background: var(--g6-white) !important;
  padding: clamp(50px, 6vw, 100px) clamp(30px, 6vw, 80px)
    clamp(50px, 8vw, 100px);
}

/* Cuadrícula decorativa y fundido a blanco (estilo servicios) */
.g6-form-cta .g6-form-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(114, 108, 99, 0.07) 0 1px,
      transparent 1px 48px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(114, 108, 99, 0.055) 0 1px,
      transparent 1px 48px
    );
  background-size: 100% 100%;
  opacity: 0.55;
}

.g6-form-cta .g6-form-bottom::after {
  display: none;
}

/* Logo y tagline centrados arriba */
.g6-form-cta .g6-brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.g6-form-cta .g6-logo-mark {
  height: clamp(80px, 12vw, 120px);
  width: auto;
  margin-bottom: 10px;
}

.g6-form-cta .g6-brand-name {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--g6-ink);
  text-transform: uppercase;
}

.g6-form-cta .g6-brand-tagline {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  color: var(--g6-ink);
  text-align: center;
  line-height: 1.6;
  max-width: 500px;
  margin: 50px auto 50px;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.g6-form-cta .g6-contact-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 150px;
}

/* ============================================
   BOTÓN CONTÁCTANOS - IZQUIERDA
   ============================================ */
.g6-form-cta .g6-contact-left {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 5;
}

.g6-form-cta .g6-whatsapp-icon {
  display: block;
  text-align: center;
  transition: transform 0.3s ease;
}

.g6-form-cta .g6-whatsapp-icon:hover {
  transform: scale(1.1);
}

.g6-form-cta .g6-whatsapp-icon svg {
  width: 55px;
  height: 55px;
  fill: var(--g6-ink-muted);
}

.g6-form-cta .g6-contactanos-btn {
  display: block;
  background: var(--g6-accent);
  color: var(--g6-white);
  padding: 16px 50px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.g6-form-cta .g6-contactanos-btn:hover {
  background: color-mix(in srgb, var(--g6-orange) 85%, #000 15%);
}

/* ============================================
   LÍNEAS DECORATIVAS
   ============================================ */

.g6-form-cta .g6-lines-contact {
  position: absolute;
  left: 50%;
  width: 50%;
  bottom: 21px; /* Alineado con el centro del botón */
  height: 1px;
}

.g6-form-cta .g6-lines-connector {
  position: relative;
  width: 100%;
  height: 100%;
}

/* La línea horizontal empieza después del botón */
.g6-form-cta .g6-line-h {
  position: absolute;
  top: 0;
  left: 90px; /* Offset para que empiece después del botón */
  right: -240px;
  height: 1px;
  background: var(--g6-stone); /* Cambiado de --g6-ink a --g6-stone para homologar al color café */
}

/* La línea vertical sube al final */
.g6-form-cta .g6-line-v {
  position: absolute;
  bottom: 0;
  right: -240px;
  width: 1px;
  height: 85px;
  background: var(--g6-stone); /* Cambiado de --g6-ink a --g6-stone para homologar al color café */
}

.g6-form-cta .g6-line-mark {
  position: absolute;
  top: -85px;
  right: -242px;
  width: 6px;
  height: 15px;
  background: var(--g6-stone); /* Cambiado de --g6-ink a --g6-stone para homologar al color café */
}

/* Info de contacto - POSICIONADA ARRIBA DE LA LÍNEA HORIZONTAL */
.g6-form-cta .g6-contact-info {
  position: absolute;
  bottom: 30px;
  right: -240px;
  display: flex;
  align-items: flex-start; /* Alinea el email con el inicio de la dirección */
  justify-content: flex-end;
  gap: 40px;
  width: auto;
  padding-right: 25px; /* Espacio para que no toque la línea vertical */
}

.g6-form-cta .g6-contact-left-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.g6-form-cta .g6-contact-email {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--g6-ink);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.g6-form-cta .g6-contact-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: opacity 0.3s ease;
}

.g6-form-cta .g6-contact-linkedin:hover {
  opacity: 0.8;
}

.g6-form-cta .g6-contact-linkedin svg {
  width: 24px;
  height: 24px;
  fill: var(--g6-stone);
}

.g6-form-cta .g6-contact-address {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: var(--g6-ink);
  opacity: 1;
  line-height: 1.6;
  text-align: left;
  width: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .g6-form-cta .g6-form-top {
    padding: 80px 16px 0;
  }

  .g6-form-cta .g6-form-cta__inner {
    margin: 0;
    max-width: 100%;
  }

  .g6-form-cta .g6-card-header {
    padding: 30px 24px;
  }

  .g6-form-cta__form {
    padding: 36px 24px 40px;
  }

  .g6-form-cta__form .g6-field {
    margin-bottom: 1.6rem;
  }

  .g6-form-cta__form label {
    font-size: 11px;
    margin-bottom: 0.8rem;
  }

  .g6-form-cta__form input[type="text"],
  .g6-form-cta__form input[type="email"],
  .g6-form-cta__form input[type="tel"] {
    font-size: 16px;
    padding: 0.8rem 0;
    min-height: 44px;
  }

  body.g6-brand .g6-form-cta .g6-form-submit {
    width: 100%;
    padding: 16px 2rem;
    font-size: 12px !important;
  }

  .g6-form-cta .g6-logo-mark {
    height: clamp(60px, 15vw, 90px);
  }

  .g6-form-cta .g6-brand-name {
    font-size: 9px;
  }

  .g6-form-cta .g6-brand-tagline {
    font-size: 15px;
    margin: 30px auto 30px;
    padding: 0 10px;
  }

  .g6-form-cta .g6-form-bottom {
    padding: 40px 16px 80px;
  }

  .g6-form-cta .g6-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    height: auto;
  }

  .g6-form-cta .g6-contact-left {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
  }

  .g6-form-cta .g6-whatsapp-icon svg {
    width: 48px;
    height: 48px;
  }

  .g6-form-cta .g6-contactanos-btn {
    padding: 14px 40px;
    font-size: 13px;
  }

  .g6-form-cta .g6-lines-contact,
  .g6-form-cta .g6-lines-connector,
  .g6-form-cta .g6-line-h,
  .g6-form-cta .g6-line-v,
  .g6-form-cta .g6-line-mark {
    display: none;
  }

  .g6-form-cta .g6-contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 16px 32px;
    width: 100%;
    max-width: 100%;
    padding: 24px 16px 16px;
    position: relative;
    right: auto;
    top: auto;
    text-align: center;
  }

  .g6-form-cta .g6-contact-left-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .g6-form-cta .g6-contact-email {
    font-size: 14px;
    color: var(--g6-ink);
    font-weight: 600;
  }

  .g6-form-cta .g6-contact-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(114, 108, 99, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .g6-form-cta .g6-contact-linkedin:hover {
    background: rgba(114, 108, 99, 0.2);
    transform: scale(1.1);
  }

  .g6-form-cta .g6-contact-linkedin svg {
    width: 20px;
    height: 20px;
    fill: var(--g6-stone);
  }

  .g6-form-cta .g6-contact-address {
  width: auto;
  padding-right: 25px; /* Espacio para que no toque la línea vertical */
}

.g6-form-cta .g6-contact-left-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.g6-form-cta .g6-contact-email {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--g6-ink);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.g6-form-cta .g6-contact-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: opacity 0.3s ease;
}

.g6-form-cta .g6-contact-linkedin:hover {
  opacity: 0.8;
}

.g6-form-cta .g6-contact-linkedin svg {
  width: 24px;
  height: 24px;
  fill: var(--g6-stone);
}

.g6-form-cta .g6-contact-address {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: var(--g6-ink);
  opacity: 1;
  line-height: 1.6;
  text-align: left;
  width: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .g6-form-cta .g6-form-top {
    padding: 80px 16px 0;
  }

  .g6-form-cta .g6-form-cta__inner {
    margin: 0;
    max-width: 100%;
  }

  .g6-form-cta .g6-card-header {
    padding: 30px 24px;
  }

  .g6-form-cta__form {
    padding: 36px 24px 40px;
  }

  .g6-form-cta__form .g6-field {
    margin-bottom: 1.6rem;
  }

  .g6-form-cta__form label {
    font-size: 11px;
    margin-bottom: 0.8rem;
  }

  .g6-form-cta__form input[type="text"],
  .g6-form-cta__form input[type="email"],
  .g6-form-cta__form input[type="tel"] {
    font-size: 16px;
    padding: 0.8rem 0;
    min-height: 44px;
  }

  body.g6-brand .g6-form-cta .g6-form-submit {
    width: 100%;
    padding: 16px 2rem;
    font-size: 12px !important;
  }

  .g6-form-cta .g6-logo-mark {
    height: clamp(60px, 15vw, 90px);
  }

  .g6-form-cta .g6-brand-name {
    font-size: 9px;
  }

  .g6-form-cta .g6-brand-tagline {
    font-size: 15px;
    margin: 30px auto 30px;
    padding: 0 10px;
  }

  .g6-form-cta .g6-form-bottom {
    padding: 40px 16px 80px;
  }

  .g6-form-cta .g6-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    height: auto;
  }

  .g6-form-cta .g6-contact-left {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
  }

  .g6-form-cta .g6-whatsapp-icon svg {
    width: 48px;
    height: 48px;
  }

  .g6-form-cta .g6-contactanos-btn {
    padding: 14px 40px;
    font-size: 13px;
  }

  .g6-form-cta .g6-lines-contact,
  .g6-form-cta .g6-lines-connector,
  .g6-form-cta .g6-line-h,
  .g6-form-cta .g6-line-v,
  .g6-form-cta .g6-line-mark {
    display: none;
  }

  .g6-form-cta .g6-contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 16px 32px;
    width: 100%;
    max-width: 100%;
    padding: 24px 16px 16px;
    position: relative;
    right: auto;
    top: auto;
    text-align: center;
  }

  .g6-form-cta .g6-contact-left-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .g6-form-cta .g6-contact-email {
    font-size: 14px;
    color: var(--g6-ink);
    font-weight: 600;
  }

  .g6-form-cta .g6-contact-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(114, 108, 99, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .g6-form-cta .g6-contact-linkedin:hover {
    background: rgba(114, 108, 99, 0.2);
    transform: scale(1.1);
  }

  .g6-form-cta .g6-contact-linkedin svg {
    width: 20px;
    height: 20px;
    fill: var(--g6-stone);
  }

  .g6-form-cta .g6-contact-address {
    font-size: 12px;
    text-align: left;
    line-height: 1.7;
    color: var(--g6-ink);
  }
}

#contacto {
  scroll-margin-top: 200px;
}

.g6-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.g6-hp-field label,
.g6-hp-field input {
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
}
