:root {
  --ink: #15211f;
  --muted: #64706d;
  --paper: #f8f6f1;
  --white: #ffffff;
  --line: #dcd8cf;
  --teal: #174a45;
  --blue: #0b4f9f;
  --deep-blue: #08294d;
  --red: #9f3f3f;
  --ochre: #c29a4a;
  --shadow: 0 20px 50px rgba(21, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 56px);
  color: var(--white);
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  display: flex;
  gap: clamp(10px, 2vw, 26px);
  font-size: 0.93rem;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #0d2f4a;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  display: grid;
  place-items: center;
  background: #0d2f4a;
}

.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(8, 23, 34, 0.86), rgba(8, 23, 34, 0.28) 50%, rgba(8, 23, 34, 0.04)),
    linear-gradient(0deg, rgba(8, 23, 34, 0.36), rgba(8, 23, 34, 0.02) 48%);
}

.hero__content {
  position: relative;
  width: min(680px, calc(100% - 36px));
  margin: 0 clamp(18px, 5vw, 72px) clamp(42px, 8vw, 82px);
}

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

.hero .eyebrow {
  color: #f3d8c6;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 700;
}

.button--primary {
  border-color: #25d366;
  background: #25d366;
  color: #061b11;
}

.button--secondary {
  color: var(--white);
}

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

.section__heading {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.section--intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro-grid > p {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1.16;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.stats div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.stats dt {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
}

.stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.work-card__visual {
  min-height: 240px;
  background-size: cover;
}

.work-card__visual--one {
  background:
    linear-gradient(135deg, rgba(23, 74, 69, 0.12), rgba(159, 63, 63, 0.08)),
    url("assets/trabajo-foto-14.jpg") center / cover;
}

.work-card__visual--two {
  background:
    linear-gradient(135deg, rgba(194, 154, 74, 0.2), rgba(23, 74, 69, 0.18)),
    url("assets/trabajo-foto-04.jpg") center / cover;
}

.work-card__visual--three {
  background:
    linear-gradient(135deg, rgba(20, 58, 56, 0.08), rgba(182, 80, 76, 0.08)),
    url("assets/trabajo-foto-05.jpg") center / cover;
}

.work-card__body {
  padding: 24px;
}

.work-card__body p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.service-area {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.area-panel {
  max-width: 760px;
}

.area-panel p {
  color: var(--muted);
  font-size: 1.15rem;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.area-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 10px 14px;
  color: var(--teal);
  font-weight: 700;
}

.process-section {
  background: var(--deep-blue);
  color: var(--white);
}

.process-section .eyebrow {
  color: #9bd1ff;
}

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

.process-grid article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.process-grid span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #061b11;
  font-weight: 800;
}

.process-grid h3 {
  margin-top: 18px;
}

.process-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-section {
  background: #eef4f7;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 220px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-section {
  background: var(--ink);
  color: var(--white);
}

.video-section .eyebrow {
  color: #9bd1ff;
}

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

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #050b12;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  object-fit: cover;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 92px);
  background: var(--teal);
  color: var(--white);
}

.profile .eyebrow {
  color: #f1c5b2;
}

.profile__copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--white);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: start;
  background: var(--white);
}

.contact__links {
  display: grid;
  gap: 12px;
}

.contact__links a {
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  color: var(--teal);
  font-weight: 700;
}

.contact__links .contact__highlight {
  border: 0;
  border-radius: 8px;
  background: #25d366;
  padding: 14px 16px;
  color: #061b11;
  text-align: center;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  border-radius: 999px;
  background: #25d366;
  padding: 13px 18px;
  color: #061b11;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(6, 27, 17, 0.28);
}

.footer {
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .intro-grid,
  .service-area,
  .profile,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    color: var(--ink);
    background: rgba(248, 246, 241, 0.94);
    box-shadow: 0 1px 0 rgba(21, 33, 31, 0.1);
  }

  .nav {
    gap: 8px 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 82svh;
  }

  .hero__media img {
    object-fit: cover;
    object-position: 58% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(14, 29, 27, 0.82), rgba(14, 29, 27, 0.28)),
      linear-gradient(0deg, rgba(14, 29, 27, 0.5), rgba(14, 29, 27, 0.08));
  }

  .hero__content {
    margin-bottom: 42px;
  }

  .button {
    width: 100%;
  }

  .floating-cta {
    right: 12px;
    bottom: 12px;
    padding: 12px 15px;
  }

  .gallery-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item img {
    height: auto;
  }
}
