/* ============================================
   SECCIÓN DE CONTACTO - DISEÑO FINAL
   ============================================ */

.g6-form-cta {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Fondo fijo con imagen */
.g6-form-cta::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to bottom, rgba(30, 28, 26, 0.85) 0%, rgba(30, 28, 26, 0.95) 100%),
    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;
}

/* ============================================
   PARTE SUPERIOR - FORMULARIO
   ============================================ */
.g6-form-cta .g6-form-top {
  position: relative;
  padding: clamp(150px, 18vw, 200px) 20px 0;
  z-index: 2;
}

.g6-form-cta .g6-form-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
}

.g6-form-cta .g6-editorial-project-card--form {
  background: var(--g6-cream) !important;
  border: 1px solid var(--g6-border) !important;
  box-shadow: 0 8px 40px rgba(114, 108, 99, 0.15) !important;
  padding: 0 !important;
  margin-top: -20px;
}

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: 24px 28px;
  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 {
  padding: 28px 32px 32px;
  background: var(--g6-cream);
  border: none !important;
  box-shadow: none !important;
}

.g6-form-cta__form .g6-field {
  margin-bottom: 1.4rem;
}

.g6-form-cta__form label {
  display: block;
  margin-bottom: 0.6rem;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  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: 0.6rem 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  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 flotante */
.g6-form-cta__actions {
  display: flex;
  justify-content: center;
  margin-top: -26px;
  margin-bottom: -26px;
  position: relative;
  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: 18px 56px;
  font-size: 11px !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;
}

/* ============================================
   PARTE INFERIOR - FONDO OSCURO
   ============================================ */
.g6-form-cta .g6-form-bottom {
  background: var(--g6-cream);
  padding: clamp(50px, 6vw, 80px) clamp(30px, 6vw, 80px) clamp(50px, 8vw, 80px);
  position: relative;
}

/* Gradientes diagonales sutiles */
.g6-form-cta .g6-form-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(58, 54, 50, 0.2) 0%, transparent 50%),
    linear-gradient(225deg, rgba(58, 54, 50, 0.15) 0%, transparent 50%);
  pointer-events: 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: #263e48;
}

/* La línea vertical sube al final */
.g6-form-cta .g6-line-v {
  position: absolute;
  bottom: 0;
  right: -240px;
  width: 1px;
  height: 85px;
  background: #263e48;
}

.g6-form-cta .g6-line-mark {
  position: absolute;
  top: -85px;
  right: -242px;
  width: 6px;
  height: 15px;
  background: #263e48;
}

/* Info de contacto - POSICIONADA ARRIBA DE LA LÍNEA HORIZONTAL */
.g6-form-cta .g6-contact-info {
  position: absolute;
  bottom: 12px;
  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: 20px 16px;
  }

  .g6-form-cta__form {
    padding: 24px 20px 32px;
  }

  .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: 30px;
    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-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 {
    position: relative;
    top: auto;
    right: auto;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-right: 0;
  }

  .g6-form-cta .g6-contact-left-items {
    align-items: center;
  }

  .g6-form-cta .g6-contact-email {
    font-size: 14px;
  }

  .g6-form-cta .g6-contact-linkedin {
    justify-content: center;
    width: 36px;
    height: 36px;
  }

  .g6-form-cta .g6-contact-linkedin svg {
    width: 20px;
    height: 20px;
  }

  .g6-form-cta .g6-contact-address {
    font-size: 12px;
    text-align: center;
    line-height: 1.7;
  }
}

#contacto {
  scroll-margin-top: 120px;
}
