/* ===== Tokens ===== */
:root {
  --red: #ed1c24;
  --red-dark: #c4131a;
  --blue: #0054a6;
  --blue-dark: #003b78;
  --ink: #12161f;
  --gray-700: #454c57;
  --gray-500: #737a86;
  --gray-300: #dfe2e7;
  --gray-100: #f4f5f7;
  --bg: #fcfcfb;

  --font-display: 'Plus Jakarta Sans', 'Arial', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --wrap: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ===== Motion ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes graphic-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slide-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[data-anim] { opacity: 0; animation: fade-up .7s var(--ease) both; }
.hero-title[data-anim] { animation-delay: .08s; }
.hero-subtitle[data-anim] { animation-delay: .24s; }

[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.contact-card [data-reveal]:nth-child(2) { transition-delay: .06s; }
.contact-card [data-reveal]:nth-child(3) { transition-delay: .12s; }
.contact-card [data-reveal]:nth-child(4) { transition-delay: .18s; }
.contact-card [data-reveal]:nth-child(5) { transition-delay: .24s; }
.contact-card [data-reveal]:nth-child(6) { transition-delay: .3s; }

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

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 11px 20px; border-radius: 8px;
  box-shadow: 0 6px 16px -6px rgba(237, 28, 36, .4);
  transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 8px 20px -6px rgba(237, 28, 36, .5); transform: translateY(-1px); }
.btn-primary .icon-wa { width: 17px; height: 17px; fill: #fff; flex: none; }

.btn-contact {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--red-dark); white-space: nowrap;
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  padding: 15px 28px; border-radius: 8px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

@media (max-width: 400px) {
  .btn-contact { font-size: 13.5px; padding: 14px 18px; gap: 8px; }
  .btn-contact .icon-wa { width: 17px; height: 17px; flex: none; }
}
.btn-contact .icon-wa { width: 19px; height: 19px; fill: var(--red); }
.btn-contact:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .35); }

/* ===== Top institutional bar ===== */
.topbar {
  background: var(--blue);
  overflow: hidden;
  height: 34px;
  animation: slide-down .6s var(--ease) both;
}
.topbar-track {
  display: flex; align-items: center; height: 100%; width: max-content;
  animation: marquee-scroll 190s linear infinite;
  backface-visibility: hidden;
}
.topbar-seq { display: flex; align-items: center; flex: none; }
.topbar-track span {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  color: rgba(255, 255, 255, .92); white-space: nowrap; padding: 0 16px;
}
.topbar-track i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--red);
  flex: none;
}

/* ===== Header ===== */
.header {
  background: #fff;
  border-bottom: 1px solid rgba(18, 22, 31, .07);
  animation: fade-in .6s var(--ease) both .1s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand-logo { height: 74px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .brand-logo { height: 54px; }
  .btn-primary { font-size: 13.5px; padding: 10px 16px; gap: 8px; }
  .btn-primary .icon-wa { width: 16px; height: 16px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 88px;
}

.hero-graphic {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 46%;
  pointer-events: none;
  animation: graphic-in .9s var(--ease) both .22s;
}

.hero-photo {
  position: absolute; top: 50%; right: 6%;
  transform: translateY(-50%);
  width: 86%; max-width: 520px;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: center;
  border-radius: 20px;
  box-shadow: 0 28px 56px -26px rgba(15, 23, 42, .38), 0 6px 16px -8px rgba(15, 23, 42, .12);
}

@media (min-width: 1280px) {
  .hero-photo { width: 96%; max-width: 640px; right: 3%; aspect-ratio: 16 / 9; }
}

@media (max-width: 1023px) {
  .hero-graphic { display: none; }
}

.hero-inner { position: relative; }
.hero-content { max-width: 600px; }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 26px;
}
.hero-title .ink { color: var(--ink); }
.hero-title .accent { color: var(--red); }

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--gray-700);
  max-width: 520px;
}

@media (max-width: 640px) {
  .hero { padding: 52px 0 60px; }
}

/* ===== Divider ===== */
.divider { height: 2px; background: var(--blue); }

/* ===== Contact ===== */
.contact { background: var(--gray-100); padding: 64px 0; }

.contact-layout { display: flex; align-items: center; justify-content: center; gap: 32px; }

.contact-dots {
  flex: none; width: 74px; height: 64px;
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.6px);
  background-size: 15px 15px;
  opacity: .55;
}
.contact-dots--left { color: var(--blue); }
.contact-dots--right { color: var(--red); }

@media (max-width: 1180px) { .contact-dots { display: none; } }

.contact-card {
  background: #fff; border-radius: 24px;
  padding: 52px 60px; max-width: 720px; width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px -34px rgba(15, 23, 42, .22), 0 6px 18px -10px rgba(15, 23, 42, .08);
}

.contact-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.contact-eyebrow::before, .contact-eyebrow::after { content: ""; width: 16px; height: 1px; background: var(--blue); opacity: .45; }

.contact-title {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.28; margin-bottom: 14px;
}
.contact-title .accent { color: var(--red); }

.contact-subtitle { color: var(--gray-500); font-size: .98rem; max-width: 420px; margin: 0 auto 30px; }

.contact-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.contact-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  padding: 13px 22px; border-radius: 10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.contact-btn .icon { width: 18px; height: 18px; flex: none; }
.contact-btn--primary {
  background: var(--red); color: #fff;
  box-shadow: 0 10px 22px -9px rgba(237, 28, 36, .5);
}
.contact-btn--primary .icon { fill: #fff; }
.contact-btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.contact-btn--outline {
  background: #fff; color: var(--blue); border: 1.5px solid var(--gray-300);
}
.contact-btn--outline .icon { color: var(--blue); }
.contact-btn--outline:hover { border-color: var(--blue); background: var(--gray-100); }

.contact-divider { height: 1px; background: rgba(18, 22, 31, .08); margin-bottom: 30px; }

.contact-features { display: flex; gap: 8px; text-align: left; }
.contact-feature {
  flex: 1; display: flex; align-items: flex-start; gap: 12px;
  position: relative; padding: 0 14px;
}
.contact-feature:not(:first-child) { border-left: 1px solid rgba(18, 22, 31, .08); }
.contact-feature:not(:first-child)::before {
  content: ""; position: absolute; left: -3px; top: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red);
}
.contact-feature .icon { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 2px; }
.contact-feature-text { display: flex; flex-direction: column; gap: 3px; }
.contact-feature-text strong { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink); }
.contact-feature-text span { font-size: 11.5px; color: var(--gray-500); line-height: 1.45; }

@media (max-width: 780px) {
  .contact { padding: 48px 0; }
  .contact-card { padding: 40px 26px; border-radius: 20px; }
  .contact-cta { flex-direction: column; align-items: stretch; }
  .contact-btn { justify-content: center; }
  .contact-features { flex-direction: column; gap: 22px; }
  .contact-feature { padding: 0; border-left: none !important; }
  .contact-feature:not(:first-child)::before { display: none; }
}

/* ===== Footer ===== */
.footer { background: #fff; border-top: 1px solid rgba(18, 22, 31, .07); }

.footer-top {
  display: flex; justify-content: center;
  padding: 40px 0 32px;
}
.footer-logo { height: 64px; width: auto; }

.footer-divider { height: 1px; background: rgba(18, 22, 31, .07); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0 30px;
}
.footer-copy { font-size: 12.5px; color: var(--gray-500); }

.footer-legal { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.footer-legal i { width: 3px; height: 3px; border-radius: 50%; background: var(--red); flex: none; }
.footer-legal-link {
  position: relative; padding: 4px 1px;
  font-size: 12.5px; font-weight: 600; color: var(--gray-500);
  cursor: pointer; transition: color .25s var(--ease);
}
.footer-legal-link::after {
  content: ""; position: absolute; left: 0; bottom: 1px; height: 1px; width: 0;
  background: var(--blue); transition: width .3s var(--ease);
}
.footer-legal-link:hover { color: var(--blue); }
.footer-legal-link:hover::after { width: 100%; }
.footer-legal-link:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; color: var(--blue);
}
.footer-legal-link:focus-visible::after { width: 100%; }

@media (max-width: 780px) {
  .footer-top { padding: 36px 0 26px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 20px 0 28px; gap: 12px; }
}

/* ===== Floating WhatsApp ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 600;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(237, 28, 36, .5);
  opacity: 0; transform: scale(.85);
  transition: transform .3s var(--ease), opacity .3s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: scale(1); }
.wa-float:hover { background: var(--red-dark); box-shadow: 0 10px 22px -6px rgba(237, 28, 36, .6); transform: scale(1.06); }
.wa-float .icon-wa { width: 21px; height: 21px; fill: #fff; }

@media (max-width: 640px) {
  .wa-float { width: 42px; height: 42px; right: 16px; bottom: 16px; }
}
