:root {
  --blue: #0756a3;
  --blue-dark: #043866;
  --navy: #08243d;
  --gold: #f4b942;
  --green: #1fa855;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --text: #1e293b;
  --muted: #64748b;
  --border: #dbe3ec;
  --shadow: 0 18px 45px rgba(8, 36, 61, 0.14);
  --radius: 18px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 227, 236, 0.85);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand img {
  width: 190px;
  max-height: 64px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding-block: 0.4rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transition: right 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

.menu-toggle,
.lang-toggle {
  border: 0;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  padding: 0.4rem;
  font-size: 1.8rem;
  color: var(--navy);
  background: transparent;
}

.lang-toggle {
  min-width: 46px;
  padding: 0.55rem 0.75rem;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4, 36, 67, 0.96) 0%, rgba(4, 36, 67, 0.78) 50%, rgba(4, 36, 67, 0.35) 100%),
    url("Assets/portada.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.26));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 6rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  color: #dcecff;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 800px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 1.2rem;
  color: var(--navy);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: 1.55rem;
}

.hero-copy {
  max-width: 710px;
  margin-bottom: 2rem;
  color: #eef6ff;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary {
  color: var(--navy);
  background: var(--gold);
}

.btn-light {
  color: var(--navy);
  background: var(--white);
}

.btn-whatsapp {
  color: var(--white);
  background: var(--green);
}

.free-estimate {
  margin-top: 1.1rem;
  color: #e9f5ff;
  font-weight: 700;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.25;
}

.trust-strip {
  color: var(--white);
  background: var(--blue);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid > div {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.trust-grid > div:last-child {
  border-right: 0;
}

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

.trust-grid span {
  color: #d9eaff;
  font-size: 0.92rem;
}

.section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.split,
.estimate-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.image-card {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  min-height: 450px;
  object-fit: cover;
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--blue);
  font-weight: 800;
}

.section-blue {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.light {
  color: var(--white);
}

.light-copy {
  color: #dcecff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.services-grid article {
  min-height: 165px;
  padding: 1.35rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  transition: transform 180ms ease, background 180ms ease;
}

.services-grid article:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.16);
}

.services-grid span {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, 260px);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.gallery-tall {
  grid-row: 1 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery figure:hover img {
  transform: scale(1.035);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.2rem 1rem;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  font-weight: 800;
}

.video-wrap {
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 16px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-wrap video {
  width: 100%;
  max-height: 640px;
}

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.process-grid article {
  padding: 1.4rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.process-grid article > span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 800;
}

.areas {
  text-align: center;
  background: var(--off-white);
}

.areas-list {
  max-width: 980px;
  margin: 0 auto;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 2;
}

.estimate {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(4, 56, 102, 0.98), rgba(7, 86, 163, 0.94)),
    url("assets/project-pergola.jpg") center/cover no-repeat;
}

#estimateForm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.4rem;
  color: var(--text);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#estimateForm label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

#estimateForm input,
#estimateForm textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
}

#estimateForm input:focus,
#estimateForm textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 86, 163, 0.14);
}

.full {
  grid-column: 1 / -1;
}

.contact-grid {
  align-items: start;
}

.contact-grid a:not(.contact-card) {
  color: var(--blue);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-card {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  padding: 1.2rem;
  text-align: center;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.contact-card span {
  font-size: 2rem;
}

.contact-card small {
  color: var(--muted);
}

.floating-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 900;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  font-size: 1.55rem;
}

footer {
  padding-block: 2rem;
  color: #d5e2ef;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-grid img {
  width: 190px;
  height: 70px;
  object-fit: contain;
  display: block;
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
}
}

.footer-grid p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split,
  .estimate-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .image-card img {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 70px;
  }

  .brand img {
    width: 150px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(8, 36, 61, 0.12);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a,
  .lang-toggle {
    text-align: center;
  }

  .hero {
    min-height: 650px;
    background-position: 62% center;
  }

  .hero-content {
    padding-block: 4.5rem;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-badges {
    display: grid;
    gap: 0.55rem;
  }

  .hero-badges span {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
  }

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

  .trust-grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 280px);
  }

  .gallery-tall {
    grid-row: auto;
  }

  #estimateForm {
    grid-template-columns: 1fr;
  }

  #estimateForm > * {
    grid-column: 1;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 480px) {
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}