/* ============================================================
   CONECTAR VALORES — Brand Identity CSS
   Colors: #154180 (Azul), #EBA43A (Dorado), #0F2E59 (Deep),
           #2A66A8 (Mid Blue), #1B2230 (Ink), #F4F2EC (Ivory)
   Fonts:  Archivo (primary) · Spectral (editorial)
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --blue:       #154180;
  --gold:       #EBA43A;
  --blue-mid:   #2A66A8;
  --blue-deep:  #0F2E59;
  --gold-dark:  #C6852C;
  --ink:        #1B2230;
  --slate:      #586273;
  --ivory:      #F4F2EC;
  --white:      #ffffff;

  --font-body:  'Archivo', sans-serif;
  --font-edit:  'Spectral', serif;

  --sp:   6rem 0;          /* section padding */
  --max:  1200px;
  --ease: all 0.3s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.875rem;
}
.section-title {
  font-family: var(--font-edit);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.section-title span { color: var(--gold); }
.section-sub {
  font-size: 0.975rem;
  color: var(--slate);
  line-height: 1.75;
  max-width: 580px;
}
.gold-rule {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--ease);
}
.btn-primary            { background: var(--gold); color: var(--ink); }
.btn-primary:hover      { background: var(--gold-dark); transform: translateY(-2px); }
.btn-outline            { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover      { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }
.btn-outline-dark       { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline-dark:hover { background: var(--blue); color: #fff; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .nav:hover {
    background: var(--blue-deep);
    box-shadow: 0 2px 24px rgba(0,0,0,0.2);
  }
}
.nav.scrolled {
  background: var(--blue-deep);
  padding: 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { height: 110px; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--ease);
}
.nav__links a:hover { color: var(--gold); }
.nav__cta { padding: 0.6rem 1.5rem; font-size: 0.75rem; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--blue-deep);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  font-weight: 500;
  transition: var(--ease);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: #fff; font-size: 1.5rem;
  cursor: pointer;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--blue-deep);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Background video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
/* Hex pattern overlay */
.hero__hexes {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70' viewBox='0 0 60 70'%3E%3Cpolygon points='30,2 58,17 58,53 30,68 2,53 2,17' fill='none' stroke='%23EBA43A' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 72px 84px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 60, 0.55);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 5rem;
}
.hero__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-edit);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__title em {
  color: var(--gold);
  font-style: normal;
  font-weight: 400;
}
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
  text-align: justify;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}
.hero__stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(235,164,58,0.3);
  padding-top: 2rem;
}
.stat__num {
  display: block;
  font-family: var(--font-edit);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat__lbl {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--sp);
  background: var(--ivory);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__text p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about__quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
}
.about__quote p {
  font-family: var(--font-edit);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blue) !important;
  line-height: 1.65;
}
.about__award {
  background: var(--blue-deep);
  color: #fff;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}
.about__award-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.about__award p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}
/* Visual side: stacked image cards */
.about__vis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
.about__img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.about__img--wide { grid-column: 1 / -1; aspect-ratio: 16/7; }
.about__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,46,89,0.45);
  transition: background 0.3s ease;
}
.about__img:hover::before { background: rgba(15,46,89,0.25); }
.about__img .cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}


/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--sp);
  background: var(--blue);
  position: relative;
  overflow: hidden;
}
/* Decorative rings */
.services::before,
.services::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(235,164,58,0.12);
  pointer-events: none;
}
.services::before { width: 600px; height: 600px; right: -150px; top: -200px; }
.services::after  { width: 380px; height: 380px; right: -50px;  top: -80px; }

.services__hd { color: #fff; margin-bottom: 3.5rem; position: relative; z-index: 1; }
.services__hd .section-title { color: #fff; }
.services__hd .section-sub   { color: rgba(255,255,255,0.62); }
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.segment {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2.5rem;
  transition: var(--ease);
}
.segment:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.segment__badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.segment__h { font-family: var(--font-edit); font-size: 1.7rem; font-weight: 300; color: #fff; margin-bottom: 0.4rem; }
.segment__tag { font-size: 0.78rem; color: var(--gold); font-style: italic; margin-bottom: 1.75rem; }
.segment__items { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.svc-name { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 0.3rem; }
.svc-list { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.5; }


/* ============================================================
   WHY US
   ============================================================ */
.why {
  padding: var(--sp);
  background: var(--white);
}
.why__hd { text-align: center; margin-bottom: 4rem; }
.why__hd .section-sub   { margin: 0 auto; }
.why__hd .gold-rule     { margin: 0 auto 0; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.why-card {
  padding: 2.5rem;
  border: 1px solid #e6e3dc;
  position: relative;
  overflow: hidden;
  transition: var(--ease);
}
.why-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.35s ease;
}
.why-card:hover { box-shadow: 0 8px 36px rgba(21,65,128,0.09); transform: translateY(-3px); }
.why-card:hover::before { transform: scaleY(1); }
.why-card__n {
  font-family: var(--font-edit);
  font-size: 2.75rem;
  font-weight: 300;
  color: rgba(21,65,128,0.07);
  position: absolute;
  top: 0.75rem; right: 1.25rem;
  line-height: 1;
}
.why-card__h {
  font-family: var(--font-edit);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 1rem;
}
.why-card__p { font-size: 0.88rem; color: var(--slate); line-height: 1.75; }


/* ============================================================
   VALUES & SDGs
   ============================================================ */
.vals {
  padding: var(--sp);
  background: var(--ivory);
}
.vals__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.vals__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 0.5rem; }
.val-item { display: flex; gap: 0.875rem; align-items: flex-start; }
.val-dot {
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.val-name { font-size: 0.88rem; font-weight: 700; color: var(--blue); margin-bottom: 0.25rem; }
.val-desc { font-size: 0.78rem; color: var(--slate); line-height: 1.55; }
/* SDG box */
.sdg-box {
  background: var(--blue-deep);
  padding: 2.5rem;
  color: #fff;
}
.sdg-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.sdg-h {
  font-family: var(--font-edit);
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.5rem;
}
.sdg-sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 1.5rem; }
.sdg-list { display: flex; flex-direction: column; gap: 0.625rem; }
.sdg-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.055);
  transition: var(--ease);
}
.sdg-item:hover { background: rgba(255,255,255,0.1); }
.sdg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}
.sdg-lbl  { font-size: 0.84rem; color: rgba(255,255,255,0.85); }


/* ============================================================
   EXPERIENCE / TRACK RECORD
   ============================================================ */
.exp {
  padding: var(--sp);
  background: var(--blue-deep);
  color: #fff;
}
.exp__hd { margin-bottom: 3rem; }
.exp__hd .section-title { color: #fff; }
.exp__note { font-size: 0.9rem; color: rgba(255,255,255,0.55); max-width: 580px; }
/* Tabs */
.exp__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 2rem;
}
.tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--ease);
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab-btn.active,
.tab-btn:hover { color: var(--gold); border-bottom-color: var(--gold); }
/* Transaction grid */
.tx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
}
.tx-card {
  background: var(--blue-deep);
  padding: 1.375rem 1.25rem;
  transition: var(--ease);
}
.tx-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
.tx-year  { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.5rem; }
.tx-client{ font-size: 0.875rem; font-weight: 600; color: #fff; margin-bottom: 0.35rem; }
.tx-type  {
  display: inline-block;
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  background: rgba(235,164,58,0.15);
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.tx-desc  { font-size: 0.77rem; color: rgba(255,255,255,0.5); line-height: 1.45; }
/* Key projects */
.projects-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 3.5rem 0 1.25rem;
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.proj-card {
  position: relative;
  aspect-ratio: 4/3;
  perspective: 900px;
  cursor: pointer;
}
/* === FLIP CARDS === */
.proj-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.proj-card.flipped .proj-flip { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-front {
  background-size: cover;
  background-position: center;
}
.flip-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(15,46,89,0.88) 100%);
  transition: background 0.3s ease;
}
.proj-card:hover .flip-front::after {
  background: linear-gradient(transparent 10%, rgba(15,46,89,0.75) 100%);
}
.proj-card__lbl {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: visibility 0s 0.3s; /* al cerrar: espera mitad de la animación antes de mostrarse */
}
.proj-card.flipped .proj-card__lbl,
.proj-card.flipped .flip-front::after {
  visibility: hidden;
  transition: visibility 0s 0s; /* al abrir: oculta inmediatamente */
}
.flip-back {
  transform: rotateY(180deg);
  background: var(--blue-deep);
  border-top: 3px solid var(--gold);
  border: 1px solid rgba(235,164,58,0.25);
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.1rem 0.9rem;
  overflow: hidden;
}
.fb-role {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}
.fb-rule {
  border: none;
  border-top: 1px solid rgba(235,164,58,0.3);
  margin-bottom: 0.7rem;
}
.fb-amount {
  font-family: var(--font-edit);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.fb-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.fb-desc {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  flex: 1;
}
.fb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.fb-year {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.fb-sector {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  background: rgba(235,164,58,0.12);
  color: var(--gold);
  border: 1px solid rgba(235,164,58,0.25);
}
/* === /FLIP CARDS === */


/* ============================================================
   TEAM — Bio cards with circular photos (slides 20-22 style)
   ============================================================ */
.team {
  padding: var(--sp);
  background: var(--ivory);
}
.team__hd { text-align: center; margin-bottom: 3rem; }
.team__hd .section-sub { margin: 0 auto; }

/* Bio card grid — 5 cols for core team, 4 for advisors */
.team__bio-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.team__bio-grid--5 { grid-template-columns: repeat(5, 1fr); }
.team__bio-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Individual bio card */
.tm-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(15,46,89,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(15,46,89,0.13);
}

/* Circular photo */
.tm-card__photo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  margin: 1.5rem auto 0;
  flex-shrink: 0;
}
.team__bio-grid--4 .tm-card__photo-wrap {
  width: 130px;
  height: 130px;
}
.tm-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Name / role header */
.tm-card__hd {
  width: 100%;
  background: var(--blue-deep);
  padding: 0.6rem 0.75rem 0.5rem;
  margin-top: 1rem;
}
.tm-card__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}
.team__bio-grid--4 .tm-card__name { font-size: 0.88rem; }
.tm-card__role {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.team__bio-grid--4 .tm-card__role { font-size: 0.65rem; }

/* Bio text */
.tm-card__bio {
  font-size: 0.77rem;
  color: var(--slate);
  line-height: 1.7;
  padding: 1rem 1rem 1.25rem;
  text-align: left;
  flex: 1;
}
.team__bio-grid--4 .tm-card__bio { font-size: 0.8rem; }

/* Responsive */
@media (max-width: 1100px) {
  .team__bio-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .team__bio-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .team__bio-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team__bio-grid--5,
  .team__bio-grid--4 { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   CLIENTS — Logo wall grid
   ============================================================ */
.clients {
  padding: var(--sp);
  background: var(--white);
}
.clients__hd { text-align: center; margin-bottom: 3.5rem; }
.clients__hd .section-sub { margin: 0 auto; }
.clients__hd .gold-rule   { margin: 0 auto; }

/* Group heading */
.clients__group-h {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.clients__group-h::after { content: ''; flex: 1; height: 1px; background: var(--gold); opacity: 0.25; }
.clients__group { margin-bottom: 3.5rem; }
.clients__group:last-child { margin-bottom: 0; }
.clients__pe-note { font-size: 0.84rem; color: var(--slate); line-height: 1.7; margin-bottom: 1.5rem; max-width: 700px; }

/* Logo wall: bordered grid cells */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid #e0ddd6;
  border-left: 1px solid #e0ddd6;
}
.logo-wall--5col { grid-template-columns: repeat(5, 1fr); }

.logo-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100px;          /* fixed height so all cells are uniform */
  padding: 1.25rem 1.25rem;
  border-right: 1px solid #e0ddd6;
  border-bottom: 1px solid #e0ddd6;
  transition: background 0.25s ease;
  position: relative;
}
.logo-cell:hover { background: var(--ivory); }

/* Company name tooltip on hover */
.logo-cell::after {
  content: attr(data-name);
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: var(--blue-deep);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.logo-cell:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* The logo image — fixed container box */
.logo-img {
  max-width: 110px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.55) brightness(1.2);
  opacity: 0.5;
  transition: filter 0.35s ease, opacity 0.35s ease;
  display: block;
  flex-shrink: 0;
}
.logo-cell:hover .logo-img {
  filter: grayscale(0%) contrast(1) brightness(1);
  opacity: 1;
}

/* Text fallback — styled as a clean branded chip */
.logo-fallback {
  display: none; /* shown by JS only */
  font-family: 'Archivo', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid rgba(21,65,128,0.2);
  border-radius: 4px;
  background: rgba(21,65,128,0.04);
  max-width: 120px;
  word-break: break-word;
}
.logo-cell:hover .logo-fallback {
  color: var(--blue);
  border-color: rgba(21,65,128,0.45);
  background: rgba(21,65,128,0.08);
}

/* Also update tx-card to support a logo thumbnail */
.tx-logo {
  height: 28px;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
}
.tx-logo img {
  max-width: 90px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.tx-logo img[data-hidden="true"] { display: none; }


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 6rem 0 2.5rem;
  background: var(--blue);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact__info .section-title { color: #fff; }
.contact__info .section-sub   { color: rgba(255,255,255,0.65); }
.contact__deets { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.c-detail { display: flex; align-items: center; gap: 1rem; }
.c-icon {
  width: 36px; height: 36px;
  background: rgba(235,164,58,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.9rem;
  font-style: normal;
}
.c-lbl  { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 0.2rem; }
.c-val  { font-size: 0.875rem; color: rgba(255,255,255,0.82); }
/* Form */
.contact__form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2.5rem;
}
.f-group { margin-bottom: 1.125rem; }
.f-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.45rem;
}
.f-input, .f-select, .f-textarea {
  width: 100%;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.875rem 1rem;
  outline: none;
  transition: var(--ease);
  -webkit-appearance: none;
}
.f-input::placeholder, .f-textarea::placeholder { color: rgba(255,255,255,0.28); }
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}
.f-textarea { min-height: 120px; resize: vertical; }
.f-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23EBA43A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: rgba(255,255,255,0.065);
  padding-right: 2.5rem;
  cursor: pointer;
}
.f-select option { background: var(--blue-deep); color: #fff; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-submit { width: 100%; justify-content: center; padding: 1rem; margin-top: 0.375rem; }
.f-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.55;
}
/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 0;
}
.form-success.visible {
  display: block;
}
.form-success__icon {
  width: 56px; height: 56px;
  background: rgba(235,164,58,0.15);
  border: 1px solid rgba(235,164,58,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold);
  font-size: 1.4rem;
}
.form-success h3 { font-family: var(--font-edit); font-weight: 300; color: #fff; margin-bottom: 0.5rem; font-size: 1.4rem; }
.form-success p  { font-size: 0.88rem; color: rgba(255,255,255,0.6); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 3.5rem 0 1.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.5rem;
}
.footer__logo { height: 110px; width: auto; margin-bottom: 1.25rem; }
.footer__tagline {
  font-family: var(--font-edit);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.footer__social { display: flex; gap: 0.625rem; }
.footer__social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
  font-size: 0.8rem; font-weight: 700;
  color: rgba(255,255,255,0.55);
}
.footer__social a:hover { background: var(--gold); color: var(--ink); }
.footer__col-h {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__links a { font-size: 0.84rem; color: rgba(255,255,255,0.5); transition: var(--ease); }
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { color: rgba(255,255,255,0.3); transition: var(--ease); }
.footer__bottom-links a:hover { color: var(--gold); }


/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tx-grid, .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall            { grid-template-columns: repeat(4, 1fr); }
  .logo-wall--5col      { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  :root { --sp: 4rem 0; }

  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .about__grid,
  .services__grid,
  .why__grid,
  .vals__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }

  .about__vis-grid { grid-template-columns: 1fr; }
  .about__img--wide { grid-column: auto; }

  .segment__items { grid-template-columns: 1fr; }

  .vals__list { grid-template-columns: 1fr; }

  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }

  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .f-row { grid-template-columns: 1fr; }

  .exp__tabs {
    display: flex;
    flex-direction: column;
    border-bottom: none;
    gap: 0;
    margin-bottom: 1.5rem;
  }
  .tab-btn {
    font-size: 0.75rem;
    padding: 0.9rem 1.25rem;
    border: none;
    border-left: 3px solid rgba(255,255,255,0.12);
    border-radius: 0;
    text-align: left;
    margin-bottom: 0;
    width: 100%;
    background: rgba(255,255,255,0.04);
  }
  .tab-btn + .tab-btn { border-top: 1px solid rgba(255,255,255,0.07); }
  .tab-btn.active {
    border-left-color: var(--gold);
    background: rgba(235,164,58,0.08);
    color: var(--gold);
  }

  .logo-wall, .logo-wall--5col { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .tx-grid, .proj-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { justify-content: center; }
  .hero__stats { gap: 1.25rem; }
  .logo-wall, .logo-wall--5col { grid-template-columns: repeat(2, 1fr); }
  .logo-wall--5col .logo-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero__content { padding-top: 8rem; }
}

/* ============================================================
   WOW EFFECTS — para revertir, eliminar este bloque completo
   ============================================================ */

/* 2. Parallax: video necesita escala extra para cubrir bordes */
.hero__video {
  transform: scale(1.05);
  transition: transform 0.12s ease-out;
}

/* 3. Glassmorphism — team section fondo oscuro */
.team {
  background: linear-gradient(135deg, #091a33 0%, #154180 55%, #091a33 100%);
}
.team .section-title { color: #fff; }
.team .section-sub   { color: rgba(255,255,255,0.62); }
.team .section-eyebrow { color: var(--gold); }
.tm-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.tm-card:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 18px 52px rgba(0,0,0,0.38);
}
.tm-card__bio { color: rgba(255,255,255,0.62); }

/* 4. Gold rule — arranca en 0, se dibuja al scroll */
.gold-rule {
  width: 0;
  transition: width 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}
.gold-rule.drawn { width: 44px; }

/* ============================================================
   FIN WOW EFFECTS
   ============================================================ */
