:root {
  --bg: #0c0c0d;
  --surface: #151517;
  --surface-2: #202023;
  --text: #f6f1ea;
  --muted: #c6bdb1;
  --line: rgba(255, 255, 255, 0.12);
  --wood: #b56d35;
  --wood-2: #e0a15f;
  --wine: #65090c;
  --wine-2: #8f151a;
  --steel: #9ca3af;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(12, 12, 13, 0.96) 0%, rgba(12, 12, 13, 0.78) 48%, rgba(12, 12, 13, 0.45) 100%),
    url("assets/porton-madera-casa.jpeg") center / cover;
}

.nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 18px 22px;
  position: relative;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand img {
  background: #fff;
  border-radius: 8px;
  height: 54px;
  object-fit: contain;
  padding: 5px;
  width: 54px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links .nav-cta {
  color: var(--text);
}

.nav-cta {
  background: var(--wine-2);
  border-radius: 999px;
  padding: 10px 16px;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  background: var(--text);
  border-radius: 2px;
  display: block;
  height: 2px;
  width: 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 78px 22px 92px;
}

.eyebrow {
  color: var(--wood-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 880px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 650px;
}

.hero-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.primary {
  background: linear-gradient(135deg, var(--wine-2), var(--wood));
  color: #fff;
  box-shadow: 0 18px 42px rgba(101, 9, 12, 0.28);
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.full {
  width: 100%;
}

.trust-row {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  height: min(680px, 72vh);
  object-fit: cover;
  width: 100%;
}

.hero-card {
  background: rgba(15, 15, 16, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 20px;
  left: -22px;
  padding: 18px 20px;
  position: absolute;
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section,
.feature-band,
.contact-section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 92px 22px;
}

.intro {
  align-items: end;
  display: grid;
  gap: 42px;
  grid-template-columns: 1fr 0.85fr;
}

.intro p:last-child,
.feature-band p,
.contact-section p,
.service-grid p,
.process-grid span {
  color: var(--muted);
}

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

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

.service-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 230px;
  padding: 24px;
}

.service-grid span {
  color: var(--wood-2);
  display: block;
  font-weight: 900;
  margin-bottom: 42px;
}

.feature-band {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 0.9fr 1fr;
}

.feature-band img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.text-link {
  color: var(--wood-2);
  font-weight: 900;
}

.filters {
  margin-bottom: 22px;
}

.filters button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
}

.filters button.active {
  background: var(--text);
  color: var(--bg);
}

.gallery {
  display: grid;
  gap: 16px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 310px;
  overflow: hidden;
  position: relative;
}

.gallery-card.hide {
  display: none;
}

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

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

.gallery-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-card div {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
  bottom: 0;
  left: 0;
  padding: 60px 18px 18px;
  position: absolute;
  right: 0;
}

.gallery-card strong,
.gallery-card span {
  display: block;
}

.gallery-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.process {
  border-top: 1px solid var(--line);
}

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

.process-grid div {
  border-left: 3px solid var(--wine-2);
  padding: 6px 0 6px 18px;
}

.process-grid strong,
.process-grid span {
  display: block;
}

.contact-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(101, 9, 12, 0.85), rgba(32, 32, 35, 0.95)),
    url("assets/cierre-madera-metal.jpeg") center / cover;
  border-radius: 8px;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 330px;
  margin-bottom: 80px;
  padding: 54px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  color: #151517;
  padding: 22px;
  text-align: center;
}

.contact-card img {
  height: 116px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.contact-card .promo-card-img {
  border-radius: 8px;
  height: auto;
  margin-bottom: 18px;
  width: min(100%, 220px);
}

.contact-card small {
  color: #555;
  display: block;
  margin-top: 14px;
}

.floating-whatsapp {
  background: #1fb35b;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-weight: 900;
  padding: 14px 18px;
  position: fixed;
  right: 18px;
  z-index: 20;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 28px 22px 90px;
}

@media (max-width: 960px) {
  .hero,
  .intro,
  .feature-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-media img {
    height: auto;
    max-height: none;
  }

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

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

  .contact-section {
    border-radius: 0;
    margin-bottom: 40px;
  }
}

@media (max-width: 680px) {
  .nav {
    padding: 14px 16px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    background: rgba(15, 15, 16, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    position: absolute;
    right: 16px;
    top: 78px;
    width: min(260px, calc(100vw - 32px));
    z-index: 30;
  }

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

  .nav-links a {
    padding: 12px;
    width: 100%;
  }

  .nav-cta {
    text-align: center;
  }

  h1 {
    font-size: 3rem;
  }

  .section,
  .feature-band {
    padding: 64px 16px;
  }

  .hero {
    gap: 28px;
    padding: 42px 16px 64px;
  }

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

  .gallery-card,
  .gallery-card.wide,
  .gallery-card.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .hero-card {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .contact-section {
    padding: 44px 16px;
  }

  footer {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }
}
