/* ===== Design tokens ===== */
:root {
  --navy: #142150;
  --navy-dark: #0b1638;
  --charcoal: #2b2f33;
  --white: #ffffff;
  --off-white: #f5f7ff;
  --border: #e2e5f5;
  --muted: #63697a;

  --accent: #2b4fff;
  --accent-hover: #1d3bdb;
  --accent-soft: rgba(43, 79, 255, 0.1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1140px;
  --radius: 8px;
  --radius-sm: 5px;

  --shadow-sm: 0 1px 2px rgba(20, 33, 80, 0.06);
  --shadow-md: 0 10px 28px -10px rgba(20, 33, 80, 0.16);
  --shadow-lg: 0 20px 44px -14px rgba(20, 33, 80, 0.22);

  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h2 { font-size: clamp(1.65rem, 1.35rem + 1.2vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.18rem; margin-bottom: 0.6rem; }

p { color: var(--charcoal); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.container.narrow { max-width: 760px; }

.section { padding: 100px 0; position: relative; }
.section.alt-bg { background: var(--off-white); }

.center { text-align: center; }
.muted { color: var(--muted); }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.icon-sm { width: 15px; height: 15px; }

/* ===== Kicker labels ===== */
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker.center { display: block; }

.hero-tagline {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px -4px rgba(43, 79, 255, 0.5);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-dark); transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 74px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; flex-shrink: 0; }

.main-nav { display: flex; gap: 2px; flex-shrink: 1; }

.main-nav a {
  padding: 8px 11px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--navy); background: var(--off-white); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-actions .btn.nav-cta { padding: 10px 18px; font-size: 0.88rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(165deg, var(--accent) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 120px 0 104px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  justify-content: center;
}

.hero-copy { max-width: 720px; text-align: center; }
.hero-copy .hero-cta { justify-content: center; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 1.7rem + 2vw, 3.1rem);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 38px;
  max-width: 580px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== What We Do ===== */
.what-we-do p { font-size: 1.05rem; margin-bottom: 16px; }
.what-we-do p:last-child { margin-bottom: 0; }

.bento-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  align-items: stretch;
}

.bento-tile {
  padding: 26px 22px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.bento-tile-accent {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-14px);
  box-shadow: var(--shadow-lg);
}
.bento-tile-accent:hover { transform: translateY(-18px); }
.bento-tile-accent .bento-label { color: var(--white); }
.bento-tile-accent .bento-desc { color: rgba(255, 255, 255, 0.75); }

.bento-label { display: block; font-weight: 700; color: var(--navy); font-size: 0.98rem; margin-bottom: 6px; }
.bento-desc { font-size: 0.87rem; color: var(--muted); margin: 0; }

/* ===== Two-column sections ===== */
.section-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.section-grid.reverse .section-copy { order: 2; }
.section-grid.reverse .section-form { order: 1; }

.section-lead { font-size: 1.06rem; color: var(--muted); margin-bottom: 26px; }

.feature-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; font-size: 0.97rem; }

.icon-check {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  padding: 4px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  margin-top: 1px;
}

.sub-heading { margin-top: 34px; }

.simple-list li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 0.94rem; color: var(--muted); }
.simple-list li::before { content: "\2013"; position: absolute; left: 0; color: var(--accent); }

/* ===== Forms ===== */
.card-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.card-form h3 { margin-bottom: 20px; }

.form-row { margin-bottom: 16px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-row.two-col > div { margin-bottom: 16px; }

label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

input, textarea {
  width: 100%;
  padding: 10px 13px;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { resize: vertical; }

.form-status { margin-top: 14px; font-size: 0.89rem; min-height: 1.2em; }
.form-status.success { color: #2f7a4f; }
.form-status.error { color: #b3261e; }

/* ===== Why LATAM feature grid (bento) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto auto;
  gap: 22px;
  margin-top: 42px;
}

.feature-card {
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-card-lg {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 34px;
}
.feature-card-lg h3 { font-size: 1.3rem; }
.feature-card-lg p { font-size: 1rem; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
}
.feature-icon .icon { width: 19px; height: 19px; }

.feature-card p { font-size: 0.95rem; color: var(--muted); }

/* ===== How We Work: vertical stepper ===== */
.timeline { position: relative; max-width: 640px; margin: 56px auto 0; }

.timeline-item { position: relative; display: flex; gap: 24px; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }

.timeline-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-content { padding-top: 7px; }
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.92rem; color: var(--muted); }

/* ===== About ===== */
.about-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }

.about-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }

.avatar-placeholder {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.about-header h3 { margin-bottom: 4px; }

.role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.lang-toggle { display: inline-flex; gap: 2px; padding: 4px; background: var(--off-white); border-radius: 999px; }
.header-actions .lang-toggle { border: 1px solid var(--border); }

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 13px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

.bio-text { color: var(--muted); font-size: 0.96rem; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 60px 0 30px;
}

.footer-inner { display: flex; flex-direction: column; gap: 36px; }

.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.footer-tagline { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }

.footer-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.footer-cta .btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.footer-cta .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.18s ease, color 0.18s ease;
}
.linkedin-link:hover { background: var(--accent); color: var(--white); }

.location, .copyright { color: rgba(255, 255, 255, 0.5); }

/* ===== Responsive ===== */

/* Nav collapses to the hamburger well before it would ever run out of
   room in the bar — this is what keeps the header from wrapping. */
@media (max-width: 1140px) {
  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: var(--shadow-md);
    padding: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; border-radius: var(--radius-sm); white-space: normal; }
  .nav-toggle { display: flex; }
}

@media (max-width: 860px) {
  .section-grid, .section-grid.reverse { grid-template-columns: 1fr; gap: 40px; }
  .section-grid.reverse .section-copy { order: 1; }
  .section-grid.reverse .section-form { order: 2; }

  .feature-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .feature-card-lg { grid-row: auto; }

  .bento-trio { grid-template-columns: 1fr; }
  .bento-tile-accent, .bento-tile-accent:hover { transform: none; }
}

@media (max-width: 520px) {
  .header-actions .nav-cta { display: none; }
}

@media (max-width: 720px) {
  .hero { padding: 88px 0 64px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.02rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .section { padding: 64px 0; }

  .form-row.two-col { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-cta { flex-direction: column; width: 100%; }
  .footer-cta .btn { width: 100%; }

  .about-header { flex-direction: column; align-items: flex-start; }

  .timeline-item { gap: 16px; }
}
