/* ============================================================
   KNOVOS AV — Stylesheet
   Colors: #000000 | #ffffff | #F4B900 (gold)
   Font: Lato
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #000000;
  --white:   #ffffff;
  --gold:    #F4B900;
  --gray-10: #0d0d0d;
  --gray-15: #151515;
  --gray-20: #202020;
  --gray-40: #404040;
  --gray-60: #808080;
  --gray-90: #909090;
  --font:    'Lato', sans-serif;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:   72px;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-h); overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 20px 0 80px; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--gray-90);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
}
.btn--gold:hover { background: #ffc900; transform: translateY(-2px); }

.btn--outline {
  border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ---------- Image Placeholders ---------- */
.img-placeholder {
  background: var(--gray-20);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 1px dashed var(--gray-40);
  color: var(--gray-60);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.img-placeholder--tall { min-height: 480px; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Directional variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Scale + fade for cards */
.reveal-scale {
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Hero Entrance ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow { animation: heroFadeUp .8s var(--ease) both; animation-delay: .25s; }
.hero__title   { animation: heroFadeUp .9s var(--ease) both; animation-delay: .45s; }
.hero__sub     { animation: heroFadeUp .8s var(--ease) both; animation-delay: .7s;  }
.hero__btns    { animation: heroFadeUp .8s var(--ease) both; animation-delay: .9s;  }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.nav.scrolled {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-symbol { height: 34px; width: auto; }
.nav__logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .08em;
  word-spacing: -.12em;
  color: var(--white);
}
.nav__logo-av { color: var(--white); }

.nav__logo-sep {
  color: var(--gold);
  font-weight: 300;
  margin: 0 1px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo img { height: 24px; width: auto; opacity: .8; }

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  list-style: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.nav__links li a {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.nav__links li a:hover { color: var(--white); }

.nav__cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 9px 20px;
  border-radius: 2px;
  transition: background .2s !important;
}
.nav__cta:hover { background: #ffc900 !important; }

.lang-btn {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--gray-90);
  border: 1px solid var(--gray-40);
  padding: 6px 12px;
  border-radius: 2px;
  transition: all .2s;
  flex-shrink: 0;
}
.lang-btn:hover { color: var(--white); border-color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: 8px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}


.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .8s ease;
}
.hero__video.fade-out { opacity: 0; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.85) 50%, rgba(0,0,0,.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--nav-h);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 820px;
}

.hero__accent {
  font-style: normal;
  -webkit-text-stroke: 2px var(--gold);
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(244,185,0,.22));
}

.hero__ctx {
  font-size: .58em;
  font-weight: 700;
  color: rgba(255,255,255,.90);
  letter-spacing: .01em;
  display: block;
  line-height: 1.15;
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.7;
  letter-spacing: .01em;
}

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

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- STATS ---------- */
.stats {
  background: var(--gray-10);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
}

.stat {
  background: var(--gray-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 16px;
}

.stat__num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-60);
}

/* ---------- SERVICES ---------- */
.services { background: var(--black); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
}

.svc-card {
  perspective: 1000px;
  height: 320px;
  cursor: pointer;
}

.svc-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
}

/* Hover solo en dispositivos con mouse real */
@media (hover: hover) {
  .svc-card:hover .svc-card__inner {
    transform: rotateY(180deg);
  }
}
/* Flip por tap (touch y click) */
.svc-card.flipped .svc-card__inner {
  transform: rotateY(180deg);
}

.svc-card__front,
.svc-card__back {
  position: absolute;
  inset: 0;
  padding: 48px 40px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-card__front {
  background: var(--gray-10);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.svc-card__back {
  background: var(--gold);
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.svc-card__icon {
  width: 72px;
  height: 72px;
  color: var(--gold);
  margin-bottom: 28px;
}

.svc-card__num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--gray-40);
}

.svc-card__front h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: .35em;
  text-transform: uppercase;
}

.svc-card__back h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 16px;
}

.svc-card__back p {
  color: rgba(0,0,0,.75);
  font-size: .95rem;
  line-height: 1.7;
}

/* ---------- WHO WE SERVE — expanding columns ---------- */
.serve { background: var(--black); padding: 20px 0 0; }
.serve .section-head { margin-bottom: 20px; }

.serve-columns {
  display: flex;
  height: calc(100vh - 302px);
  min-height: 380px;
}

.serve-col {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: flex .7s cubic-bezier(.4,0,.2,1);
}

.serve-col.active { flex: 3; }
.serve-col--featured { flex: 1.25; }

/* Ken Burns background */
.serve-col__bg {
  position: absolute;
  inset: 0;
}

.serve-col__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 14s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.1); }
}

/* Overlay */
.serve-col__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.52);
  transition: background .45s;
}
.serve-col:hover .serve-col__overlay   { background: rgba(0,0,0,.38); }
.serve-col.active .serve-col__overlay  { background: rgba(0,0,0,.65); }

/* Gold border appears on hover/active */
.serve-col::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  z-index: 3;
  transform: scaleX(0);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.serve-col:hover::after,
.serve-col.active::after { transform: scaleX(1); }

/* Idle label */
.serve-col__idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  transition: opacity .3s;
}
.serve-col.active .serve-col__idle {
  opacity: 0;
  pointer-events: none;
}

.serve-col__num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--gold);
}

.serve-col__idle h3 {
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  padding: 0 12px;
}

.serve-col__badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}

/* Expanded content */
.serve-col__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  max-width: 580px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s .28s;
}
.serve-col.active .serve-col__content {
  opacity: 1;
  pointer-events: auto;
}

.serve-col__content .tag  { margin-bottom: 14px; }

.serve-col__content h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 10px;
}

.serve-col__content p {
  color: var(--gray-90);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.col__pillars {
  list-style: none;
  margin: 16px 0 28px;
  display: flex;
  flex-direction: column;
}

.col__pillars li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.col__pillars li:first-child {
  border-top: 1px solid rgba(255,255,255,.12);
}

.pillar__num {
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .1em;
  flex-shrink: 0;
}

.pillar__text {
  font-size: .92rem;
  color: rgba(255,255,255,.9);
  line-height: 1.3;
  font-weight: 400;
}

/* ---------- CHURCH FOCUS ---------- */
.church { background: var(--black); }

.church__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.church__text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.church__text p {
  color: var(--gray-90);
  margin-bottom: 18px;
  line-height: 1.75;
}

.church__list {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.church__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.church__list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- PORTFOLIO ---------- */
.portfolio { background: var(--gray-10); }

/* ---------- PORTFOLIO GRID ---------- */
.portfolio.section { padding: 20px 0 80px; }

.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  height: calc(100vh - 382px);
  min-height: 380px;
  gap: 10px;
  margin-top: 28px;
}

.port-grid-item {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.port-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s var(--ease), opacity .6s ease;
}

.port-grid-item img.fading { opacity: 0; }

.port-grid-item:hover img {
  transform: scale(1.04);
}

/* ---------- LIGHTBOX ---------- */
.port-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.97);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.port-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.port-lb__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(.94);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2,0,.2,1), opacity .4s ease;
}

.port-lightbox.open .port-lb__img-wrap {
  transform: scale(1);
  opacity: 1;
}

.port-lb__img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  transition: opacity .25s ease;
}

.port-lb__img-wrap img.switching { opacity: 0; }

.port-lb__close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  backdrop-filter: blur(6px);
}
.port-lb__close:hover { background: rgba(255,255,255,.18); color: #fff; }

.port-lb__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(8px);
}
.port-lb__btn:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-50%) scale(1.08);
}
.port-lb__btn--prev { left: 28px; }
.port-lb__btn--next { right: 28px; }


/* ---------- CLIENTS ---------- */
.clients {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 48px 0 40px;
  overflow: hidden;
}

.clients__header {
  text-align: center;
  margin-bottom: 32px;
}

.clients__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #999;
}

.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.marquee-row {
  height: 96px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-row + .marquee-row {
  margin-top: 8px;
}

.marquee-row__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 96px;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  height: 96px;
}

.client-item img {
  height: 62px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: grayscale(20%) opacity(0.85);
  transition: filter .3s ease;
}

.client-item img:hover {
  filter: grayscale(0%) opacity(1);
}

.marquee-row__track--left {
  animation: marqueeLeft 30s linear infinite;
}

.marquee-row__track--right {
  animation: marqueeRight 35s linear infinite;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---------- TEAM ---------- */
.team { background: var(--black); }

.team.section {
  height: 100vh;
  overflow: hidden;
  padding: 56px 0;
  display: flex;
  flex-direction: column;
}

.team .container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.team .section-head { flex-shrink: 0; margin-bottom: 24px; }

/* Two-column layout: featured left + grid right */
.team__layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

/* ---- Featured card (Edwin) ---- */
.team-featured {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.team-featured__photo {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.team-featured__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-featured__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
}

.team-featured__name {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 3px;
  color: var(--white);
}

.team-featured__name::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0 0;
}

.team-featured__role {
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---- Team grid (rest of team) ---- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
  min-height: 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-align: center;
}

.team-card__photo {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--gray-20);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-card__name {
  font-size: .92rem;
  font-weight: 900;
  margin-bottom: 3px;
  flex-shrink: 0;
}

.team-card__role {
  font-size: .7rem;
  color: var(--gray-60);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
}


.btn--sm {
  font-size: .75rem;
  padding: 8px 18px;
}

/* ---------- ABOUT ---------- */
.about { background: var(--gray-10); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: center;
}

.about__left h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}

.about__left > p {
  color: var(--gray-90);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Mission card */
.mv-card {
  background: var(--gray-20);
  padding: 28px 28px 28px 24px;
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

.mv-card h4 {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.mv-card p {
  color: var(--gray-90);
  line-height: 1.7;
  font-size: .9rem;
}

/* Values column */
.about__values-label {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.value {
  background: var(--gray-20);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 18px 20px;
}

.value--wide { grid-column: 1 / -1; }

.value strong {
  display: block;
  font-size: .95rem;
  font-weight: 900;
  margin-bottom: 5px;
  color: var(--white);
}

.value p {
  font-size: .8rem;
  color: var(--gray-60);
  line-height: 1.5;
}

/* ---------- CONTACT ---------- */
.contact { background: var(--black); }

/* Header: título + subtítulo */
.contact__head {
  text-align: left;
  max-width: 600px;
  margin: 0 0 40px;
}

.contact__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact__head > p {
  color: var(--gray-90);
  line-height: 1.75;
}

/* Detalles en fila abajo del form */
.contact__details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.cd { display: flex; flex-direction: column; gap: 4px; }

.cd__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-60);
}

.cd__val {
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  transition: color .2s;
}
.cd__val:hover { color: var(--gold); }

.cd__social { display: flex; gap: 16px; margin-top: 2px; }

.cd__social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-60);
  transition: color .2s;
  min-height: 32px;
  padding: 4px 0;
}
.cd__social-link:hover { color: var(--white); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 20px; }

.field {
  position: relative;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--gray-15);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
  padding: 20px 16px 8px;
  border-radius: 2px;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }

.field label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: .85rem;
  color: var(--gray-60);
  pointer-events: none;
  transition: all .2s var(--ease);
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: 6px;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--gold);
}

.field--full { width: 100%; }

.field textarea { resize: vertical; min-height: 120px; }

.field select option { background: var(--gray-20); }

.form__success {
  display: none;
  text-align: center;
  color: var(--gold);
  font-size: .9rem;
  font-weight: 700;
  padding: 12px;
}

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), padding .3s var(--ease);
  overflow: hidden;
  max-width: 56px;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
  max-width: 260px;
  padding: 12px 20px 12px 14px;
}
.wa-float__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.wa-float__label {
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s ease .1s, transform .2s ease .1s;
  pointer-events: none;
}
.wa-float:hover .wa-float__label {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--gray-10);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 56px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer__logo img { height: 28px; width: auto; opacity: .8; }

.footer__nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-60);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--white); }

.footer__copy {
  font-size: .78rem;
  color: var(--gray-40);
}
.footer__copy a { color: var(--gray-60); transition: color .2s; }
.footer__copy a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 20px;
}
.footer__social a {
  color: var(--gray-40);
  transition: color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px;
}
.footer__social a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .serve-columns { height: 520px; }
  .port__grid { grid-template-columns: 1fr 1fr; }
  .port-item--large { grid-column: 1 / -1; grid-row: auto; }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .team-card--lead { grid-column: span 1; }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* --- Nav --- */
  .nav {
    background: rgba(0,0,0,.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }
  .nav__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
  }
  .nav__burger {
    display: flex;
    order: 1;
    margin: 0;
    padding: 4px 12px 4px 0;
    border-right: 1px solid rgba(255,255,255,.25);
  }
  .nav__logo {
    order: 2;
    margin: 0;
    padding: 0 14px;
    border-right: 1px solid rgba(255,255,255,.25);
  }
  .nav__actions {
    order: 3;
    padding-left: 12px;
  }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(0,0,0,.97);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    z-index: 99;
    order: 0;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .nav__actions { gap: 12px; }

  /* --- Sections --- */
  .section { padding: 16px 0 56px; }

  /* --- Hero --- */
  .hero { height: 100svh; min-height: 580px; }
  .hero__content { display: flex; flex-direction: column; padding: 0 20px; text-align: center; align-items: center; }
  .hero__title { font-size: clamp(3.6rem, 14vw, 5rem); max-width: 100%; }
  .hero__ctx { font-size: .75em; }
  .hero__sub { font-size: .95rem; max-width: 100%; }
  .hero__btns { flex-direction: column; align-items: center; width: 100%; gap: 10px; }
  .btn { width: 100%; justify-content: center; font-size: .78rem; padding: 12px 20px; }
  .hero__btns .btn { max-width: 280px; }
  .hero__scroll-hint { display: none; }

  /* --- Stats --- */
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* --- Services --- */
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card--wide { grid-column: 1 / -1; }
  .svc-card { height: 180px; }
  .svc-card:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
  .svc-card__front, .svc-card__back { padding: 24px 20px; }
  .svc-card__icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .svc-card__front h3 { font-size: .9rem; }
  .svc-card__back h3 { font-size: .9rem; }
  .svc-card__back p { font-size: .78rem; }

  /* --- Serve --- */
  .serve { padding: 16px 0; }
  .serve-columns { flex-direction: column; height: auto; }
  .serve-col { flex: unset !important; height: 160px; transition: height .6s cubic-bezier(.4,0,.2,1); }
  .serve-col.active { height: 480px; }
  .serve-col__idle h3 { font-size: 1.2rem; }
  .serve-col__content { padding: 28px 24px; max-width: 100%; }
  .serve-col__content h2 { font-size: 1.4rem; }

  /* --- Portfolio --- */
  .port-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
    margin-top: 16px;
  }
  .port-grid-item {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  /* --- Team --- */
  .team.section {
    height: auto;
    overflow: visible;
    padding: 64px 0;
  }
  .team__layout { grid-template-columns: 1fr; gap: 24px; }
  .team-featured { min-height: 0; }
  .team-featured__photo { flex: none; height: 240px; }
  .team-featured__photo img { object-position: center 45%; }
  .team__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .team-card__photo { height: 110px; flex: none; }
  .team-card__name { font-size: .78rem; }
  .team-card__role { font-size: .62rem; }

  /* --- About --- */
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__left h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .values { grid-template-columns: 1fr; }
  .value--wide { grid-column: auto; }

  /* --- Contact --- */
  .contact__details { gap: 24px 32px; margin-top: 28px; padding-top: 24px; }

  /* --- Clients --- */
  .clients__logos { gap: 20px; }

  /* --- WhatsApp --- */
  .wa-float { bottom: 20px; right: 16px; padding: 10px 16px 10px 12px; }
  .wa-float__icon { width: 24px; height: 24px; }

  /* --- Footer --- */
  .footer__nav { gap: 16px; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .team-card--lead { grid-column: auto; }
  .team-card__photo { height: 140px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .serve-col.active { height: 420px; }
  .section-head h2 { font-size: 1.8rem; }
}
