/* METHA | CSS editable. Colores, tipografías y espacios principales. */
:root {
  --ink: #111312;
  --deep: #171b18;
  --paper: #f5f6f2;
  --lime: #a9d33d;
  --muted: #626a62;
  --line: #d2d6cf;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
}

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

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

button {
  font: inherit;
}

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

section[id] {
  scroll-margin-top: 76px;
}

.container {
  width: min(100% - 9vw, 1360px);
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(88px, 10vw, 150px);
}

.eyebrow, .section-top, .project-info small, .service-copy small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.lime-text, em {
  color: var(--lime);
}

em {
  font-style: normal;
}

/* Cabecera */
.topbar {
  min-height: 36px;
  padding: 8px 4.5vw;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: var(--lime);
  font-size: 11px;
  font-weight: 700;
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.topbar a:hover {
  text-decoration: underline;
}

.site-header {
  height: 90px;
  padding-inline: 4.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  color: white;
  background: var(--ink);
}

.brand img {
  width: 180px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 38px);
  font-size: 13px;
  font-weight: 600;
}

.main-nav > a:not(.nav-cta) {
  opacity: .78;
  transition: opacity .2s, color .2s;
}

.main-nav > a:not(.nav-cta):hover {
  opacity: 1;
  color: var(--lime);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  padding: 14px 20px;
  background: var(--lime);
  color: white;
  white-space: nowrap;
  transition: background .2s;
}

.nav-cta:hover {
  background: #37541a;
  color: white;
}

.nav-cta span {
  font-size: 19px;
}

.menu-toggle {
  display: none;
}

/* Portada: foto izquierda, presentación derecha */
.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  min-height: min(760px, calc(100svh - 126px));
  background: var(--ink);
  color: white;
}

.hero-media {
  position: relative;
  min-height: 660px;
  overflow: hidden;
}

.hero-media > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 11, 9, .82), transparent 70%), linear-gradient(90deg, rgba(5, 11, 9, .18), transparent);
}

.hero h1 {
  position: absolute;
  z-index: 1;
  left: clamp(25px, 5vw, 90px);
  bottom: clamp(55px, 7vw, 105px);
  max-width: 980px;
  width: 112%;
  margin: 0;
  font: 600 clamp(49px, 5.6vw, 91px)/1.08 Manrope, Arial, sans-serif;
  letter-spacing: -.065em;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(50px, 6vw, 100px);
  padding-left: clamp(60px, 8vw, 140px);
}

.hero-panel .eyebrow {
  margin-bottom: 35px;
}

.hero-panel h2 {
  font: 500 clamp(33px, 3.1vw, 52px)/1.17 Manrope, Arial, sans-serif;
  letter-spacing: -.05em;
  margin-bottom: 27px;
}

.hero-panel > p:not(.eyebrow) {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.7;
  color: #bdc5bd;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 21px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

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

.button span, .text-link span {
  font-size: 20px;
  line-height: .8;
}

.button-outline {
  border: 1px solid #a6aca6;
  color: white;
}

.button-outline:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.button-lime {
  background: var(--lime);
  color: var(--ink);
}

.button-lime:hover {
  background: white;
}

/* Nosotros */
.section-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 70px;
  text-transform: uppercase;
}

.section-top i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-top span:last-child:not(:first-child) {
  color: var(--muted);
}

.intro-heading, .section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: end;
  margin-bottom: 70px;
}

.intro h2, .services h2, .why h2 {
  font: 500 clamp(45px, 5.1vw, 77px)/1.12 Manrope, Arial, sans-serif;
  letter-spacing: -.065em;
  margin-bottom: 26px;
}

.intro h2 em, .services h2 em, .why h2 em {
  color: #799c2f;
}

.intro-heading p, .section-heading p {
  max-width: 480px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.intro-heading > div:last-child {
  padding-bottom: 4px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover {
  color: #658d25;
}

.intro-bento {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 18px;
  min-height: 510px;
}

.bento-main, .bento-detail {
  overflow: hidden;
}

.bento-main img, .bento-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.5vw, 36px);
}

.stat small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.stat strong {
  font: 500 clamp(48px, 5vw, 79px)/1 Manrope, Arial, sans-serif;
  letter-spacing: -.07em;
}

.stat span {
  font-size: 13px;
  line-height: 1.45;
}

.stat-dark {
  background: var(--ink);
  color: white;
}

.stat-paper {
  background: #e4e8e0;
}

.stat-lime {
  background: var(--lime);
}

/* Clientes y especialidades */
.clients {
  padding: 48px 0;
  background: #e9eddf;
}

.clients-inner {
  display: flex;
  align-items: center;
  gap: 50px;
}

.clients p {
  width: 145px;
  flex: none;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 24px;
}

.client-list span {
  font: 700 19px Manrope, Arial, sans-serif;
  color: #4e5a4e;
  letter-spacing: -.03em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: #e8ebe5;
  min-width: 0;
}

.service-card > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-copy {
  min-height: 278px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
}

.service-copy small {
  color: var(--muted);
  font-size: 10px;
}

.service-copy h3 {
  font: 600 clamp(21px, 2vw, 29px)/1.2 Manrope, Arial, sans-serif;
  letter-spacing: -.045em;
  margin: 26px 0 13px;
}

.service-copy p {
  color: #586158;
  font-size: 14px;
  line-height: 1.55;
}

.service-copy .text-link {
  margin-top: auto;
  width: fit-content;
  font-size: 12px;
}

/* Capacidad */
.capacity {
  background: var(--deep);
  color: white;
}

.capacity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(55px, 8vw, 135px);
  align-items: center;
}

.capacity-image {
  height: 680px;
  overflow: hidden;
}

.capacity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.capacity-copy h2, .projects h2, .contact h2, .cta-banner h2 {
  font: 500 clamp(53px, 5.9vw, 90px)/1.08 Manrope, Arial, sans-serif;
  letter-spacing: -.065em;
  margin: 30px 0;
}

.capacity-copy > p:not(.eyebrow) {
  max-width: 450px;
  font-size: 16px;
  line-height: 1.7;
  color: #bdc5bd;
}

.stages {
  counter-reset: step;
  padding: 0;
  margin: 34px 0 40px;
  list-style: none;
}

.stages li {
  counter-increment: step;
  display: flex;
  gap: 17px;
  padding: 12px 0;
  border-top: 1px solid #404840;
  font-size: 15px;
}

.stages li::before {
  content: "0" counter(step);
  color: var(--lime);
  font-size: 12px;
  min-width: 23px;
}

/* Proyectos */
.projects {
  background: var(--paper);
}

.projects h2 {
  margin: 0 0 60px;
}

.projects h2 em {
  color: #789a30;
}

.project-row {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  min-height: 420px;
  margin-bottom: 25px;
  background: #e8ebe5;
}

.project-row.reverse {
  grid-template-columns: 1.3fr .7fr;
}

.project-row.reverse .project-info {
  grid-column: 2;
  grid-row: 1;
}

.project-row.reverse img {
  grid-column: 1;
  grid-row: 1;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 80px);
}

.project-info small {
  color: #688732;
}

.project-info h3 {
  font: 500 clamp(38px, 4vw, 62px)/1.1 Manrope, Arial, sans-serif;
  letter-spacing: -.055em;
  margin: 40px 0 16px;
}

.project-info p {
  max-width: 350px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.project-row > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* Banner y respaldo */
.cta-banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.cta-banner > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  opacity: .32;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 12, 9, .86), rgba(7, 12, 9, .34));
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-block: 80px;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(48px, 5.5vw, 82px);
}

.cta-content > div {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
}

.cta-content > div > a:first-child {
  font-size: 20px;
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 8vw, 130px);
}

.reasons > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.reasons > div > span {
  grid-row: 1 / 3;
  padding-top: 4px;
  color: #6b756a;
  font-size: 12px;
}

.reasons h3 {
  font: 600 22px Manrope, Arial, sans-serif;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

.reasons p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Contacto y pie */
.contact {
  background: var(--ink);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 10vw;
  align-items: center;
}

.contact h2 {
  margin: 34px 0 45px;
}

.contact-details > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 23px 0;
  border-top: 1px solid #424a42;
}

.contact-details small {
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.contact-details a, .contact-details span {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.contact-details a:hover {
  color: var(--lime);
}

.footer {
  overflow: hidden;
  padding-top: 85px;
  background: var(--lime);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-grid h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 8px;
}

.footer-grid a, .footer-grid span {
  font-size: 14px;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-grid p {
  max-width: 260px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-logo {
  width: 220px;
  height: auto;
}

.footer-word {
  font: 700 clamp(90px, 15vw, 240px)/1 Manrope, Arial, sans-serif;
  letter-spacing: -.09em;
  white-space: nowrap;
  margin: 80px 0 20px;
  opacity: .2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #749631;
  padding: 22px 0;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 17px;
  }

  .main-nav > a:nth-child(4) {
    display: none;
  }

  .hero {
    grid-template-columns: 1.3fr 1fr;
  }

  .hero h1 {
    width: 125%;
  }

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

  .service-card > img {
    aspect-ratio: 16/10;
  }

}

@media (max-width: 760px) {
  .container {
    width: min(100% - 44px, 620px);
  }

  .section-pad {
    padding-block: 82px;
  }

  .topbar {
    justify-content: center;
    text-align: center;
  }

  .topbar > span, .topbar-contact a:nth-child(2) {
    display: none;
  }

  .site-header {
    height: 72px;
    padding-inline: 22px;
  }

  .brand img {
    width: 158px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 0;
    background: transparent;
    padding: 12px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px 22px 26px;
    background: var(--ink);
    box-shadow: 0 14px 25px #0005;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .main-nav > a:not(.nav-cta), .main-nav > a:nth-child(4) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #414941;
  }

  .main-nav .nav-cta {
    margin-top: 20px;
    justify-content: space-between;
  }

  .hero {
    display: block;
  }

  .hero-media {
    min-height: 620px;
  }

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

  .hero h1 {
    width: auto;
    left: 22px;
    right: 22px;
    bottom: 50px;
    font-size: clamp(34px, 9vw, 60px);
  }

  .hero-panel {
    padding: 65px 22px 78px;
  }

  .hero-panel h2 {
    font-size: 38px;
  }

  .section-top {
    margin-bottom: 44px;
    font-size: 11px;
  }

  .section-top span:last-child:not(:first-child) {
    display: none;
  }

  .intro-heading, .section-heading, .why-grid, .capacity-grid, .contact-grid {
    display: block;
  }

  .intro h2, .services h2, .why h2 {
    font-size: clamp(40px, 9vw, 58px);
  }

  .intro-heading > div:last-child {
    margin-top: 26px;
  }

  .intro-bento {
    display: block;
  }

  .bento-main {
    height: 360px;
    margin-bottom: 14px;
  }

  .bento-side, .stat-grid {
    gap: 14px;
  }

  .bento-side {
    grid-template-rows: 195px 195px;
  }

  .stat {
    padding: 20px;
  }

  .stat strong {
    font-size: 55px;
  }

  .stat span {
    font-size: 11px;
  }

  .clients-inner {
    display: block;
  }

  .clients p {
    width: auto;
    margin-bottom: 27px;
  }

  .client-list {
    justify-content: flex-start;
    gap: 18px 25px;
  }

  .client-list span {
    font-size: 16px;
  }

  .section-heading p {
    margin-top: 22px;
  }

  .capacity-image {
    height: 440px;
    margin-bottom: 55px;
  }

  .capacity-copy h2, .projects h2, .contact h2 {
    font-size: clamp(49px, 10vw, 72px);
  }

  .project-row, .project-row.reverse {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }

  .project-row.reverse .project-info, .project-row.reverse img {
    grid-column: auto;
    grid-row: auto;
  }

  .project-row > img {
    min-height: 260px;
    height: 280px;
  }

  .project-info {
    padding: 34px 28px 40px;
  }

  .project-info h3 {
    font-size: 42px;
    margin-top: 18px;
  }

  .cta-content {
    display: block;
  }

  .cta-banner h2 {
    font-size: 48px;
    margin-bottom: 35px;
  }

  .why h2 {
    margin-bottom: 50px;
  }

  .contact-details {
    margin-top: 70px;
  }

  .footer {
    padding-top: 70px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-word {
    font-size: 19vw;
    margin-top: 65px;
  }

}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card > img {
    aspect-ratio: 16/10;
  }

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

  .footer-grid > div:first-child {
    grid-column: auto;
  }

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

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: .01ms !important;
  }

}
