/* ==========================================================================
   BASOLS · home.css — solo portada (front-page.php)
   Hero + banda del sistema, tira de logos, capacidades, método.
   Casos, filas de posts, cabeceras de sección y CTA vienen de main.css.
   ========================================================================== */

/* ── Hero ───────────────────────────────────────────────────────────────── */
.b-hero { display: flex; flex-direction: column; padding-bottom: 44px; }
.b-hero__main { padding: 48px var(--b-g) 0; }
.b-hero__act { margin-top: 32px; }

/* Banda: las cuatro capas del revenue system sobre un único flujo */
.b-band { margin: 0 var(--b-g); padding-top: clamp(72px, 8vw, 120px); }
.b-band__h { color: var(--b-ink-3); margin-bottom: 14px; }
.b-lay {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--b-ink); border-bottom: 1px solid var(--b-ink);
}
.b-lay::before { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: var(--b-hair-2); }
.b-lay::after {
  content: ""; position: absolute; left: -120px; top: 35px; z-index: 2; width: 120px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--b-sig)); animation: b-flow 4.5s linear infinite;
}
@keyframes b-flow { from { left: -120px; } to { left: 100%; } }
.b-ly {
  position: relative; z-index: 1; min-height: 168px; padding: 0 24px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  border: 0; border-left: 1px solid var(--b-hair); background: transparent; color: var(--b-ink);
  font: inherit; text-align: left; cursor: pointer; transition: background-color .3s, color .3s;
}
.b-ly:first-child { border-left: 0; }
.b-ly:hover { background: rgba(14, 17, 17, .03); }
.b-ly:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px rgba(255, 96, 0, .5); }
.b-ly__nd { width: 11px; height: 11px; margin: 31px 0 12px; background: var(--b-bg); border: 1px solid var(--b-ink); transition: background-color .3s, border-color .3s; }
.b-ly .b-mono { color: var(--b-ink-3); }
.b-ly strong { font: 500 22px/1.15 var(--b-font-display); letter-spacing: -.011em; }
.b-ly__p { display: block; max-width: 34ch; font: 400 14px/1.5 var(--b-font-sans); color: var(--b-ink-2); }
.b-ly__more { display: none; }
.b-ly[aria-pressed="true"] { background: var(--b-ink); color: var(--b-bg); }
.b-ly[aria-pressed="true"] .b-ly__nd { background: var(--b-sig); border-color: var(--b-sig); }
.b-ly[aria-pressed="true"] .b-mono { color: var(--b-ink-inv); }
.b-ly[aria-pressed="true"] .b-ly__p { color: var(--b-ink-inv-2); }
.b-ly[aria-pressed="true"] .b-ly__more { display: block; }
.b-band__base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 40px; margin-top: 6px; padding: 0 16px; background: var(--b-ink); color: var(--b-bg);
}
.b-band__base span { display: inline-flex; align-items: center; gap: 10px; }
.b-band__base i { width: 7px; height: 7px; background: var(--b-sig); }
.b-band__base em { font-style: normal; color: var(--b-ink-inv); }

/* ── Logos de clientes (tira continua, se pausa al pasar el ratón) ─────── */
.b-logos { border-top: 1px solid var(--b-strong); border-bottom: 1px solid var(--b-hair); }
.b-logos__v { position: relative; overflow: hidden; }
.b-logos__v::before, .b-logos__v::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 120px; pointer-events: none; }
.b-logos__v::before { left: 0; background: linear-gradient(90deg, var(--b-bg), rgba(243, 243, 241, 0)); }
.b-logos__v::after { right: 0; background: linear-gradient(270deg, var(--b-bg), rgba(243, 243, 241, 0)); }
.b-logos__t { display: flex; width: max-content; animation: b-logos 40s linear infinite; }
.b-logos__v:hover .b-logos__t { animation-play-state: paused; }
@keyframes b-logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.b-logos__c { flex: none; width: 246px; height: 128px; padding: 0 40px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--b-hair); }
.b-logos__c img { width: auto; height: auto; max-width: 150px; max-height: 30px; opacity: .5; filter: grayscale(1); transition: opacity .3s; }
.b-logos__c:hover img { opacity: 1; }
.b-logos__tx { font: 500 24px/1 var(--b-font-display); letter-spacing: -.01em; color: var(--b-ink-3); }

/* ── Más (enlace bajo casos / posts) ───────────────────────────────────── */
.b-more { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; color: var(--b-ink-3); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .b-lay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-lay::before, .b-lay::after { display: none; }
  .b-ly:nth-child(3) { border-left: 0; }
  .b-ly:nth-child(n+3) { border-top: 1px solid var(--b-hair); }
  .b-ly__nd { margin-top: 24px; }
}
@media (max-width: 600px) {
  .b-hero__main { padding-top: 40px; }
  .b-hero .b-lead { font-size: 16px; }
  .b-band { padding-top: 56px; }
  .b-lay { grid-template-columns: minmax(0, 1fr); }
  .b-ly { min-height: 0; border-left: 0; }
  .b-ly:nth-child(n+2) { border-top: 1px solid var(--b-hair); }
  .b-band__base em { display: none; }
  .b-logos__c { width: 180px; height: 96px; padding: 0 28px; }
  .b-logos__v::before, .b-logos__v::after { width: 48px; }
  .b-more { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .b-lay::after { display: none; }
  .b-logos__t { animation: none; }
}
