/*
 * about.css — página "Quiénes somos" (home/about.html).
 * Se apoya en landing.css + fx.css; aquí solo va lo específico de esta página.
 */

/* ---------- Hero ---------- */
.ab-hero { padding: 148px 0 96px; }
.ab-hero .fx-aurora { height: 640px; }
.ab-back { padding: 7px 14px 7px 10px; }
.ab-back .material-icons { font-size: 16px; color: var(--lp-muted); transition: transform 0.3s var(--ease-out-expo); }
.ab-back:hover .material-icons { transform: translateX(-3px); }
.ab-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--lp-primary-2);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(19, 109, 236, 0.07); border: 1px solid rgba(19, 109, 236, 0.16);
}
.ab-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16); }
.ab-hero .lp-h1 { font-size: clamp(3rem, 8vw, 6.25rem); }
.ab-hero .lp-lead { max-width: 600px; color: #57504a; }

/* ---------- Historia / misión ---------- */
.ab-story { padding-top: 40px; }
.ab-story-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
  .ab-story-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; }
  .ab-story-head { position: sticky; top: 120px; }
}
.ab-story-head { display: grid; gap: 16px; align-content: start; }
.ab-challenges { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ab-challenges li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--lp-card); border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow-sm);
  font-size: 15px; font-weight: 500;
}
.ab-challenges .material-icons {
  font-size: 18px; width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: var(--lp-primary);
  background: var(--lp-bg); border: 1px solid var(--lp-border);
}
.ab-story-card { padding: clamp(28px, 4vw, 44px); gap: 0; }
.ab-story-card:hover, .ab-story-card.reveal.is-visible:hover { transform: none; }
.ab-story-p { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; color: #4f4842; }
.ab-story-p strong { color: var(--lp-text); font-weight: 600; }
.ab-rule { border: 0; height: 1px; background: var(--lp-border); margin: 28px 0; }

/* ---------- Bento "Lo que ofrecemos" ---------- */
.ab-offer { background: var(--lp-bg-2); border-block: 1px solid var(--lp-border); }
@media (min-width: 900px) {
  .ab-bento { grid-auto-rows: minmax(280px, auto); }
}
.ab-bento .lp-p { color: #5e564e; }

/* Centralización: portales -> HouseMatch */
.ab-hub { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; width: 100%; max-width: 600px; }
.ab-hub-sources { display: grid; gap: 8px; }
.ab-hub-sources span {
  display: block; width: 88px; height: 26px; border-radius: 8px;
  border: 1px solid var(--lp-border); background: #fff;
  background-image: linear-gradient(90deg, #ece7df 0 40%, transparent 40%);
  background-size: 60% 6px; background-repeat: no-repeat; background-position: 10px center;
}
.ab-hub-lines { display: grid; gap: 8px; min-width: 40px; }
.ab-hub-lines i {
  display: block; height: 26px; position: relative;
}
.ab-hub-lines i::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, var(--lp-border-strong), var(--lp-primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease-out-expo);
}
.is-visible .ab-hub-lines i::before { transform: scaleX(1); }
.is-visible .ab-hub-lines i:nth-child(2)::before { transition-delay: 0.1s; }
.is-visible .ab-hub-lines i:nth-child(3)::before { transition-delay: 0.2s; }
.is-visible .ab-hub-lines i:nth-child(4)::before { transition-delay: 0.3s; }
.ab-hub-core {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px; background: #fff;
  border: 1px solid var(--lp-border-strong); box-shadow: var(--lp-shadow);
}
.ab-hub-core img { width: 32px; height: 32px; }
.ab-hub-core b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.ab-hub-core small { font-size: 12.5px; color: var(--lp-muted); }

/* Datos localizados: migas de ubicación */
.ab-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ab-crumbs span:not(.material-icons) {
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #fff; border: 1px solid var(--lp-border);
}
.ab-crumbs .material-icons { font-size: 16px; color: var(--lp-subtle); }
.ab-crumbs .is-key { color: #0f55c0; background: #eaf2ff !important; border-color: #d4e4ff !important; }

/* Escalan */
.ab-scale { display: grid; gap: 10px; }
.ab-scale-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; }
.ab-scale-row .material-icons {
  font-size: 18px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--lp-bg); border: 1px solid var(--lp-border); color: var(--lp-peach);
}
.ab-scale-row:last-child .material-icons { color: var(--lp-primary); }
.ab-scale-bar { height: 8px; border-radius: 999px; background: #f1ece4; margin-left: 42px; overflow: hidden; }
.ab-scale-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #fb923c, #8b5cf6, #136dec);
  transform: scaleX(0.15); transform-origin: left; transition: transform 1.2s var(--ease-out-expo) 0.2s;
}
.is-visible .ab-scale-bar i { transform: scaleX(1); }

/* Tecnología confiable */
.ab-tech { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ab-tech-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow-sm); font-size: 13px;
}
.ab-tech-chip > .material-icons {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  color: #fff; font-size: 19px; background: linear-gradient(135deg, #136dec, #8b5cf6);
}
.ab-tech-chip b { display: block; font-weight: 600; }
.ab-tech-chip small { color: var(--lp-muted); font-size: 12px; }
.ab-tech-ops { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- CTA ---------- */
.ab-cta-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #fbbf24;
}
.ab-cta-icon .material-icons { font-size: 26px; }
.ab .lp-cta .lp-h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); max-width: 900px; }
.ab .lp-cta .lp-lead { max-width: 600px; }

/* ---------- Accesibilidad ---------- */
.ab :where(a, button):focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 3px; }
.ab .lp-cta a:focus-visible { outline-color: #fbbf24; }
.ab .lp-footer ul a[aria-current="page"] { color: var(--lp-text); font-weight: 500; }
.ab .lp-footer-bottom, .ab .lp-footer .lp-p { color: #5e564e; }
.ab .lp-footer ul a { color: #5e564e; }

@media (max-width: 767px) {
  .ab-hero { padding: 124px 0 64px; }
  .ab-story { padding-top: 16px; }
}
@media (max-width: 480px) {
  .ab-hub { grid-template-columns: 1fr; gap: 12px; }
  .ab-hub-sources { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab-hub-sources span { width: auto; }
  .ab-hub-lines { display: none; }
  .ab-hub-core { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-hub-lines i::before, .ab-scale-bar i { transition: none; transform: none; }
  .ab-back:hover .material-icons { transform: none; }
}
