/* ===================== TOKENS ===================== */
:root {
  --navy: #1B2A4A;
  --navy-deep: #14203A;
  --navy-soft: #28395c;
  --gold: #C9A24B;
  --gold-soft: #d8b86e;
  --ink: #1f2733;
  --muted: #5a6677;
  --line: #e7eaef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -25px rgba(20, 32, 58, .35);
  --shadow-sm: 0 8px 24px -16px rgba(20, 32, 58, .4);
  --container: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.15; color: var(--navy); font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: .85em 1.7em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 12px 30px -12px rgba(201,162,75,.7); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(201,162,75,.8); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ===================== HEADER ===================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.header.is-scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(20,32,58,.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; transition: height .3s var(--ease); }
.header.is-scrolled .nav { height: 64px; }
.nav__brand { display: flex; align-items: center; gap: .65rem; }
.nav__logo { height: 38px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .nav__logo { height: 32px; }
.nav__brand-text {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  color: #fff; transition: color .3s;
}
.header.is-scrolled .nav__brand-text { color: var(--navy); }

.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.88);
  position: relative; transition: color .25s; padding: .2em 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; }
.header.is-scrolled .nav__link { color: var(--muted); }
.header.is-scrolled .nav__link:hover { color: var(--navy); }
.nav__link--cta {
  border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; padding: .5em 1.2em;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.header.is-scrolled .nav__link--cta { border-color: var(--gold); color: var(--gold); }
.header.is-scrolled .nav__link--cta:hover { background: var(--gold); color: #fff; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav__toggle span {
  position: absolute; left: 0; height: 2.5px; width: 100%; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background .3s;
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 0; }
.header.is-scrolled .nav__toggle span { background: var(--navy); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; color: #fff; overflow: hidden; padding: 120px 0 90px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(201,162,75,.22), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(56,77,114,.55), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #20335a 100%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo { height: 120px; width: auto; margin-bottom: 1.6rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.hero__title { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: .04em; font-weight: 700; }
.hero__sub { color: var(--gold-soft); font-size: clamp(1rem, 2.4vw, 1.4rem); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-top: .4rem; }
.hero__tagline { margin-top: 1.6rem; max-width: 640px; color: rgba(255,255,255,.86); font-size: clamp(1rem, 2vw, 1.18rem); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.4rem; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; border-radius: 2px; background: var(--gold);
  transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%, #21345b); color: #fff; }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.eyebrow {
  display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .9rem; position: relative; padding-bottom: .7rem;
}
.eyebrow::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46px; height: 3px; border-radius: 3px; background: var(--gold); }
.eyebrow--gold { color: var(--gold-soft); }
.section__title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section__title--light { color: #fff; }
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.section--dark .section__lead { color: rgba(255,255,255,.8); }

/* ===================== TIMELINE ===================== */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative;
}
.timeline::before {
  content: ''; position: absolute; top: 64px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}
.timeline__item { text-align: center; position: relative; padding-top: 92px; }
.timeline__dot {
  position: absolute; top: 54px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--navy);
  border: 4px solid var(--bg); box-shadow: 0 0 0 3px var(--gold); z-index: 1;
}
.section--alt .timeline__dot { border-color: var(--bg-alt); }
.timeline__year { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.timeline__name { font-size: 1.1rem; margin: .3rem 0 .5rem; }
.timeline__item p { color: var(--muted); font-size: .96rem; }

/* ===================== COLUMNS / CARDS ===================== */
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.card-plain {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem 2.2rem; box-shadow: var(--shadow-sm);
}
.card-plain__title { font-size: 1.3rem; color: var(--gold); margin-bottom: 1.3rem; }

.check-list { display: grid; gap: .85rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--muted); }
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .15em; width: 1.25rem; height: 1.25rem;
  background: var(--gold); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ===================== FEATURES ===================== */
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.6rem 2rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,162,75,.5); }
.feature__icon {
  width: 66px; height: 66px; margin: 0 auto 1.4rem; border-radius: 18px;
  display: grid; place-items: center; color: var(--gold);
  background: linear-gradient(160deg, rgba(201,162,75,.16), rgba(201,162,75,.04));
  border: 1px solid rgba(201,162,75,.3);
}
.feature__icon svg { width: 32px; height: 32px; }
.feature__title { font-size: 1.2rem; margin-bottom: .7rem; }
.feature p { color: var(--muted); font-size: .98rem; }

/* ===================== DIRECTOR ===================== */
.director { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; max-width: 980px; margin-inline: auto; }
.director__photo {
  position: relative; width: 280px; height: 280px; margin-inline: auto; border-radius: 50%;
  padding: 6px; background: linear-gradient(160deg, var(--gold), var(--gold-soft));
  box-shadow: var(--shadow);
}
.director__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.director__initials {
  display: none; width: 100%; height: 100%; border-radius: 50%;
  place-items: center; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 4.5rem; color: #fff;
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
}
.director__photo--empty .director__initials { display: grid; }
.director__name { font-size: 2rem; }
.director__role { color: var(--gold); font-weight: 600; font-size: 1.1rem; margin: .2rem 0 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--line); }
.director__bio { color: var(--muted); margin-bottom: 1.4rem; }
.director__subtitle { color: var(--gold); font-size: 1.05rem; margin-bottom: .9rem; }

/* ===================== CLIENTS ===================== */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.clients__item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.clients__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.clients__item img {
  max-height: 64px; max-width: 80%; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .72; transition: filter .35s, opacity .35s;
}
.clients__item:hover img { filter: grayscale(0); opacity: 1; }

/* ===================== CONTACT ===================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact__lead { color: rgba(255,255,255,.8); margin-top: .6rem; }
.contact__list { display: grid; gap: 1.1rem; margin: 2rem 0; }
.contact__list li { display: flex; align-items: center; gap: .9rem; color: rgba(255,255,255,.92); }
.contact__list svg { width: 22px; height: 22px; color: var(--gold-soft); flex-shrink: 0; }
.contact__list a { transition: color .2s; }
.contact__list a:hover { color: var(--gold-soft); }
.contact__values { color: var(--gold-soft); font-style: italic; letter-spacing: .04em; margin-top: 1.4rem; }

.contact__form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 2.2rem; backdrop-filter: blur(6px);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.8); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm); padding: .8em 1em; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(201,162,75,.2);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field textarea.invalid { border-color: #e06a6a; box-shadow: 0 0 0 3px rgba(224,106,106,.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 1rem; font-size: .95rem; min-height: 1.4em; text-align: center; }
.form-status.ok { color: #7ed9a0; }
.form-status.err { color: #ff9b9b; }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 3rem 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer__logo { height: 54px; width: auto; opacity: .95; }
.footer__text { font-size: .9rem; }
.footer__values { font-size: .85rem; color: var(--gold-soft); letter-spacing: .08em; }

/* ===================== WHATSAPP FLOAT ===================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 36px -8px rgba(37,211,102,.75); }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.timeline .timeline__item.reveal { transition-delay: calc(var(--i, 0) * .12s); }
.cols-3 .feature.reveal { transition-delay: calc(var(--i, 0) * .12s); }
.clients .clients__item { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .3s; transition-delay: calc(var(--i, 0) * .07s); }
.clients.is-visible .clients__item { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .clients__item { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .cols-3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .timeline::before { display: none; }
  .timeline__item { padding-top: 0; }
  .timeline__dot { display: none; }
  .director { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .director__role { display: inline-block; }
  .check-list { text-align: left; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; z-index: 110; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--navy); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem 2.4rem; transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.5);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link, .header.is-scrolled .nav__link { color: rgba(255,255,255,.9); font-size: 1.1rem; }
  .nav__link--cta, .header.is-scrolled .nav__link--cta { border-color: var(--gold); color: var(--gold); }
  .cols-2 { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .contact__form { padding: 1.6rem; }
}

@media (max-width: 420px) {
  .timeline { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
}
