:root {
  --topbar-offset: 4.35rem;
  --ink-950: #0c1624;
  --ink-900: #122238;
  --ink-800: #18324f;
  --sand-500: #b6855d;
  --sand-400: #cca07f;
  --sand-300: #dfc2a8;
  --paper-100: #f5f1eb;
  --paper-200: #e7ddd1;
  --mist-100: #dce5ed;
  --white: #ffffff;
  --radius-s: 0.6rem;
  --radius-m: 1rem;
  --radius-l: 1.4rem;
  --shadow-soft: 0 12px 36px rgba(10, 18, 30, 0.18);
  --shadow-hard: 0 22px 40px rgba(10, 18, 30, 0.33);
  --container: 100%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: radial-gradient(circle at 10% -10%, #d6e0ea 0, #f4f0e9 45%, #f7f5f1 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.12;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: 0.015em;
}

h1 {
  font-size: clamp(2.4rem, 4.9vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(0.9rem, 2vw, 1.8rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
}

.kicker::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}

.kicker--dark {
  color: var(--ink-800);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.78rem 1.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--white);
  background: linear-gradient(125deg, var(--sand-500), var(--sand-400));
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button--small {
  font-size: 0.77rem;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.topbar {
  margin-top: 0;
  position: relative;
  z-index: 20;
}

.topbar__inner {
  min-height: var(--topbar-offset);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-inline: 1rem;
  background: #17364f;
  border: 1px solid rgba(245, 250, 255, 0.12);
  border-bottom: 0;
  border-radius: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 2.3rem;
  width: auto;
  max-width: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.menu a {
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.81rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.menu a:hover {
  color: var(--sand-300);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.45rem;
  background: transparent;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.72rem;
}

.button--small {
  border-radius: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  padding: 0.65rem 0.95rem;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
}

.hero__canvas {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(18.5rem, 31vw, 25.8rem);
  align-items: center;
  column-gap: clamp(1rem, 2.6vw, 2.4rem);
  padding-block: clamp(1.4rem, 3vh, 2.6rem);
  border-radius: 0;
  overflow: hidden;
  background-image: url("../images/stock/hero-justica.jpg");
  background-size: cover;
  background-position: center 54%;
  border: 1px solid rgba(8, 25, 40, 0.24);
  border-top: 0;
  box-shadow: var(--shadow-hard);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(10, 24, 39, 0.88) 8%, rgba(11, 37, 58, 0.76) 44%, rgba(13, 42, 67, 0.42) 100%),
    radial-gradient(circle at 18% 96%, rgba(187, 140, 101, 0.2), transparent 56%);
}

.hero__main {
  position: relative;
  z-index: 1;
  max-width: min(47rem, 100%);
  align-self: center;
  padding: clamp(1.8rem, 3.8vh, 3rem) 0;
  color: var(--white);
}

.hero__main h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: 1.03;
}

.hero__main p {
  max-width: 35rem;
  font-size: clamp(1.08rem, 1.7vw, 1.36rem);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.45rem;
}

.hero__main .button {
  border-radius: 0.45rem;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 0.48vw, 0.88rem);
  letter-spacing: 0.08em;
  padding: clamp(0.72rem, 1vw, 0.9rem) clamp(1.22rem, 1.9vw, 1.7rem);
}

.hero__phone {
  position: relative;
  z-index: 1;
  justify-self: end;
  align-self: center;
  width: clamp(18.5rem, 31vw, 25.8rem);
  background: #f7f4ef;
  border: 1px solid rgba(11, 33, 52, 0.23);
  box-shadow: 0 20px 44px rgba(8, 22, 36, 0.4);
}

.hero__portrait {
  margin: 0;
  padding: 0.35rem;
  display: grid;
  gap: 0.5rem;
}

.hero__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  object-position: center 12%;
  border: 1px solid rgba(9, 26, 42, 0.2);
}

.hero__portrait figcaption {
  display: grid;
  gap: 0.2rem;
  padding: 0.15rem 0.2rem 0.3rem;
}

.hero__portrait strong {
  font-size: 0.95rem;
  color: var(--ink-900);
  line-height: 1.25;
}

.hero__portrait span {
  font-size: 0.72rem;
  color: rgba(18, 34, 56, 0.82);
  line-height: 1.45;
}

.section {
  padding: clamp(3.8rem, 7.5vw, 6rem) 0;
}

.section--light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(236, 228, 218, 0.4));
}

.section--dark {
  background: linear-gradient(162deg, var(--ink-950), var(--ink-800));
  color: var(--white);
}

.section--texture {
  position: relative;
  background:
    linear-gradient(150deg, #121f2f, #1f3853),
    repeating-linear-gradient(55deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 18px);
  color: var(--white);
}

.section__header {
  margin-bottom: clamp(1.5rem, 2.8vw, 2.5rem);
  max-width: 56rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: clamp(1.2rem, 2.7vw, 2.8rem);
}

.split__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.split__media::after {
  content: "";
  position: absolute;
  inset: auto -1rem -1.4rem 35%;
  height: 6.7rem;
  border-radius: 1rem;
  background: linear-gradient(to right, rgba(182, 133, 93, 0.25), transparent);
}

.split__media img {
  width: 100%;
  min-height: 20rem;
  object-fit: cover;
}

.split__content p {
  color: rgba(18, 34, 56, 0.86);
}

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

.card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: var(--radius-l);
  padding: clamp(1rem, 1.8vw, 1.35rem);
}

.card p,
.card li {
  color: rgba(255, 255, 255, 0.88);
}

.card h3 {
  color: var(--sand-300);
}

.card li {
  margin-bottom: 0.42rem;
}

.solutions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.solution {
  padding: clamp(0.92rem, 1.6vw, 1.1rem);
  border-radius: var(--radius-m);
  border: 1px solid rgba(18, 34, 56, 0.16);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solution:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.solution h3 {
  font-size: 1.35rem;
  color: var(--ink-900);
}

.solution p {
  margin: 0;
  color: rgba(18, 34, 56, 0.82);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.highlight {
  background: rgba(6, 14, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-m);
  padding: clamp(0.9rem, 1.4vw, 1.06rem);
}

.highlight strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--sand-300);
}

.highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.93rem;
}

.materials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.material {
  padding: clamp(0.92rem, 1.5vw, 1.1rem);
  border-radius: var(--radius-m);
  border: 1px solid rgba(18, 34, 56, 0.16);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(236, 227, 214, 0.68));
  font-weight: 700;
  transition: transform 0.25s ease;
}

.material:hover {
  transform: translateY(-3px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.blog-card {
  padding: clamp(0.95rem, 1.6vw, 1.12rem);
  border-radius: var(--radius-m);
  border: 1px solid rgba(18, 34, 56, 0.16);
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 0.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.blog-card__meta {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(18, 34, 56, 0.7);
}

.blog-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--ink-900);
}

.blog-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(18, 34, 56, 0.82);
}

.blog-card a {
  width: fit-content;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sand-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid transparent;
}

.blog-card a:hover {
  border-bottom-color: var(--sand-500);
}

.contact {
  position: relative;
  background:
    linear-gradient(160deg, rgba(9, 19, 31, 0.96), rgba(18, 42, 66, 0.95)),
    url("../images/stock/stock-documentos.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.contact__copy p {
  color: rgba(255, 255, 255, 0.86);
}

.contact__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(0.8rem, 2vw, 1.4rem);
  row-gap: 0.55rem;
  padding: clamp(0.95rem, 1.9vw, 1.2rem);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-soft);
}

.contact__card-links {
  display: grid;
  gap: 0.55rem;
  align-content: center;
}

.contact__card a {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
}

.contact__card a:hover {
  border-bottom-color: var(--sand-300);
  color: var(--sand-300);
}

.contact__card img {
  margin-top: 0;
  border-radius: var(--radius-m);
  width: clamp(6.6rem, 13vw, 9.2rem);
  justify-self: end;
  align-self: center;
}

.footer {
  background: #081423;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.footer__inner {
  min-height: 3.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 1rem;
  align-items: center;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.footer__meta p {
  margin: 0;
}

.zfx-badge {
  width: clamp(4.3rem, 8.4vw, 5.9rem);
  justify-self: end;
}

.zfx-badge img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .split,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .hero__canvas {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__main {
    max-width: min(37rem, 100%);
    padding: clamp(1.8rem, 4.2vh, 3rem) 0;
  }

  .hero__phone {
    width: clamp(16rem, 35vw, 20.5rem);
  }

  .areas,
  .solutions,
  .highlights,
  .materials,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  :root {
    --topbar-offset: 4.2rem;
  }

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

  .menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0.25rem;
    right: 0.25rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, rgba(10, 26, 42, 0.98), rgba(16, 41, 64, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.72rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 30;
  }

  .menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar .button--small {
    display: none;
  }
}

@media (max-width: 820px) {
  .topbar {
    margin-top: 0;
  }

  .topbar__inner {
    min-height: 4.2rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(245, 250, 255, 0.12);
  }

  .brand img {
    height: 2rem;
  }

  .hero__canvas {
    border-top: 1px solid rgba(8, 25, 40, 0.24);
    border-radius: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: block;
    overflow: hidden;
  }

  .hero__main {
    max-width: 100%;
    padding: clamp(1.8rem, 4.6vh, 2.4rem) 1rem 1rem;
  }

  .hero__main h1 {
    font-size: clamp(2.2rem, 10.8vw, 3.3rem);
  }

  .hero__main p {
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    margin-bottom: 1.1rem;
  }

  .hero__phone {
    position: static;
    width: min(24rem, calc(100% - 2rem));
    max-width: 24rem;
    margin: 0.3rem auto clamp(1rem, 3.4vh, 1.7rem);
    box-shadow: 0 14px 30px rgba(8, 22, 36, 0.34);
  }
}

@media (max-width: 620px) {
  .areas,
  .solutions,
  .highlights,
  .materials,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .contact__card img {
    justify-self: start;
  }

  .zfx-badge {
    width: clamp(3.7rem, 17vw, 4.8rem);
    justify-self: center;
  }

  .section {
    padding: 2.8rem 0;
  }

  .hero__main {
    padding: 1.55rem 0.9rem 0.9rem;
  }

  .hero__phone {
    margin-inline: 0.9rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.7rem 0;
  }

  .footer__meta {
    justify-content: center;
  }
}
