:root {
  --bg: #3c3c3b;
  --bg-deep: #3c3c3b;
  --text: #f6f6f6;
  --muted: rgba(246, 246, 246, 0.82);
  --accent: #ffaa00;
  --line: rgba(246, 246, 246, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1440px, 94vw);
  margin: 0 auto;
}

.topbar {
  background: #ffaa00;
  border-bottom: 2px solid #f6f6f6;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 290px;
  height: auto;
  margin-left: -13px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 46px;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: #3c3c3b;
  text-transform: uppercase;
  font-family: "DIN Alternate", "DIN Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.28rem;
}

.menu a:hover,
.menu a:focus-visible {
  color: #f6f6f6;
}

.menu a[aria-current="page"] {
  color: #f6f6f6;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #3c3c3b;
  background: transparent;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #3c3c3b;
  display: block;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: #f6f6f6;
}

.menu-toggle:hover span,
.menu-toggle:focus-visible span {
  background: #f6f6f6;
}

.hero {
  aspect-ratio: 1920 / 761;
  background-image: url("assets/Imagen hero-final.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}

.hero-overlay {
  min-height: 100%;
  background: transparent;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px) 0;
}

.hero-content {
  text-align: center;
  width: min(920px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: reveal 900ms ease-out;
}

.hero-content h1 {
  margin: 0;
  font: 700 clamp(2.2rem, 5vw, 5rem) / 1.05 "Roboto", sans-serif;
  letter-spacing: 0.01em;
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 960px) {
  .hero-title-line {
    white-space: normal;
  }
}

.hero-content p {
  margin: 18px auto 34px;
  font-size: clamp(1.2rem, 2vw, 2rem);
  max-width: 760px;
  color: var(--text);
  text-align: center;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font: 700 1.7rem/1 "Roboto", sans-serif;
  margin-inline: auto;
  align-self: center;
}

.cta:hover,
.cta:focus-visible {
  color: #3c3c3b;
}

.section {
  padding: 84px 0;
}

.section-about,
#services,
#projects {
  padding-bottom: 0;
}

.section-about .container,
#services .container,
#projects .container {
  border-bottom: 2px solid rgba(255, 170, 0, 0.8);
  padding-bottom: 84px;
}

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

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font: 700 1.05rem/1 "Roboto", sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.about-text {
  font-size: clamp(1.2rem, 1.95vw, 1.9rem);
  line-height: 1.4;
  font-weight: 300;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.about-summary {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.4;
  color: var(--muted);
  max-width: 58ch;
}

.about-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  font-family: "DIN Alternate", "DIN Condensed", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

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

.about-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 10px;
}

.section-about-home .about-grid {
  align-items: start;
}

.section-about-home .about-grid > div {
  display: flex;
  flex-direction: column;
}

.section-about-home .about-link {
  margin-top: auto;
  padding-top: 18px;
}

.section-about-home .about-text {
  text-align: left;
  text-justify: auto;
}

.section-about-home {
  padding-top: 108px;
}

.section-about-page {
  padding-top: 96px;
}

.section-about-page .container {
  border-bottom: 0;
}

.about-page-media {
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 10px;
}

.about-page-copy {
  margin-top: 24px;
  border: 2px solid rgba(255, 170, 0, 0.8);
  border-radius: 10px;
  padding: 24px 26px;
}

.about-page-copy p {
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  line-height: 1.46;
  font-weight: 300;
}

.about-page-copy p + p {
  margin-top: 22px;
}

.section-services-page {
  padding-top: 96px;
}

.section-services-page h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 3.25vw, 3.6rem);
}

.services-intro {
  margin: 0;
  font-size: clamp(1.2rem, 1.95vw, 1.95rem);
  line-height: 1.4;
  font-weight: 300;
  max-width: none;
}

.services-section-divider {
  border-top: 2px solid rgba(255, 170, 0, 0.8);
  margin: 0;
}

.services-intro + .services-section-divider {
  margin: 84px 0;
}

.services-module {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.services-module + .services-module {
  border-top: 2px solid rgba(255, 170, 0, 0.8);
  margin-top: 84px;
  padding-top: 84px;
}

.services-page-card {
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 24px 26px;
  min-height: 250px;
}

.services-page-card .service-icon {
  margin: 0 0 14px 0;
}

.services-page-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.95rem, 2.4vw, 2.85rem);
  line-height: 1.05;
}

.services-page-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 1.6vw, 1.8rem);
  line-height: 1.35;
  font-weight: 300;
}

h2 {
  margin: 0 0 22px;
  font: 700 clamp(2.8rem, 4.2vw, 4.6rem) / 1 "Roboto", sans-serif;
  color: var(--accent);
  text-transform: uppercase;
}

.home-page #services h2,
.home-page #projects h2,
.home-page .section-why h2,
.section-about h2 {
  font-size: clamp(2.2rem, 3.25vw, 3.6rem);
}

.home-page #about .eyebrow {
  font-size: clamp(2.2rem, 3.25vw, 3.6rem);
  line-height: 1;
  margin: 0 0 22px;
}

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

.service-card {
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  min-height: 160px;
}

.service-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 0 12px -8px;
  color: var(--text);
}

.service-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.45rem;
  font-weight: 500;
}

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

.project-card img {
  width: 100%;
  aspect-ratio: 351 / 205;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 10px 10px 0 0;
}

.project-card:nth-child(1) img {
  object-position: center 55%;
}

.project-card:nth-child(2) img {
  object-position: center 38%;
}

.project-card:nth-child(3) img {
  object-position: center 52%;
}

.project-card .bar {
  margin-top: 2px;
  height: 34px;
  background: var(--accent);
  border-radius: 0 0 10px 10px;
}

.project-copy {
  margin-top: 24px;
}

.project-copy p,
.section-why p {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.35;
  font-weight: 300;
}

.section-projects-page {
  padding-top: 96px;
}

#projects.section-projects-page .container {
  border-bottom: 0;
  padding-bottom: 0;
}

.section-projects-page h2,
.section-contact-page h2 {
  text-align: left;
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 3.25vw, 3.6rem);
}

.project-intro {
  margin: 0;
  font-size: clamp(1.2rem, 1.95vw, 1.95rem);
  line-height: 1.4;
  font-weight: 300;
  max-width: none;
}

.project-section-divider {
  border-top: 2px solid rgba(255, 170, 0, 0.8);
  margin: 0;
}

.project-intro + .project-section-divider {
  margin: 84px 0;
}

.project-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: stretch;
  padding: 84px 0;
}

.project-feature + .project-feature {
  border-top: 2px solid rgba(255, 170, 0, 0.8);
}

.project-feature.is-reverse .project-feature-copy {
  order: 2;
}

.project-feature.is-reverse img {
  order: 1;
}

.project-feature-copy {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-feature-label {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  font: 700 1.9rem/1 "Roboto", sans-serif;
}

.project-feature-copy p:not(.project-feature-label) {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.9rem);
  line-height: 1.5;
  font-weight: 300;
}

.project-feature-copy .project-feature-label {
  margin: 0 0 10px;
}

.project-feature img {
  width: 100%;
  aspect-ratio: 351 / 205;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 10px;
}

.project-feature-last {
  padding-bottom: 84px;
}

.section-projects-page .project-feature:first-of-type {
  padding-top: 0;
}

.section-why {
  padding-bottom: 96px;
}

.section-contact-page {
  padding-top: 96px;
}

.section-contact-page .container {
  border-bottom: 2px solid rgba(255, 170, 0, 0.8);
  padding-bottom: 84px;
}

.contact-form {
  width: 100%;
  display: grid;
  gap: 18px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  font-family: "DIN Alternate", "DIN Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  background: transparent;
  border: 2px solid #f6f6f6;
  border-radius: 10px;
  color: var(--text);
  font: 300 clamp(1.05rem, 1.55vw, 1.6rem) / 1.35 "Roboto", sans-serif;
  padding: 16px 20px;
}

.contact-field input {
  min-height: 70px;
}

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

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(246, 246, 246, 0.72);
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 0;
  border-color: var(--accent);
}

.contact-submit {
  margin-top: 8px;
  width: fit-content;
  min-width: 190px;
  padding: 14px 34px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #3c3c3b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font: 700 1.25rem/1 "DIN Alternate", "DIN Condensed", "Arial Narrow", sans-serif;
  cursor: pointer;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: transparent;
  color: var(--text);
}

footer {
  border-top: 2px solid #f6f6f6;
}

.footer-grid {
  padding: 38px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 22px;
}

.footer-brand,
.footer-title {
  margin: 0 0 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: var(--muted);
  font-size: 1.1rem;
  text-decoration: none;
  margin: 0;
  line-height: 1.6;
}

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

.copyright {
  border-top: 2px solid #f6f6f6;
  text-align: center;
  padding: 16px 0;
  color: var(--muted);
  font-size: 1rem;
}

@keyframes reveal {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  html {
    font-size: 12px;
  }

  .topbar-inner {
    min-height: 82px;
  }

  .menu {
    gap: 18px;
  }

  .about-grid,
  .project-copy,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-feature,
  .project-feature.is-reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-feature.is-reverse .project-feature-copy,
  .project-feature.is-reverse img {
    order: initial;
  }

  .project-feature-copy {
    max-width: none;
  }

  .about-grid img {
    height: 220px;
  }

  .about-page-media {
    aspect-ratio: 16 / 9;
  }

  .about-page-copy {
    padding: 20px;
  }

  .services-module {
    grid-template-columns: 1fr;
  }

  .services-page-card {
    min-height: 0;
  }

  .contact-field input {
    min-height: 62px;
  }

  .contact-field textarea {
    min-height: 210px;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    min-height: 88px;
    gap: 12px;
    padding: 12px 0;
    position: relative;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
  }

  .brand img {
    width: 220px;
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #ffaa00;
    border-top: 1px solid rgba(60, 60, 59, 0.35);
    border-bottom: 2px solid #3c3c3b;
    padding: 0 3vw;
    z-index: 25;
  }

  .site-nav.is-open {
    display: block;
  }

  .menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
  }

  .menu li {
    width: 100%;
    border-top: 1px solid rgba(60, 60, 59, 0.25);
  }

  .menu li:first-child {
    border-top: 0;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 12px 2px;
    font-size: 1.16rem;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section-contact-page {
    padding-top: 84px;
  }

  .section-about-page {
    padding-top: 84px;
  }

  .section-services-page {
    padding-top: 84px;
  }

  .section-contact-page .container {
    padding-bottom: 72px;
  }

  .section-about-page .container {
    padding-bottom: 72px;
  }

  .services-module {
    margin-top: 0;
  }

  .services-module + .services-module {
    margin-top: 72px;
    padding-top: 72px;
  }

  .services-intro + .services-section-divider {
    margin: 72px 0;
  }

  .contact-form {
    gap: 14px;
  }

  .contact-field input,
  .contact-field textarea {
    padding: 14px 16px;
  }

  .contact-field textarea {
    min-height: 180px;
  }
}
