:root {
  --color-primary: #0f2332;
  --color-primary-strong: #081d2a;
  --color-primary-soft: #183d4e;
  --color-accent: #d6a650;
  --color-accent-soft: #f2d49b;
  --color-surface: #f3f6f8;
  --color-surface-alt: #eaf0f4;
  --color-card: #ffffff;
  --color-text: #152b36;
  --color-muted: #576d78;
  --color-border: rgba(15, 35, 50, 0.12);
  --shadow-soft: 0 20px 50px rgba(8, 29, 42, 0.08);
  --shadow-strong: 0 28px 80px rgba(8, 29, 42, 0.14);
  --radius: 22px;
  --container: 1200px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #f6f8f9 0%, #edf3f6 100%);
  color: var(--color-text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 248, 249, 0.8);
  border-bottom: 1px solid rgba(15, 35, 50, 0.08);
}

.topbar {
  background: linear-gradient(90deg, var(--color-primary-strong), #102f3f 38%, #113a4d 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.topbar .container {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.topbar a {
  color: rgba(255, 255, 255, 0.92);
}

.navbar {
  height: var(--header-height);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1d5369 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 15px 25px rgba(9, 29, 42, 0.16);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  display: block;
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.82);
  border-left-color: transparent;
  transform: rotate(45deg);
  pointer-events: none;
}

.brand-mark::after {
  inset: 13px 16px 13px 16px;
  border-width: 1.5px;
  border-right-color: transparent;
  border-top-color: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.15rem;
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-list a {
  color: var(--color-primary);
  font-size: 0.96rem;
  font-weight: 600;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(10, 75, 40, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(10, 75, 40, 0.36);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.button.primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e8ba63 100%);
  color: var(--color-primary-strong);
  box-shadow: 0 16px 25px rgba(214, 166, 80, 0.22);
}

.button.secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

.button.ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}

.mobile-toggle {
  display: none;
  border: 1px solid rgba(15, 35, 50, 0.12);
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  color: var(--color-primary);
  font-size: 1.4rem;
}

.main {
  padding-bottom: 4rem;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: rgba(24, 61, 78, 0.03);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 1rem;
  color: var(--color-primary);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.hero {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(214, 166, 80, 0.18), transparent 25%),
    linear-gradient(135deg, #0a1f2c 0%, #0f2d3d 45%, #123e4f 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.06), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 30px);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy {
  color: #fff;
}

.hero-copy h1,
.hero-copy h2,
.hero-copy h3,
.hero-copy h4,
.hero-copy h5 {
  color: #fff;
}

.hero-copy p {
  max-width: 65ch;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.8);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-panel {
  position: relative;
}

.terrain-visual {
  position: relative;
  min-height: 440px;
  border-radius: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.terrain-visual::before {
  content: "";
  position: absolute;
  inset: 12% 9% 18% 9%;
  border-radius: 32px 32px 26px 26px;
  background:
    linear-gradient(160deg, rgba(214, 166, 80, 0.92), rgba(75, 113, 130, 0.76), rgba(8, 29, 42, 0.7));
  transform: perspective(800px) rotateX(18deg) rotateY(-5deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
}

.terrain-visual::after {
  content: "";
  position: absolute;
  inset: 12% 9% 18% 9%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 32px 32px 26px 26px;
}

.map-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 7px rgba(255,255,255,0.1), 0 0 22px rgba(242, 212, 155, 0.7);
}

.map-node:nth-child(1) { left: 18%; top: 62%; }
.map-node:nth-child(2) { left: 34%; top: 40%; }
.map-node:nth-child(3) { left: 52%; top: 46%; }
.map-node:nth-child(4) { left: 70%; top: 28%; }
.map-node:nth-child(5) { left: 74%; top: 62%; }

.grid-3,
.grid-4,
.details-grid,
.list-grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-4 .card h3 {
  overflow-wrap: anywhere;
}

.details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.card h3 {
  margin-bottom: 0.65rem;
}

.card .meta {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(214, 166, 80, 0.12);
  color: var(--color-primary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card {
  min-height: 100%;
}

.service-card h3 {
  overflow-wrap: anywhere;
}

.icon-box {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(15, 35, 50, 0.08), rgba(214, 166, 80, 0.15));
  color: var(--color-primary);
  font-size: 1.3rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 700;
}

.tech-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-list li {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(15, 35, 50, 0.08);
  color: var(--color-primary);
  font-weight: 700;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.feature-figure {
  min-height: 360px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 35, 50, 0.12), rgba(214, 166, 80, 0.16));
  border: 1px solid var(--color-border);
}

.feature-figure::before {
  content: "";
  position: absolute;
  inset: 8% 12% 12% 12%;
  border-radius: 26px;
  background:
    repeating-linear-gradient(0deg, rgba(15, 35, 50, 0.08), rgba(15, 35, 50, 0.08) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(90deg, rgba(15, 35, 50, 0.08), rgba(15, 35, 50, 0.08) 1px, transparent 1px, transparent 22px),
    linear-gradient(160deg, rgba(8, 29, 42, 0.12), rgba(214, 166, 80, 0.2));
  transform: perspective(900px) rotateX(18deg);
}

.feature-figure::after {
  content: "";
  position: absolute;
  width: 64%;
  height: 18px;
  left: 18%;
  top: 60%;
  border-radius: 999px;
  background: rgba(15,35,50,0.72);
  box-shadow: 0 0 0 12px rgba(214, 166, 80, 0.2);
}

.metric-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric {
  padding: 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15, 35, 50, 0.08);
}

.metric strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
  font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.metric span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.quote-box {
  background: linear-gradient(135deg, var(--color-primary), #234d63);
  color: #fff;
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow-strong);
}

.quote-box p,
.quote-box h3,
.quote-box .notice {
  color: #fff;
}

.notice {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

ul.check-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

ul.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--color-primary);
  font-weight: 600;
}

ul.check-list li::before {
  content: "✓";
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(214, 166, 80, 0.15);
  color: var(--color-primary);
  font-size: 0.86rem;
}

.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, rgba(15, 35, 50, 0.04), transparent 75%);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.page-hero .card {
  background: linear-gradient(135deg, #ffffff, #edf4f7);
}

.page-hero .mini-map {
  height: 320px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(15, 35, 50, 0.1), rgba(15, 35, 50, 0.0)),
    repeating-linear-gradient(90deg, rgba(15, 35, 50, 0.08), rgba(15, 35, 50, 0.08) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(0deg, rgba(15, 35, 50, 0.08), rgba(15, 35, 50, 0.08) 1px, transparent 1px, transparent 22px),
    linear-gradient(135deg, #e2edf1, #dce8d8 60%, #e0dcc1);
  position: relative;
  overflow: hidden;
}

.page-hero .mini-map::before,
.page-hero .mini-map::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(15,35,50,0.18);
}

.page-hero .mini-map::before {
  width: 54%;
  height: 14px;
  left: 22%;
  top: 52%;
  box-shadow: 0 0 0 16px rgba(214, 166, 80, 0.18);
}

.page-hero .mini-map::after {
  width: 24%;
  height: 24%;
  left: 58%;
  top: 18%;
  border-radius: 42% 58% 50% 50% / 60% 40% 60% 40%;
}

.article-card {
  display: grid;
  gap: 0.7rem;
}

.article-card .eyebrow {
  color: var(--color-accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
}

.details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.details-grid .card {
  min-height: 100%;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.7rem, 4vw, 2.7rem);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(8, 29, 42, 0.98), rgba(18, 61, 78, 0.9));
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.cta-banner h2,
.cta-banner p {
  color: #fff;
}

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--color-primary);
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(180deg, #091d2b 0%, #071922 100%);
  color: rgba(255,255,255,0.86);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 0.8fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-grid h3,
.footer-grid p,
.footer-grid a {
  color: rgba(255,255,255,0.88);
}

.footer-address {
  max-width: 24ch;
  font-size: 0.9rem;
}

.address-links {
  display: inline-flex;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.address-links a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.72);
}

.portfolio-carousel {
  display: grid;
  gap: 1.25rem;
}

.portfolio-viewport {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.5);
  box-shadow: var(--shadow-soft);
}

.portfolio-track {
  display: flex;
  transition: transform 0.45s ease;
}

.portfolio-slide {
  min-width: 100%;
  padding: 0;
}

.portfolio-card {
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.portfolio-card img {
  width: 100%;
  height: clamp(260px, 34vw, 440px);
  object-fit: cover;
  display: block;
}

.portfolio-info {
  padding: 1.2rem 1.2rem 1.4rem;
}

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-nav {
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.portfolio-nav:hover,
.portfolio-nav:focus-visible {
  background: rgba(214, 166, 80, 0.12);
  transform: translateY(-1px);
}

.portfolio-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex: 1;
}

.portfolio-dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 35, 50, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.portfolio-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.1);
}

@media (max-width: 980px) {
  .hero .container,
  .page-hero-inner,
  .feature-panel,
  .details-grid,
  .cta-banner,
  .footer-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .metric-bar,
  .list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-actions .button.primary {
    display: none;
  }

  .nav-list {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-height) + 0.7rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15, 35, 50, 0.08);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
