:root {
  --ink: #191a1c;
  --muted: #5f6268;
  --line: #d8dade;
  --paper: #f4f5f6;
  --white: #ffffff;
  --yellow: #f9c616;
  --yellow-dark: #a87900;
  --red: #c22c26;
  --red-dark: #8f211d;
  --steel: #315d69;
  --charcoal: #1b1d1f;
  --shadow: 0 22px 70px rgba(25, 26, 28, 0.18);
}

* {
  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.5;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: rgba(27, 29, 31, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: cover;
  background: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.brand-copy {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: var(--yellow);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.82);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-cta {
  color: #141414;
  background: var(--yellow);
  box-shadow: 0 12px 28px rgba(249, 198, 22, 0.24);
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(194, 44, 38, 0.26);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.button.slim {
  min-height: 42px;
  align-self: flex-start;
}

.button,
.nav-cta,
.equipment-item,
.main-nav a {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button:focus-visible,
.nav-cta:focus-visible,
.equipment-item:focus-visible,
.nav-toggle:focus-visible,
.main-nav a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media {
  background-image: url("assets/hero-maquinaria-caribe.png");
  background-size: cover;
  background-position: 64% center;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 16, 24, 0.92) 0%, rgba(10, 16, 24, 0.78) 34%, rgba(10, 16, 24, 0.2) 72%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.76) 0%, rgba(10, 16, 24, 0) 42%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(28px, 8vh, 88px) clamp(18px, 6vw, 86px);
  padding-top: 96px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

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

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics span {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: 1.22rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  min-height: 250px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 8px;
}

.service-grid p,
.catalog-detail p,
.steps span,
.coverage p,
.quote-copy p,
.site-footer span {
  color: var(--muted);
}

.icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--red);
  font-weight: 900;
}

.catalog {
  background: var(--charcoal);
  color: var(--white);
}

.catalog .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 18px;
}

.catalog-list {
  display: grid;
  gap: 10px;
}

.equipment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 72px;
  padding: 14px 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.equipment-item span {
  font-weight: 850;
}

.equipment-item small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.equipment-item.is-active {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.equipment-item:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(249, 198, 22, 0.6);
}

.equipment-item.is-active small {
  color: rgba(17, 24, 39, 0.68);
}

.catalog-detail {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.catalog-detail .label {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.steps li {
  position: relative;
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.steps li:last-child {
  border-right: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 54px;
  color: var(--yellow-dark);
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.coverage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(135deg, var(--red-dark) 0%, #2a292a 40%, #203a41 100%);
}

.coverage-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coverage-panel span {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 800;
  text-align: center;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(26px, 6vw, 76px);
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.quote-copy {
  align-self: center;
}

.fine-print {
  font-size: 0.88rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #ccd3df;
  border-radius: 6px;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #151617;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.footer-brand {
  display: flex !important;
  align-items: center;
  max-width: 650px;
}

.footer-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  background: var(--white);
  border-radius: 6px;
}

.footer-contact {
  text-align: right;
}

.site-footer a {
  color: var(--yellow);
}

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

  .main-nav {
    position: absolute;
    top: 75px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
  }

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

  .main-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

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

  .steps li:nth-child(2) {
    border-right: 0;
  }

  .catalog-layout,
  .coverage,
  .quote-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-media {
    background-position: 73% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 16, 24, 0.95) 0%, rgba(10, 16, 24, 0.78) 58%, rgba(10, 16, 24, 0.36) 100%),
      linear-gradient(0deg, rgba(10, 16, 24, 0.86) 0%, rgba(10, 16, 24, 0) 46%);
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 14px 26px;
  }

  .button,
  .nav-cta {
    width: 100%;
    padding-inline: 14px;
  }

  .hero-metrics span {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .steps,
  .quote-form,
  .coverage-panel {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .equipment-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }
}
