/* ==========================================================
   SectionMainBanner.css
   Shortcode: [SectionMainBanner]
   Full width (100vw) version
   ========================================================== */

/* =========================
   CONTENEDOR GENERAL (FULL BLEED)
   ========================= */
.section-banner-ai {
  position: relative;
  background-color: #ffffff;

  /* Full width real incluso dentro de contenedores del theme */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: left;
  box-sizing: border-box;
  overflow: hidden;

  /* Padding vertical como lo tenías */
  padding: clamp(60px, 8vw, 120px) 0;
  max-width: unset;
}

.section-banner-ai * {
  box-sizing: border-box;
}

/* =========================
   ROMBOS DECORATIVOS
   ========================= */
.section-banner-ai::before,
.section-banner-ai::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  background-image: var(--rombo-url);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
  z-index: 9999;
  pointer-events: none;
}

/* Rombo superior (más centrado como en el diseño) */
.section-banner-ai::before {
    top: 14%;
    left: 56%;
    transform: translateX(-50%);
    width: 150px;
    height: 200px;
}

/* Rombo inferior derecho */
.section-banner-ai::after {
  bottom: 10%;
  right: 6%;
  width: 100px;
  height: 150px;
}

/* =========================
   GRID PRINCIPAL (100% VIEWPORT)
   ========================= */
.banner-ai-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Ocupa el ancho completo del banner */
  width: 100%;
  max-width: none;

  /* Padding lateral fluido como diseño full width */
  padding: 0 clamp(24px, 6vw, 120px);

  /*gap: clamp(32px, 5vw, 72px);*/
  flex-wrap: wrap;

  position: relative;
  z-index: 2;
}

/* =========================
   COLUMNA IZQUIERDA (Texto)
   ========================= */
.banner-ai-text {
  flex: 1;
  min-width: 320px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.banner-ai-text h1 {
  color: #0f172a;
  font-size: clamp(2.6rem, 3.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 clamp(18px, 2.2vw, 28px) 0;
  max-width: 22ch;
}

.banner-ai-text p {
  color: #1e293b;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  margin: 0 0 clamp(26px, 3vw, 42px) 0;
  max-width: 58ch;
}

/* =========================
   BOTONERA
   ========================= */
.banner-ai-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.banner-ai-buttons a {
  text-decoration: none;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-size: 1.5rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 10px;
  white-space: nowrap;
}

/* Botón relleno */
.btn-filled {
  background: #6f2cff;
  color: #ffffff;
  border: 2px solid #6f2cff;
  box-shadow: 0 6px 20px rgba(111, 44, 255, 0.25);
}

.btn-filled:hover {
  background: #4b19c7;
  border-color: #4b19c7;
  box-shadow: 0 8px 28px rgba(111, 44, 255, 0.4);
}

/* =========================
   COLUMNA DERECHA (Imagen)
   ========================= */
.banner-ai-image {
  flex: 1;
  min-width: 320px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-ai-image img {
  width: 70%;
  height: auto;
  display: block;

  /* MÁS GRANDE (único cambio aquí) */
  max-width: clamp(360px, 48vw, 860px);
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 900px) {
  .banner-ai-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .banner-ai-text {
    align-items: center;
  }

  .banner-ai-text h1,
  .banner-ai-text p {
    max-width: 100%;
  }

  .banner-ai-buttons {
    justify-content: center;
  }

  .banner-ai-image img {
    width: min(360px, 100%);
  }

  /* Rombos más pequeños y reubicados */
  .section-banner-ai::before {
    top: 6%;
    right: 10%;
    left: auto;
    transform: none;
    width: 28px;
    height: 28px;
  }

  .section-banner-ai::after {
    bottom: 6%;
    right: 12%;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 420px) {
  .banner-ai-buttons a {
    width: 100%;
  }

  /* Ocultar rombos en móviles pequeños */
  .section-banner-ai::before,
  .section-banner-ai::after {
    display: none;
  }
}
