:root {
  --navy: #09243e;
  --navy-2: #061a2d;
  --blue: #146ca8;
  --blue-2: #0f5585;
  --orange: #f0a928;
  --green: #258c69;
  --ink: #142638;
  --muted: #617383;
  --line: #dbe5ec;
  --white: #ffffff;
  --soft: #f6f9fb;
  --shadow: 0 24px 70px rgba(8, 36, 62, .13);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--muted);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  color: #d4e1eb;
  background: var(--navy-2);
  font-size: 20px;
}

.topbar-inner {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-links {
  display: flex;
  gap: 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(219, 229, 236, .95);
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 28px rgba(8, 36, 62, .06);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.045em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 7px;
  color: #7a8b99;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
  color: #29445a;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.main-menu > a:not(.btn) {
  padding: 29px 0;
  transition: color .2s ease;
}

.main-menu > a:not(.btn):hover,
.main-menu > a.active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 29px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 13px 28px rgba(20,108,168,.23);
}

.btn-orange {
  color: var(--navy-2);
  background: linear-gradient(135deg, #ffc755, var(--orange));
  box-shadow: 0 13px 30px rgba(240,169,40,.25);
}

.btn-light {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4,24,42,.97) 0%, rgba(5,31,54,.88) 46%, rgba(5,31,54,.38) 100%),
    url("../images/hero-excavaciones-erp.jpg") center/cover no-repeat;
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -38%;
  width: 610px;
  height: 610px;
  border: 100px solid rgba(240,169,40,.11);
  border-radius: 50%;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
  padding: 90px 0 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #ffd172;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 3px;
  border-radius: 4px;
  background: var(--orange);
  content: "";
}

.hero h1,
.page-hero h1 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(42px, 6.3vw, 72px);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 710px;
  margin: 0 0 31px;
  color: #d8e5ef;
  font-size: 19px;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 33px;
}

.hero-tag {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #d8e5ef;
  background: rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: 92px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 48px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -.04em;
}

h3 {
  margin: 0 0 12px;
  font-size: 21px;
  letter-spacing: -.025em;
}

.section-heading p {
  margin: 0;
  font-size: 17px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(8,36,62,.055);
}

.card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  color: var(--white);
  background: var(--blue);
  font-size: 18px;
  font-weight: 950;
}

.feature-image {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 31px;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  content: "✓";
  font-size: 12px;
  font-weight: 950;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin-top: -52px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat {
  padding: 27px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.deca-band {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: 24px;
  color: #dbeaf3;
  background: linear-gradient(135deg, var(--navy-2), var(--blue-2));
  box-shadow: var(--shadow);
}

.deca-band h2 {
  color: var(--white);
}

.deca-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 45px;
  align-items: center;
}

.deca-points {
  display: grid;
  gap: 10px;
}

.deca-point {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  font-size: 14px;
}

.cta {
  padding: 55px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.cta h2 {
  margin-bottom: 8px;
  color: var(--white);
}

.cta p {
  margin: 0;
  color: #dcebf4;
}

.page-hero {
  padding: 94px 0;
  color: #d8e5ef;
  background:
    radial-gradient(circle at 85% 20%, rgba(240,169,40,.2), transparent 24%),
    linear-gradient(135deg, var(--navy-2), var(--navy));
}

.page-hero .eyebrow {
  color: #ffd172;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 5.7vw, 64px);
}

.page-hero p {
  max-width: 790px;
  margin: 0;
  font-size: 18px;
}

.breadcrumbs {
  margin-bottom: 20px;
  color: #9fc0d5;
  font-size: 13px;
}

.article {
  max-width: 900px;
  margin-inline: auto;
}

.article h2 {
  margin-top: 44px;
  font-size: 34px;
}

.article h3 {
  margin-top: 32px;
}

.article p,
.article li {
  font-size: 17px;
}

.article a {
  color: var(--blue);
  font-weight: 800;
}

.info-box {
  margin: 28px 0;
  padding: 24px 26px;
  border-left: 5px solid var(--orange);
  border-radius: 0 13px 13px 0;
  background: #fff8e9;
}

.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: #eef5fa;
}

tr:last-child td {
  border-bottom: 0;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.faq-question {
  width: 100%;
  padding: 20px 22px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
}

.faq-item.open .faq-answer {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 35px;
}

.contact-card {
  padding: 30px;
  border-radius: 18px;
  color: #dce8f1;
  background: var(--navy);
}

.contact-card h2 {
  color: var(--white);
}

.contact-line {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.contact-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 850;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfdce5;
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 145px;
  resize: vertical;
}

.form-note {
  margin-top: 14px;
  font-size: 12px;
}

.site-footer {
  padding: 65px 0 28px;
  color: #a9bfcd;
  background: var(--navy-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-title {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 23px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
}

.error-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
  padding: 70px 0;
  background: var(--soft);
}

.error-card {
  max-width: 830px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-code {
  color: var(--navy);
  font-size: clamp(100px, 20vw, 210px);
  font-weight: 950;
  line-height: .75;
  letter-spacing: -.09em;
}

.error-code span {
  color: var(--orange);
}

.error-card h1 {
  margin: 28px 0 13px;
  color: var(--ink);
  font-size: 37px;
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 17px 22px 24px;
    background: var(--white);
    box-shadow: 0 22px 40px rgba(0,0,0,.13);
    white-space: normal;
  }

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

  .main-menu > a:not(.btn) {
    padding: 10px 0;
  }

  .split,
  .deca-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar {
    display: none;
  }

  .header-inner {
    min-height: 72px;
  }

  .main-menu {
    top: 72px;
  }

  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0 84px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .section {
    padding: 68px 0;
  }

  .grid-3,
  .grid-2,
  .stats,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cta-inner,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-image img {
    min-height: 290px;
  }

  .error-card {
    padding: 36px 22px;
  }
}
