:root {
  --bg: #07111b;
  --bg-soft: #0d1b2a;
  --surface: rgba(12, 26, 41, 0.75);
  --surface-strong: #10253b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #edf4fb;
  --muted: #aac0d3;
  --primary: #f0c330;
  --primary-2: #0f78cb;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15,120,203,0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(240,195,48,0.18), transparent 20%),
    linear-gradient(180deg, #06101a 0%, #091723 35%, #07111b 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,120,203,0.14) 0%, rgba(15,120,203,0.02) 45%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(6px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(6, 16, 26, 0.7);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}
.brand-logo {
  height: 58px;
  width: auto;
  border-radius: 10px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: #dce9f5;
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ffd763);
  color: #08111a;
  box-shadow: 0 14px 30px rgba(240, 195, 48, 0.25);
}
.btn-outline {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.btn-glass {
  background: linear-gradient(135deg, rgba(15,120,203,0.15), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}
.btn-block { width: 100%; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: white;
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/topografo-2.jpeg') center/cover no-repeat;
  opacity: 0.12;
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7,17,27,0.95) 20%, rgba(7,17,27,0.78) 50%, rgba(7,17,27,0.92) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 60px 0 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.hero h1, .section-head h2, .about-copy h2, .cta-box h2 {
  margin: 0 0 18px;
  line-height: 1.04;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 5rem); max-width: 12ch; }
.hero p, .section-head p, .about-copy p, .cta-box p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.badge-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.badge-card strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}
.badge-card span { color: #e6f2fd; font-size: 0.95rem; }

.hero-visual {
  position: relative;
  min-height: 620px;
}
.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
  background: #0f1d2c;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-large {
  inset: 20px 40px 110px 0;
}
.card-small {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 255px;
}
.stat-panel {
  position: absolute;
  left: 24px;
  bottom: 30px;
  padding: 18px 20px;
  width: max-content;
  border-radius: 18px;
  background: rgba(6,16,26,0.86);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
}
.stat-panel strong { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.stat-panel span { color: var(--muted); }

.impact-strip {
  position: relative;
  z-index: 1;
  margin-top: -18px;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 0 24px;
}
.impact-grid > div {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.impact-grid strong {
  display: block;
  color: var(--primary);
  margin-bottom: 8px;
}
.impact-grid span { color: var(--muted); line-height: 1.6; }

.section { padding: 96px 0; position: relative; z-index: 1; }
.section-dark { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03)); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head h2, .about-copy h2, .cta-box h2 { font-size: clamp(2rem, 3.4vw, 3.6rem); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240,195,48,0.35);
}
.icon-wrap {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(240,195,48,0.2), rgba(15,120,203,0.2));
  border: 1px solid rgba(255,255,255,0.12);
}
.icon-wrap svg { width: 30px; height: 30px; fill: var(--primary); }
.service-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.75; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}
.about-image-stack {
  position: relative;
  min-height: 620px;
}
.img-main, .img-float {
  position: absolute;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
}
.img-main { inset: 0 120px 0 0; height: 100%; width: auto; }
.img-float { right: 0; bottom: 30px; width: 48%; height: 58%; }
.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dbe7f5;
  font-weight: 500;
}
.feature-item span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 8px rgba(240,195,48,0.08);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.timeline-item {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}
.timeline-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border-radius: 16px;
  margin-bottom: 18px;
  color: #08111a;
  background: linear-gradient(135deg, var(--primary), #ffd763);
}
.timeline-item h3 { margin: 0 0 10px; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.75; }

.gallery-section { overflow: hidden; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0d1b2a;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s ease;
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card figcaption {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7,17,27,0.25), rgba(7,17,27,0.82));
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.gallery-card.wide { grid-column: span 7; grid-row: span 3; }
.gallery-card.tall { grid-column: span 5; grid-row: span 5; }
.gallery-grid .gallery-card:not(.wide):not(.tall) { grid-column: span 4; grid-row: span 3; }

.cta-section { padding-top: 50px; }
.cta-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 38px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(15,120,203,0.18), rgba(240,195,48,0.08), rgba(255,255,255,0.06));
  box-shadow: var(--shadow);
}
.cta-actions {
  display: grid;
  gap: 14px;
}

.footer {
  padding: 30px 0 50px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.footer h4 { margin: 0 0 12px; }
.footer p { margin: 0 0 8px; color: var(--muted); line-height: 1.7; }
.footer-logo { height: 54px; width: auto; border-radius: 10px; margin-bottom: 12px; }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1fb855);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.35);
  border: 3px solid rgba(255,255,255,0.24);
  animation: bounceIn 1.4s ease infinite alternate;
}
.whatsapp-float svg { width: 34px; height: 34px; fill: white; }

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.floating-card { animation: floatCard 6s ease-in-out infinite; }
.pulse-soft { animation: pulseSoft 2.8s ease-in-out infinite; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow); }
  50% { transform: scale(1.02); box-shadow: 0 25px 65px rgba(0,0,0,0.42); }
}
@keyframes bounceIn {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .cta-box,
  .timeline,
  .services-grid,
  .footer-grid,
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 { max-width: none; }
  .hero-badges { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .about-image-stack { min-height: 520px; }
  .gallery-card.wide, .gallery-card.tall, .gallery-grid .gallery-card:not(.wide):not(.tall) {
    grid-column: span 6;
    grid-row: span 3;
  }
}

@media (max-width: 820px) {
  .nav {
    position: absolute;
    top: 88px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 22px;
    background: rgba(6,16,26,0.96);
    border: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-actions .btn-outline { display: none; }
  .hero-grid,
  .about-grid,
  .cta-box,
  .timeline,
  .services-grid,
  .footer-grid,
  .impact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .card-large { inset: 0 34px 98px 0; }
  .card-small { width: 54%; height: 190px; }
  .stat-panel { left: 12px; bottom: 14px; width: calc(100% - 24px); }
  .about-image-stack { min-height: 420px; }
  .img-main { inset: 0 52px 80px 0; width: auto; }
  .img-float { width: 50%; height: 48%; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-card.wide, .gallery-card.tall, .gallery-grid .gallery-card:not(.wide):not(.tall) {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }
  .hero,
  .section { padding-top: 72px; }
}

@media (max-width: 560px) {
  .topbar-inner { min-height: 78px; }
  .brand-logo { height: 50px; }
  .hero-grid { padding: 34px 0 58px; }
  .hero h1 { font-size: 2.4rem; }
  .section-head h2, .about-copy h2, .cta-box h2 { font-size: 2rem; }
  .service-card, .timeline-item, .cta-box { padding: 24px; }
  .hero-card, .img-main, .img-float { border-radius: 22px; }
}
