/* =========================================================
   HERO CON VIDEO DE FONDO — PÁGINAS INTERNAS ML in Cloud
   Archivo: css/brand-video-hero.css
   ========================================================= */

body .brand-video-hero {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  min-height: clamp(640px, 86vh, 860px) !important;
  display: flex !important;
  align-items: center !important;
  padding: 128px 0 104px !important;
  background: #101827 !important;
}

/* Video de fondo */
body .brand-video-hero .brand-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Capa negra principal */
body .brand-video-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      180deg,
      rgba(5, 12, 22, 0.58) 0%,
      rgba(5, 12, 22, 0.68) 48%,
      rgba(5, 12, 22, 0.82) 100%
    ) !important;
}

/* Viñeta elegante */
body .brand-video-hero::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.01) 34%,
      rgba(0, 0, 0, 0.36) 100%
    ) !important;
  width: auto !important;
  height: auto !important;
  right: auto !important;
  top: auto !important;
  border-radius: 0 !important;
  filter: none !important;
}

/* Contenedor centrado */
body .brand-video-hero .brand-hero-centered {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  gap: 0 !important;
  text-align: center !important;
}

/* Oculta el video/card lateral anterior */
body .brand-video-hero [class*="-hero-video"] {
  display: none !important;
}

/* Centra el contenido */
body .brand-video-hero [class*="-hero-copy"] {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Link regresar */
body .brand-video-hero [class*="-back-link"] {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 24px !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

/* Etiqueta de marca */
body .brand-video-hero [class*="-brand-label"] {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 26px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(18px);
}

body .brand-video-hero [class*="-brand-label"] span {
  color: rgba(255, 255, 255, 0.68) !important;
}

body .brand-video-hero [class*="-brand-label"] strong {
  color: #ffffff !important;
}

/* Eyebrow */
body .brand-video-hero .eyebrow {
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

/* Título */
body .brand-video-hero h1 {
  max-width: 1050px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  text-align: center !important;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.46) !important;
}

/* Texto */
body .brand-video-hero [class*="-lead"] {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 34px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  text-align: center !important;
}

/* Botones centrados */
body .brand-video-hero .hero-actions {
  justify-content: center !important;
  align-items: center !important;
}

/* Botón secundario sobre video */
body .brand-video-hero .btn-secondary {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(12px);
}

body .brand-video-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* Responsive */
@media (max-width: 760px) {
  body .brand-video-hero {
    min-height: 720px !important;
    padding: 110px 0 78px !important;
  }

  body .brand-video-hero [class*="-brand-label"] {
    padding: 16px 20px !important;
  }

  body .brand-video-hero .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  body .brand-video-hero .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================================================
   AJUSTE TAMAÑO NOMBRE DE MARCA EN HERO
   ========================================================= */

body .brand-video-hero [class*="-brand-label"] strong {
  font-size: clamp(1.9rem, 3vw, 2.35rem) !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
}

body .brand-video-hero [class*="-brand-label"] span {
  font-size: 0.82rem !important;
  letter-spacing: 0.11em !important;
}

body .brand-video-hero [class*="-brand-label"] {
  padding: 22px 34px !important;
}
/* =========================================================
   AJUSTE FINAL HERO FABRICANTES
   Botón volver arriba + tarjeta compacta de marca debajo
   ========================================================= */

/* Contenedor principal del texto del hero */
body .brand-video-hero [class*="-hero-copy"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
}

/* Botón volver al Stack tecnológico */
body .brand-video-hero [class*="-back-link"] {
  order: 1 !important;

  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: fit-content !important;
  max-width: 100% !important;

  margin: 0 auto 24px !important;
  padding: 0 !important;

  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  text-decoration: none !important;

  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42) !important;
  transition: transform 0.22s ease, color 0.22s ease !important;
}

body .brand-video-hero [class*="-back-link"]:hover {
  color: #ffffff !important;
  transform: translateX(-4px) !important;
}

/* Tarjeta glass de marca */
body .brand-video-hero [class*="-brand-label"] {
  order: 2 !important;

  width: fit-content !important;
  min-width: 330px !important;
  max-width: min(90vw, 460px) !important;

  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  margin: 0 auto 34px !important;
  padding: 26px 44px !important;

  border-radius: 28px !important;
  text-align: center !important;

  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;

  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

/* Texto superior: Soluciones para empresas */
body .brand-video-hero [class*="-brand-label"] span {
  display: block !important;
  order: 1 !important;

  margin: 0 !important;

  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

/* Nombre de la marca */
body .brand-video-hero [class*="-brand-label"] strong {
  display: block !important;
  order: 2 !important;

  margin: 0 !important;

  color: #ffffff !important;
  font-size: clamp(2.6rem, 4.4vw, 4.2rem) !important;
  font-weight: 950 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.055em !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Ajuste del texto principal debajo de la tarjeta */
body .brand-video-hero [class*="-hero-copy"] .eyebrow {
  order: 3 !important;
  justify-content: center !important;
  text-align: center !important;
}

body .brand-video-hero [class*="-hero-copy"] h1 {
  order: 4 !important;
  text-align: center !important;
}

body .brand-video-hero [class*="-hero-copy"] [class*="-lead"] {
  order: 5 !important;
  text-align: center !important;
}

body .brand-video-hero [class*="-hero-copy"] .hero-actions {
  order: 6 !important;
  justify-content: center !important;
}

/* Responsive */
@media (max-width: 760px) {
  body .brand-video-hero [class*="-hero-copy"] {
    max-width: 100% !important;
  }

  body .brand-video-hero [class*="-back-link"] {
    margin-bottom: 22px !important;
    font-size: 0.95rem !important;
  }

  body .brand-video-hero [class*="-brand-label"] {
    min-width: 260px !important;
    max-width: 90vw !important;
    padding: 22px 30px !important;
    border-radius: 24px !important;
    margin-bottom: 30px !important;
  }

  body .brand-video-hero [class*="-brand-label"] span {
    font-size: 0.7rem !important;
    letter-spacing: 0.16em !important;
  }

  body .brand-video-hero [class*="-brand-label"] strong {
    font-size: clamp(2.2rem, 12vw, 3rem) !important;
  }
}