.elementor-kit-6{--e-global-color-primary:#1C355E;--e-global-color-secondary:#64748B;--e-global-color-text:#7A7A7A;--e-global-color-accent:#061A3B;--e-global-color-d6ac0bd:#061A3B;--e-global-color-bc173ec:#031126;--e-global-color-8d689cc:#D9E4F8;--e-global-color-7813e32:#0F172A;--e-global-color-d94e7b1:#FFFFFF;--e-global-color-f0d9658:#F7F8FF;--e-global-color-b13a885:#EDF1FF;--e-global-color-ffa3586:#E6EBF8;--e-global-color-22b5dba:#1C355E29;--e-global-color-9cc473b:#1C355E42;--e-global-color-9d228be:#FFFFFF38;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-6 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS *//* =========================================================
   BUTTERFLY ENGINEERS
   CSS CONSOLIDADO PARA WORDPRESS / ELEMENTOR
   ========================================================= */

/*@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600;700&display=swap");*/


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --bf-primary: #1c355e;
  --bf-primary-dark: #061a3b;
  --bf-primary-deep: #031126;
  --bf-primary-light: #d9e4f8;

  --bf-secondary: #64748b;
  --bf-neutral: #0f172a;
  --bf-white: #ffffff;

  --bf-background: #f7f8ff;
  --bf-background-soft: #edf1ff;
  --bf-background-muted: #e6ebf8;

  --bf-border: rgba(28, 53, 94, 0.16);
  --bf-border-strong: rgba(28, 53, 94, 0.26);
  --bf-border-light: rgba(255, 255, 255, 0.22);

  --bf-shadow:
    0 24px 70px rgba(15, 23, 42, 0.14);

  --bf-shadow-dark:
    0 30px 80px rgba(0, 0, 0, 0.3);

  --bf-container: 1240px;

  --bf-radius: 4px;
  --bf-radius-small: 2px;

  --bf-font-heading: "Kanit", sans-serif;
  --bf-font-body: "Montserrat", sans-serif;

  --bf-image-producto:
    url("/wp-content/uploads/2026/07/eng1.jpg");

  --bf-image-maquinaria:
    url("/wp-content/uploads/2026/07/eng5.jpg");

  --bf-image-simulacion:
    url("/wp-content/uploads/2026/07/eng2.jpg");

  --bf-image-calculos:
    url("/wp-content/uploads/2026/07/eng3.jpg");

  --bf-image-planos:
    url("/wp-content/uploads/2026/07/eng1.jpg");

  --bf-image-fabricacion:
    url("/wp-content/uploads/2026/07/eng6.jpg");
}


/* =========================================================
   BASE Y NORMALIZACIÓN
   ========================================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body.bf-menu-open {
  overflow: hidden;
}

.bf-header,
.bf-video-hero,
.bf-section,
.bf-contact,
.bf-footer {
  font-family: var(--bf-font-body);
}

.bf-header *,
.bf-video-hero *,
.bf-section *,
.bf-contact *,
.bf-footer * {
  box-sizing: border-box;
}

.bf-container {
  width: min(calc(100% - 48px), var(--bf-container));
  margin-right: auto;
  margin-left: auto;
}

.bf-section {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 9vw, 132px) 0;
}

.bf-section h1,
.bf-section h2,
.bf-section h3,
.bf-section p,
.bf-video-hero h1,
.bf-video-hero p,
.bf-contact h2,
.bf-contact h3,
.bf-contact p,
.bf-footer p {
  margin-top: 0;
}

.bf-section h1,
.bf-section h2,
.bf-section h3,
.bf-video-hero h1,
.bf-contact h2,
.bf-contact h3 {
  font-family: var(--bf-font-heading);
  font-weight: 400;
  line-height: 1.08;
}

.bf-section p,
.bf-contact p {
  color: var(--bf-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.bf-section-title {
  max-width: 18ch;
  margin-bottom: 24px;
  color: var(--bf-primary);
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.bf-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  color: var(--bf-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bf-eyebrow::before {
  flex: 0 0 34px;
  width: 34px;
  height: 1px;
  content: "";
  background: currentColor;
}

.bf-eyebrow--light {
  color: rgba(255, 255, 255, 0.72);
}

.bf-lead {
  margin-bottom: 26px;
  color: #27364f !important;
  font-size: clamp(19px, 1.8vw, 24px) !important;
  line-height: 1.55 !important;
}

.bf-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--bf-radius);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.bf-button:hover {
  transform: translateY(-2px);
}

.bf-button--primary {
  color: var(--bf-white);
  background: var(--bf-primary);
}

.bf-button--primary:hover {
  color: var(--bf-white);
  background: var(--bf-primary-dark);
}

.bf-button--light {
  color: var(--bf-primary-dark);
  background: var(--bf-white);
}

.bf-button--light:hover {
  color: var(--bf-primary-dark);
  background: var(--bf-primary-light);
}

.bf-button--outline {
  color: var(--bf-primary);
  border-color: var(--bf-primary);
  background: transparent;
}

.bf-button--outline:hover {
  color: var(--bf-white);
  background: var(--bf-primary);
}

.bf-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bf-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.bf-text-link span {
  transition: transform 0.2s ease;
}

.bf-text-link:hover span {
  transform: translate(3px, -3px);
}

.bf-text-link--light {
  color: var(--bf-white);
}

.bf-button:focus-visible,
.bf-text-link:focus-visible,
.bf-nav a:focus-visible,
.bf-video-hero__scroll:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.bf-header,
.bf-video-hero,
.bf-section,
.bf-contact,
.bf-footer {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}


/* =========================================================
   EQUILIBRADO DE TODOS LOS TEXTOS
   ========================================================= */

.bf-header,
.bf-video-hero,
.bf-section,
.bf-contact,
.bf-footer {
  text-wrap: balance;
}

:is(
  .bf-header,
  .bf-video-hero,
  .bf-section,
  .bf-contact,
  .bf-footer
)
:where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  a,
  span,
  strong,
  small,
  li,
  label,
  button
) {
  text-wrap: balance;
}


/* =========================================================
   CABECERA
   ========================================================= */

.bf-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  color: var(--bf-white);
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.bf-header.bf-is-scrolled {
  color: var(--bf-neutral);
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.bf-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 88px;
  align-items: center;
  gap: 35px;
}

.bf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.bf-logo__icon {
  position: relative;
  display: block;
  width: 38px;
  height: 35px;
}

.bf-logo__icon span {
  position: absolute;
  top: 6px;
  width: 22px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 70% 35% 70% 35%;
}

.bf-logo__icon span:first-child {
  left: 0;
  transform: rotate(-26deg);
}

.bf-logo__icon span:last-child {
  right: 0;
  transform: rotate(26deg) scaleX(-1);
}

.bf-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.bf-logo__text strong {
  font-family: var(--bf-font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.bf-logo__text small {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.34em;
}

.bf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.bf-nav a {
  position: relative;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.bf-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.bf-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.bf-header__button {
  color: var(--bf-primary-dark);
  background: var(--bf-white);
}

.bf-header.bf-is-scrolled .bf-header__button {
  color: var(--bf-white);
  background: var(--bf-primary);
}

.bf-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.bf-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.bf-menu-button.bf-is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bf-menu-button.bf-is-open span:nth-child(2) {
  opacity: 0;
}

.bf-menu-button.bf-is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   HERO DE VÍDEO
   ========================================================= */

.bf-video-hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--bf-white);
  background: var(--bf-primary-deep);
}

.bf-video-hero__video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.bf-video-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(1, 10, 25, 0.78) 0%,
      rgba(1, 10, 25, 0.58) 38%,
      rgba(1, 10, 25, 0.2) 72%,
      rgba(1, 10, 25, 0.3) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 10, 25, 0.4) 0%,
      rgba(1, 10, 25, 0.05) 45%,
      rgba(1, 10, 25, 0.52) 100%
    );
  pointer-events: none;
}

.bf-video-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(
      circle at 58% 45%,
      transparent 0%,
      transparent 38%,
      rgba(1, 9, 23, 0.28) 100%
    );
  pointer-events: none;
}

/* =========================================================
   HERO: POSICIÓN Y TÍTULO
   ========================================================= */

.bf-video-hero {
  --bf-hero-padding-left: clamp(40px, 25vw, 480px);
  --bf-hero-padding-right: clamp(24px, 6vw, 120px);
}

.bf-video-hero__inner {
  position: relative;
  z-index: 2;

  display: flex;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;

  padding:
    88px
    var(--bf-hero-padding-right)
    60px
    var(--bf-hero-padding-left);
}

.bf-video-hero__title {
  width: 100%;
  max-width: calc(
    100vw
    - var(--bf-hero-padding-left)
    - var(--bf-hero-padding-right)
  );
  margin: 0;

  color: var(--bf-white);

  font-family: var(--bf-font-heading);
  font-size: clamp(34px, 4.1vw, 78px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.03em;
}

.bf-video-hero__title-text {
  display: block;
  width: 100%;
  max-width: 100%;
}

.bf-video-hero__line {
  display: block;
  width: max-content;
  max-width: 100%;
  min-height: 1.12em;

  white-space: nowrap;
  text-wrap: nowrap !important;
}


/* =========================================================
   CURSOR DE ESCRITURA
   ========================================================= */

.bf-video-hero__line.is-typing::after {
  display: inline-block;
  width: 0.48em;
  height: 8px;
  margin-left: 0.14em;
  margin-bottom: -5px;

  content: "";
  background: #D9E4F8;


  vertical-align: 0.05em;
  transform: translateY(-2px);

  animation: bf-typing-cursor 0.78s steps(1, end) infinite;
}

@keyframes bf-typing-cursor {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

.bf-video-hero__scroll {
  position: absolute;
  right: clamp(24px, 4vw, 70px);
  bottom: 38px;
  z-index: 3;
  display: flex;
  width: 38px;
  height: 62px;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  color: var(--bf-white);
  text-decoration: none;
}

.bf-video-hero__scroll span {
  display: block;
  width: 3px;
  height: 9px;
  margin-top: 13px;
  border-radius: 5px;
  background: var(--bf-white);
  animation: bf-scroll-indicator 1.9s ease-in-out infinite;
}

@keyframes bf-scroll-indicator {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(21px);
  }
}

.bf-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   HERO: TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .bf-video-hero {
    --bf-hero-padding-left: clamp(40px, 12vw, 120px);
    --bf-hero-padding-right: clamp(24px, 6vw, 64px);
  }

  .bf-video-hero__inner {
    padding-top: 80px;
    padding-bottom: 55px;
  }

  .bf-video-hero__title {
    max-width: calc(
      100vw
      - var(--bf-hero-padding-left)
      - var(--bf-hero-padding-right)
    );
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: 0.028em;
  }
}


/* =========================================================
   HERO: MÓVIL
   ========================================================= */

@media (max-width: 767px) {
  .bf-video-hero {
    --bf-hero-padding-left: 24px;
    --bf-hero-padding-right: 18px;
  }

  .bf-video-hero__inner {
    padding-top: 75px;
    padding-bottom: 55px;
  }

  .bf-video-hero__title {
    max-width: calc(
      100vw
      - var(--bf-hero-padding-left)
      - var(--bf-hero-padding-right)
    );
    font-size: clamp(20px, 5.4vw, 30px);
    line-height: 1.16;
    letter-spacing: 0.025em;
  }

  .bf-video-hero__line {
    min-height: 1.16em;
  }

  .bf-video-hero__line.is-typing::after {
    height: 6px;
  }
}


/* =========================================================
   CABECERAS DE SECCIÓN
   ========================================================= */

.bf-section-header {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 430px);
  align-items: end;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(50px, 7vw, 88px);
}

.bf-section-header > p {
  margin-bottom: 10px;
}


/* =========================================================
   ESPECIALIZACIÓN Y BENEFICIOS
   ========================================================= */

.bf-intro {
  background: var(--bf-background);
}

.bf-intro::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.52;
  background-image:
    linear-gradient(
      rgba(28, 53, 94, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(28, 53, 94, 0.055) 1px,
      transparent 1px
    );
  background-size: 64px 64px;
  pointer-events: none;
}

.bf-intro .bf-container {
  position: relative;
  z-index: 2;
}

.bf-intro__top {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.bf-intro__copy {
  max-width: 680px;
}

.bf-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--bf-border);
  border-left: 1px solid var(--bf-border);
}

.bf-benefit {
  min-height: 300px;
  padding: clamp(32px, 4vw, 50px);
  border-right: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
  background: rgba(255, 255, 255, 0.82);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.bf-benefit:hover {
  position: relative;
  z-index: 2;
  background: var(--bf-white);
  box-shadow: var(--bf-shadow);
  transform: translateY(-5px);
}

.bf-benefit__number {
  display: block;
  margin-bottom: 58px;
  color: var(--bf-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.bf-benefit h3 {
  margin-bottom: 18px;
  color: var(--bf-primary);
  font-size: clamp(24px, 2.2vw, 29px);
}

.bf-benefit p {
  margin-bottom: 0;
}


/* =========================================================
   CAPACIDADES DE INGENIERÍA
   ========================================================= */

.bf-services {
  background: var(--bf-white);
}

.bf-services__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.bf-service {
  display: flex;
  grid-column: span 6;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bf-border);
  background: var(--bf-background);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.bf-service:hover {
  border-color: var(--bf-border-strong);
  box-shadow: var(--bf-shadow);
  transform: translateY(-6px);
}

.bf-service--large {
  grid-column: span 7;
}

.bf-service--small {
  grid-column: span 5;
}

.bf-service__media {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition:
    transform 0.55s ease,
    filter 0.4s ease;
}

.bf-service__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      180deg,
      rgba(3, 15, 35, 0.01) 35%,
      rgba(3, 15, 35, 0.3) 100%
    );
  pointer-events: none;
}

.bf-service:hover .bf-service__media {
  transform: scale(1.025);
}

.bf-service__media--producto {
  background-image: var(--bf-image-producto);
}

.bf-service__media--maquinaria {
  background-image: var(--bf-image-maquinaria);
}

.bf-service__media--simulacion {
  background-image: var(--bf-image-simulacion);
}

.bf-service__media--calculos {
  background-image: var(--bf-image-calculos);
}

.bf-service__media--planos {
  background-image: var(--bf-image-planos);
}

.bf-service__media--fabricacion {
  background-image: var(--bf-image-fabricacion);
}

.bf-service__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(30px, 4vw, 48px);
  background: var(--bf-background);
}

.bf-service__index {
  display: block;
  margin-bottom: 20px;
  color: var(--bf-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.bf-service h3 {
  margin-bottom: 20px;
  color: var(--bf-primary);
  font-size: clamp(27px, 2.7vw, 39px);
}

.bf-service p {
  margin-bottom: 23px;
}

.bf-service p strong {
  color: var(--bf-neutral);
  font-weight: 600;
}

.bf-service .bf-text-link {
  margin-top: auto;
  padding-top: 7px;
}


/* =========================================================
   VALIDACIÓN TÉCNICA
   ========================================================= */

.bf-capabilities {
  color: var(--bf-white);
  background: var(--bf-primary-dark);
}

.bf-capabilities__layout {
  display: grid;
  grid-template-columns:
    minmax(0, 0.96fr)
    minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(55px, 8vw, 110px);
}

.bf-capabilities__image {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 15, 35, 0.02) 0%,
      rgba(3, 15, 35, 0.15) 55%,
      rgba(3, 15, 35, 0.72) 100%
    ),
    var(--bf-image-simulacion);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--bf-shadow-dark);
}

.bf-capabilities__caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 15, 35, 0.72);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.bf-capabilities__caption span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.bf-capabilities__caption strong {
  color: var(--bf-white);
  font-family: var(--bf-font-heading);
  font-size: 22px;
  font-weight: 400;
}

.bf-capabilities .bf-section-title {
  max-width: 15ch;
  color: var(--bf-white);
}

.bf-capabilities__intro {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.bf-capabilities__list {
  margin-top: 40px;
  border-top: 1px solid var(--bf-border-light);
}

.bf-capability {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bf-border-light);
}

.bf-capability > span {
  padding-top: 5px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 700;
}

.bf-capability h3 {
  margin-bottom: 8px;
  color: var(--bf-white);
  font-size: 22px;
}

.bf-capability p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}


/* =========================================================
   METODOLOGÍA TÉCNICA
   ========================================================= */

.bf-sectors {
  background: var(--bf-white);
}

.bf-sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--bf-border);
  border-left: 1px solid var(--bf-border);
  list-style: none;
}

.bf-sector {
  min-height: 300px;
  padding: clamp(30px, 3.3vw, 42px);
  border-right: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
  background: var(--bf-white);
  list-style: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.bf-sector:hover {
  color: var(--bf-white);
  background: var(--bf-primary);
}

.bf-sector__number {
  display: block;
  margin-bottom: 58px;
  color: var(--bf-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: color 0.25s ease;
}

.bf-sector h3 {
  margin-bottom: 16px;
  color: var(--bf-primary);
  font-size: clamp(24px, 2.2vw, 29px);
  transition: color 0.25s ease;
}

.bf-sector p {
  margin-bottom: 0;
  font-size: 14px;
  transition: color 0.25s ease;
}

.bf-sector:hover h3,
.bf-sector:hover p,
.bf-sector:hover .bf-sector__number {
  color: var(--bf-white);
}


/* =========================================================
   COLABORACIÓN CON GRANDES EMPRESAS
   ========================================================= */

.bf-corporate {
  position: relative;
  background: var(--bf-background-soft);
}

.bf-corporate::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 58%;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(
      90deg,
      var(--bf-background-soft) 0%,
      rgba(237, 241, 255, 0.72) 30%,
      rgba(237, 241, 255, 0.1) 100%
    ),
    var(--bf-image-fabricacion);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.bf-corporate .bf-container {
  position: relative;
  z-index: 2;
}

.bf-corporate .bf-benefit {
  background: rgba(255, 255, 255, 0.94);
}

.bf-corporate .bf-benefit:hover {
  background: var(--bf-white);
}

/* =========================================================
   ÁMBITOS DE APLICACIÓN
   INTRO 2 COLUMNAS + 2 TARJETAS + 4 TARJETAS
   ========================================================= */

.bf-applications {
  --bf-applications-gap: 18px;
  --bf-application-card-height: 380px;

  background: var(--bf-white);
}


/* =========================================================
   ZONA SUPERIOR
   Cuadrícula de cuatro columnas:
   - Introducción: 2 columnas
   - Cada tarjeta: 1 columna
   ========================================================= */

.bf-applications__top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: var(--bf-applications-gap);

  /*
   * Misma separación vertical que el espacio horizontal
   * existente entre las tarjetas.
   */
  margin-bottom: var(--bf-applications-gap);
}


/* =========================================================
   INTRODUCCIÓN
   Sin fondo, borde ni comportamiento de tarjeta
   ========================================================= */

.bf-applications__intro {
  display: flex;
  grid-column: span 2;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;

  padding:
    clamp(20px, 2vw, 32px)
    clamp(42px, 6vw, 85px)
    clamp(20px, 2vw, 32px)
    0;

  border: 0;
  background: transparent;
}

.bf-applications__intro .bf-eyebrow {
  color: var(--bf-primary);
}

.bf-applications__intro .bf-section-title {
  max-width: 14ch;
  margin-bottom: 28px;

  color: var(--bf-primary-dark);

  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.bf-applications__lead {
  max-width: 650px;
  margin-bottom: 0;

  color: #52657e !important;

  font-size: 16px !important;
  line-height: 1.75 !important;
}


/* =========================================================
   DOS TARJETAS SUPERIORES
   El contenedor ocupa dos columnas y cada tarjeta ocupa una
   ========================================================= */

.bf-applications__top-cards {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: var(--bf-application-card-height);
  align-self: end;
  gap: var(--bf-applications-gap);
}


/* =========================================================
   CUATRO TARJETAS INFERIORES
   ========================================================= */

.bf-applications__bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--bf-application-card-height);
  align-items: stretch;
  gap: var(--bf-applications-gap);
}


/* =========================================================
   TARJETAS
   Mismas dimensiones arriba y abajo
   ========================================================= */

.bf-application-card {
  position: relative;

  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  flex-direction: column;

  padding: clamp(30px, 3vw, 40px);

  border: 1px solid #d9e1ec;
  background: #f7f9fc;

  box-shadow: none;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}


/* Línea técnica superior */

.bf-application-card::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;

  height: 3px;

  content: "";

  background: var(--bf-primary);

  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;

  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}


/* Estado hover */

.bf-application-card:hover {
  border-color: rgba(28, 53, 94, 0.35);
  background: var(--bf-white);

  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.11);

  transform: translateY(-5px);
}

.bf-application-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* =========================================================
   CONTENIDO DE LAS TARJETAS
   ========================================================= */

.bf-application-card__number {
  display: block;

  margin-bottom: auto;
  padding-bottom: 48px;

  color: #526b8d;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.bf-application-card h3 {
  max-width: 16ch;
  margin: 0 0 17px;

  color: var(--bf-primary-dark);

  font-size: clamp(23px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.08;
}

.bf-application-card p {
  max-width: 34ch;
  margin: 0;

  color: #536780;

  font-size: 14px;
  line-height: 1.72;
}

/* =========================================================
   ESTRUCTURA INTERNA NORMALIZADA
   ========================================================= */

.bf-application-card {
  position: relative;

  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  flex-direction: column;

  /* Mismo espacio arriba, abajo y en los laterales */
  padding: 40px;

  border: 1px solid #d9e1ec;
  background: #f7f9fc;
  box-shadow: none;

  overflow: hidden;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}


/* Etiqueta siempre arriba */

.bf-application-card__number {
  display: block;
  margin: 0;
  padding: 0;

  color: #526b8d;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
}


/*
 * El título y la descripción forman el bloque inferior.
 * margin-top: auto desplaza ambos hacia abajo sin eliminar
 * el padding inferior de la tarjeta.
 */

.bf-application-card h3 {
  max-width: 16ch;
  min-height: 3.24em;

  margin:
    auto
    0
    18px;

  color: var(--bf-primary-dark);

  font-size: clamp(23px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.08;
}

.bf-application-card p {
  max-width: 34ch;
  margin: 0;

  color: #536780;

  font-size: 14px;
  line-height: 1.72;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .bf-applications {
    --bf-applications-gap: 18px;
    --bf-application-card-height: 320px;
  }

  .bf-applications__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-applications__intro {
    grid-column: span 2;
    min-height: auto;
    padding: 0 0 clamp(30px, 5vw, 50px);
  }

  .bf-applications__top-cards {
    grid-column: span 2;
  }

  .bf-applications__bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {
  .bf-applications {
    --bf-applications-gap: 14px;
    --bf-application-card-height: auto;
  }

  .bf-applications__top {
    grid-template-columns: 1fr;
  }

  .bf-applications__intro {
    grid-column: 1;
    padding: 0 0 28px;
  }

  .bf-applications__intro .bf-section-title {
    max-width: 100%;
    font-size: clamp(35px, 10vw, 48px);
  }

  .bf-applications__top-cards {
    grid-column: 1;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bf-applications__bottom {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bf-application-card {
    display: flex;
    flex-direction: column;
  }

  .bf-application-card__number {
    margin-bottom: 30px;
  }

  .bf-application-card h3 {
    min-height: 0;
    margin-bottom: 16px;
  }
}


/* =========================================================
   CONTACTO
   ========================================================= */

.bf-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 10vw, 140px) 0;
  color: var(--bf-white);
  background: var(--bf-primary-dark);
}

.bf-contact::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.16) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  pointer-events: none;
}

.bf-contact__layout {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(55px, 8vw, 120px);
}

.bf-contact h2 {
  max-width: 12ch;
  margin-bottom: 25px;
  color: var(--bf-white);
  font-size: clamp(43px, 5.8vw, 76px);
  letter-spacing: -0.04em;
}

.bf-contact__intro {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 18px !important;
}

.bf-contact__data {
  display: grid;
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--bf-border-light);
  background: var(--bf-border-light);
}

.bf-contact__item {
  padding: 22px;
  background: rgba(6, 26, 61, 0.88);
}

.bf-contact__item span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bf-contact__item a,
.bf-contact__item p {
  margin: 0;
  color: var(--bf-white);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
}

.bf-contact__item a:hover {
  text-decoration: underline;
}

.bf-contact__form {
  padding: clamp(30px, 5vw, 55px);
  border: 1px solid var(--bf-border-light);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.bf-contact__form h3 {
  margin-bottom: 15px;
  color: var(--bf-white);
  font-size: 31px;
}

.bf-contact__form > p {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.bf-form-placeholder {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  text-align: center;
}

.bf-form-placeholder p {
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   FORMULARIOS DE ELEMENTOR
   ========================================================= */

.bf-contact .elementor-form-fields-wrapper {
  gap: 15px;
}

.bf-contact .elementor-field {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: var(--bf-radius) !important;
  color: var(--bf-white) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.bf-contact textarea.elementor-field {
  min-height: 145px;
  padding-top: 15px;
}

.bf-contact .elementor-field::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.bf-contact select.elementor-field option {
  color: var(--bf-neutral);
  background: var(--bf-white);
}

.bf-contact .elementor-button {
  min-height: 52px;
  border-radius: var(--bf-radius) !important;
  color: var(--bf-primary-dark) !important;
  background: var(--bf-white) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   FOOTER
   ========================================================= */

.bf-footer {
  color: var(--bf-neutral);
  background: var(--bf-background-soft);
}

.bf-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 55px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.bf-footer__logo {
  margin-bottom: 25px;
  color: var(--bf-primary);
}

.bf-footer__description {
  max-width: 340px;
  color: var(--bf-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.bf-footer__title {
  display: block;
  margin-bottom: 23px;
  color: var(--bf-neutral);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bf-footer__links {
  display: grid;
  gap: 13px;
}

.bf-footer__links a,
.bf-footer__column p,
.bf-footer__column a {
  margin: 0;
  color: var(--bf-secondary);
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}

.bf-footer__links a:hover,
.bf-footer__column a:hover {
  color: var(--bf-primary);
}

.bf-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid var(--bf-border);
}

.bf-footer__bottom p {
  margin: 0;
  color: var(--bf-secondary);
  font-size: 11px;
}


/* =========================================================
   RESPONSIVE: TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .bf-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .bf-header__button {
    display: none;
  }

  .bf-menu-button {
    position: relative;
    z-index: 999;
    display: block;
  }

  .bf-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: -1;
    display: flex;
    width: min(86vw, 420px);
    height: 100vh;
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 110px 45px 50px;
    color: var(--bf-neutral);
    background: var(--bf-white);
    box-shadow: -20px 0 55px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .bf-nav.bf-is-open {
    z-index: 998;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .bf-nav a {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--bf-border);
    font-family: var(--bf-font-heading);
    font-size: 27px;
    font-weight: 400;
  }

  .bf-nav a::after {
    display: none;
  }


  .bf-video-hero__video {
    object-position: 58% center;
  }

  .bf-intro__top {
    gap: 55px;
  }

  .bf-benefit {
    padding: 34px;
  }

  .bf-service__media {
    min-height: 300px;
  }

  .bf-capabilities__layout {
    grid-template-columns: 1fr;
  }

  .bf-capabilities__image {
    min-height: 530px;
  }

  .bf-sectors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-applications__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-applications__intro {
    grid-column: span 2;
  }

  .bf-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   RESPONSIVE: MÓVIL
   ========================================================= */

@media (max-width: 767px) {
  .bf-container {
    width: min(calc(100% - 32px), var(--bf-container));
  }

  .bf-section {
    padding: 74px 0;
  }

  .bf-section-title {
    font-size: clamp(35px, 10vw, 48px);
    line-height: 1.05;
  }

  .bf-eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .bf-header__inner {
    min-height: 75px;
  }

  .bf-logo__icon {
    width: 31px;
    height: 30px;
  }

  .bf-logo__icon span {
    width: 18px;
    height: 20px;
  }

  .bf-logo__text strong {
    font-size: 14px;
  }

  .bf-logo__text small {
    font-size: 6px;
  }

  .bf-nav {
    width: min(90vw, 390px);
    padding-right: 30px;
    padding-left: 30px;
  }

  .bf-video-hero {
    min-height: 100svh;
  }


  .bf-video-hero__video {
    object-position: 62% center;
  }

  .bf-video-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(2, 12, 29, 0.63) 0%,
        rgba(2, 12, 29, 0.2) 36%,
        rgba(2, 12, 29, 0.82) 100%
      ),
      linear-gradient(
        90deg,
        rgba(2, 12, 29, 0.6) 0%,
        rgba(2, 12, 29, 0.18) 100%
      );
  }


  .bf-video-hero__scroll {
    right: 18px;
    bottom: 24px;
    width: 32px;
    height: 52px;
  }

  .bf-section-header,
  .bf-intro__top,
  .bf-contact__layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .bf-section-header {
    margin-bottom: 48px;
  }

  .bf-benefits {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .bf-benefit {
    min-height: auto;
    padding: 30px;
  }

  .bf-benefit__number {
    margin-bottom: 30px;
  }

  .bf-services__grid {
    grid-template-columns: 1fr;
  }

  .bf-service,
  .bf-service--large,
  .bf-service--small {
    grid-column: 1;
  }

  .bf-service__media {
    min-height: 245px;
  }

  .bf-service__media--calculos {
    background-position: 58% center;
  }

  .bf-service__content {
    padding: 28px;
  }

  .bf-capabilities__image {
    min-height: 410px;
  }

  .bf-capabilities__caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 18px;
  }

  .bf-capability {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .bf-sectors__grid {
    grid-template-columns: 1fr;
  }

  .bf-sector {
    min-height: auto;
    padding: 30px;
  }

  .bf-sector__number {
    margin-bottom: 30px;
  }

  .bf-corporate::after {
    width: 100%;
    opacity: 0.15;
    background-image:
      linear-gradient(
        180deg,
        var(--bf-background-soft) 0%,
        rgba(237, 241, 255, 0.84) 65%,
        rgba(237, 241, 255, 0.48) 100%
      ),
      var(--bf-image-fabricacion);
  }

  .bf-applications__grid {
    grid-template-columns: 1fr;
  }

  .bf-applications__intro {
    grid-column: 1;
    min-height: auto;
    padding: 34px 28px;
  }

  .bf-applications__intro .bf-section-title {
    font-size: clamp(35px, 10vw, 48px);
  }

  .bf-application-card {
    min-height: auto;
    padding: 30px;
  }

  .bf-application-card__number {
    margin-bottom: 30px;
    padding-bottom: 0;
  }

  .bf-contact__form {
    padding: 28px;
  }

  .bf-footer__main {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .bf-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}


/* =========================================================
   ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bf-video-hero__scroll span,
  .bf-video-hero__line.is-typing::after {
    animation: none !important;
  }

  .bf-button,
  .bf-text-link span,
  .bf-service,
  .bf-service__media,
  .bf-benefit,
  .bf-sector,
  .bf-application-card {
    transition: none !important;
  }
}/* End custom CSS */