/* Hero de agentes: núcleo geodésico (izq) + copy/CTA (der)
   Sin fondo propio: hereda el fondo original de la página / SPA */

.agente-hero-nucleus {
  position: relative;
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  padding: 32px 0 48px;
  background: transparent;
  overflow: hidden;
}

.agente-hero-nucleus-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: calc(100vh - 140px);
}

.agente-hero-nucleus-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: min(520px, 46vw);
  margin: 0 auto;
  border-radius: 50%;
  touch-action: manipulation;
  background: transparent;
}

#agente-hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  background: transparent;
}

.agente-hero-nucleus-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
  max-width: 560px;
}

.agente-hero-nucleus-copy .hero-title {
  margin: 0;
  max-width: none;
  line-height: 1.15;
  font-size: clamp(1.65rem, 3.4vw, 2.75rem);
  text-align: left;
}

.agente-hero-nucleus-copy .agente-hero-sub {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.9;
  max-width: 34em;
}

.agente-hero-nucleus-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.agente-hero-nucleus-ctas .btn-primary {
  margin: 0;
}

@media (max-width: 900px) {
  .agente-hero-nucleus {
    margin-top: 64px;
    min-height: auto;
    padding: 24px 0 40px;
  }

  .agente-hero-nucleus-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    text-align: center;
  }

  .agente-hero-nucleus-stage {
    max-width: min(340px, 78vw);
    order: 1;
  }

  .agente-hero-nucleus-copy {
    order: 2;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .agente-hero-nucleus-copy .hero-title,
  .agente-hero-nucleus-copy .agente-hero-sub {
    text-align: center;
  }

  .agente-hero-nucleus-ctas {
    justify-content: center;
  }
}

/* Dentro del iframe SPA: menos margen superior (header del padre) */
html.gnia-embed .agente-hero-nucleus,
body.gnia-embed .agente-hero-nucleus {
  margin-top: 12px;
  min-height: calc(100vh - 24px);
  padding-top: 12px;
  background: transparent !important;
}
