:root {
  --navy-900: #0f1a2e;
  --navy-800: #162139;
  --navy-700: #183757;
  --navy-500: #2f5a85;
  --gold: #1fa3d4;
  --gold-dark: #168ab7;
  --gold-light: #31bde4;
  --ink: #1a2433;
  --muted: #5b6878;
  --line: #e4e8ee;
  --soft: #f5f3ee;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(11, 27, 46, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: calc(100% * var(--font-scale, 1)); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: calc(clamp(72px, 10vw, 130px) * var(--space, 1)) 0; position: relative; }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--dark p { color: rgba(255,255,255,.72); }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin-bottom: 56px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-3px); }
.btn--gold { background: var(--gold); color: var(--white); box-shadow: 0 10px 30px -10px rgba(31,163,212,.7); }
.btn--gold:hover { background: var(--gold-dark); box-shadow: 0 16px 36px -12px rgba(31,163,212,.8); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); box-shadow: var(--shadow); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 18px 0; transition: background .4s, padding .4s, box-shadow .4s;
}
.header.is-scrolled {
  background: rgba(11, 27, 46, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 10px 0; box-shadow: 0 10px 30px -15px rgba(0,0,0,.5);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand__logo { height: 40px; width: auto; transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: translateY(-3px); }
.brand__name { font-family: var(--sans); font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.82); font-size: .93rem; font-weight: 500; position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .35s var(--ease), opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative;
  background: var(--navy-900);
  color: var(--white); overflow: hidden; padding: 120px 0 160px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__photo {
  position: absolute; inset: -4%; background: url("img/capa.jpg") 70% center / cover no-repeat;
  animation: kenburns 24s ease-in-out infinite alternate, fadeIn 1.6s var(--ease) both;
  will-change: transform;
}
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,26,46,.92) 0%, rgba(15,26,46,.72) 38%, rgba(15,26,46,.2) 70%, rgba(15,26,46,.05) 100%),
    linear-gradient(0deg, rgba(15,26,46,.75) 0%, transparent 35%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: float 16s ease-in-out infinite; mix-blend-mode: screen; }
.blob--1 { width: 420px; height: 420px; background: #1f6fa8; top: -140px; left: -80px; }
.blob--2 { width: 320px; height: 320px; background: rgba(49,189,228,.5); bottom: -60px; left: 30%; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,25px) scale(.95); }
}
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }

.hero__content { position: relative; max-width: 900px; }
.hero__title { text-shadow: 0 4px 30px rgba(0,0,0,.25); font-size: clamp(2.7rem, 7.5vw, 5.6rem); font-weight: 600; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .15s; }
.hero__title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes lineUp { to { transform: none; } }
@keyframes shine { to { background-position: 200% center; } }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 620px; color: rgba(255,255,255,.85); margin-bottom: 38px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Marquee */
.marquee { background: var(--gold); color: var(--white); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; padding: 0 28px;
  display: inline-flex; align-items: center; gap: 56px; white-space: nowrap;
}
.marquee__track span::after { content: "✦"; font-size: .8rem; opacity: .6; margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about__text p { font-size: 1.06rem; }
.about__cards { display: grid; gap: 20px; }
.mv {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.mv:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.mv__icon, .commit__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-500));
}
svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mv__icon svg, .commit__icon svg { width: 26px; height: 26px; color: var(--gold-light); }
.mv p { margin: 0; }

.values { margin-top: 96px; }
.values__title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 36px; }
.values__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.values__list li {
  padding: 26px 22px; border-radius: var(--radius); background: var(--soft);
  font-weight: 500; line-height: 1.45; position: relative; overflow: hidden;
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.values__list li span { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.values__list li:hover { background: var(--navy-900); color: var(--white); transform: translateY(-4px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; padding: 36px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.service::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(31,163,212,.18), transparent 50%);
}
.service:hover { transform: translateY(-8px); border-color: rgba(31,163,212,.5); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px;
  background: rgba(31,163,212,.14); color: var(--gold-light); transition: transform .5s var(--ease), background .4s;
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); background: var(--gold); color: var(--white); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { color: var(--white); }
.service p { font-size: .96rem; margin: 0; }

/* Diferencial */
.diff { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.diff__visual {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border-radius: 28px;
  padding: 48px 40px 40px; aspect-ratio: 1 / .9; box-shadow: var(--shadow); position: relative;
}
.chart { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 6%; border-bottom: 1px solid rgba(255,255,255,.15); }
.bar {
  flex: 1; height: 0; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--navy-500), rgba(47,90,133,.4));
  transition: height 1.2s var(--ease);
}
.bar--gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.diff__visual.is-visible .bar { height: var(--h); }
.diff__visual.is-visible .bar:nth-child(2) { transition-delay: .1s; }
.diff__visual.is-visible .bar:nth-child(3) { transition-delay: .2s; }
.diff__visual.is-visible .bar:nth-child(4) { transition-delay: .3s; }
.diff__visual.is-visible .bar:nth-child(5) { transition-delay: .4s; }
.diff__visual.is-visible .bar:nth-child(6) { transition-delay: .5s; }
.chart__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__line path {
  stroke: var(--gold-light); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke;
  stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease) .6s;
}
.diff__visual.is-visible .chart__line path { stroke-dashoffset: 0; }
.diff__text p { font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(31,163,212,.18); color: #1f6fb2; font-size: .85rem; font-weight: 700;
}

/* Commitments */
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.commit__card {
  background: var(--white); border-radius: var(--radius); padding: 38px 32px;
  border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.commit__card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.commit__card p { margin: 0; }

/* Opportunities */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font-family: inherit; font-size: .9rem; font-weight: 500; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--navy-700); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.opps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.opp {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .4s;
}
.opp:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.opp.is-hidden { display: none; }
.opp { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.opp__body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.opp__body .link-arrow { margin-top: auto; }
.opp__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.opp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.opp:hover .opp__img img { transform: scale(1.06); }
.opp__local { font-size: .88rem; font-weight: 500; color: var(--navy-500); margin: -6px 0 10px; }
.opp__desc { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.opps__empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); margin: 0; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(31,163,212,.16); color: #1f6fb2; margin-bottom: 18px;
}
.tag--alt { background: rgba(47,90,133,.12); color: var(--navy-500); }
.opp__price { font-family: var(--serif); font-size: 1.6rem; color: var(--navy-800); font-weight: 600; margin-bottom: 18px; }
.link-arrow { font-weight: 600; color: var(--navy-700); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; color: rgba(255,255,255,.88); }
.contact__list svg { width: 22px; height: 22px; flex: none; color: var(--gold-light); margin-top: 2px; }
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--gold-light); }
.form {
  background: var(--white); color: var(--ink); padding: 40px; border-radius: 24px;
  display: grid; gap: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--navy-800); }
.form input, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fafbfc; color: var(--ink); resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(31,163,212,.18);
}
.form input.is-invalid { border-color: #d0533f; }
.form__note { margin: 0; font-size: .9rem; min-height: 1.2em; color: #d0533f; }
.map { margin-top: 72px; border-radius: 24px; overflow: hidden; height: 340px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* Footer */
.footer { background: #07131f; color: rgba(255,255,255,.6); padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer__logo img { height: 92px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { width: 100%; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: rgba(255,255,255,.45); }

/* WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .35s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; stroke: none; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  animation: pulse 2.4s ease-out infinite; z-index: -1;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .values__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .burger { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(11,27,46,.97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav a:not(.btn) { font-size: 1.3rem; font-family: var(--serif); }
  .nav.is-open { opacity: 1; visibility: visible; }
  .about, .diff, .contact { grid-template-columns: 1fr; gap: 48px; }
  .diff__visual { order: 2; }
  .commit { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__photo { background-position: 78% center; }
  .hero__overlay { background: linear-gradient(180deg, rgba(15,26,46,.55) 0%, rgba(15,26,46,.85) 100%); }
  .services, .values__list { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .diff__visual { padding: 32px 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}
