:root {
  --background: #ffffff;
  --foreground: #121821;
  --navy: #001a35;
  --navy-deep: #001126;
  --blue: #00539f;
  --gold: #f3b92f;
  --gold-dark: #d99712;
  --line: #d8dee8;
  --muted: #425064;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 78px;
  padding: 0 clamp(18px, 6vw, 108px);
  background: var(--navy-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  background: rgba(0, 0, 0, 0.16);
}

.brand img {
  width: min(178px, 100%);
  height: 58px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(22px, 3vw, 40px);
  padding: 0 32px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.desktop-nav a {
  display: inline-flex;
  min-height: 78px;
  align-items: center;
  border-bottom: 4px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.header-action,
.primary-button,
.footer-button,
.mobile-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  background: var(--gold);
  color: #101010;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.header-action {
  min-width: 184px;
  padding: 0 24px;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: min(560px, calc(100svh - 78px));
  display: flex;
  align-items: center;
  padding: clamp(52px, 7vw, 82px) clamp(22px, 8vw, 132px);
  background-image: url("../images/estructura-espalda1500.png");
  background-position: center center;
  background-size: cover;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 17, 38, 0.86) 0%, rgba(0, 17, 38, 0.66) 34%, rgba(0, 17, 38, 0.18) 70%),
    linear-gradient(180deg, rgba(0, 17, 38, 0.08), rgba(0, 17, 38, 0.16));
}

.hero-content {
  width: min(780px, 100%);
  color: var(--white);
}

.hero-heading {
  display: grid;
  grid-template-columns: clamp(116px, 13vw, 178px) minmax(0, 1fr);
  gap: clamp(18px, 2.7vw, 32px);
  align-items: center;
  margin-bottom: 24px;
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

.hero h1 {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(2.25rem, 4.1vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--white);
  font-size: clamp(1.03rem, 1.38vw, 1.22rem);
  line-height: 1.52;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.primary-button {
  min-width: 206px;
  padding: 0 22px;
}

.services-section {
  min-height: auto;
  padding: 30px clamp(20px, 9vw, 144px) 82px;
  background: var(--white);
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  margin: 0 auto 18px;
}

.section-title span {
  height: 1px;
  background: #bec7d2;
}

.section-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.service-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 26, 53, 0.12);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(243, 185, 47, 0.78);
  box-shadow: 0 10px 24px rgba(0, 26, 53, 0.18);
  transform: translateY(-4px);
}

.service-card:focus-visible {
  outline: 3px solid rgba(243, 185, 47, 0.42);
  outline-offset: 3px;
}

.service-image {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
}

.service-image img {
  width: auto;
  max-width: 128px;
  max-height: 112px;
  object-fit: contain;
}

.service-copy {
  min-width: 0;
  padding-left: 8px;
}

.service-copy h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  font-weight: 900;
  line-height: 1.2;
}

.service-copy span {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--gold);
}

.service-copy p {
  margin-bottom: 10px;
  color: #202936;
  font-size: 0.98rem;
  line-height: 1.34;
}

.card-link-text {
  display: inline-flex;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.service-card:hover .card-link-text,
.service-card:focus-visible .card-link-text {
  color: var(--navy);
}

.service-card:hover .service-copy span,
.service-card:focus-visible .service-copy span {
  width: 48px;
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 7vw, 86px) clamp(22px, 9vw, 144px);
  background:
    linear-gradient(90deg, rgba(0, 17, 38, 0.94), rgba(0, 26, 53, 0.82)),
    var(--navy);
  color: var(--white);
}

.service-detail-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.service-detail-copy p {
  max-width: 720px;
  margin-bottom: 26px;
  color: #d8e3ef;
  font-size: clamp(1.03rem, 1.45vw, 1.22rem);
  line-height: 1.52;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  color: var(--white);
  font-weight: 900;
}

.service-detail-image {
  display: flex;
  justify-content: center;
}

.service-detail-image img {
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: var(--white);
  object-fit: contain;
  object-position: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.service-detail-content {
  display: grid;
  gap: 34px;
  padding: 46px clamp(20px, 9vw, 144px) 64px;
  background: var(--white);
}

.service-info-section {
  max-width: 920px;
}

.service-info-section h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 900;
}

.service-info-section p,
.service-info-section li {
  color: #202936;
  font-size: 1rem;
  line-height: 1.55;
}

.service-info-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.content-placeholder {
  color: var(--muted);
  font-style: italic;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 7vw, 86px) clamp(22px, 9vw, 144px);
  background:
    linear-gradient(90deg, rgba(0, 17, 38, 0.94), rgba(0, 26, 53, 0.82)),
    var(--navy);
  color: var(--white);
}

.about-hero-copy h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.about-hero-copy p {
  max-width: 780px;
  margin-bottom: 0;
  color: #d8e3ef;
  font-size: clamp(1.03rem, 1.45vw, 1.22rem);
  line-height: 1.56;
}

.about-hero-image {
  margin: 0;
}

.about-hero-image img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.about-content {
  display: grid;
  gap: 44px;
  padding: 46px clamp(20px, 9vw, 144px) 64px;
  background: var(--white);
}

.about-section h2,
.about-cta h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 900;
}

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

.partner-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 26, 53, 0.12);
}

.partner-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.14rem, 1.55vw, 1.38rem);
  font-weight: 900;
}

.partner-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  line-height: 1.35;
}

.partner-card p,
.about-section p,
.about-section li,
.about-cta p {
  color: #202936;
  font-size: 1rem;
  line-height: 1.55;
}

.about-experience,
.about-method,
.about-cta {
  max-width: 980px;
}

.about-experience ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.about-cta {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
}

.about-cta p {
  margin-bottom: 20px;
}

.field-work-section {
  max-width: none;
}

.field-work-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.field-work-main-column,
.field-work-side {
  display: grid;
  gap: 18px;
}

.field-work-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 26, 53, 0.12);
}

.field-work-applications {
  max-width: none;
}

.field-work-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.field-work-main img {
  height: auto;
}

.field-work-item figcaption {
  padding: 14px 16px;
  color: #202936;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}

.site-footer {
  background:
    linear-gradient(rgba(0, 26, 53, 0.96), rgba(0, 26, 53, 0.96)),
    var(--navy);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.5fr;
  gap: 28px;
  align-items: center;
  padding: 30px clamp(20px, 9vw, 144px);
}

.footer-title h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 900;
  text-transform: uppercase;
}

.footer-title span {
  display: block;
  width: 54px;
  height: 4px;
  background: var(--gold);
}

.footer-help strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 1.04rem;
}

.footer-help p {
  margin: 0;
  color: #d8e3ef;
  line-height: 1.4;
}

.footer-contact {
  display: grid;
  gap: 2px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.18);
  font-style: normal;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.footer-contact svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-text {
  display: grid;
  gap: 2px;
}

.contact-label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
}

.footer-button {
  min-width: 230px;
  padding: 0 28px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: end;
  padding: 0 clamp(20px, 9vw, 144px) 34px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row-wide {
  grid-column: span 3;
}

.form-row label {
  color: #d8e3ef;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--foreground);
  font: inherit;
}

.form-row input {
  padding: 0 13px;
}

.form-row textarea {
  resize: vertical;
  padding: 12px 13px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(243, 185, 47, 0.35);
  border-color: var(--gold);
}

.form-button {
  width: 100%;
}

.response-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--navy);
}

.response-panel {
  width: min(540px, 100%);
  padding: 34px;
  border-radius: 6px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.response-panel img {
  width: 180px;
  margin: 0 auto 20px;
}

.response-panel h1 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 2rem;
}

.response-panel p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.secondary-response-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--navy);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    gap: 22px;
    padding: 0 22px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }

  .service-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-button {
    width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
    min-height: 70px;
    padding: 0 16px;
  }

  .brand {
    justify-content: flex-start;
    padding: 7px 10px;
    background: transparent;
  }

  .brand img {
    width: 132px;
    height: 56px;
  }

  .desktop-nav,
  .header-action {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    justify-self: end;
  }

  .mobile-menu summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu[open] summary {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: grid;
    min-width: 230px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: var(--navy-deep);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  }

  .mobile-menu nav a {
    min-height: 44px;
    padding: 12px;
    color: var(--white);
    font-weight: 800;
  }

  .mobile-action {
    width: 100%;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding: 54px 20px 198px;
    background-position: 60% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 17, 38, 0.86) 0%, rgba(0, 17, 38, 0.68) 42%, rgba(0, 17, 38, 0.28) 100%);
  }

  .hero-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 20px;
  }

  .hero-logo {
    width: min(190px, 58vw);
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.05rem, 9vw, 3.05rem);
    line-height: 1.07;
  }

  .hero p {
    max-width: 36rem;
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .services-section {
    min-height: auto;
    padding: 28px 16px 95px;
  }

  .section-title {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-title span {
    width: 84px;
    margin: 0 auto;
  }

  .service-card {
    grid-template-columns: 1fr;
    padding: 20px;
    text-align: center;
  }

  .service-image {
    margin-bottom: 12px;
  }

  .service-copy {
    padding-left: 0;
  }

  .service-copy span {
    margin-right: auto;
    margin-left: auto;
  }

  .card-link-text {
    justify-content: center;
  }

  .service-detail-hero {
    grid-template-columns: 1fr;
    padding: 48px 20px;
  }

  .service-detail-image {
    order: -1;
  }

  .service-detail-image img {
    width: 100%;
    max-height: none;
  }

  .service-detail-actions {
    display: grid;
  }

  .service-detail-content {
    padding: 38px 18px 52px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    padding: 48px 20px;
  }

  .about-hero-image {
    order: -1;
  }

  .about-content {
    gap: 34px;
    padding: 38px 18px 52px;
  }

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

  .about-cta {
    padding: 22px;
  }

  .field-work-gallery {
    grid-template-columns: 1fr;
  }

  .field-work-main-column {
    display: contents;
  }

  .field-work-main {
    order: 1;
  }

  .field-work-side {
    order: 2;
    grid-template-columns: 1fr;
  }

  .field-work-applications {
    order: 3;
  }

  .field-work-item img,
  .field-work-main img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 30px 18px;
  }

  .footer-contact {
    padding: 14px 0;
    background: transparent;
  }

  .footer-contact a {
    font-size: 1.45rem;
  }

  .footer-button {
    min-width: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 0 18px 30px;
  }

  .form-row-wide {
    grid-column: auto;
  }
}
