/* ==========================================================================
   Bitflow Solutions — hoja de estilos compartida
   --------------------------------------------------------------------------
   En la implementación real, este archivo es el style.css del tema hijo
   hello-elementor-child: viaja por el pipeline de despliegue a cada entorno.

   Los colores de las zonas claras van como variables, para que el modo
   oscuro sea solo redefinirlas. Las zonas navy (portada, arquitectura,
   contacto, pie) ya son oscuras y no cambian.
   ========================================================================== */

/* ---------- Tokens: tema claro ---------- */
.bf-root {
  --bf-paper: #FFFFFF;
  --bf-paper-2: #F4F7F9;
  --bf-input: #F7F9FB;
  --bf-ink: #0E1A22;
  --bf-ink-2: #2C3E4B;
  --bf-ink-3: #4A5A66;
  --bf-ink-4: #5C6D79;
  --bf-line: #E3EAEF;
  --bf-line-2: #D5DFE6;
  --bf-accent: #06607F;
  --bf-tag: #EEF4F8;
  --bf-tag-ink: #00405F;
  --bf-chip-ink: #1E2E3A;
  --bf-req: #B42318;
  color: var(--bf-ink);
  background: var(--bf-paper);
  transition: background-color .3s ease, color .3s ease;
}

/* ---------- Tokens: tema oscuro (va después: gana si coinciden) ---------- */
.bf-dark {
  --bf-paper: #0B1A24;
  --bf-paper-2: #08141C;
  --bf-input: #0F2230;
  --bf-ink: #E8F0F5;
  --bf-ink-2: #CFDCE5;
  --bf-ink-3: #A9BBC8;
  --bf-ink-4: #93A6B4;
  --bf-line: #1E3444;
  --bf-line-2: #2A4557;
  --bf-accent: #6CCFF6;
  --bf-tag: #12293A;
  --bf-tag-ink: #A9DDF5;
  --bf-chip-ink: #E8F0F5;
  --bf-req: #FF8A7A;
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body:has(.bf-root.bf-dark) { background: #0B1A24; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--bf-accent, #06607F); }
a:hover { color: var(--bf-ink, #0E1A22); }

/* Anillo de foco doble: se ve tanto sobre blanco como sobre navy */
:focus-visible { outline: 2px solid #003E63; outline-offset: 2px; box-shadow: 0 0 0 6px #6CCFF6; }

/* ---------- Botones: barrido de color al pasar el cursor ----------
   Entra desde la izquierda y sale por la derecha. El color de barrido
   sigue la frase de la marca: el celeste de "retos" pasa al amarillo
   de "soluciones" en el botón principal. */
.bf-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 15.5px; line-height: 1; padding: 0 24px; min-height: 48px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .3s ease, border-color .3s ease, transform .15s ease; }
.bf-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bf-btn-sweep, #6CCFF6); transform: scaleX(0); transform-origin: right center; transition: transform .42s cubic-bezier(.65, 0, .35, 1); }
.bf-btn:hover::before, .bf-btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.bf-btn:active { transform: translateY(1px); }
.bf-btn-ico { flex: 0 0 auto; transition: transform .3s ease; }
.bf-btn:hover .bf-btn-ico, .bf-btn:focus-visible .bf-btn-ico { transform: translateX(3px); }
.bf-btn-sm { min-height: 44px; font-size: 14.5px; padding: 0 20px; }
.bf-btn-lg { min-height: 54px; font-size: 16px; padding: 0 28px; }

.bf-btn-navy { background: #003E63; color: #FFFFFF; --bf-btn-sweep: #6CCFF6; }
.bf-btn-navy:hover, .bf-btn-navy:focus-visible { color: #00273F; }
.bf-btn-cyan { background: #6CCFF6; color: #00273F; --bf-btn-sweep: #FFD84D; }
.bf-btn-cyan:hover, .bf-btn-cyan:focus-visible { color: #00273F; }
.bf-btn-ghost { background: transparent; color: #FFFFFF; border-color: #2E6B91; --bf-btn-sweep: rgba(108, 207, 246, .16); }
.bf-btn-ghost:hover, .bf-btn-ghost:focus-visible { color: #FFFFFF; border-color: #6CCFF6; }
.bf-btn-line { background: transparent; color: var(--bf-ink, #0E1A22); border-color: var(--bf-line-2, #D5DFE6); --bf-btn-sweep: var(--bf-paper-2, #F4F7F9); }
.bf-btn-line:hover, .bf-btn-line:focus-visible { color: var(--bf-ink, #0E1A22); border-color: var(--bf-accent, #06607F); }
.bf-dark .bf-btn-navy { background: #6CCFF6; color: #00273F; --bf-btn-sweep: #FFD84D; }

/* Enlace con flecha ("Cómo lo hacemos →") */
.bf-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--bf-accent, #06607F); min-height: 44px; }
.bf-more svg { transition: transform .25s ease; }
.bf-more:hover svg, .bf-more:focus-visible svg { transform: translateX(4px); }

/* ---------- Logo: brillo al pasar el cursor ----------
   Un halo celeste y dorado (los colores del propio logo) y un destello
   que lo recorre una vez, recortado a la silueta del logo. */
.bf-logo { position: relative; display: inline-block; line-height: 0; border-radius: 10px; }
.bf-logo img { display: block; transition: filter .45s ease; }
/* Que el enlace mida lo mismo que el logo (en la cabecera centrada se estiraba) */
.bf-logo { width: fit-content; justify-self: start; }
.bf-logo:hover img, .bf-logo:focus-visible img { filter: drop-shadow(0 0 5px rgba(108, 207, 246, .55)) drop-shadow(0 0 14px rgba(255, 216, 77, .30)) brightness(1.06) saturate(1.12); }
/* El destello está recortado a la silueta del logo: solo ilumina el logo,
   nunca el fondo, así que se ve igual en claro, en oscuro y en el pie */
.bf-logo::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%) no-repeat; background-size: 250% 100%; background-position: 130% 0; -webkit-mask: url(img/logo-claro.svg) 0 0 / 100% 100% no-repeat; mask: url(img/logo-claro.svg) 0 0 / 100% 100% no-repeat; }
.bf-logo:hover::after, .bf-logo:focus-visible::after { animation: bf-sheen 1.2s cubic-bezier(.4, 0, .2, 1) 1; }
@keyframes bf-sheen { 0% { opacity: 0; background-position: 130% 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }

/* ---------- Cabecera ---------- */
.bf-header { transition: box-shadow .25s ease, background-color .3s ease; }
.bf-header.is-elevada { box-shadow: 0 8px 28px rgba(0, 30, 48, .08); }
.bf-dark.bf-header.is-elevada { box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
.bf-nav-item { display: flex; align-items: center; }
.bf-has-menu { position: relative; }
.bf-has-mega { position: static; } /* el panel se ancla a toda la cabecera */
.bf-nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 28px 0; color: var(--bf-ink-2, #2C3E4B); text-decoration: none; font-weight: 500; font-size: 15px; }
.bf-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: #6CCFF6; transform: scaleX(0); transform-origin: left center; transition: transform .25s ease; }
.bf-nav-item:hover > .bf-nav-link, .bf-nav-item:focus-within > .bf-nav-link { color: var(--bf-ink, #0E1A22); }
.bf-nav-item:hover > .bf-nav-link::after, .bf-nav-item:focus-within > .bf-nav-link::after, .bf-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.bf-chev { transition: transform .2s ease; }
.bf-nav-item:hover .bf-chev, .bf-nav-item:focus-within .bf-chev { transform: rotate(180deg); }
/* Menú centrado en la página: tres columnas, el menú en la del medio */
.bf-menu-centrado { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.bf-menu-centrado > .bf-nav { justify-self: center; }
.bf-menu-centrado > :last-child { justify-self: end; }
.bf-lang { color: var(--bf-ink-4, #5C6D79); text-decoration: none; display: inline-block; padding: 12px 2px; }
.bf-lang[aria-current="true"] { color: var(--bf-ink, #0E1A22); font-weight: 500; }

/* Paneles desplegables: abren con hover y con el teclado (focus-within). El enlace
   del menú ya llega al borde de la cabecera, donde empieza el panel, así que no hace
   falta un puente invisible: el de antes cubría todo el ancho (también bajo
   "Hablemos") y al rozarlo el menú se abría y cerraba. Mientras se cierra, el panel
   no recoge el cursor, para que no vuelva a abrirse solo. */
.bf-panel { position: absolute; top: 100%; z-index: 30; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.bf-nav-item:hover > .bf-panel, .bf-nav-item:focus-within > .bf-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: .06s, .06s, 0s; }

.bf-mega { left: 0; right: 0; background: var(--bf-paper, #FFFFFF); border-top: 1px solid var(--bf-line, #E3EAEF); border-bottom: 1px solid var(--bf-line, #E3EAEF); box-shadow: 0 28px 48px rgba(0, 30, 48, .14); }
.bf-dark .bf-mega, .bf-dark .bf-drop { box-shadow: 0 28px 48px rgba(0, 0, 0, .5); }
.bf-mega-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 12px; text-decoration: none; color: var(--bf-ink, #0E1A22); transition: background-color .15s ease; }
.bf-mega-item:hover { background: var(--bf-paper-2, #F4F7F9); color: var(--bf-ink, #0E1A22); }
.bf-mega-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--bf-tag, #EEF4F8); color: var(--bf-accent, #06607F); transition: background-color .2s ease, color .2s ease; }
.bf-mega-item:hover .bf-mega-ico { background: #003E63; color: #6CCFF6; }
.bf-mega-t { display: block; font-weight: 600; font-size: 15.5px; }
.bf-mega-d { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--bf-ink-3, #4A5A66); }
.bf-mega-tech { display: block; margin-top: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--bf-ink-4, #5C6D79); }
.bf-mega-feature { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 14px; background: #00263D; color: #FFFFFF; text-decoration: none; transition: background-color .2s ease; }
.bf-mega-feature:hover { background: #003E63; color: #FFFFFF; }
.bf-mega-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--bf-line, #E3EAEF); color: var(--bf-ink, #0E1A22); text-decoration: none; font-weight: 500; font-size: 14.5px; transition: border-color .15s ease, background-color .15s ease; }
.bf-mega-mini:hover { border-color: var(--bf-accent, #06607F); background: var(--bf-paper-2, #F4F7F9); color: var(--bf-ink, #0E1A22); }
.bf-mega-mini svg { transition: transform .25s ease; }
.bf-mega-mini:hover svg { transform: translateX(3px); }
.bf-mega-post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--bf-ink, #0E1A22); }
.bf-mega-post img { transition: transform .5s ease; }
.bf-mega-post:hover img { transform: scale(1.05); }
.bf-mega-post:hover .bf-mega-t { color: var(--bf-accent, #06607F); }

.bf-drop { left: -18px; min-width: 330px; padding: 8px; background: var(--bf-paper, #FFFFFF); border: 1px solid var(--bf-line, #E3EAEF); border-radius: 14px; box-shadow: 0 28px 48px rgba(0, 30, 48, .14); }
.bf-drop-item { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--bf-ink, #0E1A22); transition: background-color .15s ease; }
.bf-drop-item:hover { background: var(--bf-paper-2, #F4F7F9); color: var(--bf-ink, #0E1A22); }

/* ---------- Portada: áreas encima del eslogan ---------- */
.bf-areas li { display: inline-flex; align-items: center; }
.bf-areas li + li::before { content: ""; width: 8px; height: 9px; margin: 0 14px; background: #6CCFF6; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.bf-areas a { display: inline-block; padding: 12px 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #CFE3EF; text-decoration: none; background-image: linear-gradient(#6CCFF6, #6CCFF6); background-repeat: no-repeat; background-position: 0 calc(100% - 8px); background-size: 0 1px; transition: color .2s ease, background-size .25s ease; }
.bf-areas a:hover, .bf-areas a:focus-visible { color: #FFFFFF; background-size: 100% 1px; }

/* ---------- Portada: red animada ---------- */
@keyframes bf-flow { from { stroke-dashoffset: 7; } to { stroke-dashoffset: -100; } }
@keyframes bf-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
.bf-packet { stroke-dasharray: 7 100; animation-name: bf-flow; animation-timing-function: linear; animation-iteration-count: infinite; }
.bf-ring { transform-box: fill-box; transform-origin: center; animation: bf-pulse 3s ease-out infinite; }
.bf-ring-2 { animation-delay: -1.5s; }
/* "derecha": solo la mitad derecha. "completo": la red cruza todo el fondo,
   atenuada detrás del texto para que el eslogan se siga leyendo igual. */
.bf-net-parcial .bf-ext { display: none; }
.bf-net-completo .bf-ext { opacity: .7; transition: opacity .5s ease; }
.bf-net-completo.is-activa .bf-ext { opacity: .9; }
.bf-net:has(.bf-ext .bf-n:hover) .bf-ext { opacity: 1; }

/* ---------- Portada: red interactiva ----------
   Con el cursor encima, el tráfico se acelera (rampa en JavaScript) y un foco
   de luz lo sigue. Sobre un nodo, se iluminan sus conexiones y sus paquetes,
   el resto se apaga y aparece qué sistema es y cómo habla. */
.bf-hero-copy { pointer-events: none; }
/* Solo enlaces y botones capturan el cursor: el texto deja pasar el hover a los nodos de detrás */
.bf-hero-copy a, .bf-hero-copy button { pointer-events: auto; }
.bf-net-luz { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; background: radial-gradient(300px circle at var(--mx, 75%) var(--my, 50%), rgba(108, 207, 246, .15), rgba(108, 207, 246, .05) 50%, transparent 72%); }
.bf-net.is-activa .bf-net-luz { opacity: 1; }
.bf-n { pointer-events: all; }
.bf-hex { transition: fill .2s ease, stroke .2s ease, stroke-opacity .2s ease; }
.bf-n:hover .bf-hex { fill: #0A5583; stroke: #6CCFF6; stroke-opacity: 1; }
.bf-lbl { transition: fill .2s ease; }
.bf-n:hover .bf-lbl { fill: #FFFFFF; }
.bf-tip { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.bf-n:hover .bf-tip { opacity: 1; }
.bf-nring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.bf-n:hover .bf-nring { animation: bf-pulse 1.4s ease-out infinite; }
.bf-lk { transition: stroke .25s ease, stroke-opacity .25s ease; }
.bf-net:has(.bf-n:hover) .bf-lk { stroke-opacity: .14; }
.bf-net:has(.n-a:hover) .bf-lk.l-a, .bf-net:has(.n-b:hover) .bf-lk.l-b, .bf-net:has(.n-c:hover) .bf-lk.l-c,
.bf-net:has(.n-d:hover) .bf-lk.l-d, .bf-net:has(.n-e:hover) .bf-lk.l-e, .bf-net:has(.n-f:hover) .bf-lk.l-f,
.bf-net:has(.n-g:hover) .bf-lk.l-g, .bf-net:has(.n-h:hover) .bf-lk.l-h, .bf-net:has(.n-i:hover) .bf-lk.l-i,
.bf-net:has(.n-p1:hover) .bf-lk.l-p1, .bf-net:has(.n-p2:hover) .bf-lk.l-p2, .bf-net:has(.n-p3:hover) .bf-lk.l-p3, .bf-net:has(.n-p4:hover) .bf-lk.l-p4,
.bf-net:has(.n-p5:hover) .bf-lk.l-p5, .bf-net:has(.n-p6:hover) .bf-lk.l-p6, .bf-net:has(.n-p7:hover) .bf-lk.l-p7,
.bf-net:has(.n-p8:hover) .bf-lk.l-p8, .bf-net:has(.n-p9:hover) .bf-lk.l-p9, .bf-net:has(.n-p10:hover) .bf-lk.l-p10 { stroke: #6CCFF6; stroke-opacity: .9; }
.bf-net:has(.bf-n:hover) .bf-packet { opacity: .18 !important; }
.bf-net:has(.n-a:hover) .bf-packet.l-a, .bf-net:has(.n-b:hover) .bf-packet.l-b, .bf-net:has(.n-c:hover) .bf-packet.l-c,
.bf-net:has(.n-d:hover) .bf-packet.l-d, .bf-net:has(.n-e:hover) .bf-packet.l-e, .bf-net:has(.n-f:hover) .bf-packet.l-f,
.bf-net:has(.n-g:hover) .bf-packet.l-g, .bf-net:has(.n-h:hover) .bf-packet.l-h, .bf-net:has(.n-i:hover) .bf-packet.l-i,
.bf-net:has(.n-p1:hover) .bf-packet.l-p1, .bf-net:has(.n-p2:hover) .bf-packet.l-p2, .bf-net:has(.n-p3:hover) .bf-packet.l-p3, .bf-net:has(.n-p4:hover) .bf-packet.l-p4,
.bf-net:has(.n-p5:hover) .bf-packet.l-p5, .bf-net:has(.n-p6:hover) .bf-packet.l-p6, .bf-net:has(.n-p7:hover) .bf-packet.l-p7,
.bf-net:has(.n-p8:hover) .bf-packet.l-p8, .bf-net:has(.n-p9:hover) .bf-packet.l-p9, .bf-net:has(.n-p10:hover) .bf-packet.l-p10 { opacity: 1 !important; stroke-width: 3.5; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .6)); }

/* ---------- Eslogan ---------- */
/* "marca": el peso crece del reto a la solución, como en la web actual */
.bf-esl-marca { font-weight: 400 !important; }
.bf-esl-marca .bf-retos { color: #6CCFF6; font-style: italic; font-weight: 500; }
.bf-esl-marca .bf-soluciones { color: #FFD84D; font-style: italic; font-weight: 700; }
.bf-esl-color .bf-retos { color: #6CCFF6; }
.bf-esl-color .bf-soluciones { color: #FFD84D; }

/* ---------- Carrusel del stack ---------- */
@keyframes bf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bf-row { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.bf-track { display: flex; width: max-content; animation: bf-marquee 72s linear infinite; }
.bf-track-rev { animation-direction: reverse; animation-duration: 60s; }
.bf-row:hover .bf-track, .bf-paused .bf-track { animation-play-state: paused; }
.bf-pause { font: inherit; font-size: 14px; font-weight: 500; color: var(--bf-ink-2, #2C3E4B); background: var(--bf-paper, #FFFFFF); border: 1px solid var(--bf-line-2, #D5DFE6); border-radius: 8px; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: border-color .15s ease; }
.bf-pause:hover { border-color: var(--bf-accent, #06607F); }

/* ---------- El problema: la caja bajo el cursor se eleva y su frase se marca en el texto ---------- */
.bf-prob { position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease, border-radius .25s ease; }
.bf-prob:hover { z-index: 1; transform: scale(1.02); border-color: #6CCFF6 !important; border-radius: 12px !important; background-color: #F3FBFE !important; box-shadow: 0 18px 40px rgba(0, 30, 48, .12); }
.bf-dark .bf-prob:hover { background-color: #0F2433 !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.bf-prob-t { transition: color .2s ease; }
.bf-prob:hover .bf-prob-t { color: var(--bf-accent, #06607F); }
.bf-mark { background-image: linear-gradient(rgba(108, 207, 246, .45), rgba(108, 207, 246, .45)); background-repeat: no-repeat; background-position: 0 88%; background-size: 0% 38%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .35s ease, color .2s ease; }
.bf-problema:has(.bf-prob-1:hover) .bf-mark-1, .bf-problema:has(.bf-prob-2:hover) .bf-mark-2, .bf-problema:has(.bf-prob-3:hover) .bf-mark-3 { background-size: 100% 38%; color: var(--bf-ink, #0E1A22); }

/* ---------- Cajas oscuras de la arquitectura: se resaltan al pasar el cursor ---------- */
.bf-apl, .bf-layer-row > li { transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.bf-apl:hover, .bf-layer-row > li:hover { transform: translateY(-3px); border-color: #6CCFF6 !important; background-color: #013E63 !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
/* Las cajas amarillas (nuevos consumidores y bus de eventos) conservan su color de la leyenda */
.bf-layer-row > li[style*="#FFD84D"]:hover { border-color: #FFD84D !important; }

/* ---------- Experiencia: tarjeta final que invita a contactar ---------- */
.bf-exp-cta { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 12px; background: #003E63; color: #FFFFFF; text-decoration: none; transition: background-color .2s ease, transform .25s ease; }
.bf-exp-cta:hover { background: #00263D; color: #FFFFFF; transform: translateY(-2px); }
.bf-exp-cta svg { transition: transform .25s ease; }
.bf-exp-cta:hover svg { transform: translateX(4px); }

/* ---------- Método Bitflow: anillo de cuatro fases ---------- */
.bf-metodo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) minmax(0, 1fr); grid-template-areas: "f1 anillo f2" "f4 anillo f3"; gap: 40px; align-items: center; }
.bf-anillo { grid-area: anillo; width: 100%; }
.bf-fase-1 { grid-area: f1; } .bf-fase-2 { grid-area: f2; } .bf-fase-3 { grid-area: f3; } .bf-fase-4 { grid-area: f4; }
.bf-fase { padding: 20px 22px; border-radius: 14px; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.bf-fase:hover { background: var(--bf-paper, #FFFFFF); box-shadow: 0 14px 34px rgba(0, 30, 48, .08); transform: translateY(-2px); }
.bf-fase-n { margin: 0; display: flex; align-items: center; gap: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; color: var(--bf-ink, #0E1A22); }
.bf-fase-hex { width: 14px; height: 16px; flex: 0 0 auto; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.bf-fase-l { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15.5px; line-height: 1.5; color: var(--bf-ink-3, #4A5A66); }
@keyframes bf-orbita { to { stroke-dashoffset: -100; } }
.bf-orbita { stroke-dasharray: 8 92; animation: bf-orbita 10s linear infinite; }
.bf-arco { transition: opacity .25s ease; }
.bf-metodo:has(.bf-fase:hover) .bf-arco, .bf-metodo:has(.bf-arco:hover) .bf-arco { opacity: .22; }
.bf-metodo:has(.bf-fase-1:hover) .bf-arco-1, .bf-metodo:has(.bf-arco-1:hover) .bf-arco-1,
.bf-metodo:has(.bf-fase-2:hover) .bf-arco-2, .bf-metodo:has(.bf-arco-2:hover) .bf-arco-2,
.bf-metodo:has(.bf-fase-3:hover) .bf-arco-3, .bf-metodo:has(.bf-arco-3:hover) .bf-arco-3,
.bf-metodo:has(.bf-fase-4:hover) .bf-arco-4, .bf-metodo:has(.bf-arco-4:hover) .bf-arco-4 { opacity: 1; }
.bf-metodo:has(.bf-arco-1:hover) .bf-fase-1, .bf-metodo:has(.bf-arco-2:hover) .bf-fase-2,
.bf-metodo:has(.bf-arco-3:hover) .bf-fase-3, .bf-metodo:has(.bf-arco-4:hover) .bf-fase-4 { background: var(--bf-paper, #FFFFFF); box-shadow: 0 14px 34px rgba(0, 30, 48, .08); }
/* En oscuro, el navy y el gris del anillo se aclaran para no fundirse con el fondo */
.bf-dark .bf-arco-1 .bf-arco-trazo { stroke: #2E6B91; } .bf-dark .bf-arco-1 .bf-arco-punta { fill: #2E6B91; }
.bf-dark .bf-arco-3 .bf-arco-trazo { stroke: #5C6D79; } .bf-dark .bf-arco-3 .bf-arco-punta { fill: #5C6D79; }

/* ---------- Tarjetas ---------- */
.bf-card { transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease; }
.bf-card:hover { border-color: var(--bf-line-2, #D5DFE6); box-shadow: 0 16px 36px rgba(0, 30, 48, .08); transform: translateY(-2px); }
.bf-dark .bf-card:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.bf-ico-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bf-tag, #EEF4F8); color: var(--bf-accent, #06607F); transition: background-color .25s ease, color .25s ease; }
.bf-card:hover .bf-ico-box { background: #003E63; color: #6CCFF6; }

/* ---------- Arquitectura de referencia: botón de detalle desplegable ---------- */
.bf-disclose { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #2E6B91; background: transparent; color: #6CCFF6; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.bf-disclose:hover { border-color: #6CCFF6; background: rgba(108, 207, 246, .08); }
.bf-disclose svg { transition: transform .2s ease; }
.bf-disclose[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Flujos paso a paso: cada paso se une al anterior con un conector animado ---------- */
.bf-flow { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bf-flow > li + li { position: relative; margin-top: 28px; }
.bf-flow > li + li::before { content: ""; position: absolute; left: 50%; top: -24px; width: 2px; height: 20px; margin-left: -1px; opacity: .85; background: repeating-linear-gradient(to bottom, #6CCFF6 0 3px, transparent 3px 7px); background-size: 2px 7px; animation: bf-drip .8s linear infinite; }
.bf-step { display: block; border: 1px solid #2E6B91; border-radius: 8px; padding: 10px 14px; background: #013251; color: #FFFFFF; font-size: 14px; line-height: 1.45; text-align: center; }
.bf-step small { display: block; margin-top: 3px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #8FB6CE; }
.bf-step-build { border: 1.5px solid #6CCFF6; background: #013E63; }
.bf-step-q { border: 1.5px solid #FFD84D; border-radius: 999px; }
.bf-branch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bf-branch-lbl { display: block; margin-bottom: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; text-align: center; }

/* ---------- Arquitectura de referencia: conectores entre capas ---------- */
@keyframes bf-drip { from { background-position: 0 0; } to { background-position: 0 7px; } }
.bf-conn-line { display: block; width: 2px; height: 16px; opacity: .85; background: repeating-linear-gradient(to bottom, #6CCFF6 0 3px, transparent 3px 7px); background-size: 2px 7px; animation: bf-drip .8s linear infinite; }

/* ---------- Blog que rota: destacados apilados con fundido, lista que elige ---------- */
@keyframes bf-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes bf-bprog { to { width: 100%; } }
.bf-dest { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; }
.bf-dest.is-activo { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bf-dest.is-activo img { animation: bf-kb 8s ease-out both; }
.bf-dest a:hover { color: var(--bf-accent, #06607F) !important; }
.bf-bitem { position: relative; overflow: hidden; width: 100%; display: grid !important; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px !important; margin: 0; border: 1px solid transparent !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important; color: var(--bf-ink, #0E1A22) !important; font: inherit; text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.bf-bitem:hover { background: var(--bf-paper-2, #F4F7F9) !important; }
.bf-bitem.is-activo { background: var(--bf-paper-2, #F4F7F9) !important; border-color: var(--bf-line, #E3EAEF) !important; }
.bf-bitem-t { font-size: 15.5px; line-height: 1.4; font-weight: 600; }
.bf-bitem.is-activo .bf-bitem-t { color: var(--bf-accent, #06607F); }
.bf-bprog { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: #6CCFF6; }
.bf-bitem.is-activo .bf-bprog { animation: bf-bprog 7s linear forwards; }
.bf-blog:hover .bf-bprog, .bf-blog:has(:focus-visible) .bf-bprog, .bf-blog.is-pausado .bf-bprog { animation-play-state: paused; }

/* ---------- Blog ---------- */
.bf-post { position: relative; }
.bf-post img { transition: transform .6s ease; }
.bf-post:hover img { transform: scale(1.04); }
.bf-post-link::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es clicable */
.bf-post:hover .bf-post-link { color: var(--bf-accent, #06607F) !important; }

/* ---------- Formularios ---------- */
.bf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bf-label { font-size: 14px; font-weight: 500; color: var(--bf-ink-2, #2C3E4B); }
.bf-req { color: var(--bf-req, #B42318); }
.bf-input { font: inherit; font-size: 15px; width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--bf-line-2, #D5DFE6); background: var(--bf-input, #F7F9FB); color: var(--bf-ink, #0E1A22); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.bf-input::placeholder { color: var(--bf-ink-4, #5C6D79); }
.bf-input:hover { border-color: #9DB3C3; }
.bf-input:focus { outline: none; border-color: var(--bf-accent, #06607F); background: var(--bf-paper, #FFFFFF); box-shadow: 0 0 0 3px rgba(108, 207, 246, .4); }
textarea.bf-input { min-height: 120px; resize: vertical; line-height: 1.55; }
select.bf-input { -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer; }
.bf-check { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #003E63; cursor: pointer; }
.bf-dark .bf-check { accent-color: #6CCFF6; }

/* ---------- Contacto ---------- */
.bf-contact { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin: 0 -16px; border-radius: 12px; color: #FFFFFF; text-decoration: none; transition: background-color .15s; }
.bf-contact:hover { background: rgba(108, 207, 246, .08); color: #FFFFFF; }
.bf-contact-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; border: 1px solid #2E6B91; color: #6CCFF6; flex: 0 0 auto; transition: background-color .2s, color .2s, border-color .2s; }
.bf-contact:hover .bf-contact-ico { background: #6CCFF6; border-color: #6CCFF6; color: #00263D; }

/* ---------- Pie ---------- */
.bf-foot-link { color: #A8C9DC; text-decoration: none; font-size: 15px; line-height: 1.5; }
.bf-foot-link:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.bf-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.bf-social { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid #2E6B91; color: #CFE3EF; transition: background-color .15s, color .15s, border-color .15s; }
.bf-social:hover { background: #6CCFF6; border-color: #6CCFF6; color: #00263D; }
/* Hueco a la derecha de la barra legal: ahí flotan el chat y "volver arriba" */
.bf-legal { padding-right: 72px; }

/* Interruptor de modo oscuro */
.bf-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; color: #CFE3EF; }
.bf-switch-track { position: relative; width: 52px; height: 28px; border-radius: 999px; background: #013251; border: 1px solid #2E6B91; flex: 0 0 auto; transition: background-color .2s, border-color .2s; }
.bf-switch-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFD84D; display: grid; place-items: center; transition: transform .2s, background-color .2s; }
.bf-switch[aria-checked="true"] .bf-switch-track { background: #6CCFF6; border-color: #6CCFF6; }
.bf-switch[aria-checked="true"] .bf-switch-knob { transform: translateX(24px); background: #00263D; }

/* ---------- Capa flotante: chat y "volver arriba" ----------
   Todo lo que flota vive en la esquina inferior derecha, apilado en una
   sola columna. Lo legal (banner de cookies) va a la izquierda. */
.bf-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bf-top { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bf-paper, #FFFFFF); color: #003E63; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 30, 48, .18); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.92); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background-color .2s ease, color .2s ease; }
.bf-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bf-top:hover { background: #003E63; color: #6CCFF6; }
.bf-dark .bf-top { background: #12293A; color: #6CCFF6; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.bf-dark .bf-top:hover { background: #6CCFF6; color: #00263D; }
.bf-top-ring { position: absolute; inset: 0; }
/* El anillo se llena con el avance de la lectura (CSS puro, sin JavaScript) */
.bf-top-progress { stroke-dasharray: 100; stroke-dashoffset: 100; }
@supports (animation-timeline: scroll()) {
  .bf-top-progress { animation: bf-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes bf-progress { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }


/* Banner de cookies (Lawwwing) con la piel de la marca: abajo a la izquierda */
.bf-cookies { position: fixed; left: 24px; bottom: 24px; z-index: 70; width: min(460px, calc(100vw - 48px)); padding: 22px; border-radius: 14px; background: var(--bf-paper, #FFFFFF); color: var(--bf-ink, #0E1A22); border: 1px solid var(--bf-line, #E3EAEF); box-shadow: 0 18px 48px rgba(0, 30, 48, .22); }

/* ---------- Pantallas medianas: las rejillas de 4 y 5 columnas se reparten ---------- */
@media (max-width: 1100px) {
  .bf-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .bf-g4 > * { grid-column: auto !important; }
  .bf-cycle { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* ---------- Móvil: las rejillas se apilan ---------- */
@media (max-width: 900px) {
  .bf-g12, .bf-g4, .bf-g3, .bf-g2, .bf-cycle, .bf-form-grid, .bf-foot-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .bf-g12 > *, .bf-form-grid > * { grid-column: auto !important; }
  .bf-proof { grid-template-columns: minmax(0, 1fr) !important; }
  .bf-proof > div { border-right: none !important; padding: 18px 0 !important; border-bottom: 1px solid #1C5377; }
  .bf-metodo { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "anillo" "f1" "f2" "f3" "f4" !important; gap: 12px !important; padding: 24px !important; }
  .bf-anillo { max-width: 280px; justify-self: center; }
  .bf-panel { display: none !important; }
  .bf-h1 { font-size: 44px !important; }
  .bf-h2 { font-size: 30px !important; }
  .bf-net { opacity: .25; }
  .bf-net svg { left: auto !important; right: 0 !important; width: 200% !important; }
  .bf-net-completo { -webkit-mask-image: none; mask-image: none; }
  .bf-section { padding-block: 64px !important; }
  .bf-layer, .bf-conn { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .bf-conn > span:first-child { display: none; }
  .bf-layer-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .bf-post-row { grid-template-columns: 112px minmax(0, 1fr) !important; }
  .bf-form-card { padding: 26px !important; }
  .bf-legal { padding-right: 0; padding-bottom: 96px !important; }
  .bf-float { right: 16px; bottom: 16px; }
  .bf-cookies { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ---------- Menú de tablet y móvil ----------
   Por debajo de 1024 px la barra queda en logo + Hablemos + hamburguesa, y el
   menú se abre como panel bajo la cabecera con secciones plegables. */
.bf-burger { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--bf-line-2, #D5DFE6); background: transparent; color: var(--bf-ink, #0E1A22); cursor: pointer; transition: border-color .2s ease; }
.bf-burger:hover { border-color: var(--bf-accent, #06607F); }
/* Los plugins dan estilo a todos los botones: este no lo hereda */
.bf-burger, .bf-burger:hover, .bf-burger:focus { background: transparent !important; color: var(--bf-ink, #0E1A22) !important; border-radius: 10px !important; padding: 0 !important; min-height: 0 !important; }
.bf-burger:not(:focus-visible) { box-shadow: none !important; }
.bf-burger-l, .bf-burger-l::before, .bf-burger-l::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.bf-burger-l { position: relative; transition: background-color .2s ease; }
.bf-burger-l::before, .bf-burger-l::after { content: ""; position: absolute; left: 0; transition: transform .25s ease, top .25s ease; }
.bf-burger-l::before { top: -6px; }
.bf-burger-l::after { top: 6px; }
.is-menu .bf-burger-l { background: transparent; }
.is-menu .bf-burger-l::before { top: 0; transform: rotate(45deg); }
.is-menu .bf-burger-l::after { top: 0; transform: rotate(-45deg); }
.bf-mnav { display: none; }
.bf-mnav-in { max-width: 720px; margin: 0 auto; padding: 4px 20px 24px; }
.bf-macc { border-bottom: 1px solid var(--bf-line, #E3EAEF); }
.bf-macc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 58px; font-weight: 600; font-size: 17px; color: var(--bf-ink, #0E1A22); cursor: pointer; }
.bf-macc > summary::-webkit-details-marker { display: none; }
.bf-macc[open] > summary .bf-chev { transform: rotate(180deg); }
.bf-macc ul { margin: 0 0 12px; padding: 0; list-style: none; }
.bf-macc a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--bf-ink-2, #2C3E4B); text-decoration: none; font-size: 15.5px; }
.bf-macc a:hover, .bf-macc a:focus-visible { background: var(--bf-paper-2, #F4F7F9); color: var(--bf-ink, #0E1A22); }
.bf-mnav-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }

@media (max-width: 1024px) {
  .bf-headrow { display: flex !important; gap: 16px !important; min-height: 64px !important; padding-inline: 20px !important; }
  .bf-nav, .bf-lang-sel { display: none !important; }
  .bf-head-acc { margin-left: auto; gap: 12px !important; }
  .bf-burger { display: inline-grid; }
  .bf-logo { margin-left: -6px !important; }
  .bf-logo img { height: 48px !important; }
  .bf-mnav { display: block; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; background: var(--bf-paper, #FFFFFF); border-bottom: 1px solid var(--bf-line, #E3EAEF); box-shadow: 0 24px 40px rgba(0, 30, 48, .16); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .is-menu .bf-mnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .bf-dark .bf-mnav { box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
}
/* Móvil estrecho: "Hablemos" pasa al panel para que el logo respire */
@media (max-width: 520px) {
  .bf-head-acc > .bf-btn { display: none !important; }
}

/* ---------- Páginas de servicio ---------- */
.bf-crumb { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #8FB6CE; }
.bf-crumb li + li::before { content: "/"; margin-right: 10px; color: #2E6B91; }
.bf-crumb a { color: #6CCFF6; text-decoration: none; }
.bf-crumb a:hover { color: #FFFFFF; }
.bf-tagc { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; background: var(--bf-tag, #EEF4F8); color: var(--bf-tag-ink, #00405F); padding: 5px 10px; border-radius: 4px; }
.bf-tagc-osc { background: rgba(108, 207, 246, .1); color: #CFE3EF; border: 1px solid #1C5377; }
.bf-svc-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #013251; border: 1px solid #2E6B91; color: #6CCFF6; }

/* Recorrido técnico (tarjeta en la cabecera de cada servicio) */
.bf-pipe { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bf-pipe > li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
.bf-pipe > li:last-child { padding-bottom: 0; }
.bf-pipe > li:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; opacity: .7; background: repeating-linear-gradient(to bottom, #6CCFF6 0 3px, transparent 3px 7px); background-size: 2px 7px; animation: bf-drip .8s linear infinite; }
.bf-pipe-n { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #013251; border: 1px solid #2E6B91; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #6CCFF6; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.bf-pipe > li:hover .bf-pipe-n { background: #6CCFF6; border-color: #6CCFF6; color: #00263D; }
.bf-pipe-t { margin: 0; font-weight: 600; font-size: 15.5px; color: #FFFFFF; }
.bf-pipe-d { margin: 3px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #8FB6CE; }

/* Qué incluye: ocho piezas */
.bf-inc { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bf-inc > li { border: 1px solid var(--bf-line, #E3EAEF); border-radius: 12px; padding: 22px; background: var(--bf-paper, #FFFFFF); display: flex; flex-direction: column; gap: 8px; }
.bf-inc > li:hover { border-color: var(--bf-accent, #06607F); }

/* Qué ganas */
.bf-gan { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.bf-gan > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.bf-gan-hex { width: 22px; height: 24px; margin-top: 2px; background: #FFD84D; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Proceso en cuatro pasos, unidos por una línea */
.bf-proc { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bf-proc > li { position: relative; padding-top: 60px; }
.bf-proc > li::before { content: ""; position: absolute; top: 20px; left: 0; right: -24px; height: 2px; background: var(--bf-line-2, #D5DFE6); }
.bf-proc > li:last-child::before { right: 0; }
.bf-proc-n { position: absolute; top: 0; left: 0; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #003E63; color: #FFFFFF; font-family: 'IBM Plex Mono', monospace; font-size: 13px; transition: background-color .2s ease, color .2s ease; }
.bf-proc > li:hover .bf-proc-n { background: #6CCFF6; color: #00263D; }
.bf-dark .bf-proc-n { background: #1C5377; }

/* Bloques del stack */
.bf-stack4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Página de Servicios: mapa de los cuatro y un bloque por servicio */
.bf-hub { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bf-hub-tile { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 14px; background: #00263D; border: 1px solid #1C5377; color: #FFFFFF; text-decoration: none; transition: border-color .2s ease, transform .25s ease, background-color .2s ease; }
.bf-hub-tile:hover, .bf-hub-tile:focus-visible { color: #FFFFFF; border-color: #6CCFF6; background: #013251; transform: translateY(-2px); }
.bf-hub-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #013251; color: #6CCFF6; transition: background-color .2s ease, color .2s ease; }
.bf-hub-tile:hover .bf-hub-ico { background: #6CCFF6; color: #00263D; }
.bf-svc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 72px; padding: 56px 0; border-bottom: 1px solid var(--bf-line, #E3EAEF); scroll-margin-top: 96px; }
.bf-svc-row:last-child { border-bottom: none; padding-bottom: 0; }
.bf-svc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.bf-svc-list > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 1.6; color: var(--bf-ink-3, #4A5A66); }
.bf-svc-list strong { color: var(--bf-ink, #0E1A22); font-weight: 600; }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1100px) {
  .bf-inc, .bf-stack4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-proc { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .bf-proc > li:nth-child(2n)::before { right: 0; }
}

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .bf-svc-row { grid-template-columns: minmax(0, 1fr); padding: 44px 0; }
  .bf-gan { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .bf-proc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bf-proc > li { padding: 0 0 0 62px; min-height: 42px; }
  .bf-proc > li::before { top: 46px; bottom: -24px; left: 20px; right: auto !important; width: 2px; height: auto; }
  .bf-proc > li:last-child::before { display: none; }
}
@media (max-width: 600px) {
  .bf-section { padding-inline: 20px !important; }
  .bf-h1 { font-size: 36px !important; }
  .bf-h2 { font-size: 27px !important; }
  .bf-inc, .bf-stack4 { grid-template-columns: minmax(0, 1fr); }
  .bf-hub { grid-template-columns: minmax(0, 1fr); }
  .bf-btn-lg { width: 100%; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bf-packet, .bf-ring { animation: none !important; opacity: 0 !important; }
  .bf-track { animation: none !important; }
  .bf-row { overflow-x: auto !important; -webkit-mask-image: none; mask-image: none; }
  .bf-dup { display: none !important; }
  .bf-conn-line, .bf-flow > li + li::before, .bf-pipe > li::before { animation: none; }
  .bf-mnav, .bf-burger-l, .bf-burger-l::before, .bf-burger-l::after { transition: none !important; }
  .bf-logo::after { display: none; }
  .bf-packet { display: none !important; }
  .bf-n:hover .bf-nring { animation: none; }
  .bf-net-luz, .bf-hex, .bf-lk, .bf-tip, .bf-lbl { transition: none !important; }
  .bf-root, .bf-panel, .bf-switch-track, .bf-switch-knob, .bf-input, .bf-btn, .bf-btn::before, .bf-btn-ico,
  .bf-card, .bf-post img, .bf-mega-post img, .bf-top, .bf-nav-link::after { transition: none !important; }
  .bf-card:hover, .bf-prob:hover, .bf-apl:hover, .bf-layer-row > li:hover, .bf-fase:hover, .bf-exp-cta:hover { transform: none; }
  .bf-orbita { animation: none; stroke-dasharray: none; opacity: .5; }
  /* Sin movimiento: el blog no rota solo; se elige el artículo en la lista */
  .bf-bitem.is-activo .bf-bprog { animation: none; width: 100%; }
  .bf-dest, .bf-dest.is-activo img { transition: none !important; animation: none !important; }
  .bf-prob, .bf-mark { transition: none !important; }
}

/* ---------- Páginas interiores: Conócenos, Partners, Sostenibilidad, Trabaja, FAQ ---------- */
.bf-hero-foto { display: block; width: 100%; max-width: 460px; height: auto; margin-left: auto; filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .35)); }
.bf-foto { display: block; width: 100%; height: auto; border-radius: 16px; }
.bf-datos { margin: 36px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bf-datos li { display: flex; align-items: baseline; gap: 14px; padding: 0 0 14px; border-bottom: 1px solid var(--bf-line, #E3EAEF); font-size: 15px; color: var(--bf-ink-3, #4A5A66); }
.bf-datos span { min-width: 64px; font-family: 'IBM Plex Mono', monospace; font-size: 26px; color: var(--bf-accent, #06607F); letter-spacing: -0.02em; }
.bf-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bf-mv-c { position: relative; overflow: hidden; border-radius: 20px; padding: 44px; background: #003E63; color: #FFFFFF; }
.bf-mv-c2 { background: var(--bf-paper, #FFFFFF); color: var(--bf-ink, #0E1A22); border: 1px solid var(--bf-line, #E3EAEF); }
.bf-mv-c .bf-mv-t { position: relative; margin: 0; font-size: 23px; line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; max-width: 30ch; }
.bf-mv-c > p:first-of-type { position: relative; color: #6CCFF6 !important; }
.bf-mv-c2 > p:first-of-type { color: var(--bf-accent, #06607F) !important; }
.bf-mv-hex { position: absolute; right: -40px; bottom: -50px; width: 180px; height: 200px; background: rgba(108, 207, 246, .1); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.bf-mv-c2 .bf-mv-hex { background: rgba(255, 216, 77, .25); }
.bf-valores, .bf-razones { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bf-razones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bf-valores > li, .bf-razones > li { border: 1px solid var(--bf-line, #E3EAEF); border-radius: 14px; padding: 26px; background: var(--bf-paper, #FFFFFF); display: flex; flex-direction: column; gap: 12px; }
.bf-tec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bf-tec-b { border: 1px solid var(--bf-line, #E3EAEF); border-radius: 14px; padding: 24px; background: var(--bf-paper, #FFFFFF); }
.bf-tipo, .bf-pilar { border: 1px solid var(--bf-line, #E3EAEF); border-radius: 16px; padding: 32px; background: var(--bf-paper, #FFFFFF); display: flex; flex-direction: column; gap: 14px; }
.bf-tipo h3, .bf-pilar h3 { margin: 4px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.bf-tipo p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--bf-ink-3, #4A5A66); }
.bf-pasos { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bf-pasos > li { border: 1px solid var(--bf-line, #E3EAEF); border-radius: 12px; padding: 20px; background: var(--bf-paper, #FFFFFF); display: flex; flex-direction: column; gap: 10px; }
.bf-pasos-n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--bf-accent, #06607F); }
.bf-pasos p { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 500; color: var(--bf-ink-2, #2C3E4B); }
.bf-lista-ok { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bf-lista-ok li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.55; color: var(--bf-ink-3, #4A5A66); }
.bf-lista-ok svg { margin-top: 2px; color: var(--bf-accent, #06607F); }
.bf-sello { border-radius: 18px; padding: 36px; background: #003E63; color: #FFFFFF; border-left: 4px solid #FFD84D; }

/* Preguntas frecuentes: desplegables nativos */
.bf-faq-lado { position: sticky; top: 110px; }
.bf-faqs { display: flex; flex-direction: column; border-top: 1px solid var(--bf-line, #E3EAEF); }
.bf-faq { border-bottom: 1px solid var(--bf-line, #E3EAEF); }
.bf-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.bf-faq summary::-webkit-details-marker { display: none; }
.bf-faq summary:hover { color: var(--bf-accent, #06607F); }
.bf-faq-ico { position: relative; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bf-line-2, #D5DFE6); transition: background-color .2s ease, border-color .2s ease, transform .3s ease; }
.bf-faq-ico::before, .bf-faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 1px; transition: transform .3s ease; }
.bf-faq-ico::after { transform: rotate(90deg); }
.bf-faq[open] .bf-faq-ico { background: #003E63; border-color: #003E63; color: #6CCFF6; transform: rotate(180deg); }
.bf-faq[open] .bf-faq-ico::after { transform: rotate(0deg); }
.bf-faq-r { padding: 0 52px 26px 4px; font-size: 16px; line-height: 1.75; color: var(--bf-ink-3, #4A5A66); }
.bf-faq-r p { margin: 0 0 12px; }
.bf-faq-r p:last-child { margin: 0; }
.bf-faq-r ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.bf-faq-r strong { color: var(--bf-ink-2, #2C3E4B); }

/* ---------- Blog: filtros, tarjetas y paginación ---------- */
.bf-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bf-line-2, #D5DFE6); background: var(--bf-paper, #FFFFFF); color: var(--bf-ink-2, #2C3E4B); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.bf-chip:hover { border-color: #003E63; color: var(--bf-ink, #0E1A22); }
.bf-chip.is-activo { background: #003E63; border-color: #003E63; color: #FFFFFF; }
.bf-dark .bf-chip.is-activo { background: #6CCFF6; border-color: #6CCFF6; color: #00273F; }
.bf-post-dest { margin: 40px 0 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.bf-post-img { display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bf-line, #E3EAEF); }
.bf-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bf-post:hover .bf-post-img img { transform: scale(1.04); }
.bf-post-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--bf-ink-4, #5C6D79); }
.bf-post-meta span { letter-spacing: 0.05em; text-transform: uppercase; color: var(--bf-accent, #06607F); }
.bf-post h2, .bf-post h3 { margin: 0; letter-spacing: -0.015em; font-weight: 600; }
.bf-post h2 { font-size: 30px; line-height: 1.25; }
.bf-post h3 { font-size: 19px; line-height: 1.35; }
/* Al pasar por la tarjeta el título toma el color de acento (sin subrayado) */
.bf-post h2 a, .bf-post h3 a { color: var(--bf-ink, #0E1A22); text-decoration: none; transition: color .25s ease; }
.bf-post:hover h2 a, .bf-post:hover h3 a, .bf-post h2 a:focus-visible, .bf-post h3 a:focus-visible { color: var(--bf-accent, #06607F); }
.bf-post-txt { display: flex; flex-direction: column; gap: 16px; }
.bf-post-r { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--bf-ink-3, #4A5A66); }
.bf-post-autor { margin: 0; font-size: 14px; font-weight: 500; color: var(--bf-ink-2, #2C3E4B); }
.bf-posts { margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bf-posts > .bf-post, .bf-carr-pista > .bf-post { border: 1px solid var(--bf-line, #E3EAEF); border-radius: 16px; padding: 14px 14px 24px; background: var(--bf-paper, #FFFFFF); display: flex; flex-direction: column; gap: 14px; }
.bf-posts > .bf-post > *:not(.bf-post-img), .bf-carr-pista > .bf-post > *:not(.bf-post-img) { padding: 0 8px; }

/* Carrusel de artículos relacionados: tres a la vista; avanza de uno en uno (bitflow.js).
   Sin JavaScript, la vista se desplaza con el dedo o la barra */
.bf-carr-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.bf-carr-ctrl .bf-more { margin-left: 8px; }
.bf-carr-btn, .bf-carr-btn:hover, .bf-carr-btn:focus { display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 1px solid var(--bf-line-2, #D5DFE6) !important; background: var(--bf-paper, #FFFFFF) !important; color: var(--bf-ink-2, #2C3E4B) !important; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease; }
.bf-carr-btn:hover { background: #003E63 !important; border-color: #003E63 !important; color: #6CCFF6 !important; }
.bf-carr-btn:active { transform: scale(.94); }
.bf-carr-vista { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -12px; padding: 12px; }
.bf-carr-vista::-webkit-scrollbar { display: none; }
.bf-carr-pista { display: flex; gap: 24px; }
.bf-carr-pista > .bf-post { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
/* Con JavaScript la pista se mueve entera (y en bucle) en lugar de desplazarse */
.bf-carr.is-listo .bf-carr-vista { overflow: hidden; }
.bf-carr.is-listo .bf-carr-pista { transition: transform .7s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.bf-carr.is-listo .bf-carr-pista.sin-transicion { transition: none; }
@media (max-width: 1100px) { .bf-carr-pista > .bf-post { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .bf-carr-pista > .bf-post { flex-basis: 85%; } .bf-carr-ctrl .bf-more { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .bf-carr.is-listo .bf-carr-pista { transition: none; } }
.bf-paginas { margin: 56px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bf-paginas .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bf-line-2, #D5DFE6); color: var(--bf-ink-2, #2C3E4B); text-decoration: none; font-weight: 500; }
.bf-paginas .page-numbers.current { background: #003E63; border-color: #003E63; color: #FFFFFF; }
.bf-paginas a.page-numbers:hover { border-color: #003E63; }
.bf-vacio { margin: 48px 0 0; font-size: 17px; color: var(--bf-ink-3, #4A5A66); }

/* ---------- Artículo ---------- */
.bf-art-cats { margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bf-art-cats a { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #FFD84D; text-decoration: none; }
.bf-art-cats a:hover { color: #FFFFFF; }
.bf-art-meta { margin: 24px 0 40px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #A8C9DC; }
.bf-art-meta > * + *::before { content: "·"; margin-right: 18px; color: #2E6B91; }
.bf-art-img { margin: 0 0 -120px; position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #00263D; box-shadow: 0 30px 60px rgba(0, 30, 48, .3); }
.bf-art-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-art-cab + .bf-section { padding-top: 184px !important; }
.bf-art { max-width: 760px; margin: 0 auto; }
.bf-prosa { font-size: 18px; line-height: 1.8; color: var(--bf-ink-2, #2C3E4B); }
.bf-prosa > * { margin: 0 0 22px; }
.bf-prosa h2 { margin: 48px 0 18px; font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--bf-ink, #0E1A22); }
.bf-prosa h3 { margin: 36px 0 14px; font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; color: var(--bf-ink, #0E1A22); }
.bf-prosa h4 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; color: var(--bf-ink, #0E1A22); }
.bf-prosa a { color: var(--bf-accent, #06607F); text-underline-offset: 3px; }
.bf-prosa strong { color: var(--bf-ink, #0E1A22); }
.bf-prosa ul, .bf-prosa ol { padding-left: 24px; }
.bf-prosa li { margin: 0 0 8px; }
.bf-prosa li::marker { color: var(--bf-accent, #06607F); }
.bf-prosa img, .bf-prosa figure img { max-width: 100%; height: auto; border-radius: 14px; }
.bf-prosa figure { margin: 36px 0; }
.bf-prosa figcaption { margin-top: 10px; font-size: 14px; color: var(--bf-ink-4, #5C6D79); }
.bf-prosa blockquote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 3px solid #FFD84D; font-size: 22px; line-height: 1.5; font-weight: 500; color: var(--bf-ink, #0E1A22); }
.bf-prosa blockquote p { margin: 0; }
.bf-prosa table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; display: block; overflow-x: auto; }
.bf-prosa th, .bf-prosa td { padding: 12px 14px; border-bottom: 1px solid var(--bf-line, #E3EAEF); text-align: left; vertical-align: top; }
.bf-prosa th { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bf-accent, #06607F); background: var(--bf-paper-2, #F4F7F9); }
.bf-prosa .wp-block-table, .bf-prosa .wp-block-image { margin: 36px 0; }
.bf-art-pie { margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--bf-line, #E3EAEF); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.bf-art-pie-t { margin: 0 0 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bf-ink-4, #5C6D79); }
.bf-compartir { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.bf-compartir-a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bf-line-2, #D5DFE6); color: var(--bf-ink-2, #2C3E4B); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.bf-compartir-a:hover { background: #003E63; border-color: #003E63; color: #6CCFF6; }

/* ---------- Páginas interiores: tamaños intermedios y móvil ---------- */
@media (max-width: 1100px) {
  .bf-valores, .bf-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .bf-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bf-razones, .bf-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bf-hero-foto { max-width: 300px; margin: 8px auto 0; }
  .bf-mv, .bf-tec, .bf-post-dest { grid-template-columns: minmax(0, 1fr); }
  .bf-post-dest { gap: 24px; }
  .bf-faq-lado { position: static; }
  .bf-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-art-img { margin-bottom: -60px; }
  .bf-art-cab + .bf-section { padding-top: 112px !important; }
  .bf-art-cab .bf-h1 { font-size: 34px !important; }
}
@media (max-width: 600px) {
  .bf-valores, .bf-g4, .bf-razones, .bf-posts, .bf-pasos { grid-template-columns: minmax(0, 1fr) !important; }
  .bf-mv-c { padding: 32px 26px; }
  .bf-mv-c .bf-mv-t { font-size: 20px; }
  .bf-faq summary { font-size: 16.5px; }
  .bf-faq-r { padding-right: 8px; }
  .bf-prosa { font-size: 17px; }
  .bf-prosa h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-post-img img, .bf-faq-ico, .bf-faq-ico::before, .bf-faq-ico::after { transition: none !important; }
  .bf-post:hover .bf-post-img img { transform: none; }
}

/* ---------- Botones de pausa: las dos barras se transforman en el triángulo de
   reanudar y el texto se desliza; el ancho no salta porque los dos rótulos
   ocupan la misma celda ---------- */
.bf-pause { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .15s ease; }
.bf-pause:active { transform: scale(.95); }
.bf-pi { position: relative; flex: 0 0 auto; width: 12px; height: 12px; }
.bf-pi::before, .bf-pi::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; background: currentColor; transition: clip-path .4s cubic-bezier(.65, 0, .35, 1); }
.bf-pi::before { left: 0; clip-path: polygon(12% 0, 72% 0, 72% 100%, 12% 100%); }
.bf-pi::after { right: 0; clip-path: polygon(28% 0, 88% 0, 88% 100%, 28% 100%); }
.bf-pause.is-pausado .bf-pi::before { clip-path: polygon(14% 0, 100% 23%, 100% 77%, 14% 100%); }
.bf-pause.is-pausado .bf-pi::after { clip-path: polygon(0 23%, 100% 50%, 100% 50%, 0 77%); }
.bf-pt { display: inline-grid; overflow: hidden; }
.bf-p-pausar, .bf-p-reanudar { grid-area: 1 / 1; transition: opacity .25s ease, transform .35s cubic-bezier(.65, 0, .35, 1), visibility 0s linear 0s; }
.bf-p-reanudar { opacity: 0; transform: translateY(100%); visibility: hidden; transition-delay: 0s, 0s, .35s; }
.bf-pause.is-pausado .bf-p-pausar { opacity: 0; transform: translateY(-100%); visibility: hidden; transition-delay: 0s, 0s, .35s; }
.bf-pause.is-pausado .bf-p-reanudar { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .bf-pause, .bf-pi::before, .bf-pi::after, .bf-p-pausar, .bf-p-reanudar { transition: none !important; }
}

/* ---------- Trabaja con nosotros: escaparate de "¿Por qué unirte?" ----------
   Lista de razones a la izquierda (radios: funciona sin JavaScript y con teclado)
   y un escenario a la derecha con una escena animada por razón. bitflow.js lo hace
   avanzar solo y lo pausa al pasar el cursor. */
.bf-rz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: stretch; }
.bf-rz-lista { display: flex; flex-direction: column; border-top: 1px solid var(--bf-line, #E3EAEF); }
.bf-rz-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 20px 4px 20px 0; border-bottom: 1px solid var(--bf-line, #E3EAEF); cursor: pointer; }
.bf-rz-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bf-rz-n { font-family: 'IBM Plex Mono', monospace; font-size: 13px; padding-top: 4px; color: var(--bf-ink-4, #5C6D79); transition: color .3s ease; }
.bf-rz-t { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.012em; color: var(--bf-ink-3, #4A5A66); transition: color .3s ease; }
.bf-rz-d { grid-column: 2; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.65, 0, .35, 1), opacity .35s ease, margin .45s ease; }
.bf-rz-d > span { overflow: hidden; font-size: 15.5px; line-height: 1.65; color: var(--bf-ink-3, #4A5A66); }
.bf-rz-prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: #003E63; }
.bf-rz-item:hover .bf-rz-t { color: var(--bf-ink, #0E1A22); }
.bf-rz-item:has(input:checked) .bf-rz-n { color: var(--bf-accent, #06607F); }
.bf-rz-item:has(input:checked) .bf-rz-t { color: var(--bf-ink, #0E1A22); }
.bf-rz-item:has(input:checked) .bf-rz-d { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.bf-rz-item:has(input:focus-visible) { outline: 2px solid #003E63; outline-offset: 2px; box-shadow: 0 0 0 6px #6CCFF6; border-radius: 4px; }
.bf-rz.is-auto .bf-rz-item:has(input:checked) .bf-rz-prog { animation: bf-rz-avance var(--bf-rz-tiempo, 6s) linear forwards; }
.bf-rz.is-auto:hover .bf-rz-prog, .bf-rz.is-auto:focus-within .bf-rz-prog { animation-play-state: paused; }
@keyframes bf-rz-avance { to { width: 100%; } }
.bf-dark .bf-rz-prog { background: #6CCFF6; }
.bf-rz-cta { margin: 28px 0 0; }

/* El escenario y sus escenas */
.bf-rz-esc { position: relative; min-height: 540px; border-radius: 24px; overflow: hidden; background: #003E63; isolation: isolate; box-shadow: 0 30px 60px rgba(0, 30, 48, .18); }
.bf-rz-s { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .6s; }
.bf-rz:has(input[value="0"]:checked) .bf-rz-s0, .bf-rz:has(input[value="1"]:checked) .bf-rz-s1,
.bf-rz:has(input[value="2"]:checked) .bf-rz-s2, .bf-rz:has(input[value="3"]:checked) .bf-rz-s3,
.bf-rz:has(input[value="4"]:checked) .bf-rz-s4, .bf-rz:has(input[value="5"]:checked) .bf-rz-s5 { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bf-rz-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-rz-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 38, 61, 0) 35%, rgba(0, 38, 61, .85) 100%); }
.bf-rz-pie { position: absolute; left: 32px; right: 32px; bottom: 28px; margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #CFE3EF; }

/* 0 · Proyectos: etiquetas que flotan sobre la foto */
.bf-rz-s0 .bf-rz-foto { object-position: center 25%; }
.bf-rz-chips { position: absolute; left: 32px; right: 32px; bottom: 64px; display: flex; flex-wrap: wrap; gap: 10px; }
.bf-rz-chips span { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #FFFFFF; background: rgba(0, 62, 99, .72); border: 1px solid rgba(108, 207, 246, .5); backdrop-filter: blur(6px); }
.bf-rz:has(input[value="0"]:checked) .bf-rz-chips span { animation: bf-rz-sube .6s cubic-bezier(.2, .7, .2, 1) both, bf-rz-flota 4s ease-in-out infinite; animation-delay: calc(.25s + var(--k) * .12s), calc(1s + var(--k) * .4s); }
@keyframes bf-rz-sube { from { opacity: 0; transform: translateY(16px); } }
@keyframes bf-rz-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* 1 · Cultura: la pareja y una conversación que aparece */
.bf-rz-s1 { background: linear-gradient(140deg, #E4F0F7, #C3DFF0); }
.bf-rz-s1 .bf-rz-recorte { position: absolute; right: 4%; bottom: 0; height: 72%; width: auto; }
.bf-rz-burbuja { position: absolute; max-width: 260px; padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.45; color: #0E1A22; background: #FFFFFF; box-shadow: 0 12px 30px rgba(0, 30, 48, .12); opacity: 0; }
.bf-rz-burbuja-1 { left: 32px; top: 40px; border-bottom-left-radius: 4px; }
.bf-rz-burbuja-2 { left: 96px; top: 124px; color: #FFFFFF; background: #003E63; border-bottom-left-radius: 4px; }
.bf-rz-burbuja-3 { left: 40px; top: 208px; border-bottom-left-radius: 4px; }
.bf-rz:has(input[value="1"]:checked) .bf-rz-burbuja { animation: bf-rz-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.bf-rz:has(input[value="1"]:checked) .bf-rz-burbuja-2 { animation-delay: .9s; }
.bf-rz:has(input[value="1"]:checked) .bf-rz-burbuja-3 { animation-delay: 1.8s; }
@keyframes bf-rz-pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }

/* 2 · Crecimiento: la curva se dibuja y aparecen los hitos */
.bf-rz-s2 { background: radial-gradient(ellipse 80% 70% at 75% 25%, #0B5583, #003E63 70%); }
.bf-rz-curva { position: absolute; left: 32px; right: 32px; top: 48px; width: calc(100% - 64px); height: auto; overflow: visible; }
.bf-rz-curva .bf-rz-traza { stroke-dasharray: 100; stroke-dashoffset: 100; }
.bf-rz:has(input[value="2"]:checked) .bf-rz-traza { animation: bf-rz-dibuja 1.8s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
@keyframes bf-rz-dibuja { to { stroke-dashoffset: 0; } }
/* Los hitos y el relleno aparecen cuando la línea ya va pasando por ellos */
.bf-rz-hito, .bf-rz-area { opacity: 0; }
.bf-rz:has(input[value="2"]:checked) .bf-rz-hito { animation: bf-rz-aparece .5s ease forwards; animation-delay: calc(.7s + var(--k) * .45s); }
.bf-rz:has(input[value="2"]:checked) .bf-rz-area { animation: bf-rz-funde 1s ease 1.5s forwards; }
.bf-rz-traza { filter: drop-shadow(0 0 6px rgba(108, 207, 246, .45)); }
@keyframes bf-rz-aparece { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bf-rz-funde { to { opacity: 1; } }
.bf-rz-hito circle { fill: #FFD84D; }
.bf-rz-hito text { font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; font-weight: 600; fill: #FFFFFF; }

/* 3 · Flexibilidad: una semana híbrida que cambia sola y el equilibrio entre oficina y casa.
   Dos semanas de ejemplo (A y B) se alternan cada 4 s; los días que cambian lo hacen en
   cascada, un brillo recorre la semana y la barra se reparte según cómo queda. Sin cifras:
   ilustra la flexibilidad, no una norma. */
.bf-rz-s3 { background: linear-gradient(135deg, #003E63, #0B5583 60%, #1A6D9C); }
.bf-rz-semana { position: absolute; left: 32px; right: 32px; top: 72px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bf-rz-dia { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 0; border-radius: 16px; background: rgba(0, 20, 34, .3); border: 1px solid rgba(108, 207, 246, .25); color: #CFE3EF; font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.bf-rz-iconos { display: grid; }
.bf-rz-ofi, .bf-rz-casa { grid-area: 1 / 1; display: block; transition: opacity .3s ease; }
.bf-rz-ofi { color: #6CCFF6; }
.bf-rz-casa { color: #FFD84D; opacity: 0; }
.bf-rz-co .bf-rz-ofi, .bf-rz-cc .bf-rz-ofi { opacity: 0; }
.bf-rz-co .bf-rz-casa, .bf-rz-cc .bf-rz-casa { opacity: 1; }
.bf-rz-co, .bf-rz-cc { border-color: rgba(255, 216, 77, .45); }
/* Brillo que recorre la semana, un día cada 1,6 s */
.bf-rz-dia::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2px #6CCFF6, 0 0 24px rgba(108, 207, 246, .45); opacity: 0; pointer-events: none; }
.bf-rz:has(input[value="3"]:checked) .bf-rz-dia { animation: bf-rz-sube .5s ease both; animation-delay: calc(var(--k) * .1s); }
.bf-rz:has(input[value="3"]:checked) .bf-rz-dia::after { animation: bf-rz-hoy 8s ease-in-out infinite; animation-delay: calc(.6s + var(--k) * 1.6s); }
@keyframes bf-rz-hoy { 0% { opacity: 0; } 4%, 16% { opacity: 1; } 22%, 100% { opacity: 0; } }
/* Los días que cambian: oficina en la semana A y casa en la B (oc), o al revés (co) */
.bf-rz:has(input[value="3"]:checked) .bf-rz-oc .bf-rz-ofi, .bf-rz:has(input[value="3"]:checked) .bf-rz-co .bf-rz-casa { animation: bf-rz-en-a 8s ease-in-out infinite; animation-delay: calc(var(--k) * .12s); }
.bf-rz:has(input[value="3"]:checked) .bf-rz-oc .bf-rz-casa, .bf-rz:has(input[value="3"]:checked) .bf-rz-co .bf-rz-ofi { animation: bf-rz-en-b 8s ease-in-out infinite; animation-delay: calc(var(--k) * .12s); }
.bf-rz:has(input[value="3"]:checked) .bf-rz-oc { animation: bf-rz-sube .5s ease both, bf-rz-borde-b 8s ease-in-out infinite; animation-delay: calc(var(--k) * .1s), calc(var(--k) * .12s); }
.bf-rz:has(input[value="3"]:checked) .bf-rz-co { animation: bf-rz-sube .5s ease both, bf-rz-borde-a 8s ease-in-out infinite; animation-delay: calc(var(--k) * .1s), calc(var(--k) * .12s); }
@keyframes bf-rz-en-a { 0%, 45% { opacity: 1; transform: none; } 50%, 95% { opacity: 0; transform: translateY(-6px) scale(.8); } 100% { opacity: 1; transform: none; } }
@keyframes bf-rz-en-b { 0%, 45% { opacity: 0; transform: translateY(6px) scale(.8); } 50%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px) scale(.8); } }
@keyframes bf-rz-borde-a { 0%, 45%, 100% { border-color: rgba(255, 216, 77, .45); } 50%, 95% { border-color: rgba(108, 207, 246, .25); } }
@keyframes bf-rz-borde-b { 0%, 45%, 100% { border-color: rgba(108, 207, 246, .25); } 50%, 95% { border-color: rgba(255, 216, 77, .45); } }
/* Equilibrio entre oficina (celeste) y casa (amarillo): se reparte según la semana */
.bf-rz-balance { position: absolute; left: 32px; right: 32px; top: 296px; }
.bf-rz-balance-barra { position: relative; height: 14px; border-radius: 999px; background: #FFD84D; box-shadow: inset 0 0 0 1px rgba(0, 20, 34, .2); }
.bf-rz-balance-barra span { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; border-radius: 999px 0 0 999px; background: #6CCFF6; box-shadow: 0 0 16px rgba(108, 207, 246, .6); }
.bf-rz-balance-barra span::after { content: ""; position: absolute; right: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 4px 12px rgba(0, 20, 34, .35); }
.bf-rz:has(input[value="3"]:checked) .bf-rz-balance-barra span { animation: bf-rz-reparto 8s cubic-bezier(.65, 0, .35, 1) infinite; animation-delay: .3s; }
@keyframes bf-rz-reparto { 0%, 45% { width: 60%; } 52%, 95% { width: 40%; } 100% { width: 60%; } }
.bf-rz-balance-ejes { display: flex; justify-content: space-between; margin: 16px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #CFE3EF; }
.bf-rz-balance-ejes span { display: inline-flex; align-items: center; gap: 8px; }
.bf-rz-balance-ejes span:first-child svg { color: #6CCFF6; }
.bf-rz-balance-ejes span:last-child svg { color: #FFD84D; }
/* Lo que define el modelo, flotando */
.bf-rz-etiquetas { position: absolute; left: 32px; right: 32px; top: 418px; display: flex; flex-wrap: wrap; gap: 10px; }
.bf-rz-etiquetas span { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #FFFFFF; background: rgba(0, 20, 34, .35); border: 1px solid rgba(108, 207, 246, .45); }
.bf-rz:has(input[value="3"]:checked) .bf-rz-etiquetas span { animation: bf-rz-sube .6s cubic-bezier(.2, .7, .2, 1) both, bf-rz-flota 4s ease-in-out infinite; animation-delay: calc(.5s + var(--k) * .15s), calc(1.2s + var(--k) * .7s); }

/* 4 · Equipos: la foto y la cinta de roles */
.bf-rz-cinta { position: absolute; left: 0; right: 0; bottom: 68px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.bf-rz-cinta > div { display: flex; gap: 10px; width: max-content; animation: bf-marquee 26s linear infinite; }
.bf-rz-cinta span { white-space: nowrap; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #FFFFFF; background: rgba(0, 62, 99, .7); border: 1px solid rgba(108, 207, 246, .45); }
.bf-rz-esc:hover .bf-rz-cinta > div { animation-play-state: paused; }

/* 5 · Innovación: el panal que se enciende y la pantalla de código */
.bf-rz-s5 { background: #F4F7F9; }
.bf-rz-panal { position: absolute; left: 24px; top: 24px; width: 70%; height: auto; }
.bf-rz-panal polygon { fill: transparent; stroke: #B9D2E1; stroke-width: 1.2; animation: bf-celda 4.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.bf-rz-s5 .bf-rz-recorte { position: absolute; right: 0; bottom: 0; width: 72%; height: auto; mix-blend-mode: multiply; }
.bf-rz-s5 .bf-rz-pie { color: #4A5A66; }
@keyframes bf-celda { 0%, 70%, 100% { fill: transparent; stroke: #B9D2E1; } 80% { fill: rgba(108, 207, 246, .35); stroke: #06607F; } 88% { fill: rgba(255, 216, 77, .35); stroke: #FFD84D; } }

@media (max-width: 900px) {
  .bf-rz { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bf-rz-esc { order: -1; min-height: 360px; }
  .bf-rz-burbuja { max-width: 210px; font-size: 14px; }
  .bf-rz-s1 .bf-rz-recorte { height: auto; width: 62%; right: 2%; }
  .bf-rz-burbuja-1 { left: 20px; top: 20px; }
  .bf-rz-burbuja-2 { left: 52px; top: 88px; }
  .bf-rz-burbuja-3 { left: 20px; top: 156px; }
  .bf-rz-semana { gap: 6px; }
  .bf-rz-semana { top: 24px; }
  .bf-rz-dia { padding: 14px 0; gap: 10px; font-size: 12.5px; }
  .bf-rz-balance { top: 150px; }
  .bf-rz-etiquetas { top: 226px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-rz-s, .bf-rz-d, .bf-rz-n, .bf-rz-t { transition: none !important; }
  .bf-rz *, .bf-rz *::before { animation: none !important; }
  .bf-rz-burbuja, .bf-rz-hito, .bf-rz-dia, .bf-rz-area { opacity: 1; }
  .bf-rz-curva .bf-rz-traza { stroke-dashoffset: 0; }
}

/* ---------- Blog: buscador, categoría y restablecer (como la página anterior) ---------- */
.bf-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bf-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bf-busca, .bf-selector { position: relative; display: flex; align-items: center; }
.bf-busca { flex: 1 1 340px; max-width: 460px; }
.bf-selector { flex: 0 1 300px; }
.bf-filtros .bf-campo { width: 100%; min-height: 52px; margin: 0; padding: 0 52px 0 18px; border-radius: 12px !important; border: 1px solid var(--bf-line-2, #D5DFE6) !important; background: var(--bf-input, #F7F9FB) !important; color: var(--bf-ink, #0E1A22) !important; font: inherit; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; -webkit-appearance: none; appearance: none; }
.bf-filtros .bf-campo::placeholder { color: var(--bf-ink-4, #5C6D79); opacity: 1; }
.bf-filtros .bf-campo:hover { border-color: var(--bf-accent, #06607F) !important; }
.bf-filtros .bf-campo:focus { outline: none; border-color: #003E63 !important; background: var(--bf-paper, #FFFFFF) !important; box-shadow: 0 0 0 4px rgba(108, 207, 246, .45); }
.bf-filtros select.bf-campo { cursor: pointer; }
.bf-selector > svg { position: absolute; right: 18px; pointer-events: none; color: var(--bf-ink-2, #2C3E4B); transition: transform .2s ease; }
.bf-selector:focus-within > svg { transform: rotate(180deg); }
.bf-busca-btn, .bf-busca-btn:hover, .bf-busca-btn:focus { position: absolute; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--bf-ink-2, #2C3E4B) !important; cursor: pointer; }
.bf-busca-btn:hover { background: #003E63 !important; color: #6CCFF6 !important; }
.bf-restablecer { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-weight: 600; font-size: 15.5px; color: var(--bf-ink-2, #2C3E4B); text-decoration: none; }
.bf-restablecer svg { transition: transform .5s ease; }
.bf-restablecer:hover { color: var(--bf-accent, #06607F); }
.bf-restablecer:hover svg { transform: rotate(-300deg); }
.bf-resultados { margin: 20px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--bf-ink-4, #5C6D79); }
.bf-vacio a { font-weight: 600; }
@media (max-width: 700px) {
  .bf-busca, .bf-selector { flex: 1 1 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-restablecer svg, .bf-selector > svg, .bf-filtros .bf-campo { transition: none !important; }
}

/* Desplegable de categorías con diseño propio donde el navegador lo permite
   (select personalizable); en el resto se ve la lista nativa, que funciona igual */
@supports (appearance: base-select) {
  .bf-filtros select.bf-campo, .bf-filtros select.bf-campo::picker(select) { appearance: base-select; }
  .bf-filtros select.bf-campo { display: flex; align-items: center; }
  .bf-filtros select.bf-campo::picker-icon { display: none; }
  .bf-filtros select.bf-campo::picker(select) {
    margin-top: 8px; padding: 6px; max-height: 360px; border: 1px solid var(--bf-line-2, #D5DFE6); border-radius: 14px;
    background: var(--bf-paper, #FFFFFF); box-shadow: 0 20px 44px rgba(0, 30, 48, .16);
    opacity: 0; translate: 0 -6px;
    transition: opacity .18s ease, translate .22s cubic-bezier(.2, .7, .2, 1), overlay .22s allow-discrete, display .22s allow-discrete;
  }
  .bf-filtros select.bf-campo:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { .bf-filtros select.bf-campo:open::picker(select) { opacity: 0; translate: 0 -6px; } }
  .bf-filtros select.bf-campo option {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; cursor: pointer;
    font-size: 15.5px; line-height: 1.3; color: var(--bf-ink-2, #2C3E4B); transition: background-color .15s ease, color .15s ease;
  }
  .bf-filtros select.bf-campo option:hover, .bf-filtros select.bf-campo option:focus-visible { outline: none; background: var(--bf-tag, #EEF4F8); color: var(--bf-ink, #0E1A22); }
  .bf-filtros select.bf-campo option:checked { background: #003E63; color: #FFFFFF; font-weight: 600; }
  .bf-filtros select.bf-campo option::checkmark { order: 1; margin-left: auto; color: #6CCFF6; }
  .bf-filtros select.bf-campo option[value=""] { color: var(--bf-ink-4, #5C6D79); }
  .bf-filtros select.bf-campo option[value=""]:checked { background: transparent; color: var(--bf-ink-4, #5C6D79); font-weight: 400; }
  .bf-filtros select.bf-campo option[value=""]::checkmark { display: none; }
  .bf-filtros select.bf-campo:open + svg { transform: rotate(180deg); }
  .bf-dark .bf-filtros select.bf-campo option:checked { background: #6CCFF6; color: #00273F; }
  @media (prefers-reduced-motion: reduce) {
    .bf-filtros select.bf-campo::picker(select), .bf-filtros select.bf-campo option { transition: none; }
  }
}

/* Contacto: enlace "Cómo llegar" bajo la dirección */
.bf-contact-mas { margin-top: 4px; font-size: 13px; font-weight: 500; color: #6CCFF6; }

/* ---------- Menú de tablet y móvil: despliegue, acordeón y respuesta al tacto ---------- */
.bf-mvelo { display: none; }
@media (max-width: 1024px) {
  /* Velo sobre la página detrás del panel: al tocarlo se cierra el menú */
  .bf-mvelo { display: block; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; height: 100dvh; background: rgba(0, 30, 48, .4); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .is-menu .bf-mvelo { opacity: 1; visibility: visible; transition-delay: 0s; }
  .bf-dark .bf-mvelo { background: rgba(0, 0, 0, .6); }
  /* El panel se despliega hacia abajo desde la cabecera (la sombra queda fuera del recorte) */
  .bf-mnav { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path .42s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .42s; }
  .is-menu .bf-mnav { clip-path: inset(0 0 -64px 0); transition-delay: 0s; }
  /* Los apartados entran escalonados al abrir */
  .bf-mnav-in > * { opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
  .is-menu .bf-mnav-in > * { opacity: 1; transform: none; }
  .is-menu .bf-mnav-in > :nth-child(1) { transition-delay: .08s; }
  .is-menu .bf-mnav-in > :nth-child(2) { transition-delay: .13s; }
  .is-menu .bf-mnav-in > :nth-child(3) { transition-delay: .18s; }
  .is-menu .bf-mnav-in > :nth-child(4) { transition-delay: .23s; }
  html.bf-menu-abierto { overflow: hidden; }
}
/* Cabecera de cada grupo: zona táctil con fondo al pasar, y el grupo abierto en color */
.bf-macc > summary { margin: 0 -12px; padding: 0 12px; border-radius: 10px; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, color .2s ease; }
.bf-macc > summary:hover, .bf-macc > summary:focus-visible { background: var(--bf-paper-2, #F4F7F9); }
.bf-macc[open] > summary { color: var(--bf-accent, #06607F); }
.bf-dark .bf-macc[open] > summary { color: #6CCFF6; }
/* La flecha va en un círculo que se rellena al abrir el grupo */
.bf-macc > summary .bf-chev { box-sizing: content-box; flex: 0 0 auto; padding: 8px; border-radius: 50%; border: 1px solid var(--bf-line-2, #D5DFE6); transition: transform .32s cubic-bezier(.2, .7, .2, 1), background-color .2s ease, border-color .2s ease, color .2s ease; }
.bf-macc[open] > summary .bf-chev { background: #003E63; border-color: #003E63; color: #FFFFFF; }
.bf-dark .bf-macc[open] > summary .bf-chev { background: #6CCFF6; border-color: #6CCFF6; color: #00273F; }
/* Los enlaces del grupo entran uno tras otro al abrirlo */
.bf-macc[open] li { animation: bf-macc-li .34s cubic-bezier(.2, .7, .2, 1) both; }
.bf-macc[open] li:nth-child(2) { animation-delay: .03s; }
.bf-macc[open] li:nth-child(3) { animation-delay: .06s; }
.bf-macc[open] li:nth-child(4) { animation-delay: .09s; }
.bf-macc[open] li:nth-child(5) { animation-delay: .12s; }
.bf-macc[open] li:nth-child(6) { animation-delay: .15s; }
@keyframes bf-macc-li { from { opacity: 0; transform: translateX(-8px); } }
/* Al pasar o tocar un enlace aparece su flecha */
.bf-macc a { display: flex; align-items: center; justify-content: space-between; gap: 12px; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, color .2s ease; }
.bf-macc a::after { content: "→"; color: var(--bf-accent, #06607F); opacity: 0; transform: translateX(-8px); transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1); }
.bf-dark .bf-macc a::after { color: #6CCFF6; }
.bf-macc a:hover::after, .bf-macc a:focus-visible::after, .bf-macc a:active::after { opacity: 1; transform: none; }
.bf-macc a:active { background: var(--bf-tag, #EEF4F8); }
/* El grupo se despliega con altura animada donde el navegador lo permite (en el resto, al instante) */
@supports (interpolate-size: allow-keywords) {
  .bf-mnav { interpolate-size: allow-keywords; }
  .bf-macc::details-content { block-size: 0; overflow: clip; transition: block-size .36s cubic-bezier(.2, .7, .2, 1), content-visibility .36s allow-discrete; }
  .bf-macc[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-mvelo, .bf-mnav, .bf-mnav-in > *, .bf-macc > summary .bf-chev, .bf-macc a::after { transition: none !important; }
  .bf-macc[open] li { animation: none; }
}
/* Aparte: un navegador sin ::details-content descartaría la regla entera */
@media (prefers-reduced-motion: reduce) {
  .bf-macc::details-content { transition: none !important; }
}

/* ---------- Artículo: volver al listado del blog (arriba y al terminar de leer) ---------- */
.bf-volver { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid rgba(108, 207, 246, .45); background: rgba(255, 255, 255, .04); color: #FFFFFF; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.bf-volver svg { color: #6CCFF6; transition: transform .25s ease; }
.bf-volver:hover, .bf-volver:focus-visible { background: rgba(108, 207, 246, .16); border-color: #6CCFF6; color: #FFFFFF; }
.bf-volver:hover svg, .bf-volver:focus-visible svg { transform: translateX(-4px); }
.bf-art-volver { margin: 40px 0 0; }
.bf-art-volver .bf-btn:hover .bf-btn-ico, .bf-art-volver .bf-btn:focus-visible .bf-btn-ico { transform: translateX(-3px); }
@media (prefers-reduced-motion: reduce) { .bf-volver, .bf-volver svg { transition: none; } }

/* ---------- Páginas legales: índice que acompaña la lectura y el texto al lado ---------- */
.bf-legal-fecha { margin: 22px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #A8C9DC; }
.bf-legal-docs { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; }
.bf-legal-docs a { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(108, 207, 246, .4); color: #FFFFFF; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.bf-legal-docs a:hover, .bf-legal-docs a:focus-visible { background: rgba(108, 207, 246, .14); border-color: #6CCFF6; color: #FFFFFF; }
.bf-legal-docs a[aria-current="page"] { background: #6CCFF6; border-color: #6CCFF6; color: #00273F; }
.bf-legal { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; align-items: start; }
.bf-legal-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; overscroll-behavior: contain; }
.admin-bar .bf-legal-toc { top: 136px; }
.bf-legal-toc > summary { list-style: none; margin: 0 0 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bf-ink-4, #5C6D79); pointer-events: none; }
.bf-legal-toc > summary::-webkit-details-marker { display: none; }
.bf-legal-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--bf-line, #E3EAEF); }
.bf-legal-toc a { display: block; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; color: var(--bf-ink-3, #4A5A66); font-size: 14px; line-height: 1.45; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.bf-legal-toc a:hover, .bf-legal-toc a:focus-visible { color: var(--bf-ink, #0E1A22); }
.bf-legal-toc a[aria-current="true"] { color: var(--bf-accent, #06607F); border-left-color: #6CCFF6; font-weight: 600; }
.bf-dark .bf-legal-toc a[aria-current="true"] { color: #6CCFF6; }
.bf-legal-texto { max-width: 780px; font-size: 16.5px; line-height: 1.75; }
.bf-legal-texto > :first-child { margin-top: 0; }
.bf-legal-texto h2 { font-size: 26px; scroll-margin-top: 110px; }
.bf-legal-texto h3 { font-size: 19px; scroll-margin-top: 110px; }
.bf-legal-texto table { display: table; margin: 28px 0; font-size: 14.5px; border: 1px solid var(--bf-line, #E3EAEF); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.bf-legal-texto td { overflow-wrap: anywhere; }
.bf-legal-texto tr:last-child td { border-bottom: 0; }
@media (max-width: 1024px) {
  .bf-legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* El índice, plegable encima del texto */
  .bf-legal-toc { position: static; max-height: none; padding: 0 18px; border: 1px solid var(--bf-line, #E3EAEF); border-radius: 14px; background: var(--bf-paper-2, #F4F7F9); }
  .bf-legal-toc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin: 0; pointer-events: auto; cursor: pointer; }
  .bf-legal-toc > summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
  .bf-legal-toc[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
  .bf-legal-toc ol { margin: 0 0 14px; }
}
@media (max-width: 700px) {
  /* Tablas como fichas: cada celda con el nombre de su columna */
  .bf-legal-texto table, .bf-legal-texto tbody, .bf-legal-texto tr, .bf-legal-texto td { display: block; }
  .bf-legal-texto table { border: 0; border-radius: 0; overflow: visible; }
  .bf-legal-texto thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bf-legal-texto tr { margin: 0 0 12px; padding: 6px 16px; border: 1px solid var(--bf-line, #E3EAEF); border-radius: 12px; }
  .bf-legal-texto td { padding: 8px 0; border: 0; }
  .bf-legal-texto td::before { content: attr(data-th); display: block; margin: 0 0 2px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bf-ink-4, #5C6D79); }
}
@media (prefers-reduced-motion: reduce) { .bf-legal-docs a, .bf-legal-toc a, .bf-legal-toc > summary::after { transition: none; } }

/* ---------- Servicios · Qué ganas: beneficios conectados a un bróker con el triskel ----------
   Por cada conexión viaja un mensaje; la tarjeta late al recibirlo (misma duración y
   retardo que su mensaje). Con el cursor sobre una tarjeta se ilumina su conexión. */
.bf-gan-hub { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
.bf-gan-eje { position: relative; }
.bf-gan-red { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bf-gan-red path { fill: none; vector-effect: non-scaling-stroke; }
.bf-gan-l { stroke: var(--bf-line-2, #D5DFE6); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke .3s ease, stroke-width .3s ease; }
.bf-gan-p { stroke: #6CCFF6; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 100; animation: bf-gan-viaje 3.2s linear infinite; }
.bf-gan-p:nth-of-type(6), .bf-gan-hub .bf-gan > li:nth-child(2) .bf-gan-hex { animation-delay: .8s; }
.bf-gan-p:nth-of-type(7), .bf-gan-hub .bf-gan > li:nth-child(3) .bf-gan-hex { animation-delay: 1.6s; }
.bf-gan-p:nth-of-type(8), .bf-gan-hub .bf-gan > li:nth-child(4) .bf-gan-hex { animation-delay: 2.4s; }
.bf-gan-p:nth-of-type(odd) { stroke: #FFD84D; }
@keyframes bf-gan-viaje { from { stroke-dashoffset: 8; } to { stroke-dashoffset: -100; } }
.bf-gan-centro { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 80px; height: 80px; filter: drop-shadow(0 10px 22px rgba(0, 62, 99, .25)); transition: scale .6s cubic-bezier(.2, .7, .2, 1), opacity .5s ease; }
.bf-gan-centro svg { display: block; overflow: visible; }
.bf-gan-anillo { transform-box: fill-box; transform-origin: center; animation: bf-pulse 3.2s ease-out infinite; }
.bf-gan-hub .bf-gan { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 14px; }
.bf-gan-hub .bf-gan > li { align-items: center; padding: 18px 22px; border: 1px solid var(--bf-line, #E3EAEF); border-radius: 14px; background: var(--bf-paper, #FFFFFF); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .5s ease, translate .6s cubic-bezier(.2, .7, .2, 1); }
.bf-gan-hub .bf-gan > li:hover { transform: translateY(-3px); border-color: #6CCFF6; box-shadow: 0 16px 36px rgba(0, 30, 48, .1); }
.bf-gan-hub .bf-gan-hex { margin-top: 0; animation: bf-gan-latido 3.2s ease-out infinite; transition: rotate .4s ease; }
.bf-gan-hub .bf-gan > li:hover .bf-gan-hex { rotate: 60deg; }
@keyframes bf-gan-latido { 0% { scale: 1.3; filter: drop-shadow(0 0 6px rgba(255, 216, 77, .9)); } 18%, 100% { scale: 1; filter: none; } }
.bf-gan-hub:has(.bf-gan > li:nth-child(1):hover) .bf-gan-l:nth-of-type(1),
.bf-gan-hub:has(.bf-gan > li:nth-child(2):hover) .bf-gan-l:nth-of-type(2),
.bf-gan-hub:has(.bf-gan > li:nth-child(3):hover) .bf-gan-l:nth-of-type(3),
.bf-gan-hub:has(.bf-gan > li:nth-child(4):hover) .bf-gan-l:nth-of-type(4) { stroke: #6CCFF6; stroke-width: 2.5; }
.bf-dark .bf-gan-hub .bf-gan > li { background: var(--bf-paper-2, #12293A); }
/* Al entrar en pantalla: las conexiones se trazan, el bróker aparece y las tarjetas llegan escalonadas */
.bf-gan-hub.bf-revela-listo .bf-gan-l { stroke-dashoffset: 100; transition: stroke-dashoffset .9s ease .25s, stroke .3s ease, stroke-width .3s ease; }
.bf-gan-hub.bf-revela-listo .bf-gan-centro { scale: .5; opacity: 0; }
.bf-gan-hub.bf-revela-listo .bf-gan > li { opacity: 0; translate: 28px 0; }
.bf-gan-hub.bf-revela-listo:not(.is-visto) .bf-gan-p { visibility: hidden; }
.bf-gan-hub.bf-revela-listo.is-visto .bf-gan-l { stroke-dashoffset: 0; }
.bf-gan-hub.bf-revela-listo.is-visto .bf-gan-centro { scale: 1; opacity: 1; }
.bf-gan-hub.bf-revela-listo.is-visto .bf-gan > li { opacity: 1; translate: 0 0; }
.bf-gan-hub.is-visto .bf-gan > li:nth-child(1) { transition-delay: 0s, 0s, 0s, .35s, .35s; }
.bf-gan-hub.is-visto .bf-gan > li:nth-child(2) { transition-delay: 0s, 0s, 0s, .47s, .47s; }
.bf-gan-hub.is-visto .bf-gan > li:nth-child(3) { transition-delay: 0s, 0s, 0s, .59s, .59s; }
.bf-gan-hub.is-visto .bf-gan > li:nth-child(4) { transition-delay: 0s, 0s, 0s, .71s, .71s; }
@media (max-width: 640px) {
  .bf-gan-hub { grid-template-columns: minmax(0, 1fr); }
  .bf-gan-eje { display: none; }
  .bf-gan-hub .bf-gan { grid-auto-rows: auto; }
}

/* ---------- Servicios · Cómo trabajamos: la línea se rellena paso a paso y un pulso la recorre ---------- */
.bf-proc { position: relative; }
.bf-proc > li::after { content: ""; position: absolute; top: 20px; left: 0; right: -24px; height: 2px; background: #6CCFF6; transform-origin: left center; }
.bf-proc > li:last-child::after { right: 0; }
.bf-proc-n { transition: background-color .4s ease, color .4s ease, box-shadow .4s ease; }
/* El pulso: un punto que recorre la línea; cada número se enciende al pasar */
.bf-proc::after { content: ""; position: absolute; top: 15px; left: 0; width: 100%; height: 12px; pointer-events: none; background: radial-gradient(circle 5px at 6px 50%, #6CCFF6 92%, transparent) no-repeat; background-size: 12px 12px; filter: drop-shadow(0 0 4px rgba(108, 207, 246, .9)); animation: bf-proc-viaje 6s linear infinite; }
@keyframes bf-proc-viaje { from { background-position: 0 0; } to { background-position: 100% 0; } }
.bf-proc > li .bf-proc-n { animation: bf-proc-pulso 6s ease-out infinite; }
.bf-proc > li:nth-child(2) .bf-proc-n { animation-delay: 1.55s; }
.bf-proc > li:nth-child(3) .bf-proc-n { animation-delay: 3.1s; }
.bf-proc > li:nth-child(4) .bf-proc-n { animation-delay: 4.65s; }
@keyframes bf-proc-pulso { 0% { box-shadow: 0 0 0 0 rgba(108, 207, 246, .55); } 14%, 100% { box-shadow: 0 0 0 12px rgba(108, 207, 246, 0); } }
/* Al entrar en pantalla: cada tramo se rellena y su número se enciende, uno tras otro */
.bf-proc.bf-revela-listo > li::after { transform: scaleX(0); transition: transform .55s ease; }
.bf-proc.bf-revela-listo .bf-proc-n { background: var(--bf-paper, #FFFFFF); color: var(--bf-ink-4, #5C6D79); box-shadow: inset 0 0 0 2px var(--bf-line-2, #D5DFE6); animation: none; }
.bf-proc.bf-revela-listo:not(.is-visto)::after { visibility: hidden; }
.bf-proc.bf-revela-listo.is-visto > li::after { transform: scaleX(1); }
.bf-proc.bf-revela-listo.is-visto .bf-proc-n { background: #003E63; color: #FFFFFF; box-shadow: none; animation: bf-proc-pulso 6s ease-out 2.4s infinite; }
.bf-proc.is-visto > li:nth-child(1) .bf-proc-n { transition-delay: .1s; }
.bf-proc.is-visto > li:nth-child(1)::after { transition-delay: .25s; }
.bf-proc.is-visto > li:nth-child(2) .bf-proc-n { transition-delay: .7s; animation-delay: 3.95s; }
.bf-proc.is-visto > li:nth-child(2)::after { transition-delay: .85s; }
.bf-proc.is-visto > li:nth-child(3) .bf-proc-n { transition-delay: 1.3s; animation-delay: 5.5s; }
.bf-proc.is-visto > li:nth-child(3)::after { transition-delay: 1.45s; }
.bf-proc.is-visto > li:nth-child(4) .bf-proc-n { transition-delay: 1.9s; animation-delay: 7.05s; }
.bf-proc.is-visto > li:nth-child(4)::after { transition-delay: 2.05s; }
.bf-proc.is-visto::after { animation-delay: 2.4s; }
.bf-dark .bf-proc.is-visto .bf-proc-n { background: #1C5377; }
@media (max-width: 1100px) {
  /* En dos filas o en columna el punto no puede seguir la línea: solo se rellena y laten los números */
  .bf-proc::after { display: none; }
  .bf-proc > li:nth-child(2n)::after { right: 0; }
}
@media (max-width: 900px) {
  .bf-proc > li::after { top: 46px; bottom: -24px; left: 20px; right: auto !important; width: 2px; height: auto; transform-origin: center top; }
  .bf-proc > li:last-child::after { display: none; }
  .bf-proc.bf-revela-listo > li::after { transform: scaleY(0); }
  .bf-proc.bf-revela-listo.is-visto > li::after { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bf-gan-p, .bf-proc::after { display: none; }
  .bf-gan-anillo, .bf-gan-hub .bf-gan-hex, .bf-proc .bf-proc-n, .bf-gan-centro .bf-logo-giro { animation: none !important; }
}

/* ---------- Artículo: barra de lectura bajo la cabecera ----------
   «Todos los artículos» acompaña al lector al bajar, con el título y una línea de
   progreso. Sale de debajo de la cabecera; bitflow.js la coloca justo bajo ella. */
.bf-lectura { position: fixed; left: 0; right: 0; top: 77px; z-index: 45; background: var(--bf-paper, #FFFFFF); border-bottom: 1px solid var(--bf-line, #E3EAEF); box-shadow: 0 10px 24px rgba(0, 30, 48, .08); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease, visibility 0s linear .35s; }
.bf-lectura.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.bf-lectura-in { max-width: 1240px; margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; gap: 20px; }
.bf-lectura-volver { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid var(--bf-line-2, #D5DFE6); color: var(--bf-ink, #0E1A22); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.bf-lectura-volver svg { color: var(--bf-accent, #06607F); transition: transform .25s ease; }
.bf-lectura-volver:hover, .bf-lectura-volver:focus-visible { background: var(--bf-paper-2, #F4F7F9); border-color: var(--bf-accent, #06607F); color: var(--bf-ink, #0E1A22); }
.bf-lectura-volver:hover svg, .bf-lectura-volver:focus-visible svg { transform: translateX(-4px); }
.bf-lectura-t { margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; font-weight: 500; color: var(--bf-ink-3, #4A5A66); }
.bf-lectura-progreso { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #6CCFF6; transform: scaleX(0); transform-origin: left center; }
.bf-dark .bf-lectura { box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.bf-dark .bf-lectura-volver svg { color: #6CCFF6; }
@media (max-width: 640px) {
  .bf-lectura-in { padding: 8px 16px; gap: 12px; }
  .bf-lectura-t { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .bf-lectura, .bf-lectura-volver svg { transition: none; } }

/* ---------- Conócenos · Misión y visión: se elevan y su hexágono gira al pasar el cursor ---------- */
.bf-mv-c { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.bf-mv-c:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px #6CCFF6, 0 24px 48px rgba(0, 30, 48, .22); }
.bf-mv-c2:hover { border-color: #6CCFF6; box-shadow: 0 24px 48px rgba(0, 30, 48, .12); }
.bf-mv-hex { transition: transform .7s cubic-bezier(.2, .7, .2, 1), background-color .35s ease; }
.bf-mv-c:hover .bf-mv-hex { transform: rotate(60deg) scale(1.25); background: rgba(108, 207, 246, .2); }
.bf-mv-c2:hover .bf-mv-hex { background: rgba(255, 216, 77, .45); }
.bf-mv-c > p:first-of-type { transition: letter-spacing .35s ease; }
.bf-mv-c:hover > p:first-of-type { letter-spacing: .12em; }
@media (prefers-reduced-motion: reduce) {
  .bf-mv-c, .bf-mv-hex, .bf-mv-c > p:first-of-type { transition: none; }
  .bf-mv-c:hover { transform: none; }
}

/* ---------- Partners · Ecosistema: cada bloque de tecnologías se eleva al pasar el cursor ---------- */
.bf-tec-b { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.bf-tec-b:hover { transform: translateY(-5px); border-color: #6CCFF6; box-shadow: 0 22px 44px rgba(0, 30, 48, .1); }
.bf-tec-b > p:first-child { transition: letter-spacing .35s ease; }
.bf-tec-b:hover > p:first-child { letter-spacing: .12em !important; }
.bf-tec-b .bf-tagc { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.bf-tec-b:hover .bf-tagc { background: #E1F3FB; }
.bf-tec-b .bf-tagc:hover { background: #003E63; color: #FFFFFF; transform: translateY(-2px); }
.bf-dark .bf-tec-b:hover .bf-tagc { background: rgba(108, 207, 246, .16); }
.bf-dark .bf-tec-b .bf-tagc:hover { background: #6CCFF6; color: #00273F; }

/* ---------- Sostenibilidad · Sello VSME: se eleva y su barra amarilla brilla ---------- */
.bf-sello { position: relative; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.bf-sello::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at 85% 0%, rgba(108, 207, 246, .18), transparent 60%); opacity: 0; transition: opacity .4s ease; }
.bf-sello:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px #6CCFF6, -6px 0 22px -6px rgba(255, 216, 77, .7), 0 24px 48px rgba(0, 30, 48, .22); }
.bf-sello:hover::after { opacity: 1; }
.bf-sello > p:first-child { transition: letter-spacing .35s ease; }
.bf-sello:hover > p:first-child { letter-spacing: .12em !important; }

@media (prefers-reduced-motion: reduce) {
  .bf-tec-b, .bf-tec-b .bf-tagc, .bf-sello, .bf-sello::after { transition: none; }
  .bf-tec-b:hover, .bf-sello:hover, .bf-tec-b .bf-tagc:hover { transform: none; }
}

/* Fotos de cabecera recortadas en el propio diseño (hexágono de puntas redondeadas y borde blanco) */
svg.bf-hero-hex { aspect-ratio: 460 / 432; height: auto; overflow: visible; }

/* ---------- Arquitectura de referencia: la leyenda señala sus cajas ----------
   Al pasar el cursor (o el foco) por un tipo de la leyenda, sus cajas se elevan y laten
   en su color, una tras otra, y el resto se atenúa. */
.bf-leyenda li { cursor: default; margin: -6px -10px; padding: 6px 10px; border-radius: 8px; transition: background-color .2s ease; }
.bf-leyenda li:hover, .bf-leyenda li:focus-visible { background: rgba(108, 207, 246, .12); outline: none; }
.bf-cat-existente { --bf-ley: #8FB6CE; }
.bf-cat-construimos { --bf-ley: #6CCFF6; }
.bf-cat-consumidor { --bf-ley: #FFD84D; }
.bf-cat-existente, .bf-cat-construimos, .bf-cat-consumidor { transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease; }
#arquitectura:has(.bf-leyenda li:hover, .bf-leyenda li:focus-visible) :is(.bf-cat-existente, .bf-cat-construimos, .bf-cat-consumidor) { opacity: .25; }
#arquitectura:has(.bf-leyenda .bf-ley-existente:hover, .bf-leyenda .bf-ley-existente:focus-visible) .bf-cat-existente,
#arquitectura:has(.bf-leyenda .bf-ley-construimos:hover, .bf-leyenda .bf-ley-construimos:focus-visible) .bf-cat-construimos,
#arquitectura:has(.bf-leyenda .bf-ley-consumidor:hover, .bf-leyenda .bf-ley-consumidor:focus-visible) .bf-cat-consumidor {
  opacity: 1; transform: translateY(-3px); animation: bf-ley-late 1.6s ease-in-out infinite;
}
/* Cascada: cada caja empieza a latir un poco después que la anterior */
#arquitectura .bf-layer-row > li:nth-child(2) { animation-delay: .1s; }
#arquitectura .bf-layer-row > li:nth-child(3) { animation-delay: .2s; }
#arquitectura .bf-layer-row > li:nth-child(4) { animation-delay: .3s; }
#arquitectura .bf-layer-row > li:nth-child(5) { animation-delay: .4s; }
#arquitectura .bf-layer-row > li:nth-child(6) { animation-delay: .5s; }
@keyframes bf-ley-late {
  0%, 100% { box-shadow: 0 0 0 2px var(--bf-ley), 0 10px 26px rgba(0, 0, 0, .35); }
  50% { box-shadow: 0 0 0 2px var(--bf-ley), 0 0 26px color-mix(in srgb, var(--bf-ley) 55%, transparent), 0 10px 26px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) {
  #arquitectura :is(.bf-cat-existente, .bf-cat-construimos, .bf-cat-consumidor) { transition: none; animation: none !important; transform: none !important; }
  #arquitectura:has(.bf-leyenda li:hover, .bf-leyenda li:focus-visible) :is(.bf-cat-existente, .bf-cat-construimos, .bf-cat-consumidor) { box-shadow: none; }
  #arquitectura:has(.bf-leyenda .bf-ley-existente:hover, .bf-leyenda .bf-ley-existente:focus-visible) .bf-cat-existente,
  #arquitectura:has(.bf-leyenda .bf-ley-construimos:hover, .bf-leyenda .bf-ley-construimos:focus-visible) .bf-cat-construimos,
  #arquitectura:has(.bf-leyenda .bf-ley-consumidor:hover, .bf-leyenda .bf-ley-consumidor:focus-visible) .bf-cat-consumidor { box-shadow: 0 0 0 2px var(--bf-ley); }
}

/* ---------- Arquitectura de referencia: pestañas por sector ----------
   Radios (funcionan sin JavaScript y con las flechas del teclado). El indicador se
   desliza a la pestaña elegida y el contenido entra desde ese lado. */
.bf-sector-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bf-sector-tabs { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 40px 0 0; padding: 5px; border-radius: 999px; background: #012F4C; border: 1px solid #1C4560; }
.bf-sector-tabs label { position: relative; z-index: 1; min-width: 132px; padding: 11px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; text-align: center; color: #CFE3EF; cursor: pointer; user-select: none; transition: color .3s ease; }
.bf-sector-tabs label:hover { color: #FFFFFF; }
.bf-sector-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 2); border-radius: 999px; background: #6CCFF6; box-shadow: 0 6px 18px rgba(108, 207, 246, .35); transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
#bf-sector-aviacion:checked ~ .bf-sector-tabs .bf-sector-ind { transform: translateX(100%); }
#bf-sector-banca:checked ~ .bf-sector-tabs label[for="bf-sector-banca"],
#bf-sector-aviacion:checked ~ .bf-sector-tabs label[for="bf-sector-aviacion"] { color: #00273F; }
#bf-sector-banca:focus-visible ~ .bf-sector-tabs label[for="bf-sector-banca"],
#bf-sector-aviacion:focus-visible ~ .bf-sector-tabs label[for="bf-sector-aviacion"] { outline: 3px solid #FFD84D; outline-offset: 3px; }
.bf-sector-panel { display: none; }
.bf-sector-intro { margin: 28px 0 0; max-width: 72ch; font-size: 16.5px; line-height: 1.7; color: #A8C9DC; }
.bf-sector-panel .bf-leyenda { margin-top: 24px !important; }
#bf-sector-banca:checked ~ .bf-sector-p-banca { display: block; animation: bf-sector-izq .55s cubic-bezier(.2, .7, .2, 1); }
#bf-sector-aviacion:checked ~ .bf-sector-p-aviacion { display: block; animation: bf-sector-der .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes bf-sector-izq { from { opacity: 0; transform: translateX(-32px); } }
@keyframes bf-sector-der { from { opacity: 0; transform: translateX(32px); } }
@media (max-width: 640px) {
  .bf-sector-tabs { display: grid; width: 100%; }
  .bf-sector-tabs label { min-width: 0; padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-sector-ind, .bf-sector-tabs label { transition: none; }
  .bf-sector-panel { animation: none !important; }
}

/* ---------- Formulario: "Selecciona tu perfil" con la misma lista que la web ----------
   La web (formulario de Elementor, extra.css) ya la muestra con diseño propio; aquí el
   formulario del lienzo hace lo mismo, en escritorio y en móvil. Donde el navegador no
   admite el select personalizable se ve la lista nativa, que funciona igual. */
@supports (appearance: base-select) {
  select.bf-input, select.bf-input::picker(select) { appearance: base-select; }
  select.bf-input { display: flex; align-items: center; }
  select.bf-input::picker-icon { display: none; }
  select.bf-input::picker(select) {
    margin-top: 8px; padding: 6px; border: 1px solid var(--bf-line-2, #D5DFE6); border-radius: 14px;
    background: var(--bf-paper, #FFFFFF); box-shadow: 0 20px 44px rgba(0, 30, 48, .16);
    opacity: 0; translate: 0 -6px;
    transition: opacity .18s ease, translate .22s cubic-bezier(.2, .7, .2, 1), overlay .22s allow-discrete, display .22s allow-discrete;
  }
  select.bf-input:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { select.bf-input:open::picker(select) { opacity: 0; translate: 0 -6px; } }
  select.bf-input option {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; cursor: pointer;
    font-family: inherit; font-size: 15px; line-height: 1.3; color: var(--bf-ink-2, #2C3E4B); background: transparent; transition: background-color .15s ease, color .15s ease;
  }
  select.bf-input option:hover, select.bf-input option:focus-visible { outline: none; background: var(--bf-tag, #EEF4F8); color: var(--bf-ink, #0E1A22); }
  select.bf-input option:checked { background: #003E63; color: #FFFFFF; font-weight: 600; }
  select.bf-input option::checkmark { order: 1; margin-left: auto; color: #6CCFF6; }
  select.bf-input option[value=""] { color: var(--bf-ink-4, #5C6D79); }
  select.bf-input option[value=""]:checked { background: transparent; color: var(--bf-ink-4, #5C6D79); font-weight: 400; }
  select.bf-input option[value=""]::checkmark { display: none; }
  select.bf-input + svg { transition: transform .2s ease; }
  select.bf-input:open + svg { transform: rotate(180deg); }
  .bf-dark select.bf-input option:checked { background: #6CCFF6; color: #00273F; }
  @media (prefers-reduced-motion: reduce) {
    select.bf-input::picker(select), select.bf-input option, select.bf-input + svg { transition: none; }
  }
}

/* ---------- Conócenos, "Cómo somos": retrato del CEO con la foto del equipo ----------
   El retrato manda; la foto del equipo se apoya en su esquina inferior (sobre el fondo,
   sin tapar la cara), el nombre y el cargo van debajo del retrato, a su lado, y un
   hexágono de la marca llena el hueco de arriba a la derecha. Las medidas van en % del
   ancho (y cqw) para que la composición sea la misma en móvil. */
.bf-ceo { container-type: inline-size; position: relative; max-width: 560px; margin: 0; padding: 0 0 24%; }
.bf-ceo-retrato { position: relative; z-index: 1; display: block; width: 66%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 20px; box-shadow: 0 24px 48px rgba(0, 30, 48, .18); }
.bf-ceo-equipo { position: absolute; z-index: 2; right: 0; bottom: 0; width: 50%; height: auto; aspect-ratio: 946 / 844; object-fit: cover; border-radius: 16px; border: 6px solid var(--bf-paper, #FFFFFF); box-shadow: 0 18px 40px rgba(0, 30, 48, .2); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.bf-ceo-hex { position: absolute; z-index: 0; top: 6%; right: 2%; width: 40%; height: auto; }
.bf-ceo:hover .bf-ceo-equipo { transform: translateY(-6px); }
/* Pie: nombre, cargo y empresa, con la barra celeste de la marca */
.bf-ceo-pie { position: absolute; left: 0; top: calc(82.5cqw + 18px); width: 44cqw; display: flex; flex-direction: column; gap: 3px; padding: 2px 0 2px 14px; border-left: 3px solid #6CCFF6; }
.bf-ceo-nombre { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--bf-ink, #0E1A22); }
.bf-ceo-cargo { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.4; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--bf-accent, #06607F); }
.bf-ceo-empresa { font-size: 14px; line-height: 1.4; color: var(--bf-ink-3, #4A5A66); }
.bf-dark .bf-ceo-cargo { color: #6CCFF6; }
@media (max-width: 900px) {
  .bf-ceo { margin: 0 auto 8px; }
}
@media (max-width: 600px) {
  .bf-ceo { padding-bottom: 30%; }
  .bf-ceo-nombre { font-size: 17px; }
  .bf-ceo-cargo { font-size: 11.5px; }
  .bf-ceo-empresa { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-ceo-equipo { transition: none; }
  .bf-ceo:hover .bf-ceo-equipo { transform: none; }
}

/* ---------- Formulario de contacto (formulario.php y Formulario.dc.html) ---------- */
.bf-form { display: flex; flex-direction: column; gap: 26px; margin: 0; }
/* En el lienzo, los bloques condicionales no deben romper la rejilla de campos */
.bf-form-card sc-if { display: contents; }
.bf-form[hidden] { display: none; }
.bf-form-titulo { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--bf-ink, #0E1A22); }
.bf-form-nota { margin: 8px 0 0; font-size: 14px; color: var(--bf-ink-3, #4A5A66); }
.bf-form .bf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.bf-form .bf-field-ancho { grid-column: 1 / -1; }
.bf-form-sel { position: relative; }
.bf-form-sel > svg { position: absolute; right: 16px; top: 50%; margin-top: -6px; pointer-events: none; color: var(--bf-ink-3, #4A5A66); }
.bf-form select.bf-input { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-form .bf-input[aria-invalid="true"] { border-color: var(--bf-req, #B42318); }
.bf-field-error { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--bf-req, #B42318); }
.bf-field-error[hidden] { display: none; }
.bf-form-checks { display: flex; flex-direction: column; gap: 14px; }
.bf-form-check { display: flex; gap: 12px; align-items: flex-start; }
.bf-form-check label { font-size: 14.5px; line-height: 1.5; color: var(--bf-ink-2, #2C3E4B); cursor: pointer; }
.bf-form-check a { color: var(--bf-accent, #06607F); text-decoration: underline; }
.bf-form-check .bf-check[aria-invalid="true"] { outline: 2px solid var(--bf-req, #B42318); outline-offset: 2px; }
.bf-form-checks .bf-field-error { margin-top: -6px; padding-left: 32px; }
.bf-form-pie { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-top: 22px; border-top: 1px solid var(--bf-line, #E3EAEF); }
.bf-form-pie .bf-btn { justify-content: center; width: 100%; }
.bf-form-pie .bf-btn:disabled { opacity: .75; cursor: progress; }
.bf-form-estado { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--bf-ink-2, #2C3E4B); }
.bf-form-estado:empty { display: none; }
.bf-form-estado.is-error { color: var(--bf-req, #B42318); }
.bf-recaptcha:empty { display: none; }
.bf-recaptcha .grecaptcha-badge { border-radius: 4px; overflow: hidden; }
.bf-form-trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Currículum: la caja hace de botón; el input real queda oculto pero enfocable */
.bf-archivo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bf-archivo { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; border: 1.5px dashed var(--bf-line-2, #D5DFE6); border-radius: 10px; background: var(--bf-input, #F7F9FB); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.bf-archivo:hover { border-color: #9DB3C3; }
.bf-archivo-input:focus-visible + .bf-archivo { border-color: var(--bf-accent, #06607F); background: var(--bf-paper, #FFFFFF); box-shadow: 0 0 0 3px rgba(108, 207, 246, .4); }
.bf-archivo > svg { flex: 0 0 auto; color: var(--bf-accent, #06607F); }
.bf-archivo-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bf-archivo-nombre { font-size: 15px; font-weight: 500; color: var(--bf-ink, #0E1A22); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-archivo-ayuda { font-size: 13px; color: var(--bf-ink-3, #4A5A66); }
.bf-archivo.has-file { border-style: solid; border-color: var(--bf-accent, #06607F); background: var(--bf-paper, #FFFFFF); padding-right: 126px; }
/* Quitar el archivo elegido: botón a la derecha de la caja (solo con archivo) */
.bf-archivo-caja { position: relative; }
.bf-archivo-quitar { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 11px; border: 1px solid var(--bf-line-2, #D5DFE6); border-radius: 999px; background: var(--bf-paper, #FFFFFF); color: var(--bf-ink-2, #2C3E4B); font: inherit; font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s, box-shadow .15s; }
.bf-archivo-quitar[hidden] { display: none; }
.bf-archivo-quitar:hover, .bf-archivo-quitar:focus-visible { color: var(--bf-req, #B42318); border-color: currentColor; background: rgba(180, 35, 24, .06); outline: none; }
.bf-archivo-quitar:focus-visible { box-shadow: 0 0 0 3px rgba(180, 35, 24, .22); }
@media (max-width: 480px) {
  .bf-archivo.has-file { padding-right: 64px; }
  .bf-archivo-quitar { width: 38px; min-height: 38px; padding: 0; justify-content: center; }
  .bf-archivo-quitar span { display: none; }
}
/* Arrastrar y soltar: la ayuda lo dice solo con ratón; la caja se resalta con el archivo encima */
.bf-archivo-arrastra { display: none; }
@media (hover: hover) and (pointer: fine) {
  .bf-archivo-arrastra { display: inline; }
}
.bf-archivo.has-file .bf-archivo-arrastra { display: none; }
.bf-archivo.is-arrastrando { border-style: solid; border-color: var(--bf-accent, #06607F); background: rgba(108, 207, 246, .14); box-shadow: 0 0 0 4px rgba(108, 207, 246, .28); }
.bf-archivo.is-arrastrando > svg { animation: bf-archivo-salta .8s ease-in-out infinite; }
@keyframes bf-archivo-salta { 50% { transform: translateY(-3px); } }
.bf-archivo-input[aria-invalid="true"] + .bf-archivo { border-color: var(--bf-req, #B42318); }
.bf-dark .bf-archivo > svg, .bf-dark .bf-form-check a { color: #6CCFF6; }
/* Enviado */
.bf-form-ok { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0; outline: none; }
.bf-form-ok-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(108, 207, 246, .2); color: #06607F; animation: bf-form-ok .5s cubic-bezier(.2, .7, .2, 1); }
.bf-form-ok p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--bf-ink-2, #2C3E4B); }
.bf-dark .bf-form-ok-ico { color: #6CCFF6; }
@keyframes bf-form-ok { from { transform: scale(.6); opacity: 0; } }
@media (max-width: 900px) {
  .bf-form .bf-form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bf-archivo, .bf-archivo-quitar { transition: none; }
  .bf-archivo.is-arrastrando > svg, .bf-form-ok-ico { animation: none; }
}

/* ---------- Servicios: los cuatro puntos de cada servicio en el bróker ---------- */
.bf-svc-hub .bf-svc-list { display: grid; gap: 12px; }
.bf-svc-hub .bf-svc-list > li { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 16px 20px; font-size: 15.5px; line-height: 1.55; }
@media (max-width: 640px) {
  /* En móvil el eje del bróker se oculta (servicio-dinamico.css): la lista, a todo el ancho */
  .bf-svc-hub { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Arquitectura de referencia plegada (portada, 2026-11-03) ----------
   Dos tarjetas para elegir sector; hasta entonces no se ve ningún diagrama. Radios: el
   tercero (#bf-sector-ninguno), marcado al cargar, es el estado plegado. */
.bf-sectores-plegable .bf-sector-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 840px; margin: 36px 0 0; }
.bf-sector-op { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid #1C4560; border-radius: 14px; background: #012F4C; cursor: pointer; user-select: none; transition: border-color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.bf-sector-op:hover { border-color: #6CCFF6; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.bf-sector-op-t { font-size: 19px; font-weight: 600; color: #FFFFFF; }
.bf-sector-op-d { font-size: 14.5px; line-height: 1.55; color: #A8C9DC; }
.bf-sector-op-v { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #6CCFF6; }
.bf-sector-op-v svg { transition: transform .3s ease; }
.bf-sector-op-abierta { display: none; }
#bf-sector-banca:checked ~ .bf-sector-ops label[for="bf-sector-banca"],
#bf-sector-aviacion:checked ~ .bf-sector-ops label[for="bf-sector-aviacion"] { border-color: #6CCFF6; background: #013E63; box-shadow: inset 0 0 0 1px #6CCFF6; transform: none; }
#bf-sector-banca:checked ~ .bf-sector-ops label[for="bf-sector-banca"] .bf-sector-op-ver,
#bf-sector-aviacion:checked ~ .bf-sector-ops label[for="bf-sector-aviacion"] .bf-sector-op-ver { display: none; }
#bf-sector-banca:checked ~ .bf-sector-ops label[for="bf-sector-banca"] .bf-sector-op-abierta,
#bf-sector-aviacion:checked ~ .bf-sector-ops label[for="bf-sector-aviacion"] .bf-sector-op-abierta { display: inline; color: #FFD84D; }
#bf-sector-banca:checked ~ .bf-sector-ops label[for="bf-sector-banca"] svg,
#bf-sector-aviacion:checked ~ .bf-sector-ops label[for="bf-sector-aviacion"] svg { transform: rotate(180deg); color: #FFD84D; }
#bf-sector-banca:focus-visible ~ .bf-sector-ops label[for="bf-sector-banca"],
#bf-sector-aviacion:focus-visible ~ .bf-sector-ops label[for="bf-sector-aviacion"],
#bf-sector-ninguno:focus-visible ~ .bf-sector-ops .bf-sector-op:first-child { outline: 3px solid #FFD84D; outline-offset: 3px; }
/* Minimizar, al final de cada panel (arriba ya está la tarjeta: «Ocultar la arquitectura») */
.bf-sector-cerrar { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 9px 16px; border: 1px solid #1C4560; border-radius: 999px; font-size: 14px; font-weight: 600; color: #CFE3EF; cursor: pointer; user-select: none; transition: border-color .2s ease, color .2s ease; }
.bf-sector-cerrar:hover { border-color: #6CCFF6; color: #FFFFFF; }
.bf-sector-cerrar-abajo { margin-top: 40px; }
/* Despliegue: baja y aparece, en vez de entrar de lado como las pestañas */
.bf-sectores-plegable #bf-sector-banca:checked ~ .bf-sector-p-banca,
.bf-sectores-plegable #bf-sector-aviacion:checked ~ .bf-sector-p-aviacion { animation: bf-sector-abrir .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes bf-sector-abrir { from { opacity: 0; transform: translateY(-14px); } }
@media (max-width: 640px) {
  .bf-sectores-plegable .bf-sector-ops { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bf-sector-op, .bf-sector-op-v svg { transition: none; }
  .bf-sectores-plegable .bf-sector-panel { animation: none !important; }
}

/* Células de ingeniería y sesión de descubrimiento (paginas-nuevas.py, aprobadas el 2026-10-30) */

/* Tres pasos en lugar de cuatro */
.bf-proc-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Células: la coordinación entre dos equipos (ejemplo España–Panamá) */
.bf-relevo { position: relative; margin: 0; padding: 32px; border-radius: 16px; background: var(--bf-paper, #FFFFFF); border: 1px solid var(--bf-line, #E3EAEF); }
.bf-relevo { padding-top: 48px; }
.bf-relevo-fila { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 24px; }
.bf-relevo-fila + .bf-relevo-fila { margin-top: 18px; }
.bf-relevo-pais { display: flex; flex-direction: column; gap: 2px; font-size: 17px; font-weight: 600; }
.bf-relevo-pais small { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 400; color: var(--bf-ink-4, #5C6D79); }
.bf-relevo-pista { position: relative; display: block; height: 40px; border-radius: 8px; background: var(--bf-paper-2, #F4F7F9); }
.bf-relevo-barra { position: absolute; top: 0; bottom: 0; border-radius: 8px; transform-origin: left center; }
.bf-relevo-es { background: #003E63; }
.bf-relevo-pa { background: #6CCFF6; }
.bf-relevo-eje .bf-relevo-pista { height: 20px; background: none; }
.bf-relevo-eje .bf-relevo-pista span { position: absolute; top: 0; transform: translateX(-50%); font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--bf-ink-4, #5C6D79); }
/* La coordinación: la franja en la que coinciden los dos equipos, en cada pista */
.bf-relevo-traspaso { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed #FFD84D; border-right: 2px dashed #FFD84D; background: rgba(255, 216, 77, 0.16); }
.bf-relevo-etq { position: absolute; top: -26px; transform: translateX(-50%); font-family: 'IBM Plex Mono', monospace; font-style: normal; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #8A6D00; background: var(--bf-paper, #FFFFFF); padding: 0 6px; white-space: nowrap; }
.bf-relevo figcaption { margin: 28px 0 0; max-width: 80ch; font-size: 15px; line-height: 1.65; color: var(--bf-ink-3, #4A5A66); }
.bf-dark .bf-relevo { background: var(--bf-paper, #0E1A22); }
.bf-dark .bf-relevo-etq { color: #FFD84D; background: var(--bf-paper, #0E1A22); }
/* Las barras crecen al entrar en pantalla (bf-revela marca .is-visto) */
@media (prefers-reduced-motion: no-preference) {
  .bf-relevo.bf-revela-listo .bf-relevo-barra { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
  .bf-relevo.bf-revela-listo .bf-relevo-pa { transition-delay: .5s; }
  .bf-relevo.is-visto .bf-relevo-barra { transform: scaleX(1); }
}

/* Descubrimiento: consejos y calendario */
.bf-consejos-caja { margin-top: 32px; padding: 28px; border-radius: 16px; background: var(--bf-paper, #FFFFFF); border: 1px solid var(--bf-line, #E3EAEF); box-shadow: 0 1px 2px rgba(0, 62, 99, .04); }
.bf-consejos-titulo { margin: 0 0 20px; font-size: 18px; font-weight: 600; }
.bf-consejos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bf-consejos li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--bf-line, #E3EAEF); font-size: 14.5px; line-height: 1.55; color: var(--bf-ink-3, #4A5A66); }
.bf-consejos li:first-child { border-top: 0; padding-top: 0; }
.bf-consejos li:last-child { padding-bottom: 0; }
.bf-consejos strong { display: block; margin-bottom: 2px; font-size: 15.5px; font-weight: 600; color: var(--bf-ink, #0B1F2E); }
.bf-consejos-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bf-tag, #EEF4F8); color: var(--bf-accent, #06607F); }
.bf-consejos li.bf-consejos-nota .bf-consejos-ico { background: #003E63; color: #6CCFF6; }
/* Resaltado al pasar el cursor: la fila se ilumina y el icono pasa a azul oscuro, como las tarjetas */
.bf-consejos li { margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-radius: 12px; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.bf-consejos li:first-child { padding-top: 14px; }
.bf-consejos li:last-child { padding-bottom: 14px; }
.bf-consejos li:first-child { margin-top: -14px; }
.bf-consejos li:last-child { margin-bottom: -14px; }
.bf-consejos-ico, .bf-consejos strong { transition: background-color .25s ease, color .25s ease; }
.bf-consejos li:hover { background: var(--bf-tag, #EEF4F8); border-top-color: transparent; transform: translateX(4px); }
.bf-consejos li:hover + li { border-top-color: transparent; }
.bf-consejos li:hover .bf-consejos-ico { background: #003E63; color: #6CCFF6; }
.bf-consejos li:hover strong { color: var(--bf-accent, #06607F); }
@media (prefers-reduced-motion: reduce) { .bf-consejos li:hover { transform: none; } }
.bf-cal { border-radius: 16px; background: var(--bf-paper, #FFFFFF); border: 1px solid var(--bf-line, #E3EAEF); overflow: hidden; }
.bf-cal-aviso { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px; }
.bf-cal-marco { min-height: 640px; }

@media (max-width: 1100px) {
  .bf-proc-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bf-proc-3 { grid-template-columns: minmax(0, 1fr); }
  .bf-relevo { padding: 24px 20px; }
  .bf-relevo-fila { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bf-cal-aviso { padding: 28px 24px; }
}
/* El gráfico de la coordinación se resalta al pasar el cursor, como las tarjetas */
.bf-relevo { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.bf-relevo:hover { border-color: #6CCFF6; box-shadow: 0 16px 40px rgba(0, 62, 99, .12); transform: translateY(-3px); }
.bf-relevo-traspaso { transition: background-color .25s ease; }
.bf-relevo:hover .bf-relevo-traspaso { background: rgba(255, 216, 77, 0.30); }
.bf-dark .bf-relevo:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) { .bf-relevo:hover { transform: none; } }

/* ---------- Portada: fondo animado (flujo de eventos sobre la malla viva) ---------- */
.bf-alt { position: absolute; top: 0; left: 0; right: 0; height: 660px; pointer-events: none; z-index: 0; }
.bf-alt svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bf-alt-txt { font-size: 12px; }
.bf-quieto .bf-alt .bf-anim { animation: none !important; }
.bf-quieto .bf-alt .bf-msg { display: none; }

/* Malla viva (la pinta bfMalla en un canvas a todo el ancho) */
.bf-malla { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
/* Hero de las páginas interiores con la misma malla (malla-interiores.py): el contenido, encima.
   Sin overflow: hidden, porque la foto del artículo sobresale por debajo de su cabecera */
.bf-malla-hero { position: relative; }
.bf-malla-hero > :not(.bf-malla) { position: relative; z-index: 1; }
/* La sección siguiente se pinta encima del azul (y de la malla) donde la foto del artículo
   se solapa con ella; la foto, en z-index 1, sigue por encima de las dos */
.bf-malla-hero + .bf-section { position: relative; }

/* Foco de luz que sigue al cursor */
.bf-alt-luz { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; background: radial-gradient(320px circle at var(--mx, 75%) var(--my, 50%), rgba(108, 207, 246, .14), rgba(108, 207, 246, .04) 50%, transparent 72%); }
.bf-alt.is-activa .bf-alt-luz { opacity: 1; }

/* Flujo de eventos */
.bf-carril { stroke-opacity: .55; }
.bf-msg { stroke-dasharray: 3 100; animation-name: bf-flow; animation-timing-function: linear; animation-iteration-count: infinite; }

.bf-flujo-luz { opacity: 0; transition: opacity .5s ease; -webkit-mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 75%); mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 75%); }
.bf-alt-flujo.is-activa .bf-flujo-luz { opacity: 1; }
.bf-broker { transform-box: fill-box; transform-origin: center; transition: transform .5s ease, filter .5s ease; }
.bf-alt-flujo.is-rapida .bf-broker, .bf-alt-flujo:has(.bf-fn:hover) .bf-broker { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(108, 207, 246, .65)); }
.bf-fn { pointer-events: auto; cursor: default; }
.bf-fn-n { fill: #8FB6CE; transition: fill .3s ease; }
.bf-fn-tip { fill: #6CCFF6; font-size: 11px; opacity: 0; transition: opacity .3s ease; }
.bf-carril { transition: stroke .3s ease, stroke-opacity .3s ease; }
.bf-alt-flujo:has(.bf-fn:hover) > svg { -webkit-mask-image: none !important; mask-image: none !important; }
.bf-alt-flujo:has(.bf-fn:hover) .bf-carril { stroke-opacity: .12; }
.bf-alt-flujo:has(.bf-fn:hover) .bf-msg { opacity: .1 !important; }
.bf-alt-flujo:has(.bf-fn:hover) .bf-fn-n { fill: #3F6E8C; }
.bf-alt-flujo:has(.fn-s0:hover) .bf-carril.r-s0,
.bf-alt-flujo:has(.fn-s1:hover) .bf-carril.r-s1,
.bf-alt-flujo:has(.fn-s2:hover) .bf-carril.r-s2,
.bf-alt-flujo:has(.fn-s3:hover) .bf-carril.r-s3,
.bf-alt-flujo:has(.fn-s4:hover) .bf-carril.r-s4,
.bf-alt-flujo:has(.fn-s5:hover) .bf-carril.r-s5,
.bf-alt-flujo:has(.fn-d0:hover) .bf-carril.r-d0,
.bf-alt-flujo:has(.fn-d1:hover) .bf-carril.r-d1,
.bf-alt-flujo:has(.fn-d2:hover) .bf-carril.r-d2,
.bf-alt-flujo:has(.fn-d3:hover) .bf-carril.r-d3 { stroke: #6CCFF6; stroke-opacity: .95; stroke-width: 1.6; }
.bf-alt-flujo:has(.fn-s0:hover) .bf-msg.r-s0,
.bf-alt-flujo:has(.fn-s1:hover) .bf-msg.r-s1,
.bf-alt-flujo:has(.fn-s2:hover) .bf-msg.r-s2,
.bf-alt-flujo:has(.fn-s3:hover) .bf-msg.r-s3,
.bf-alt-flujo:has(.fn-s4:hover) .bf-msg.r-s4,
.bf-alt-flujo:has(.fn-s5:hover) .bf-msg.r-s5,
.bf-alt-flujo:has(.fn-d0:hover) .bf-msg.r-d0,
.bf-alt-flujo:has(.fn-d1:hover) .bf-msg.r-d1,
.bf-alt-flujo:has(.fn-d2:hover) .bf-msg.r-d2,
.bf-alt-flujo:has(.fn-d3:hover) .bf-msg.r-d3 { opacity: 1 !important; stroke-width: 3.5; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .6)); }
.bf-alt-flujo:has(.fn-s0:hover) .bf-fn-n.r-s0,
.bf-alt-flujo:has(.fn-s1:hover) .bf-fn-n.r-s1,
.bf-alt-flujo:has(.fn-s2:hover) .bf-fn-n.r-s2,
.bf-alt-flujo:has(.fn-s3:hover) .bf-fn-n.r-s3,
.bf-alt-flujo:has(.fn-s4:hover) .bf-fn-n.r-s4,
.bf-alt-flujo:has(.fn-s5:hover) .bf-fn-n.r-s5,
.bf-alt-flujo:has(.fn-d0:hover) .bf-fn-n.r-d0,
.bf-alt-flujo:has(.fn-d1:hover) .bf-fn-n.r-d1,
.bf-alt-flujo:has(.fn-d2:hover) .bf-fn-n.r-d2,
.bf-alt-flujo:has(.fn-d3:hover) .bf-fn-n.r-d3 { fill: #FFFFFF; font-weight: 500; }
.bf-alt-flujo:has(.fn-s0:hover) .bf-fn-tip.r-s0,
.bf-alt-flujo:has(.fn-s1:hover) .bf-fn-tip.r-s1,
.bf-alt-flujo:has(.fn-s2:hover) .bf-fn-tip.r-s2,
.bf-alt-flujo:has(.fn-s3:hover) .bf-fn-tip.r-s3,
.bf-alt-flujo:has(.fn-s4:hover) .bf-fn-tip.r-s4,
.bf-alt-flujo:has(.fn-s5:hover) .bf-fn-tip.r-s5,
.bf-alt-flujo:has(.fn-d0:hover) .bf-fn-tip.r-d0,
.bf-alt-flujo:has(.fn-d1:hover) .bf-fn-tip.r-d1,
.bf-alt-flujo:has(.fn-d2:hover) .bf-fn-tip.r-d2,
.bf-alt-flujo:has(.fn-d3:hover) .bf-fn-tip.r-d3 { opacity: 1; }

/* El logo del bróker gira despacio; sobre el dibujo acelera con el resto del tráfico */
.bf-logo-giro { transform-box: fill-box; transform-origin: center; animation: bf-giro 30s linear infinite; }
@keyframes bf-giro { to { transform: rotate(360deg); } }

/* Tablet y móvil: el dibujo no cabe junto al texto y pasa debajo de los botones,
   horizontal en tablet y vertical en móvil; la malla sigue de fondo */
.bf-flujo-compacto { display: none; }
.bf-flujo-compacto svg { display: block; width: 100%; height: auto; overflow: hidden; }
.bf-flujo-compacto .bf-fn-tip { display: none; }
.bf-quieto .bf-flujo-compacto .bf-anim { animation: none !important; }
.bf-quieto .bf-flujo-compacto .bf-msg { display: none; }
@media (max-width: 900px) {
  .bf-alt-flujo { display: none; }
  .bf-flujo-compacto { display: block; margin: 48px 0 0; }
  .bf-flujo-v { display: none !important; }
  .bf-flujo-h { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 639px) {
  .bf-flujo-compacto { margin-top: 40px; }
  .bf-flujo-h { display: none !important; }
  .bf-flujo-v { display: block !important; max-width: 420px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-alt .bf-anim, .bf-flujo-compacto .bf-anim { animation: none !important; }
  .bf-msg { display: none !important; }
}
/* fin fondos */

/* ==========================================================================
   Ajustes de la versión WordPress (lo de arriba es igual que en el lienzo)
   ========================================================================== */
body.bf-body { margin: 0; font-family: 'IBM Plex Sans', system-ui, sans-serif; color: #0E1A22; background: #FFFFFF; -webkit-font-smoothing: antialiased; }
.bf-root button, .bf-root input, .bf-root select, .bf-root textarea { font-family: inherit; }
.bf-root h1, .bf-root h2, .bf-root h3, .bf-root h4 { font-family: inherit; color: inherit; }
.bf-root [hidden] { display: none !important; }

/* Logo e iconos según el tema */
.bf-solo-oscuro { display: none !important; }
.bf-dark .bf-solo-claro { display: none !important; }
.bf-dark .bf-solo-oscuro { display: block !important; }

/* Con la barra de administración de WordPress, la cabecera fija baja con ella */
.admin-bar .bf-sticky { top: 32px !important; }
@media (max-width: 782px) { .admin-bar .bf-sticky { top: 46px !important; } }
/* Por debajo de 600 px la barra de WordPress no es fija (se va con el scroll): la cabecera, arriba del todo */
@media (max-width: 600px) { .admin-bar .bf-sticky { top: 0 !important; } }

.wp-dark-mode-floating-switch { display: none !important; }

/* ---------- Formulario real de Elementor con la piel del rediseño ---------- */
/* El widget trae un ancho fijo de la portada antigua: aquí ocupa la tarjeta entera */
.bf-form-card { overflow: hidden; }
.bf-form-elementor, .bf-form-elementor .elementor-widget-form, .bf-form-elementor .elementor-form { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.bf-form-elementor .elementor-widget-form > .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
/* La caja blanca que traía el widget de la portada antigua: fuera (la tarjeta ya hace de caja) */
.bf-form-elementor .elementor-widget-form, .bf-form-elementor .elementor-widget-container, .bf-form-elementor .elementor-form { background: transparent !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.bf-dark .bf-form-elementor .elementor-field-type-html h2 { color: var(--bf-ink, #E8F0F5) !important; }
.bf-form-elementor .elementor-form-fields-wrapper { margin: 0 -8px !important; row-gap: 16px; }
.bf-form-elementor .elementor-field-group { padding: 0 8px !important; margin-bottom: 0 !important; }
.bf-form-elementor .elementor-field-type-html h2 { margin: 0 0 6px !important; font-family: inherit !important; font-size: 28px !important; line-height: 1.2 !important; letter-spacing: -0.02em; font-weight: 600 !important; color: var(--bf-ink, #0E1A22) !important; }
.bf-form-elementor .elementor-field-textual,
.bf-form-elementor .elementor-select-wrapper select { font-family: inherit !important; font-size: 15px !important; line-height: 1.4 !important; min-height: 48px; padding: 12px 14px !important; border-radius: 8px !important; border: 1px solid var(--bf-line-2, #D5DFE6) !important; background: var(--bf-input, #F7F9FB) !important; color: var(--bf-ink, #0E1A22) !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.bf-form-elementor textarea.elementor-field-textual { min-height: 120px; resize: vertical; }
.bf-form-elementor .elementor-field-textual::placeholder { color: var(--bf-ink-4, #5C6D79) !important; opacity: 1; }
.bf-form-elementor .elementor-field-textual:hover { border-color: #9DB3C3 !important; }
.bf-form-elementor .elementor-field-textual:focus,
.bf-form-elementor .elementor-select-wrapper select:focus { outline: none !important; border-color: var(--bf-accent, #06607F) !important; background: var(--bf-paper, #FFFFFF) !important; box-shadow: 0 0 0 3px rgba(108, 207, 246, .4) !important; }
.bf-form-elementor .elementor-select-wrapper { background: transparent !important; border: 0 !important; padding: 0 !important; min-height: 0; }
.bf-form-elementor .elementor-select-wrapper select { width: 100%; -webkit-appearance: none; appearance: none; padding-right: 42px !important; }
.bf-form-elementor .select-caret-down-wrapper { right: 16px !important; }
.bf-form-elementor .select-caret-down-wrapper svg { fill: var(--bf-ink-3, #4A5A66) !important; }
.bf-form-elementor .elementor-field-option { display: flex; gap: 12px; align-items: flex-start; }
.bf-form-elementor .elementor-acceptance-field { -webkit-appearance: checkbox !important; appearance: auto !important; width: 20px !important; height: 20px !important; min-height: 0 !important; padding: 0 !important; margin: 1px 0 0 !important; border: 0 !important; border-radius: 4px !important; background: none !important; flex: 0 0 auto; accent-color: #003E63; }
.bf-dark .bf-form-elementor .elementor-acceptance-field { accent-color: #6CCFF6; }
.bf-form-elementor .elementor-field-option label { font-family: inherit !important; font-size: 14.5px !important; line-height: 1.5 !important; color: var(--bf-ink-2, #2C3E4B) !important; }
.bf-form-elementor .elementor-field-option label a { color: var(--bf-accent, #06607F) !important; text-decoration: underline; }
/* reCAPTCHA v3: su sello va a la vista, encima del botón, como en la web actual */
.bf-form-elementor .elementor-field-type-recaptcha_v3 { margin-top: 4px; }
.bf-form-elementor .grecaptcha-badge { border-radius: 4px; overflow: hidden; }
.bf-form-elementor .e-form__buttons { flex: 0 0 100%; max-width: 100% !important; width: 100% !important; margin-top: 6px; }
.bf-form-elementor .elementor-button { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 50px; border: 0 !important; border-radius: 8px !important; background: #003E63 !important; color: #FFFFFF !important; font-family: inherit !important; font-size: 15.5px !important; font-weight: 600 !important; cursor: pointer; transition: color .3s ease; }
.bf-form-elementor .elementor-button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #6CCFF6; transform: scaleX(0); transform-origin: right center; transition: transform .42s cubic-bezier(.65, 0, .35, 1); }
.bf-form-elementor .elementor-button:hover, .bf-form-elementor .elementor-button:focus-visible { color: #00273F !important; }
.bf-form-elementor .elementor-button:hover::before, .bf-form-elementor .elementor-button:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.bf-dark .bf-form-elementor .elementor-button { background: #6CCFF6 !important; color: #00273F !important; }
.bf-dark .bf-form-elementor .elementor-button::before { background: #FFD84D; }
.bf-form-elementor .elementor-message { font-family: inherit; font-size: 14.5px; }

/* Portada: la lista del blog son enlaces a cada artículo */
a.bf-bitem { text-decoration: none; }
a.bf-bitem:hover .bf-bitem-t { color: var(--bf-accent, #06607F); }
.bf-dark a.bf-bitem:hover .bf-bitem-t { color: #6CCFF6; }

/* Artículo: los botones de Social Rocket duplicarían los de compartir del diseño */
.bf-prosa .social-rocket-inline-buttons, .bf-root .social-rocket-floating-buttons { display: none !important; }

/* "Selecciona tu perfil": misma lista con diseño que el filtro del blog, donde el
   navegador lo permite (select personalizable); en el resto, la lista nativa */
@supports (appearance: base-select) {
  .bf-form-elementor .elementor-select-wrapper select, .bf-form-elementor .elementor-select-wrapper select::picker(select) { appearance: base-select; }
  .bf-form-elementor .elementor-select-wrapper select { display: flex; align-items: center; cursor: pointer; }
  .bf-form-elementor .elementor-select-wrapper select::picker-icon { display: none; }
  .bf-form-elementor .elementor-select-wrapper select::picker(select) {
    margin-top: 8px; padding: 6px; border: 1px solid var(--bf-line-2, #D5DFE6); border-radius: 14px;
    background: var(--bf-paper, #FFFFFF); box-shadow: 0 20px 44px rgba(0, 30, 48, .16);
    opacity: 0; translate: 0 -6px;
    transition: opacity .18s ease, translate .22s cubic-bezier(.2, .7, .2, 1), overlay .22s allow-discrete, display .22s allow-discrete;
  }
  .bf-form-elementor .elementor-select-wrapper select:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { .bf-form-elementor .elementor-select-wrapper select:open::picker(select) { opacity: 0; translate: 0 -6px; } }
  .bf-form-elementor .elementor-select-wrapper option {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; cursor: pointer;
    font-family: inherit; font-size: 15px; line-height: 1.3; color: var(--bf-ink-2, #2C3E4B); background: transparent; transition: background-color .15s ease, color .15s ease;
  }
  .bf-form-elementor .elementor-select-wrapper option:hover, .bf-form-elementor .elementor-select-wrapper option:focus-visible { outline: none; background: var(--bf-tag, #EEF4F8); color: var(--bf-ink, #0E1A22); }
  .bf-form-elementor .elementor-select-wrapper option:checked { background: #003E63; color: #FFFFFF; font-weight: 600; }
  .bf-form-elementor .elementor-select-wrapper option::checkmark { order: 1; margin-left: auto; color: #6CCFF6; }
  .bf-form-elementor .elementor-select-wrapper option[value=""] { color: var(--bf-ink-4, #5C6D79); }
  .bf-form-elementor .elementor-select-wrapper option[value=""]:checked { background: transparent; color: var(--bf-ink-4, #5C6D79); font-weight: 400; }
  .bf-form-elementor .elementor-select-wrapper option[value=""]::checkmark { display: none; }
  .bf-form-elementor .select-caret-down-wrapper svg { transition: transform .2s ease; }
  .bf-form-elementor .elementor-select-wrapper:has(select:open) .select-caret-down-wrapper svg { transform: rotate(180deg); }
  .bf-dark .bf-form-elementor .elementor-select-wrapper option:checked { background: #6CCFF6; color: #00273F; }
  @media (prefers-reduced-motion: reduce) {
    .bf-form-elementor .elementor-select-wrapper select::picker(select), .bf-form-elementor .elementor-select-wrapper option { transition: none; }
  }
}

/* Modo oscuro flotante (2026-10-30): acompaña al usuario encima de "volver arriba".
   Luna en modo claro (pasa a oscuro), sol en modo oscuro (vuelve a claro) */
.bf-tema-flot { width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--bf-paper, #FFFFFF); color: #003E63; box-shadow: 0 8px 24px rgba(0, 30, 48, .18); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.bf-tema-flot:hover, .bf-tema-flot:focus-visible { background: #003E63; color: #FFD84D; transform: translateY(-2px); }
.bf-tema-flot .bf-tema-sol { display: none; }
.bf-dark .bf-tema-flot { background: #12293A; color: #FFD84D; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.bf-dark .bf-tema-flot:hover, .bf-dark .bf-tema-flot:focus-visible { background: #FFD84D; color: #00263D; }
.bf-dark .bf-tema-flot .bf-tema-luna { display: none; }
.bf-dark .bf-tema-flot .bf-tema-sol { display: block; }
@media (prefers-reduced-motion: reduce) { .bf-tema-flot:hover { transform: none; } }
@media (max-width: 600px) { .bf-tema-flot { width: 46px; height: 46px; } }

/* ES / EN no debe partirse en dos líneas */
.bf-lang-sel { white-space: nowrap; flex: 0 0 auto; }

/* Caja del autor al final del artículo (autor.php); los colores salen de las variables del
   tema, así que el modo oscuro le llega solo */
.bf-autor { margin: 56px 0 0; padding: 28px; display: flex; gap: 24px; align-items: flex-start; border: 1px solid var(--bf-line, #E3EAEF); border-radius: 20px; background: var(--bf-paper-2, #F4F7F9); transition: background-color .3s ease, border-color .3s ease; }
.bf-autor-foto { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.bf-autor-txt { min-width: 0; }
.bf-autor-txt .bf-art-pie-t { margin-bottom: 8px; }
.bf-autor-nombre { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--bf-ink, #0E1A22); }
.bf-autor-cargo { margin: 4px 0 0; font-size: 15px; color: var(--bf-ink-3, #4A5A66); }
.bf-autor-bio { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--bf-ink-2, #2C3E4B); }
.bf-autor-redes { margin-top: 16px; }
.bf-autor + .bf-art-pie { margin-top: 40px; }
@media (max-width: 600px) {
  .bf-autor { flex-direction: column; padding: 22px; gap: 16px; }
  .bf-autor-foto { flex-basis: auto; width: 80px; height: 80px; }
}

/* ---------- Portada · Qué hacemos: tarjeta de Células de ingeniería (2026-11-04) ---------- */
.bf-card-celulas { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; padding: 32px; background: var(--bf-paper, #FFFFFF); border: 1px solid var(--bf-line, #E3EAEF); border-radius: 12px; }
.bf-card-celulas-txt { display: flex; flex-direction: column; gap: 12px; }
.bf-card-celulas .bf-btn { white-space: nowrap; }
@media (max-width: 900px) {
  .bf-card-celulas { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .bf-card-celulas .bf-btn { justify-self: start; }
}

/* ---------- Servicios · El stack con el que trabajamos: animado (2026-11-04) ---------- */
.bf-stack-anim > div { position: relative; transition: transform .35s ease; }
.bf-stack-anim > div::before { content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 3px; background: #6CCFF6; transform: scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.bf-stack-anim > div:hover::before { transform: scaleX(1); }
.bf-stack-anim .bf-tagc { transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .45s ease, translate .45s cubic-bezier(.2, .7, .2, 1); }
.bf-stack-anim .bf-tagc:hover { background: #003E63; color: #6CCFF6; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 30, 48, .18); }
.bf-dark .bf-stack-anim .bf-tagc:hover { background: #6CCFF6; color: #00273F; }
/* Entrada: antes de verse, columnas y etiquetas esperan; al verse, la línea se rellena */
.bf-stack-anim.bf-revela-listo > div { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1), transform .35s ease; }
.bf-stack-anim.bf-revela-listo .bf-tagc { opacity: 0; translate: 0 8px; }
.bf-stack-anim.bf-revela-listo.is-visto > div { opacity: 1; translate: 0 0; }
.bf-stack-anim.bf-revela-listo.is-visto > div::before { transform: scaleX(1); }
.bf-stack-anim.bf-revela-listo.is-visto .bf-tagc { opacity: 1; translate: 0 0; }
.bf-stack-anim > div:nth-child(2), .bf-stack-anim > div:nth-child(2)::before { transition-delay: .12s; }
.bf-stack-anim > div:nth-child(3), .bf-stack-anim > div:nth-child(3)::before { transition-delay: .24s; }
.bf-stack-anim > div:nth-child(4), .bf-stack-anim > div:nth-child(4)::before { transition-delay: .36s; }
.bf-stack-anim > div:hover, .bf-stack-anim > div:hover::before { transition-delay: 0s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(1) { transition-delay: 0s, 0s, 0s, 0s, 0.35s, 0.35s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(2) { transition-delay: 0s, 0s, 0s, 0s, 0.39s, 0.39s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(3) { transition-delay: 0s, 0s, 0s, 0s, 0.43s, 0.43s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(4) { transition-delay: 0s, 0s, 0s, 0s, 0.47s, 0.47s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(5) { transition-delay: 0s, 0s, 0s, 0s, 0.51s, 0.51s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(6) { transition-delay: 0s, 0s, 0s, 0s, 0.55s, 0.55s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(7) { transition-delay: 0s, 0s, 0s, 0s, 0.59s, 0.59s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(8) { transition-delay: 0s, 0s, 0s, 0s, 0.63s, 0.63s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(9) { transition-delay: 0s, 0s, 0s, 0s, 0.67s, 0.67s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(10) { transition-delay: 0s, 0s, 0s, 0s, 0.71s, 0.71s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(11) { transition-delay: 0s, 0s, 0s, 0s, 0.75s, 0.75s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(12) { transition-delay: 0s, 0s, 0s, 0s, 0.79s, 0.79s; }
.bf-stack-anim.is-visto > div:nth-child(1) .bf-tagc:nth-child(13) { transition-delay: 0s, 0s, 0s, 0s, 0.83s, 0.83s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(1) { transition-delay: 0s, 0s, 0s, 0s, 0.47s, 0.47s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(2) { transition-delay: 0s, 0s, 0s, 0s, 0.51s, 0.51s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(3) { transition-delay: 0s, 0s, 0s, 0s, 0.55s, 0.55s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(4) { transition-delay: 0s, 0s, 0s, 0s, 0.59s, 0.59s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(5) { transition-delay: 0s, 0s, 0s, 0s, 0.63s, 0.63s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(6) { transition-delay: 0s, 0s, 0s, 0s, 0.67s, 0.67s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(7) { transition-delay: 0s, 0s, 0s, 0s, 0.71s, 0.71s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(8) { transition-delay: 0s, 0s, 0s, 0s, 0.75s, 0.75s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(9) { transition-delay: 0s, 0s, 0s, 0s, 0.79s, 0.79s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(10) { transition-delay: 0s, 0s, 0s, 0s, 0.83s, 0.83s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(11) { transition-delay: 0s, 0s, 0s, 0s, 0.87s, 0.87s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(12) { transition-delay: 0s, 0s, 0s, 0s, 0.91s, 0.91s; }
.bf-stack-anim.is-visto > div:nth-child(2) .bf-tagc:nth-child(13) { transition-delay: 0s, 0s, 0s, 0s, 0.95s, 0.95s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(1) { transition-delay: 0s, 0s, 0s, 0s, 0.59s, 0.59s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(2) { transition-delay: 0s, 0s, 0s, 0s, 0.63s, 0.63s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(3) { transition-delay: 0s, 0s, 0s, 0s, 0.67s, 0.67s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(4) { transition-delay: 0s, 0s, 0s, 0s, 0.71s, 0.71s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(5) { transition-delay: 0s, 0s, 0s, 0s, 0.75s, 0.75s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(6) { transition-delay: 0s, 0s, 0s, 0s, 0.79s, 0.79s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(7) { transition-delay: 0s, 0s, 0s, 0s, 0.83s, 0.83s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(8) { transition-delay: 0s, 0s, 0s, 0s, 0.87s, 0.87s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(9) { transition-delay: 0s, 0s, 0s, 0s, 0.91s, 0.91s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(10) { transition-delay: 0s, 0s, 0s, 0s, 0.95s, 0.95s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(11) { transition-delay: 0s, 0s, 0s, 0s, 0.99s, 0.99s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(12) { transition-delay: 0s, 0s, 0s, 0s, 1.03s, 1.03s; }
.bf-stack-anim.is-visto > div:nth-child(3) .bf-tagc:nth-child(13) { transition-delay: 0s, 0s, 0s, 0s, 1.07s, 1.07s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(1) { transition-delay: 0s, 0s, 0s, 0s, 0.71s, 0.71s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(2) { transition-delay: 0s, 0s, 0s, 0s, 0.75s, 0.75s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(3) { transition-delay: 0s, 0s, 0s, 0s, 0.79s, 0.79s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(4) { transition-delay: 0s, 0s, 0s, 0s, 0.83s, 0.83s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(5) { transition-delay: 0s, 0s, 0s, 0s, 0.87s, 0.87s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(6) { transition-delay: 0s, 0s, 0s, 0s, 0.91s, 0.91s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(7) { transition-delay: 0s, 0s, 0s, 0s, 0.95s, 0.95s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(8) { transition-delay: 0s, 0s, 0s, 0s, 0.99s, 0.99s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(9) { transition-delay: 0s, 0s, 0s, 0s, 1.03s, 1.03s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(10) { transition-delay: 0s, 0s, 0s, 0s, 1.07s, 1.07s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(11) { transition-delay: 0s, 0s, 0s, 0s, 1.11s, 1.11s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(12) { transition-delay: 0s, 0s, 0s, 0s, 1.15s, 1.15s; }
.bf-stack-anim.is-visto > div:nth-child(4) .bf-tagc:nth-child(13) { transition-delay: 0s, 0s, 0s, 0s, 1.19s, 1.19s; }
@media (prefers-reduced-motion: reduce) {
  .bf-stack-anim > div, .bf-stack-anim > div::before, .bf-stack-anim .bf-tagc { transition: none !important; }
  .bf-stack-anim > div::before { transform: scaleX(1); }
}

/* ---------- Etiquetas de tecnologías: entran una tras otra y se resaltan (2026-11-04) ---------- */
.bf-chips-anim > li { transition: opacity .45s ease var(--bf-d, 0s), translate .45s cubic-bezier(.2, .7, .2, 1) var(--bf-d, 0s), background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.bf-chips-anim:not(.is-visto) > li { opacity: 0; translate: 0 8px; }
.bf-chips-anim > li:hover { background: #003E63 !important; color: #6CCFF6 !important; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 30, 48, .18); }
.bf-dark .bf-chips-anim > li:hover { background: #6CCFF6 !important; color: #00273F !important; }
@media (prefers-reduced-motion: reduce) {
  .bf-chips-anim > li { transition: none; }
}
/* Acceso destacado a las guías en el blog */
.bf-blog-guias { display: flex; align-items: center; gap: 20px; margin: 0 0 32px; padding: 20px 24px; border: 1px solid var(--bf-line, #E3EAEF); border-left: 4px solid #6CCFF6; border-radius: 14px; background: var(--bf-paper-2, #F4F7F9); color: var(--bf-ink, #0E1A22); text-decoration: none; transition: border-color .15s ease, box-shadow .2s ease; }
.bf-blog-guias:hover { border-color: #6CCFF6; box-shadow: 0 12px 32px rgba(0, 62, 99, .10); color: var(--bf-ink, #0E1A22); }
.bf-blog-guias-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #003E63; color: #6CCFF6; }
.bf-blog-guias-txt { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; color: var(--bf-ink-3, #2C3E4B); }
.bf-blog-guias-txt strong { font-size: 17px; color: var(--bf-ink, #0E1A22); }
.bf-blog-guias-btn { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bf-accent, #06607F); white-space: nowrap; }
.bf-blog-guias:hover .bf-blog-guias-btn svg { transform: translateX(3px); }
.bf-blog-guias-btn svg { transition: transform .2s ease; }
@media (max-width: 720px) { .bf-blog-guias { flex-wrap: wrap; } .bf-blog-guias-btn { margin-left: 68px; } }
/* Guías técnicas en el menú Blog: tarjeta destacada (2026-11-18) */
.bf-mega-mini.bf-mega-guias { min-height: 64px; padding: 10px 14px; border-color: rgba(108, 207, 246, .7); background: rgba(108, 207, 246, .10); }
.bf-mega-mini.bf-mega-guias:hover { border-color: var(--bf-accent, #06607F); background: rgba(108, 207, 246, .18); }
.bf-mega-guias-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #003E63; color: #6CCFF6; }
.bf-mega-guias-txt { display: flex; flex-direction: column; gap: 2px; margin-right: auto; font-weight: 600; }
.bf-mega-guias-d { font-size: 12.5px; font-weight: 400; color: var(--bf-ink-4, #5C6D79); }
/* Recuadro de las guías al final del blog de la portada */
/* Portada: debajo de Células de ingeniería, en Servicios */
.bf-blog-guias-portada { margin: 24px 0 0; background: var(--bf-paper, #FFFFFF); }
/* Paginación de las guías y del blog: 6 por página (2026-11-18) */
.bf-gpag { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin: 40px 0 0; }
.bf-gpag[hidden] { display: none; }
.bf-gpag-nums { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bf-gpag-nums a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--bf-line, #E3EAEF); border-radius: 999px; background: var(--bf-paper, #FFFFFF); color: var(--bf-ink, #0E1A22); font-weight: 600; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.bf-gpag-nums a:hover { border-color: var(--bf-accent, #06607F); color: var(--bf-ink, #0E1A22); }
.bf-gpag-nums a.is-activo { background: #003E63; border-color: #003E63; color: #FFFFFF; }
.bf-dark .bf-gpag-nums a.is-activo { background: #6CCFF6; border-color: #6CCFF6; color: #00273F; }
.bf-gpag-flecha { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--bf-line, #E3EAEF); border-radius: 999px; background: var(--bf-paper, #FFFFFF); color: var(--bf-accent, #06607F); font-weight: 600; text-decoration: none; transition: border-color .15s ease; }
.bf-gpag-flecha:hover { border-color: var(--bf-accent, #06607F); color: var(--bf-accent, #06607F); }
.bf-gpag-flecha.is-off { color: var(--bf-ink-4, #5C6D79); opacity: .45; cursor: default; }
.bf-gpag-info { flex-basis: 100%; margin: 0; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--bf-ink-4, #5C6D79); }
/* Portada: «Ver las guías» como botón, igual que «Conoce las células» */
.bf-blog-guias .bf-blog-guias-boton { flex: none; margin-left: auto; white-space: nowrap; }
.bf-blog-guias:hover .bf-blog-guias-boton svg { transform: translateX(3px); }
.bf-blog-guias-boton svg { transition: transform .2s ease; }
@media (max-width: 720px) { .bf-blog-guias .bf-blog-guias-boton { margin-left: 68px; } }
/* Portada: «Conoce las células» y «Ver las guías» con el mismo ancho y alineados a la derecha */
.bf-card-celulas .bf-btn, .bf-blog-guias-portada .bf-blog-guias-boton { min-width: 232px; justify-content: center; }
.bf-blog-guias-portada { padding: 28px 32px 28px 29px; gap: 18px 28px; }
@media (max-width: 720px) { .bf-card-celulas .bf-btn, .bf-blog-guias-portada .bf-blog-guias-boton { min-width: 0; } }
