:root {
  --blue: #143f96;
  --blue-dark: #081a33;
  --orange: #f57c13;
  --orange-dark: #c95b05;
  --ink: #122033;
  --muted: #5d6878;
  --paper: #f5f7fb;
  --line: rgba(18, 32, 51, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 26, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 63, 150, 0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--white);
  background: rgba(61, 70, 84, 0.96);
  box-shadow: 0 12px 38px rgba(8, 26, 51, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 15vw, 230px);
}

.brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  transition: filter 180ms ease;
}

.site-header.is-scrolled .brand img,
.site-header.is-open .brand img {
  filter: drop-shadow(0 8px 18px rgba(8, 26, 51, 0.34));
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  color: var(--orange);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(110deg, rgba(8, 26, 51, 0.94) 0%, rgba(8, 26, 51, 0.82) 46%, rgba(20, 63, 150, 0.18) 46%, rgba(245, 124, 19, 0.1) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 15px);
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(24px, 8vw, 96px) 72px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--orange);
}

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

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.button.light {
  color: var(--blue-dark);
  background: var(--white);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding: 120px clamp(24px, 6vw, 72px) 72px 0;
}

.hero-visual img {
  width: min(520px, 88%);
  margin-left: auto;
  border: 8px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.service-stack {
  display: grid;
  width: min(520px, 88%);
  margin: 18px 0 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.service-stack span {
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--orange);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.metrics {
  display: grid;
  max-width: 1120px;
  margin: -52px auto 0;
  padding: 0 clamp(18px, 4vw, 36px);
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}

.metrics div {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metrics strong {
  display: block;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.metrics .metric-long strong {
  font-size: 24px;
  line-height: 1.15;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metrics b,
.metrics em {
  display: block;
  font-style: normal;
}

.metrics b {
  color: var(--ink);
}

.metrics em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px clamp(18px, 4vw, 36px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 60px;
  padding-bottom: 82px;
}

.intro-band p:last-child,
.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  padding: 0 0 26px;
  background: rgba(255, 255, 255, 0.76);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.service-grid article:nth-child(even) {
  background: rgba(20, 63, 150, 0.045);
}

.number {
  display: block;
  margin: 24px 26px 34px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.service-media {
  position: relative;
  height: 190px;
  flex: 0 0 190px;
  overflow: hidden;
  background: var(--blue-dark);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 280ms ease;
}

.service-media.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.service-media.split-media img {
  min-width: 0;
}

.service-media.impermeabilizacion img {
  object-position: center 56%;
}

.service-media.lona-granulada img {
  object-position: center 45%;
}

.service-media.lona-aluminio img {
  object-position: center 52%;
}

.service-media.pintura-elastomerica img {
  object-position: center 44%;
}

.service-media.pintura-epoxica img {
  object-position: center 52%;
}

.service-media.silicon-techo img {
  object-position: center 58%;
}

.service-media.remodelaciones img {
  object-position: center 42%;
}

.service-media.herreria img {
  object-position: center 48%;
}

.service-grid article:hover .service-media img {
  transform: scale(1.05);
}

.service-grid h3,
.service-grid p,
.service-quote {
  margin-right: 26px;
  margin-left: 26px;
}

.service-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.service-quote {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  margin-top: auto;
  align-self: center;
  padding: 0 14px;
  color: var(--white);
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.service-quote:hover {
  color: var(--white);
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
}

.work {
  max-width: none;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  background: #e9edf3;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 40px 0 32px;
}

.work-video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: #0a0e1c;
  box-shadow: 0 16px 40px rgba(31, 61, 122, 0.16);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.work-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(31, 61, 122, 0.24);
}

.work-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 8px 14px;
  color: var(--white);
  background: rgba(10, 14, 28, 0.65);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.work-cta {
  text-align: center;
  margin-top: 32px;
}

.work-cta > p {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 600;
}

.cta {
  display: grid;
  margin: 0 clamp(18px, 5vw, 72px) 72px;
  padding: clamp(34px, 6vw, 66px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(20, 63, 150, 0.96), rgba(8, 26, 51, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 17px);
}

.cta h2 {
  max-width: 780px;
}

.cta p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--blue-dark);
  font-size: 14px;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.footer a {
  color: var(--white);
  font-weight: 800;
}

.signature {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.74) !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.signature strong {
  color: var(--orange);
}

.whatsapp-float,
.instagram-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  z-index: 50;
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.whatsapp-float {
  bottom: max(18px, env(safe-area-inset-bottom));
  background: #25d366;
}

.instagram-float {
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px);
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.whatsapp-float:hover {
  background: #1fb85a;
  transform: translateY(-2px);
}

.instagram-float:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible,
.instagram-float:focus-visible {
  outline: 3px solid rgba(245, 124, 19, 0.6);
  outline-offset: 4px;
}

.whatsapp-float__icon,
.instagram-float__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
}

.whatsapp-float__icon svg,
.instagram-float__icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float__text,
.instagram-float__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer social links */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.footer-social:hover {
  opacity: 0.75;
}

.footer-social svg {
  flex-shrink: 0;
}

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

  .hero-visual {
    min-height: auto;
    padding: 0 24px 74px;
  }

  .hero-visual img,
  .service-stack {
    width: 100%;
    max-width: 560px;
    margin-right: auto;
  }

  .metrics,
  .intro-band,
  .service-grid,
  .cta {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    overflow: hidden;
  }

  .hero-copy,
  .hero-visual {
    min-width: 0;
  }

  .site-header {
    padding: 14px 18px;
  }

  .brand {
    width: 146px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .hero .eyebrow {
    max-width: 310px;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero h1 {
    max-width: 330px;
    font-size: clamp(29px, 7.7vw, 31px);
    line-height: 1.1;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy {
    max-width: none;
    justify-content: flex-start;
    padding: 108px 18px 34px;
  }

  .hero-visual {
    padding: 0 18px 30px;
  }

  .hero-visual img,
  .service-stack {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .hero-visual img {
    border-width: 6px;
  }

  .hero-text {
    max-width: 330px;
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    min-height: 46px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 14px;
  }

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

  .service-stack {
    gap: 10px;
  }

  .metrics {
    margin: 22px auto 0;
    padding-right: 18px;
    padding-left: 18px;
    gap: 18px;
  }

  .work-gallery {
    gap: 10px;
  }

  .work-label {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .section {
    padding: 74px 18px;
  }

  .service-grid {
    gap: 18px;
    border: 0;
  }

  .service-grid article {
    min-height: auto;
    border: 1px solid var(--line);
  }

  .service-media {
    height: 210px;
  }

  .service-quote {
    width: min(100%, 280px);
    max-width: calc(100% - 52px);
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    padding-right: 18px;
    padding-left: 18px;
    text-align: center;
  }

  .number {
    margin-bottom: 36px;
  }

  .work-item.large,
  .work-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .cta {
    margin-right: 18px;
    margin-left: 18px;
  }

  .whatsapp-float,
  .instagram-float {
    right: max(10px, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }
  .whatsapp-float {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .instagram-float {
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 62px);
  }
  .whatsapp-float__icon,
  .instagram-float__icon {
    width: 30px;
    height: 30px;
  }
  .whatsapp-float__icon svg,
  .instagram-float__icon svg {
    width: 28px;
    height: 28px;
  }
}
