/* ======================================
   SECCIÓN IA (animaciones suaves + rutas corregidas)
   ====================================== */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.sectionIA {
  background: var(--neutro1);
  width: 100%;
  padding: 90px 0;
  font-family: "Lexend Deca", sans-serif;
}

.sectionIA__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header arriba */
.sectionIA__header {
  margin-bottom: 42px;
}

.sectionIA__title {
  margin: 0 0 10px 0;
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.12;
  color: var(--neutro2);
  letter-spacing: -0.02em;
}

.sectionIA__title .color-ia {
  color: var(--color2);
}

.sectionIA__subtitle {
  margin: 0;
  font-size: 1rem;
  color: rgba(26, 26, 26, 0.65);
}

/* Grid 2 columnas (derecha más ancha) */
.sectionIA__grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 70px;
  align-items: start;
}

/* =========================
   IZQUIERDA: PASOS
   ========================= */

.sectionIA__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tarjeta estilo referencia + animación premium SIN saltos */
.sectionIA__step {
  width: 86%;
  margin: 0 auto;

  background: var(--neutro1);
  border: 1.6px solid rgba(107, 46, 230, 0.60);
  border-radius: 12px;

  padding: 22px 22px 20px;
  text-align: center;

  /* sombra base + offset morado (transiciona suave) */
  box-shadow:
    6px 6px 0 rgba(107, 46, 230, 0.78),
    0 2px 10px rgba(1, 1, 1, 0.05);

  will-change: transform, box-shadow;
  transform: translate3d(0, 0, 0);

  transition:
    transform 650ms var(--ease-out-expo),
    box-shadow 750ms var(--ease-out-expo);
}

.sectionIA__step:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow:
    10px 10px 0 rgba(107, 46, 230, 0.92),
    0 12px 22px rgba(1, 1, 1, 0.08);
}

/* Fila superior: título + icono a la derecha */
.step__head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.step__title {
  margin: 0;
  font-weight: 900;
  font-size: 0.98rem;
  color: var(--neutro2);
  line-height: 1.2;
}

/* Icono */
.step__icon {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  will-change: transform;
  transform: translate3d(0, 0, 0);

  transition: transform 650ms var(--ease-out-expo);
}

.sectionIA__step:hover .step__icon {
  transform: translate3d(2px, -1px, 0) rotate(-2deg);
}

.step__icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

/* Descripción */
.step__desc {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(26, 26, 26, 0.68);
  line-height: 1.45;
}

/* =========================
   DERECHA: TEXTO
   ========================= */

.sectionIA__content {
  width: 100%;
}

.sectionIA__text p {
  margin: 0 0 18px 0;
  font-size: 1rem;
  color: rgba(26, 26, 26, 0.78);
}

.sectionIA__text strong {
  color: var(--neutro2);
  font-weight: 900;
}

/* =========================
   CTA centrado + icono rayo
   ========================= */

.sectionIA__cta {
  margin-top: 28px;
  text-align: center;
}

.sectionIA__result {
  margin: 0 0 18px 0;
  font-weight: 900;
  color: var(--color2);
  line-height: 1.3;
  font-size: 0.98rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sectionIA__bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sectionIA__bolt img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.sectionIA__resultSub {
  display: block;
  width: 100%;
  margin-top: 4px;
  color: var(--color2);
  font-weight: 900;
}

/* Botón */
.sectionIA__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--color2);
  color: var(--neutro1);
  text-decoration: none;

  font-weight: 900;
  font-size: 1rem;

  padding: 16px 42px;
  border-radius: 10px;

  box-shadow: 0 16px 38px rgba(107, 46, 230, 0.28);

  will-change: transform, background-color;
  transform: translate3d(0, 0, 0);

  transition:
    transform 650ms var(--ease-out-expo),
    background-color 320ms ease;
}

.sectionIA__button:hover {
  background: var(--color3);
  transform: translate3d(0, -4px, 0);
}

/* =========================
   FadeUp: suave (sin micro saltos)
   ========================= */

.FadeUpItem {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  will-change: opacity, transform;
  transition:
    opacity 900ms var(--ease-out-expo),
    transform 900ms var(--ease-out-expo);
}

.FadeUpIn {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .FadeUpItem,
  .sectionIA__step,
  .sectionIA__button,
  .step__icon {
    transition: none !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .sectionIA__title { font-size: 2.4rem; }

  .sectionIA__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .sectionIA__step {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .sectionIA__title { font-size: 2rem; }
  .sectionIA__button { width: 100%; }
}
