/* =========================
   Wrapper principal (100vw)
   ========================= */

.contact-cta {
  width: 100vw;
  max-width: 100vw;

  position: relative;

  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  background-color: #ffffff;
}

.contact-cta * {
  box-sizing: border-box;
}

/* =========================
   Overlay opcional (mejora legibilidad)
   ========================= */

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* =========================
   Contenedor 80%
   ========================= */

.ccta-container {
  width: 80%;
  margin: 0 auto;

  min-height: 420px;
  padding: 40px 0;

  position: relative;
  z-index: 2;
}

/* =========================
   Grid layout
   ========================= */

.ccta-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;

  /* Antes: center (centraba y podía dejar el bloque derecho “arriba”) */
  align-items: flex-start;
}

/* Baja SOLO el contenedor de la derecha (2ª columna) */
.ccta-grid > :nth-child(2) {
  margin-top: 8%;
}

/* =========================
   Contenido texto
   ========================= */

.ccta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ccta-title {
  font-size: 44px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
}

.ccta-text {
  font-size: 18px;
  line-height: 1.5;
  color: #334155;
  margin: 0 0 36px;
  max-width: 650px;
}

/* =========================
   Botones
   ========================= */

.ccta-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.ccta-btn {
  background: var(--color3);
  color: #ffffff;
  text-decoration: none;

  padding: 14px 36px;
  border-radius: 999px;

  font-size: 20px;
  font-weight: 700;

  box-shadow: 0 14px 32px rgba(67, 56, 202, 0.25);
  transition: 0.25s ease;

  /* Icono + texto alineados */
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ccta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(67, 56, 202, 0.3);
}

/* =========================
   Iconos SVG
   ========================= */

.ccta-icon {
  width: 30px;
  height: 20px;
  object-fit: contain;

  /* Hace el SVG blanco si el icono es negro */
  filter: brightness(0) invert(1);
}

/* =========================
   Responsive
   ========================= */
   @media (max-width: 1025px){
    .contact-cta {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    background-color: #ffffff;
}
   }

@media (max-width: 980px) {

  .contact-cta {
    background-position: center bottom;
    background-size: contain;
  }

  .ccta-container {
    width: 90%;
    min-height: auto;
  }

  .ccta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: stretch; /* en móvil no hace falta el flex-start */
  }

  /* En móvil, quitamos el “bajado” porque ya va en columna */
  .ccta-grid > :nth-child(2) {
    margin-top: 0px;
  }

  .ccta-content {
    align-items: center;
  }

  .ccta-actions {
    justify-content: center;
  }

}
