
/* ============================================================
   Buen Jale — Correcciones finales de hero, Nosotros y utilidades
   ============================================================ */

html { scroll-behavior: smooth; }

/* ---------- HERO: título totalmente adaptable ---------- */
.banner-one.banner-one-enhanced .banner-one_heading.hero-responsive-title {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: baseline !important;
  justify-content: center !important;
  column-gap: .16em !important;
  row-gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  font-size: clamp(62px, 8.7vw, 150px) !important;
  line-height: .86 !important;
  letter-spacing: -.045em !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
}
.banner-one.banner-one-enhanced .banner-one_heading.hero-responsive-title span {
  display: inline-block !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}
/* Se elimina por completo el control circular central del hero. */
.banner-one.banner-one-enhanced > .auto-container > .down-box {
  display: none !important;
}

/* ---------- NOSOTROS: introducción en dos columnas ---------- */
.team-one .about-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: clamp(46px, 6vw, 92px);
  align-items: center;
  margin-bottom: clamp(58px, 7vw, 94px);
}
.team-one .about-intro-main {
  min-width: 0;
}
.team-one .about-intro-main h2 {
  max-width: 790px;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.25vw, 49px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.025em;
}
.team-one .about-intro-copy {
  max-width: 820px;
  margin-top: 30px !important;
  margin-bottom: 0;
}
.team-one .about-ecosystem-panel {
  position: relative;
  min-height: 390px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 24%, rgba(53,226,218,.18), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
  box-shadow: 0 28px 70px rgba(0,0,0,.22), inset 0 0 45px rgba(255,255,255,.018);
  isolation: isolate;
}
.team-one .about-ecosystem-panel::before,
.team-one .about-ecosystem-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(94,227,224,.17);
  pointer-events: none;
}
.team-one .about-ecosystem-panel::before {
  width: 290px;
  height: 290px;
  right: -72px;
  top: -68px;
}
.team-one .about-ecosystem-panel::after {
  width: 180px;
  height: 180px;
  right: -18px;
  top: -12px;
}
.about-ecosystem-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5ee3e0;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.about-ecosystem-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #5ee3e0;
}
.about-ecosystem-panel h3 {
  position: relative;
  z-index: 2;
  max-width: 370px;
  margin: 22px 0 12px;
  color: #fff;
  font-size: clamp(30px, 3vw, 45px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.about-ecosystem-panel > p {
  position: relative;
  z-index: 2;
  max-width: 410px;
  margin: 0;
  color: rgba(255,255,255,.65);
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}
.about-ecosystem-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.about-ecosystem-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(4,13,15,.48);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.about-ecosystem-item:hover {
  transform: translateY(-5px);
  border-color: rgba(94,227,224,.38);
  background: rgba(7,28,30,.66);
}
.about-ecosystem-item i {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #5ee3e0;
  background: rgba(94,227,224,.10);
  box-shadow: inset 0 0 18px rgba(94,227,224,.05);
}
.about-ecosystem-item strong,
.about-ecosystem-item span {
  display: block;
  font-family: Inter, sans-serif;
}
.about-ecosystem-item strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}
.about-ecosystem-item span {
  margin-top: 4px;
  color: rgba(255,255,255,.46);
  font-size: 11px;
  line-height: 1.35;
}
.team-one .agency-focus-row {
  margin-top: 0 !important;
}

/* ---------- WhatsApp flotante ---------- */
.bj-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 38px rgba(0,0,0,.32), 0 0 0 0 rgba(37,211,102,.38);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: bjWhatsAppPulse 2.8s ease-out infinite;
}
.bj-whatsapp-float:hover,
.bj-whatsapp-float:focus-visible {
  color: #fff;
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 20px 42px rgba(0,0,0,.38), 0 0 0 9px rgba(37,211,102,.12);
}
.bj-whatsapp-float svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: currentColor;
}
.bj-whatsapp-float::before {
  content: "WhatsApp";
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9px;
  background: rgba(4,14,15,.92);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.bj-whatsapp-float:hover::before,
.bj-whatsapp-float:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}
@keyframes bjWhatsAppPulse {
  0%, 55%, 100% { box-shadow: 0 16px 38px rgba(0,0,0,.32), 0 0 0 0 rgba(37,211,102,.30); }
  75% { box-shadow: 0 16px 38px rgba(0,0,0,.32), 0 0 0 12px rgba(37,211,102,0); }
}

@media (max-width: 991px) {
  .banner-one.banner-one-enhanced .banner-one_heading.hero-responsive-title {
    justify-content: flex-start !important;
    font-size: clamp(52px, 11.5vw, 92px) !important;
    text-align: left !important;
  }
  .team-one .about-intro-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-bottom: 58px;
  }
  .team-one .about-ecosystem-panel {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .banner-one.banner-one-enhanced .banner-one_heading.hero-responsive-title {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: .02em !important;
    width: calc(100vw - 40px) !important;
    font-size: clamp(43px, 13.4vw, 66px) !important;
    line-height: .9 !important;
    letter-spacing: -.048em !important;
  }
  .banner-one.banner-one-enhanced .banner-one_heading.hero-responsive-title span {
    width: auto !important;
    max-width: 100% !important;
  }
  .team-one .about-intro-layout {
    gap: 32px;
    margin-bottom: 46px;
  }
  .team-one .about-intro-copy {
    margin-top: 24px !important;
  }
  .team-one .about-ecosystem-panel {
    padding: 26px 20px;
    border-radius: 22px;
  }
  .about-ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .bj-whatsapp-float {
    right: 17px;
    bottom: 17px;
    width: 56px;
    height: 56px;
  }
  .bj-whatsapp-float svg {
    width: 29px;
    height: 29px;
  }
  .bj-whatsapp-float::before { display: none; }
}

@media (max-width: 390px) {
  .banner-one.banner-one-enhanced .banner-one_heading.hero-responsive-title {
    font-size: clamp(39px, 13vw, 51px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bj-whatsapp-float { animation: none; }
  .about-ecosystem-item { transition: none; }
}


/* ---------- PORTAFOLIO Y PROYECTOS: encabezado y enlaces funcionales ---------- */
/* La sombra del encabezado comienza desde el borde superior, sin una franja desplazada. */
.portfolio-page .case-header,
.project-page .case-header {
  top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.portfolio-page .case-header .header-lower,
.project-page .case-header .header-lower {
  padding-top: 20px;
  padding-bottom: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.38) 52%, rgba(0,0,0,0) 100%) !important;
}
.portfolio-hero::before,
.portfolio-orbit,
.case-hero-shade,
.case-hero-media {
  pointer-events: none;
}
.portfolio-hero-bottom a,
.case-back,
.case-scroll,
.case-pills a {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.case-pills a {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.case-pills a:hover,
.case-pills a:focus-visible {
  color: #071011;
  border-color: var(--project-accent);
  background: var(--project-accent);
  transform: translateY(-2px);
}
/* La flecha de regreso al inicio fue eliminada de todas las páginas. */
.backtop { display: none !important; }

@media (max-width: 767px) {
  .portfolio-page .case-header .header-lower,
  .project-page .case-header .header-lower {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .case-pills a {
    padding: 8px 12px;
    font-size: 11px;
  }
}


/* ---------- HERO: controles siempre interactivos y rótulo centrado ---------- */
.banner-one.banner-one-enhanced > .auto-container {
  pointer-events: none !important;
}
.banner-one.banner-one-enhanced .banner-one_content,
.banner-one.banner-one-enhanced .banner-one_content-inner {
  position: relative;
  z-index: 20;
  pointer-events: none !important;
}
.banner-one.banner-one-enhanced .hero-cta-wrap {
  position: relative;
  z-index: 80;
  pointer-events: auto !important;
}
.banner-one.banner-one-enhanced .hero-cta-wrap .hero-cta {
  position: relative;
  z-index: 81;
  pointer-events: auto !important;
  cursor: pointer;
  isolation: isolate;
}
.banner-one.banner-one-enhanced .hero-kicker {
  display: flex !important;
  width: max-content;
  max-width: calc(100% - 24px);
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 21;
}
.banner-one.banner-one-enhanced .robot,
.banner-one.banner-one-enhanced .robot spline-viewer,
.banner-one.banner-one-enhanced .hero-grid-lines,
.banner-one.banner-one-enhanced .hero-ambient,
.banner-one.banner-one-enhanced::before,
.banner-one.banner-one-enhanced::after {
  pointer-events: none !important;
}

/* ---------- FORMSPREE: estados del formulario ---------- */
.formspree-status {
  display: none;
  margin: 4px 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.formspree-status.is-visible { display: block; }
.formspree-status.is-success {
  color: #baffee;
  border-color: rgba(35,215,174,.42);
  background: rgba(35,215,174,.10);
}
.formspree-status.is-error {
  color: #ffd6d6;
  border-color: rgba(255,113,113,.40);
  background: rgba(255,113,113,.09);
}
#contact-form .submit-btn[disabled] {
  opacity: .62;
  cursor: wait;
  transform: none !important;
}
@media (max-width: 767px) {
  .banner-one.banner-one-enhanced .hero-kicker {
    max-width: 100%;
    margin-bottom: 14px !important;
  }
}
