:root {
  --ink: #102224;
  --muted: #5a6869;
  --paper: #fbfcfa;
  --soft: #eef5f1;
  --teal: #073b3f;
  --teal-2: #0e5b5d;
  --mint: #d8efe6;
  --coral: #d96f52;
  --gold: #d2a24c;
  --line: #d9e4df;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(11, 39, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(7, 34, 36, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--teal);
  background: var(--white);
  border-radius: 8px;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: clamp(0.94rem, 2vw, 1.08rem);
  white-space: nowrap;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-button {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  opacity: 0.88;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--teal);
  background: var(--white);
  border-radius: 8px;
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px clamp(20px, 5vw, 76px) 54px;
  color: var(--white);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 25, 26, 0.9) 0%, rgba(5, 39, 41, 0.7) 35%, rgba(5, 39, 41, 0.2) 62%, rgba(5, 39, 41, 0.1) 100%),
    linear-gradient(0deg, rgba(4, 24, 25, 0.38), rgba(4, 24, 25, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2b18e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions,
.cta-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.button.primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 16px 32px rgba(217, 111, 82, 0.25);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #c85e43;
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  background: var(--teal);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 46px 0 0;
}

.hero-proof div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(4, 24, 25, 0.36);
}

.hero-proof dt {
  margin-bottom: 6px;
  font-weight: 800;
}

.hero-proof dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.section,
.intro-band,
.cta-section {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 76px);
  scroll-margin-top: 72px;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro-band {
  padding-top: 42px;
  padding-bottom: 42px;
  color: var(--white);
  background: var(--teal);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.intro-grid p {
  max-width: 830px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.text-link {
  color: #f0b08d;
  font-weight: 850;
  white-space: nowrap;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p,
.process-layout > div > p,
.risk-list p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.risk-list article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16, 34, 36, 0.05);
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.accent-card {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.accent-card p {
  color: rgba(255, 255, 255, 0.78);
}

.card-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--mint);
  position: relative;
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid var(--teal-2);
  border-radius: 5px;
}

.card-icon.auto::after {
  border-radius: 12px 12px 6px 6px;
}

.card-icon.health::after {
  transform: rotate(45deg);
}

.card-icon.life::after {
  border-radius: 50% 50% 8px 8px;
}

.card-icon.home::after {
  border-radius: 3px;
  transform: translateY(3px) rotate(45deg);
}

.card-icon.business::after {
  border-radius: 2px;
}

.card-icon.engineering {
  background: rgba(255, 255, 255, 0.12);
}

.card-icon.engineering::after {
  border-color: #f0b08d;
  border-radius: 2px;
  transform: rotate(45deg);
}

.process-band {
  background: var(--soft);
  padding-top: clamp(58px, 7vw, 92px);
  padding-bottom: clamp(58px, 7vw, 92px);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

#ingenieria {
  padding-top: clamp(58px, 7vw, 96px);
  padding-bottom: clamp(58px, 7vw, 96px);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.process-layout,
.risk-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 20px;
  min-height: 108px;
  padding: 22px 24px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.steps span {
  grid-row: span 2;
  color: var(--coral);
  font-size: 1.7rem;
  font-weight: 900;
}

.steps strong {
  font-size: 1.1rem;
}

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

.risk-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.narrow {
  margin-bottom: 0;
}

.risk-list {
  display: grid;
  gap: 16px;
}

.risk-list article {
  min-height: auto;
}

.risk-list h3 {
  color: var(--teal);
}

.faq-band {
  background: #f7faf7;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 850;
}

details p {
  padding: 0 22px 22px;
  margin: 0;
}

.cta-section {
  color: var(--white);
  background: var(--coral);
}

.cta-layout {
  justify-content: space-between;
  gap: 28px;
}

.cta-layout h2 {
  max-width: 740px;
  margin-bottom: 0;
}

.cta-section .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  padding: 36px clamp(20px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.78);
  background: #071b1d;
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong,
.site-footer span,
.site-footer a {
  display: block;
  color: var(--white);
  font-weight: 800;
}

.site-footer p {
  max-width: 470px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 66px;
  }

  .nav-button {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
  }

  .nav-button span {
    width: 20px;
    height: 2px;
    background: var(--white);
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(7, 34, 36, 0.96);
  }

  .nav-links a {
    padding: 14px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .hero {
    min-height: 820px;
    padding-top: 112px;
    align-items: end;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(3, 25, 26, 0.92) 0%, rgba(3, 25, 26, 0.76) 48%, rgba(3, 25, 26, 0.1) 100%),
      linear-gradient(90deg, rgba(3, 25, 26, 0.36), rgba(3, 25, 26, 0.08));
  }

  h1 {
    font-size: clamp(2.05rem, 9vw, 4.2rem);
    max-width: 100%;
  }

  .hero-proof,
  .product-grid,
  .process-layout,
  .risk-layout,
  .faq-layout,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .product-card {
    min-height: auto;
  }

  .text-link {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-text {
    max-width: 210px;
    white-space: normal;
    line-height: 1.05;
  }

  .hero {
    min-height: 830px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-content {
    max-width: min(342px, calc(100vw - 48px));
  }

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

  .hero-actions,
  .cta-layout {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .steps span {
    grid-row: auto;
  }
}
