:root {
  --ink: #0f1c2e;
  --ink-soft: #243447;
  --steel: #1a4a6e;
  --accent: #c45c26;
  --accent-hover: #a84a1c;
  --sand: #e8eef3;
  --paper: #f7f9fb;
  --white: #ffffff;
  --line: #d5dee8;
  --muted: #5a6b7d;
  --success: #1f7a4d;
  --whatsapp: #1fa855;
  --shadow: 0 18px 50px rgba(15, 28, 46, 0.12);
  --radius: 4px;
  --font: "Manrope", sans-serif;
  --display: "Sora", sans-serif;
  --container: 1140px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(26, 74, 110, 0.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 92, 38, 0.06), transparent 55%),
    linear-gradient(180deg, #f4f7fa 0%, var(--paper) 40%, #eef3f7 100%);
  line-height: 1.65;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.06);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--steel), var(--ink));
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.brand-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:not(.btn):hover::after,
.main-nav a.active:not(.btn)::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.btn-whatsapp {
  background: var(--whatsapp);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(15, 28, 46, 0.88) 0%, rgba(26, 74, 110, 0.72) 48%, rgba(15, 28, 46, 0.55) 100%),
    radial-gradient(circle at 70% 40%, rgba(196, 92, 38, 0.25), transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #16324a, #0f1c2e 55%, #1b3148);
  background-size: cover, cover, auto, cover;
  background-position: center;
}

.hero.has-image {
  background-image:
    linear-gradient(110deg, rgba(15, 28, 46, 0.88) 0%, rgba(26, 74, 110, 0.72) 48%, rgba(15, 28, 46, 0.55) 100%),
    var(--hero-image);
  background-size: cover, cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  max-width: 760px;
  animation: riseIn 0.8s ease both;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-head h2,
.page-hero h1,
.content-block h2,
.content-block h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.section-head p,
.lead {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(26, 74, 110, 0.08), transparent),
    linear-gradient(90deg, transparent, rgba(196, 92, 38, 0.05));
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: riseIn 0.7s ease both;
}

.feature-box:nth-child(2) { animation-delay: 0.08s; }
.feature-box:nth-child(3) { animation-delay: 0.16s; }
.feature-box:nth-child(4) { animation-delay: 0.24s; }

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(26, 74, 110, 0.35);
}

.feature-box .icon {
  font-size: 1.6rem;
  line-height: 1;
}

.feature-box h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
}

.feature-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.feature-box .more {
  color: var(--steel);
  font-weight: 700;
  font-size: 0.88rem;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.panel h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.values li {
  background: var(--sand);
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 3px solid var(--accent);
}

.service-item,
.why-item,
.product-group,
.ref-item,
.career-item,
.personnel-type {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-item:hover,
.why-item:hover,
.product-group:hover,
.career-item:hover {
  border-color: rgba(26, 74, 110, 0.4);
  transform: translateY(-2px);
}

.service-item h3,
.why-item h3,
.product-group h3,
.career-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.08rem;
}

.service-item p,
.why-item p,
.product-group p,
.career-item p {
  margin: 0;
  color: var(--muted);
}

.product-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.product-list li {
  padding-left: 0.9rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.product-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.personnel-hero {
  background:
    linear-gradient(120deg, rgba(15, 28, 46, 0.94), rgba(26, 74, 110, 0.88)),
    linear-gradient(45deg, #16324a, #0f1c2e);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.personnel-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 92, 38, 0.35), transparent 70%);
  animation: pulseSoft 5s ease-in-out infinite;
}

.personnel-hero .container {
  position: relative;
  z-index: 1;
}

.personnel-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 0.85rem;
  max-width: 14ch;
}

.personnel-hero p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.5rem;
}

.personnel-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.personnel-type {
  font-weight: 600;
  text-align: center;
  padding: 1.1rem 0.75rem;
  background: var(--paper);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.ref-item {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.25rem 0.75rem;
}

.ref-item strong {
  font-family: var(--display);
  font-size: 0.95rem;
}

.ref-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.ref-item img {
  max-height: 48px;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
}

.contact-list {
  display: grid;
  gap: 0.85rem;
}

.contact-list a,
.contact-list span {
  display: block;
  font-weight: 600;
}

.contact-list small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.map-frame {
  margin-top: 1rem;
  border: 1px solid var(--line);
  min-height: 240px;
  background: var(--sand);
}

.map-frame iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(26, 74, 110, 0.25);
  border-color: var(--steel);
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.alert {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--sand);
  font-weight: 600;
}

.alert-success {
  background: #e8f6ef;
  border-color: #b7e0c9;
  color: var(--success);
}

.alert-error {
  background: #fdecea;
  border-color: #f3c4bf;
  color: #9b2c20;
}

.cta-band {
  background: linear-gradient(120deg, var(--ink), var(--steel));
  color: var(--white);
  padding: 2.75rem 0;
}

.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0 0;
  max-width: 36ch;
}

.site-footer h4 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  color: var(--white);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.45rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 1024px) {
  .feature-grid,
  .grid-4,
  .personnel-types,
  .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: 0;
  }

  .hero h1 {
    max-width: none;
  }

  .feature-grid {
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .grid-3,
  .grid-4,
  .personnel-types,
  .ref-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-band .container {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
