/* ══ TOKENS ══ */
:root {
  --bg:        #F4F7FB;
  --surface:   #EAF0F8;
  --navy:      #0B2447;
  --navy-mid:  #1A3D6E;
  --navy-light:#2A5A9F;
  --ink:       #0D1E3A;
  --ink-2:     #4A637A;
  --accent:    #1665C8;
  --silver:    #C8D5E4;
  --silver-2:  #E8EEF6;
  --line:      #D4DCE8;
  --white:     #FFFFFF;

  --r-card:    14px;
  --r-btn:     100px;
  --max-w:     1200px;
  --py:        clamp(56px, 8vw, 96px);
  --gap:       clamp(16px, 3vw, 28px);
}

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ══ TYPOGRAPHY ══ */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 600; }
p  { color: var(--ink-2); font-size: clamp(0.9rem, 1.5vw, 1rem); }

/* ══ LAYOUT ══ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}
.container--narrow { max-width: 700px; }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
@media (hover: hover) {
  .btn--primary:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    box-shadow: 0 4px 20px rgba(22, 101, 200, 0.35);
    transform: translateY(-1px);
  }
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
@media (hover: hover) {
  .btn--outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
  }
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
@media (hover: hover) {
  .btn--ghost:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
  }
}

.btn--silver {
  background: rgba(200, 213, 228, 0.15);
  color: var(--white);
  border: 2px solid rgba(200, 213, 228, 0.5);
}
@media (hover: hover) {
  .btn--silver:hover {
    background: rgba(200, 213, 228, 0.25);
    border-color: rgba(200, 213, 228, 0.8);
    transform: translateY(-1px);
  }
}

/* ══ NAV ══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 36, 71, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 213, 228, 0.12);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(11, 36, 71, 0.4); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(16px, 5vw, 48px);
  height: 84px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.nav__brand {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: rgba(200, 213, 228, 0.8);
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav__brand strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  color: rgba(200, 213, 228, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
@media (hover: hover) {
  .nav__links a:hover { color: var(--white); }
}

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px clamp(16px, 5vw, 48px) 20px;
  border-top: 1px solid rgba(200, 213, 228, 0.12);
}
.nav__mobile a {
  color: rgba(200, 213, 228, 0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 213, 228, 0.08);
  transition: color 0.2s;
}
.nav__mobile a:last-child { border-bottom: none; margin-top: 12px; }
.nav__mobile .btn { text-align: center; justify-content: center; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 36, 71, 0.92) 0%,
    rgba(11, 36, 71, 0.75) 55%,
    rgba(11, 36, 71, 0.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: clamp(120px, calc(84px + 8vh), 180px);
  padding-bottom: clamp(64px, 10vh, 100px);
  max-width: 660px;
}

@media (min-width: 1100px) {
  .hero .container {
    max-width: 100%;
    padding-left: clamp(40px, 4.5vw, 72px);
    padding-right: clamp(40px, 4.5vw, 72px);
  }
  .hero .hero__content {
    max-width: 860px;
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  font-weight: 700;
  color: #4A9EE8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: #4A9EE8;
  flex-shrink: 0;
}

.hero__h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 800;
}
.hero__h1 span { display: block; }
.hero__h1 span:last-child {
  color: #4A9EE8;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(200, 213, 228, 0.85);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ══ SECTIONS ══ */
.section { padding: var(--py) 0; }

.section--navy {
  background: var(--navy);
}
.section--navy .section__h2,
.section--navy .section__sub { color: rgba(200, 213, 228, 0.9); }

.section--features { background: var(--surface); }

.section--cta {
  background: var(--navy);
  text-align: center;
}
.section--cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.section--cta p {
  color: rgba(200, 213, 228, 0.85);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  margin-bottom: 36px;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta__secondary {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta__wa {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #25D366 !important;
  font-size: 0.9rem !important;
  font-weight: 700;
  transition: opacity 0.2s;
}
.cta__wa:hover { opacity: 0.8; }
.cta__phone {
  color: rgba(200, 213, 228, 0.7) !important;
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
  transition: color 0.2s;
}
.cta__phone:hover { color: var(--white) !important; }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.section__header--light .section__h2 { color: var(--white); }
.section__header--light .section__sub { color: rgba(200, 213, 228, 0.8); }

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__label--light { color: var(--silver); }
.section__h2 { color: var(--ink); margin-bottom: 16px; }
.section__sub { font-size: clamp(0.9rem, 1.6vw, 1.05rem); max-width: 560px; margin: 0 auto; }

/* ══ GRIDS ══ */
.grid { display: grid; gap: var(--gap); }
.grid--2x2 { grid-template-columns: repeat(2, 1fr); }
.grid--3  { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 800px) {
  .grid--2x2 { grid-template-columns: 1fr; }
  .grid--3   { grid-template-columns: 1fr; }
}
@media (min-width: 540px) and (max-width: 800px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ══ CARDS ══ */
.card {
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(11, 36, 71, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(11, 36, 71, 0.12);
  }
}

.card--dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200, 213, 228, 0.15);
}
.card--dark .card__body h3 { color: var(--white); }
.card--dark .card__body p  { color: rgba(200, 213, 228, 0.75); }

.card--text-only { justify-content: center; min-height: 320px; }

.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
@media (hover: hover) {
  .card:hover .card__img img { transform: scale(1.04); }
}

.card__body {
  padding: clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card__body h3 { color: var(--ink); }
.card__body .btn { margin-top: auto; align-self: flex-start; }

.card__icon {
  color: var(--silver);
  margin-bottom: 4px;
}

/* ══ FEATURES ══ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 500px) {
  .features { grid-template-columns: 1fr; gap: 28px; }
}

.feature { text-align: center; }
.feature__icon {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
  border: 2px solid var(--line);
}
.feature h3 { color: var(--ink); margin-bottom: 8px; }

/* ══ FOOTER ══ */
.footer {
  background: var(--ink);
  color: rgba(200, 213, 228, 0.8);
  padding: clamp(48px, 6vw, 72px) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(200, 213, 228, 0.12);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__brand img { width: 160px; height: 160px; object-fit: contain; }
.footer__name { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.footer__tagline { font-size: 0.85rem; color: rgba(200, 213, 228, 0.6); }
.footer__wa {
  display: inline-block;
  color: #4ADE80;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col li { font-size: 0.88rem; color: rgba(200, 213, 228, 0.65); }
.footer__col a { color: rgba(200, 213, 228, 0.65); transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  padding: 20px 0;
  text-align: center;
}
.footer__bottom p { font-size: 0.8rem; color: rgba(200, 213, 228, 0.4); }

/* ══ WHATSAPP BAR ══ */
.wa-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
}
@media (hover: hover) { .wa-bar:hover { background: #1ebe5d; } }
@media (min-width: 861px) { .wa-bar { display: none; } }

/* ══ ANIMATIONS ══ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.23,1,.32,1), transform 0.7s cubic-bezier(.23,1,.32,1);
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

@keyframes heroGlow {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  50% { transform: scale(1.25) translate(50px, 30px); opacity: 1; }
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,101,200,0.5); }
  60% { box-shadow: 0 0 0 16px rgba(22,101,200,0); }
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══ FOCUS ══ */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }

/* ══ WOW ══ */

/* Hero glow decoration */
.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,232,0.09) 0%, transparent 65%);
  top: -150px;
  left: -250px;
  animation: heroGlow 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Hero services strip */
.hero__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(200,213,228,0.15);
  max-width: 640px;
}
.hero__services span {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(200,213,228,0.55);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.hero__services span::after {
  content: '·';
  margin: 0 14px;
  color: #4A9EE8;
  font-size: 1rem;
}
.hero__services span:last-child::after { display: none; }

/* Section header wider so titles fit on one line at desktop */
.section__header { max-width: min(100%, 880px); }

/* Section h2 accent underline */
.section__h2 {
  color: var(--ink);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}
.section__h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section--navy .section__h2::after { background: #4A9EE8; }

/* H2 font fits on one line at desktop */
@media (min-width: 1100px) {
  h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
}

/* CTA primary button pulse */
.hero__ctas .btn--primary {
  animation: btnPulse 4s ease-in-out infinite;
}

/* Card hover — stronger lift + border glow */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 24px 56px rgba(11,36,71,0.18), 0 0 0 1.5px rgba(22,101,200,0.18);
    transition: transform 0.35s cubic-bezier(.23,1,.32,1), box-shadow 0.35s;
  }
  .card--dark:hover {
    box-shadow: 0 24px 56px rgba(0,0,0,0.4), 0 0 0 1.5px rgba(74,158,232,0.3);
  }
}

/* Card tilt via JS — needs this transition */
.card { will-change: transform; }
.card.tilt-reset {
  transition: transform 0.5s cubic-bezier(.23,1,.32,1) !important;
}

/* Feature icon accent on hover */
@media (hover: hover) {
  .feature:hover .feature__icon {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: scale(1.08);
    transition: all 0.3s cubic-bezier(.23,1,.32,1);
  }
}
.feature__icon { transition: all 0.3s cubic-bezier(.23,1,.32,1); }

/* Section label accent */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section__label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Reveal from different directions */
[data-reveal="left"] { transform: translateX(-48px); opacity: 0; }
[data-reveal="right"] { transform: translateX(48px); opacity: 0; }
[data-reveal="left"].visible,
[data-reveal="right"].visible { transform: none; opacity: 1; }

/* Hero parallax helper */
.hero__bg { transform-origin: center center; }
::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 3px; }
