:root {
  --ink: #17202a;
  --muted: #5a6572;
  --line: #d7dee6;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --steel: #26394d;
  --blue: #0f4c81;
  --blue-dark: #0a3155;
  --green: #2f6f4e;
  --accent: #f2c14e;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.12);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(215, 222, 230, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 220px;
  min-width: 168px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--steel);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: #eaf2f8;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle__line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--blue-dark);
}

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

.hero__media {
  background-image: url("/assets/images/fachada-plasbergue.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(10, 22, 34, 0.88), rgba(10, 22, 34, 0.52) 48%, rgba(10, 22, 34, 0.08)),
    linear-gradient(0deg, rgba(10, 22, 34, 0.46), rgba(10, 22, 34, 0));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 74px;
}

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

.hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: 4.8rem;
  font-weight: 850;
}

h2 {
  max-width: 760px;
  font-size: 2.65rem;
  font-weight: 820;
}

h3 {
  font-size: 1.18rem;
  font-weight: 800;
}

.hero__lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-method {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.phone-note {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.button--primary {
  color: #102033;
  background: var(--accent);
}

.button--primary:hover {
  background: #ffd470;
}

.button--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button--secondary {
  color: var(--blue-dark);
  border-color: var(--line);
  background: var(--paper);
}

.section {
  padding: 86px 0;
}

.section__inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section__heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro {
  background: var(--soft);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: start;
}

.intro__copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
  background: var(--line);
}

.stats li {
  min-height: 132px;
  padding: 26px;
  background: var(--paper);
}

.stats strong {
  display: block;
  color: var(--blue);
  font-size: 2.15rem;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.products {
  background: #ffffff;
}

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

.product-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.06);
}

.product-card--wide {
  grid-column: span 2;
  grid-template-columns: minmax(220px, 0.65fr) minmax(260px, 1fr);
  grid-template-rows: auto;
  min-height: 300px;
}

.product-card img {
  width: 100%;
  height: 100%;
  padding: 18px;
  background: var(--soft);
  object-fit: contain;
}

.product-card:nth-child(2) img {
  padding: 0;
  object-fit: cover;
}

.product-card div {
  padding: 24px;
}

.product-card__kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.product-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--steel);
  background: var(--soft);
  font-weight: 700;
}

.production {
  color: #ffffff;
  background: var(--steel);
}

.production .eyebrow {
  color: var(--accent);
}

.production__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.production__media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 178px;
  gap: 14px;
  min-height: 370px;
}

.production__photo {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.production__photo:hover .production__image,
.production__photo:focus-visible .production__image {
  transform: scale(1.035);
}

.production__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.production__photo--wide {
  grid-column: span 2;
}

.production__photo--tall {
  grid-row: span 2;
}

.production__content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.92);
}

.check-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.credentials {
  background: var(--soft);
}

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

.credential {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.credential img {
  width: 100%;
  max-height: 128px;
  object-fit: contain;
}

.credential p {
  margin: 10px 0 0;
  color: var(--muted);
}

.credential--wide {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  min-height: 120px;
}

.credential--wide img {
  width: min(780px, 100%);
  max-height: 120px;
  margin: 0 auto;
}

.contact {
  background: #ffffff;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 44px;
  align-items: start;
}

.contact__grid p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--steel);
  background: var(--soft);
  font-style: normal;
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.contact-card__phone {
  display: grid;
  gap: 4px;
}

.contact-card strong {
  margin-top: 12px;
}

.not-found {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 12px;
}

.not-found h1 {
  color: var(--ink);
  font-size: 3rem;
}

.not-found p {
  color: var(--muted);
}

.site-footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #111923;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-footer img {
  width: 180px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffffff;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  font-size: 0.95rem;
}

.lightbox {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(5, 12, 20, 0.86);
}

.lightbox__image {
  width: 100%;
  max-height: calc(100svh - 32px);
  border-radius: var(--radius);
  object-fit: contain;
  background: #111923;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: #111923;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 920px) {
  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .site-header {
    min-height: 70px;
    padding: 12px 20px;
  }

  .brand {
    width: 188px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero__content,
  .section__inner,
  .site-footer__inner,
  .not-found {
    width: min(100% - 32px, 1120px);
  }

  .hero__content {
    padding: 88px 0 58px;
  }

  .hero__lead {
    font-size: 1.1rem;
  }

  .section {
    padding: 66px 0;
  }

  .section__heading,
  .intro__grid,
  .production__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

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

  .product-card--wide {
    grid-column: 1 / -1;
  }

  .production__media {
    grid-auto-rows: 220px;
    min-height: auto;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 2.65rem;
  }

  h2,
  .not-found h1 {
    font-size: 1.82rem;
  }

  .hero__actions,
  .contact__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact-method {
    width: 100%;
  }

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

  .stats li {
    min-height: 112px;
  }

  .product-card,
  .product-card--wide {
    grid-template-columns: 1fr;
    grid-template-rows: 210px auto;
    min-height: auto;
  }

  .production__media {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .production__photo,
  .production__photo--wide,
  .production__photo--tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
  }

  .credential {
    grid-template-columns: 92px 1fr;
    gap: 16px;
    padding: 18px;
  }

  .credential--wide {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
