/* ===== V02 · NOSOTROS — usa los tokens de body.bgsc-home (styles.css) ===== */

/* Tarjeta base y titulares de sección */
body.bgsc-home .ab-card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 19, 56, .86), rgba(16, 12, 36, .92));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.9);
  padding: 22px;
}
body.bgsc-home .ab-h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem); font-weight: 700;
}
body.bgsc-home .ab-h2::before {
  content: ""; flex: none; width: 4px; height: 1.15em; border-radius: 3px; background: var(--grad);
}
body.bgsc-home .ab-ico {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(139,61,255,.32), rgba(139,61,255,.1));
  border: 1px solid rgba(167,128,255,.25); color: #b98bff;
}
body.bgsc-home .ab-ico .ico { width: 28px; height: 28px; }
body.bgsc-home .ab-ico-sm { width: 44px; height: 44px; border-radius: 10px; }
body.bgsc-home .ab-ico-sm .ico { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
body.bgsc-home .ab-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 34vw, 560px);
  padding: clamp(28px, 2.6vw, 40px) 0 130px;
  display: flex; align-items: center;
}
body.bgsc-home .ab-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; }
body.bgsc-home .ab-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,8,23,.92) 0%, rgba(10,8,23,.7) 32%, rgba(10,8,23,.15) 60%, rgba(10,8,23,0) 75%),
    linear-gradient(180deg, rgba(10,8,23,.3) 0%, rgba(10,8,23,0) 25%, rgba(10,8,23,0) 55%, rgba(10,8,23,.85) 85%, var(--bg) 100%);
}
/* Sin imagen todavía: fondo de marca */
body.bgsc-home .ab-hero.is-empty {
  background:
    radial-gradient(900px 480px at 78% 30%, rgba(182,0,255,.30), transparent 62%),
    radial-gradient(700px 420px at 100% 100%, rgba(139,61,255,.22), transparent 60%),
    linear-gradient(180deg, #120c2a 0%, var(--bg) 100%);
}
body.bgsc-home .ab-hero.is-empty::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(167,128,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,128,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 75% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(70% 80% at 75% 40%, #000 20%, transparent 80%);
}
body.bgsc-home .ab-hero-in { display: flex; justify-content: space-between; align-items: center; gap: 40px; width: 100%; }
body.bgsc-home .ab-hero-copy { max-width: 680px; }
body.bgsc-home .ab-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 3.9vw, 3.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
}
body.bgsc-home .ab-hero h1 span { display: block; }
body.bgsc-home .ab-t-line { color: #fff; }
body.bgsc-home .ab-lead { margin-top: 20px; max-width: 560px; font-size: clamp(1rem, 1.25vw, 1.14rem); color: #ece8fb; }
body.bgsc-home .ab-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

body.bgsc-home .ab-quote {
  align-self: flex-end; margin: 0; flex: none; width: 250px; padding: 22px 24px 24px;
  border-radius: var(--radius);
  background: rgba(16, 12, 36, .62);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
body.bgsc-home .ab-quote-mark { display: block; font-size: 3.2rem; line-height: .8; font-weight: 800; color: var(--violet); }
body.bgsc-home .ab-quote blockquote { margin: 10px 0 0; font-size: 1.12rem; line-height: 1.4; color: #f1ecff; }
body.bgsc-home .ab-quote::after { content: ""; display: block; width: 42px; height: 3px; border-radius: 3px; background: var(--violet); margin-top: 16px; }

/* ---------- Cifras ---------- */
body.bgsc-home .ab-stats { position: relative; z-index: 2; margin-top: -84px; }
body.bgsc-home .ab-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.bgsc-home .ab-stat {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 19, 56, .9), rgba(16, 12, 36, .95));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.9);
}
body.bgsc-home .ab-stat-num { font-size: clamp(1.6rem, 2vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
body.bgsc-home .ab-stat-num span { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--lav); }
body.bgsc-home .ab-stat-txt { margin-top: 4px; font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* ---------- Cuerpo ---------- */
body.bgsc-home .ab-body { padding: 14px 0 18px; }
body.bgsc-home .ab-grid {
  display: grid; gap: 12px; align-items: stretch;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.45fr) minmax(0, .85fr);
}

/* Quiénes somos */
body.bgsc-home .ab-who { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); padding: 0; overflow: hidden; }
body.bgsc-home .ab-who-copy { padding: 26px 18px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
body.bgsc-home .ab-who-copy p { font-size: .9rem; color: #ddd6f3; line-height: 1.6; }
body.bgsc-home .ab-who-copy .btn { align-self: flex-start; margin-top: auto; }
body.bgsc-home .ab-who-media { position: relative; min-height: 300px; }
body.bgsc-home .ab-who-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 40%; }
body.bgsc-home .ab-who-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,13,40,.85) 0%, rgba(18,13,40,0) 40%);
}
body.bgsc-home .ab-who-media.is-empty {
  display: grid; place-items: center;
  background:
    radial-gradient(60% 55% at 55% 45%, rgba(182,0,255,.32), transparent 70%),
    linear-gradient(160deg, #1d1440 0%, #0f0a24 100%);
}
body.bgsc-home .ab-who-logo { width: 46%; max-width: 160px; height: auto; filter: drop-shadow(0 0 28px rgba(182,0,255,.55)); }

/* Misión / visión + historia */
body.bgsc-home .ab-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.bgsc-home .ab-mv { display: flex; gap: 16px; align-items: flex-start; }
body.bgsc-home .ab-mv h2 { font-size: 1.05rem; font-weight: 700; }
body.bgsc-home .ab-mv p { margin-top: 8px; font-size: .84rem; color: var(--muted); line-height: 1.55; }

body.bgsc-home .ab-history { grid-column: 1 / -1; scroll-margin-top: calc(var(--header-h) + 16px); }
body.bgsc-home .ab-tl {
  position: relative; margin-top: 22px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
body.bgsc-home .ab-tl::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 46px; height: 2px;
  background: linear-gradient(90deg, rgba(167,128,255,.15), var(--violet), rgba(167,128,255,.15));
}
body.bgsc-home .ab-tl li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
body.bgsc-home .ab-tl-year { font-size: .95rem; font-weight: 700; color: #fff; }
body.bgsc-home .ab-tl-dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 30px; height: 30px; margin: 8px 0 12px; border-radius: 50%;
  background: var(--grad); color: #fff;
  box-shadow: 0 0 0 5px rgba(139,61,255,.18), 0 0 18px rgba(182,0,255,.55);
}
body.bgsc-home .ab-tl-dot .ico { width: 16px; height: 16px; }
body.bgsc-home .ab-tl strong { font-size: .9rem; font-weight: 700; }
body.bgsc-home .ab-tl p { margin-top: 4px; font-size: .78rem; color: var(--muted); line-height: 1.45; max-width: 22ch; }

/* Valores */
body.bgsc-home .ab-values ul { margin-top: 16px; display: grid; }
body.bgsc-home .ab-values li {
  display: flex; align-items: center; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid rgba(167,128,255,.12);
}
body.bgsc-home .ab-values li:last-child { border-bottom: 0; padding-bottom: 0; }
body.bgsc-home .ab-values strong { display: block; font-size: .92rem; font-weight: 700; }
body.bgsc-home .ab-values p { margin-top: 2px; font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* ---------- Cierre ---------- */
body.bgsc-home .ab-future {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 6px; padding: 46px 0;
  border-top: 1px solid rgba(167,128,255,.12);
}
body.bgsc-home .ab-future-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
body.bgsc-home .ab-future::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,8,23,.9) 0%, rgba(10,8,23,.55) 55%, rgba(10,8,23,.35) 100%);
}
body.bgsc-home .ab-future.is-empty {
  background:
    radial-gradient(800px 260px at 85% 100%, rgba(182,0,255,.28), transparent 70%),
    radial-gradient(600px 240px at 10% 0%, rgba(139,61,255,.16), transparent 70%),
    linear-gradient(180deg, #120c2a, #0c0920);
}
body.bgsc-home .ab-future.is-empty::after { display: none; }
body.bgsc-home .ab-future-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
body.bgsc-home .ab-future p { margin-top: 10px; max-width: 62ch; color: #e6e0fa; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
body.bgsc-home .ab-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.bgsc-home .ab-who { grid-column: 1 / -1; }
body.bgsc-home .ab-who-media { min-height: 260px; }
}
@media (max-width: 1100px) {
body.bgsc-home .ab-quote { display: none; }
body.bgsc-home .ab-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.bgsc-home .ab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
body.bgsc-home .ab-hero { min-height: 0; padding: 28px 0 110px; }
body.bgsc-home .ab-hero-shade { background: linear-gradient(180deg, rgba(10,8,23,.6) 0%, rgba(10,8,23,.8) 55%, var(--bg) 100%); }
body.bgsc-home .ab-cta .btn { flex: 1 1 100%; }
body.bgsc-home .ab-stats { margin-top: -70px; }
body.bgsc-home .ab-stats-grid { grid-template-columns: 1fr; }
body.bgsc-home .ab-stat { padding: 16px 18px; }
body.bgsc-home .ab-who { grid-template-columns: 1fr; }
body.bgsc-home .ab-who-media { order: -1; min-height: 200px; }
body.bgsc-home .ab-who-media::before { background: linear-gradient(180deg, rgba(16,12,36,0) 50%, rgba(16,12,36,.95) 100%); }
body.bgsc-home .ab-who-copy { padding: 22px; }
body.bgsc-home .ab-mid { grid-template-columns: 1fr; }
body.bgsc-home .ab-card { padding: 18px; }
body.bgsc-home .ab-who.ab-card { padding: 0; }
/* Línea de tiempo vertical */
body.bgsc-home .ab-tl { grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
body.bgsc-home .ab-tl::before { left: 14px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--violet), rgba(167,128,255,.15)); }
body.bgsc-home .ab-tl li {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; text-align: left; align-items: start; padding-bottom: 18px;
}
body.bgsc-home .ab-tl li:last-child { padding-bottom: 0; }
body.bgsc-home .ab-tl-dot { grid-row: 1 / span 3; margin: 0; }
body.bgsc-home .ab-tl-year { font-size: .82rem; color: var(--lav); }
body.bgsc-home .ab-tl p { max-width: none; }
body.bgsc-home .ab-future-in .btn { flex: 1 1 100%; }
}
