/* ============================================================================
   FRST public landing (fcbfrst.com /) — implementation of FRST_WEB.psd.
   Namespaced under .fl-* / body.frst-body so it never collides with the app
   stylesheet (this file is only linked by layouts/frst_landing).
   System from the PSD: black + cream page bands, big rounded photo panels,
   palette blue #056AC4 / orange #F39F08 / red #F12B11 / cream #F2E9CC.
   ========================================================================== */

/* Brand font (only the Book weight ships; heavier headings are synthesized —
   swap in real Bold/Black faces here when available). */
@font-face {
  font-family: "Benton Sans";
  src: url("/assets/BentonSans-Book-e48f18e9.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fl-bg: #050505;
  --fl-panel: #0c0c0c;
  --fl-cream: #f2e9cc;        /* cream page band (sampled from PSD) */
  --fl-cream-text: #f2e7c9;   /* cream headline/logo tone on dark */
  --fl-blue: #056ac4;
  --fl-blue-soft: #2586dd;
  --fl-orange: #f39f08;
  --fl-red: #f12b11;
  --fl-gold: #f39f08;         /* legacy alias (hidden AI section) */
  --fl-white: #f5f4f1;
  --fl-muted: #9a9aa2;
  --fl-ink: #16161a;
  --fl-ink-muted: #55503f;
  --fl-line: rgba(255,255,255,.14);
  --fl-radius: 36px;
  --fl-max: 1280px;
}

.frst-body {
  font-family: "Benton Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--fl-bg);
  color: var(--fl-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.fl-wrap { width: 100%; max-width: var(--fl-max); margin: 0 auto; padding: 0 24px; }

/* ── Page bands (design alternates black / cream) ────────────────────────── */
.fl-band { padding: 30px 0; }
.fl-band--dark { background: var(--fl-bg); }
.fl-band--cream { background: var(--fl-cream); color: var(--fl-ink); }
.fl-section { padding: 26px 0; }

/* ── Rounded panels ──────────────────────────────────────────────────────── */
.fl-panel {
  background: var(--fl-panel);
  border-radius: var(--fl-radius);
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.fl-panel--hero {
  background:
    linear-gradient(100deg, rgba(5,5,5,.85) 0%, rgba(5,5,5,.5) 55%, rgba(5,5,5,.15) 100%),
    url("/assets/landing/hero-2eaf7c06.jpg") center / cover no-repeat;
}
/* Dark photo panels — each uses its photo layer extracted from FRST_WEB.psd,
   with a dark overlay so the cream/blue/orange type stays readable. */
.fl-panel--eco {
  background:
    linear-gradient(rgba(8,8,8,.88), rgba(8,8,8,.82)),
    url("/assets/landing/panel-eco-1f42d176.webp") center 20% / cover no-repeat;
}
.fl-panel--go {
  background:
    linear-gradient(rgba(8,8,8,.87), rgba(8,8,8,.82)),
    url("/assets/landing/panel-go-a2d43eb8.webp") center / cover no-repeat;
}
.fl-panel--timeline {
  background:
    linear-gradient(rgba(8,8,8,.8), rgba(8,8,8,.78)),
    url("/assets/landing/panel-timeline-bb888a78.webp") center / cover no-repeat;
}
.fl-panel--offices {
  background:
    linear-gradient(100deg, rgba(8,8,8,.88) 30%, rgba(8,8,8,.55) 100%),
    url("/assets/landing/panel-offices-49fb1de1.webp") center / cover no-repeat;
}
.fl-panel--washed {
  background:
    linear-gradient(rgba(242,233,204,.82), rgba(242,233,204,.86)),
    url("/assets/landing/panel-cta-1ab29108.webp") center / cover no-repeat;
  color: var(--fl-ink);
}
.fl-panel--cases {
  background:
    linear-gradient(rgba(242,233,204,.88), rgba(242,233,204,.84)),
    url("/assets/landing/panel-cases-b8341407.webp") center / cover no-repeat;
  color: var(--fl-ink);
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.fl-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,.78); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fl-line);
}
.fl-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.fl-nav__logo-img { height: 20px; width: auto; display: block; }
.fl-nav__links { display: flex; gap: 30px; align-items: center; }
.fl-nav__links a { font-size: 14px; color: var(--fl-cream-text); opacity: .8; transition: opacity .15s, color .15s; }
.fl-nav__links a:hover { opacity: 1; color: var(--fl-orange); }
.fl-nav__cta { display: flex; gap: 10px; align-items: center; }

/* ── Buttons (design: squared, caps) ─────────────────────────────────────── */
.fl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 3px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.fl-btn:hover { transform: translateY(-1px); }
.fl-btn--primary { background: var(--fl-blue); color: #fff; }
.fl-btn--primary:hover { background: var(--fl-blue-soft); }
.fl-btn--gold { background: var(--fl-orange); color: var(--fl-ink); }
.fl-btn--ghost { border-color: rgba(242,231,201,.45); color: var(--fl-cream-text); }
.fl-btn--ghost:hover { border-color: var(--fl-cream-text); background: rgba(255,255,255,.05); }
.fl-btn--ink { background: var(--fl-ink); color: var(--fl-white); }

/* ── Type system ─────────────────────────────────────────────────────────── */
.fl-display { font-weight: 800; letter-spacing: -.01em; line-height: .95; }
.fl-h2 {
  font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .96;
  font-size: clamp(32px, 4.6vw, 62px);
  color: var(--fl-cream-text);
  margin-bottom: 16px;
}
.fl-h2 em { font-style: normal; color: var(--fl-blue); }
.fl-h2 em.fl-o { color: var(--fl-orange); }
.fl-panel--washed .fl-h2, .fl-panel--cases .fl-h2 { color: var(--fl-ink); }

.fl-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fl-blue-soft); margin-bottom: 14px;
}
.fl-eyebrow--orange { color: var(--fl-orange); }

.fl-lead { font-size: clamp(15px, 1.8vw, 18px); color: rgba(245,244,241,.78); max-width: 720px; }
.fl-panel--washed .fl-lead, .fl-panel--cases .fl-lead { color: var(--fl-ink-muted); }

/* Caps intro line under big headlines (design sets these all-caps, small) */
.fl-sub {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(242,231,201,.82); max-width: 880px; line-height: 1.7;
}
.fl-panel--cases .fl-sub { color: var(--fl-ink-muted); }

.fl-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(242,231,201,.8); margin-bottom: 12px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.fl-hero__meta {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(242,231,201,.8); margin-bottom: clamp(28px, 4vw, 48px);
}
.fl-hero__logo { width: clamp(240px, 34vw, 430px); height: auto; display: block; margin-bottom: 26px; }
.fl-hero__copy { font-size: 16px; color: rgba(245,244,241,.92); max-width: 520px; }
.fl-hero__facts {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(245,244,241,.85); margin: 8px 0 26px; max-width: 520px;
}
.fl-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.fl-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(40px, 6vw, 80px);
}
.fl-stat__num {
  font-weight: 900; font-size: clamp(44px, 5vw, 68px); line-height: 1;
  letter-spacing: -.02em; color: var(--fl-blue);
}
.fl-stat__num em { font-style: normal; color: var(--fl-orange); }
.fl-stat__label { font-size: 13px; color: rgba(245,244,241,.85); margin-top: 8px; }

/* ── Service cards (QUÉ HACEMOS) ─────────────────────────────────────────── */
.fl-grid { display: grid; gap: 20px; }
.fl-grid--2 { grid-template-columns: 1fr 1fr; }
.fl-card {
  background: #111110; border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px; padding: 26px 28px;
  display: flex; flex-direction: column;
}
.fl-card__tag {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,244,241,.65);
}
.fl-card__title {
  font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .01em;
  margin: 8px 0 10px;
}
.fl-card__title--blue { color: var(--fl-blue-soft); }
.fl-card__title--orange { color: var(--fl-orange); }
.fl-card__text { font-size: 14px; color: rgba(245,244,241,.75); line-height: 1.65; }
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fl-chip-sq {
  font-size: 11px; letter-spacing: .04em; padding: 4px 10px;
  border: 1px solid rgba(245,244,241,.4); color: rgba(245,244,241,.85);
}

/* ── Ecosystem panel ─────────────────────────────────────────────────────── */
.fl-eco__head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start;
  margin-bottom: clamp(40px, 6vw, 90px);
}
.fl-eco__brandmark { width: 190px; height: auto; opacity: .92; margin-bottom: 18px; }
.fl-eco__copy { font-size: 14.5px; color: rgba(245,244,241,.85); line-height: 1.65; margin-bottom: 22px; }

.fl-brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 22px; }
.fl-brand { border-left: 1px solid var(--fl-line); padding-left: 16px; }
.fl-brand:first-child { border-left: 0; padding-left: 0; }
.fl-brand__name {
  font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .02em;
  line-height: 1.15;
}
.fl-brand__name--blue { color: var(--fl-blue-soft); }
.fl-brand__name--orange { color: var(--fl-orange); }
.fl-brand__desc { font-size: 11.5px; color: rgba(245,244,241,.6); margin-top: 8px; line-height: 1.55; }

/* ── FRST GO ─────────────────────────────────────────────────────────────── */
.fl-go__head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: end; }
.fl-go__title { margin-bottom: 6px; }
.fl-go__phases {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fl-white); margin-top: 4px;
}
.fl-go__letters {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px);
}
.fl-go__letter { font-weight: 900; font-size: clamp(54px, 9vw, 150px); line-height: .9; letter-spacing: -.02em; }
.fl-go__letter--blue { color: var(--fl-blue); }
.fl-go__letter--cream { color: var(--fl-cream-text); }
.fl-go__letter--orange { color: var(--fl-orange); }
.fl-go__letter--red { color: var(--fl-red); }

.fl-go__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fl-go__box {
  border: 1px solid; padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(0,0,0,.4);
}
.fl-go__box--blue { border-color: var(--fl-blue); }
.fl-go__box--cream { border-color: rgba(242,231,201,.7); }
.fl-go__box--orange { border-color: var(--fl-orange); }
.fl-go__box--red { border-color: var(--fl-red); }
.fl-go__box-label { font-size: 12px; }
.fl-go__box-title { font-weight: 800; font-size: 15px; text-transform: uppercase; line-height: 1.2; }
.fl-go__box-text { font-size: 12.5px; color: rgba(245,244,241,.8); line-height: 1.6; flex: 1; }
.fl-go__box-foot { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fl-go__box--blue .fl-go__box-label, .fl-go__box--blue .fl-go__box-title, .fl-go__box--blue .fl-go__box-foot { color: var(--fl-blue-soft); }
.fl-go__box--cream .fl-go__box-label, .fl-go__box--cream .fl-go__box-title, .fl-go__box--cream .fl-go__box-foot { color: var(--fl-cream-text); }
.fl-go__box--orange .fl-go__box-label, .fl-go__box--orange .fl-go__box-title, .fl-go__box--orange .fl-go__box-foot { color: var(--fl-orange); }
.fl-go__box--red .fl-go__box-label, .fl-go__box--red .fl-go__box-title, .fl-go__box--red .fl-go__box-foot { color: var(--fl-red); }

/* ── Timeline (24 años) ──────────────────────────────────────────────────── */
.fl-timeline {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 16px;
  overflow-x: auto; padding-bottom: 8px;
  margin-top: clamp(32px, 5vw, 56px);
}
.fl-tl__year {
  color: var(--fl-blue-soft); font-weight: 900; font-size: 24px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
.fl-tl__year::after {
  content: ""; flex: 1; min-width: 18px; height: 8px;
  border: 1px solid var(--fl-orange); border-radius: 99px; opacity: .9;
}
.fl-tl:last-child .fl-tl__year::after { display: none; }
.fl-tl__brands {
  margin-top: 12px; padding-left: 10px;
  border-left: 1px dashed rgba(242,231,201,.35);
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(242,231,201,.85); line-height: 1.9;
}

/* ── Offices ─────────────────────────────────────────────────────────────── */
.fl-offices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.fl-globe-img { width: 100%; max-width: 440px; height: auto; margin: 0 auto; display: block; }
.fl-cities {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  margin-top: 26px;
  font-weight: 800; font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: .04em; text-transform: uppercase;
}
.fl-city { color: var(--fl-cream-text); }
.fl-city--alt { color: var(--fl-orange); }
.fl-cities__sep { color: rgba(242,231,201,.45); font-weight: 700; }

/* ── Cases (Work that moves numbers) ─────────────────────────────────────── */
.fl-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(32px, 5vw, 60px); }
.fl-case__tag {
  color: var(--fl-red); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
}
.fl-case__num {
  color: var(--fl-blue); font-weight: 900; font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1; letter-spacing: -.02em; margin: 8px 0 6px;
}
.fl-case__kpi {
  font-weight: 800; font-size: 13px; letter-spacing: .02em; text-transform: uppercase;
  color: var(--fl-ink); margin-bottom: 10px;
}
.fl-case__text { font-size: 13.5px; color: var(--fl-ink-muted); line-height: 1.65; }

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.fl-cta__title { font-size: clamp(42px, 7vw, 88px); margin-bottom: 18px; }
.fl-cta__copy { max-width: 460px; }
.fl-cta__actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.fl-cta__foot {
  margin-top: clamp(30px, 5vw, 56px); text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fl-ink);
}

/* ── AI section (hidden until the bot ships — keep styles) ───────────────── */
.fl-ai {
  background:
    linear-gradient(rgba(8,8,8,.85), rgba(8,8,8,.85)),
    url("/assets/landing/panel-ai-2a514078.webp") center / cover no-repeat;
}
.fl-ai__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.fl-ai__orb { width: 92px; height: 92px; border-radius: 50%; margin-bottom: 24px;
  background: radial-gradient(circle at 35% 30%, var(--fl-orange), #7c5104); box-shadow: 0 0 60px rgba(243,159,8,.35); }
.fl-ai__bar { display: flex; gap: 10px; align-items: center; background: var(--fl-panel);
  border: 1px solid var(--fl-blue); border-radius: 999px; padding: 10px 10px 10px 18px; max-width: 460px; }
.fl-ai__bar input { flex: 1; background: transparent; border: 0; color: var(--fl-white); font-size: 14px; outline: none; }
.fl-ai__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.fl-chip { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-orange);
  border: 1px solid rgba(243,159,8,.4); border-radius: 999px; padding: 5px 12px; }
.fl-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 220px; }
.fl-wave span { width: 5px; border-radius: 4px; background: var(--fl-blue-soft); opacity: .85;
  animation: fl-eq 1.1s ease-in-out infinite; }
@keyframes fl-eq { 0%,100% { height: 18px; } 50% { height: 120px; } }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.fl-footer { background: var(--fl-bg); border-top: 1px solid var(--fl-line); padding: 40px 0; }
.fl-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fl-footer__logo-img { height: 20px; width: auto; }
.fl-footer small { color: var(--fl-muted); font-size: 13px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fl-grid--2, .fl-eco__head, .fl-go__head, .fl-offices__grid,
  .fl-cases { grid-template-columns: 1fr; }
  .fl-go__grid { grid-template-columns: repeat(2, 1fr); }
  .fl-brands { grid-template-columns: repeat(3, 1fr); }
  .fl-brand { border-left: 0; padding-left: 0; }
  .fl-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .fl-go__letters { flex-wrap: wrap; justify-content: flex-start; gap: 8px 20px; }
  .fl-nav__links { display: none; }
  .fl-band { padding: 18px 0; }
  .fl-section { padding: 16px 0; }
  :root { --fl-radius: 24px; }
}
@media (max-width: 560px) {
  .fl-go__grid { grid-template-columns: 1fr; }
  .fl-brands { grid-template-columns: repeat(2, 1fr); }
}
