:root {
  --fl-ink: #1a1a2e;
  --fl-blue: #0d3b6e;
  --fl-blue-light: #1a5296;
  --fl-accent: #1565c0;
  --fl-light: #e3edfa;
  --fl-muted: #5a6880;
  --fl-rule: #c5d0e0;
  --fl-bg: #f5f7fb;
  --fl-gutter: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fl-ink);
  background: var(--fl-bg);
}

/* KEYFRAMES */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* SCROLL REVEAL */
.fl-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fl-reveal.fl-visible {
  opacity: 1;
  transform: translateY(0);
}

/* NAV */
.fl-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--fl-gutter);
  border-bottom: 1px solid var(--fl-rule);
  background: rgba(245, 247, 251, 0.97);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.fl-nav.fl-scrolled {
  box-shadow: 0 2px 20px rgba(13, 59, 110, 0.08);
  border-bottom-color: transparent;
}
.fl-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--fl-blue); text-decoration: none;
}
.fl-logo span { color: var(--fl-accent); }
.fl-nav-links { display: flex; gap: 28px; list-style: none; }
.fl-nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--fl-muted); text-decoration: none; text-transform: uppercase;
  transition: color 0.2s;
}
.fl-nav-links a:hover { color: var(--fl-accent); }

/* HERO */
.fl-hero {
  padding: 100px var(--fl-gutter) 80px;
  border-bottom: 1px solid var(--fl-rule);
  position: relative; overflow: hidden;
  background: white;
}
.fl-hero::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--fl-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  border-radius: 50%;
}
.fl-hero::after {
  content: '';
  position: absolute; bottom: -30%; right: 10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(21, 101, 192, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* Hero staggered entrance */
.fl-hero .fl-eyebrow {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.fl-hero h1 {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.fl-hero .fl-hero-desc {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.fl-hero .fl-cta {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.fl-hero .fl-hero-meta {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.fl-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fl-accent);
  margin-bottom: 24px;
}
.fl-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 52px; line-height: 1.12; letter-spacing: -0.025em;
  color: var(--fl-blue); max-width: 620px;
  margin-bottom: 28px;
}
.fl-hero h1 em { font-style: italic; color: var(--fl-accent); }
.fl-hero-desc {
  font-size: 17px; color: var(--fl-muted);
  max-width: 540px; line-height: 1.8;
  margin-bottom: 40px;
}
.fl-cta {
  display: inline-block;
  padding: 13px 28px;
  background: var(--fl-blue);
  color: white;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  border-radius: 6px; cursor: pointer;
  border: none; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.fl-cta:hover {
  background: var(--fl-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.25);
}
.fl-hero-meta {
  display: flex; gap: 48px;
  border-top: 1px solid var(--fl-rule); padding-top: 36px;
  margin-top: 52px;
}
.fl-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 32px; color: var(--fl-blue); display: block;
}
.fl-stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fl-muted);
}

/* SECTIONS */
.fl-section {
  padding: 72px var(--fl-gutter);
  border-bottom: 1px solid var(--fl-rule);
  background: white;
}
.fl-section:nth-child(even) { background: var(--fl-bg); }
.fl-section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 48px;
}
.fl-section-num {
  font-family: 'DM Serif Display', serif;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--fl-accent); text-transform: uppercase;
  flex-shrink: 0;
}
.fl-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px; letter-spacing: -0.015em;
  color: var(--fl-blue);
}

/* VISION / MISION */
.fl-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--fl-rule); border-radius: 6px;
  overflow: hidden;
}
.fl-split-card { padding: 36px 32px; }
.fl-split-card:first-child { border-right: 1px solid var(--fl-rule); }
.fl-split-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fl-accent); margin-bottom: 18px;
}
.fl-split-card p { font-size: 15px; color: #333; line-height: 1.85; }

/* PROYECTOS */
.fl-projects { display: flex; flex-direction: column; }
.fl-project {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: start; gap: 24px;
  padding: 32px 0;
  border-bottom: 0.5px solid var(--fl-rule);
  cursor: pointer;
  transition: background 0.25s, padding 0.25s;
  border-radius: 6px;
}
.fl-project:last-child { border-bottom: none; }
.fl-project:hover {
  background: var(--fl-bg);
  padding-left: 24px;
  padding-right: 24px;
}
.fl-project-idx {
  font-family: 'DM Serif Display', serif;
  font-size: 24px; color: var(--fl-rule); text-align: right;
  padding-top: 4px;
}
.fl-project-body h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: var(--fl-blue); margin-bottom: 8px;
}
.fl-project-body p { font-size: 14px; color: var(--fl-muted); line-height: 1.7; max-width: 560px; }
.fl-tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fl-accent); background: var(--fl-light);
  padding: 5px 12px; border-radius: 4px;
  white-space: nowrap; margin-top: 6px;
}

/* EQUIPO */
.fl-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fl-member {
  padding: 28px 24px;
  border: 1px solid var(--fl-rule);
  border-radius: 6px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.fl-member:hover {
  border-color: var(--fl-accent);
  box-shadow: 0 4px 20px rgba(13, 59, 110, 0.07);
  transform: translateY(-2px);
}
.fl-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--fl-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: var(--fl-accent);
  margin-bottom: 18px;
}
.fl-member h4 { font-weight: 500; font-size: 16px; color: var(--fl-blue); margin-bottom: 4px; }
.fl-member .fl-role {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--fl-accent); margin-bottom: 12px;
}
.fl-member p { font-size: 13px; color: var(--fl-muted); line-height: 1.65; }

/* ALIADOS */
.fl-allies { display: flex; flex-direction: column; }
.fl-ally {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 20px;
  padding: 24px 0;
  border-bottom: 0.5px solid var(--fl-rule);
}
.fl-ally:last-child { border-bottom: none; }
.fl-ally h4 { font-weight: 500; font-size: 16px; color: var(--fl-blue); margin-bottom: 4px; }
.fl-ally p { font-size: 13px; color: var(--fl-muted); }
.fl-ally-type {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fl-muted); background: var(--fl-bg);
  border: 0.5px solid var(--fl-rule);
  padding: 5px 12px; border-radius: 4px; white-space: nowrap;
}

/* FOOTER */
.fl-footer {
  padding: 40px var(--fl-gutter);
  border-top: 1px solid var(--fl-rule);
  background: white;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
}
.fl-footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: var(--fl-blue); margin-bottom: 8px;
}
.fl-footer-logo span { color: var(--fl-accent); }
.fl-footer p { font-size: 13px; color: var(--fl-muted); line-height: 1.7; }
.fl-footer a { color: var(--fl-accent); text-decoration: none; }
.fl-footer a:hover { text-decoration: underline; }
.fl-footer-right { text-align: right; }

/* RESPONSIVE */
@media (max-width: 768px) {
  :root { --fl-gutter: 24px; }
  .fl-nav-links { display: none; }
  .fl-hero { padding: 60px var(--fl-gutter) 48px; }
  .fl-hero h1 { font-size: 36px; }
  .fl-hero-meta { gap: 24px; flex-wrap: wrap; }
  .fl-section { padding: 48px var(--fl-gutter); }
  .fl-split { grid-template-columns: 1fr; }
  .fl-split-card:first-child { border-right: none; border-bottom: 1px solid var(--fl-rule); }
  .fl-team { grid-template-columns: 1fr; }
  .fl-project { grid-template-columns: 40px 1fr; }
  .fl-tag { display: none; }
  .fl-footer { flex-direction: column; }
  .fl-footer-right { text-align: left; }
}
