:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --text: #1e2a38;
  --muted: #576477;
  --heading: #0b1f3a;
  --brand: #1e5aa8;
  --brand-2: #0b1f3a;
  --accent: #00a3a3;
  --line: rgba(11, 31, 58, 0.14);
  --shadow: 0 16px 36px rgba(11, 31, 58, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(950px 420px at 95% -10%, rgba(30, 90, 168, 0.16), transparent 58%),
    radial-gradient(760px 360px at -8% 8%, rgba(0, 163, 163, 0.1), transparent 54%),
    var(--bg);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 2.6rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  left: 1rem;
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 0.75rem;
}

.topbar {
  position: relative;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 31, 58, 0.12);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 8px 25px rgba(8, 24, 47, 0.1);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.brand-mark {
  width: 168px;
  height: 36px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  color: var(--heading);
  min-width: 0;
}

.brand-text strong {
  font-family: "Manrope", "Inter", sans-serif;
  letter-spacing: 0.2px;
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.menu a {
  text-decoration: none;
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.56rem 0.83rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(11, 31, 58, 0.08);
  transform: translateY(-1px);
}

.menu-cta {
  background: linear-gradient(130deg, var(--brand), #3f7ecf);
  color: #f6fbff;
}

.menu-cta:hover,
.menu-cta:focus-visible {
  background: linear-gradient(130deg, #1c5097, #3f7ecf);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(11, 31, 58, 0.22);
  border-radius: 10px;
  background: rgba(11, 31, 58, 0.05);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  margin: 5px auto;
}

.hero {
  padding: clamp(4rem, 8vw, 6.8rem) 0 clamp(2.6rem, 6vw, 4.3rem);
}

.hero-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  background: linear-gradient(148deg, #ffffff, #f1f7fc);
  padding: clamp(1.5rem, 3.7vw, 2.4rem);
}

.hero-panel {
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  color: #fff;
  padding: clamp(1.5rem, 3.3vw, 2.3rem);
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.73rem;
}

.hero h1 {
  margin: 0.9rem 0 1rem;
  color: var(--heading);
  font-size: clamp(1.85rem, 4.3vw, 3rem);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 800;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(130deg, var(--brand), #3f7ecf);
  color: #f2f8ff;
  box-shadow: 0 10px 24px rgba(30, 90, 168, 0.34);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.02);
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border: 1px solid rgba(15, 79, 134, 0.24);
}

.hero-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
}

.stats {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.stats li {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.95rem;
}

.stats strong {
  display: block;
  font-size: 1.5rem;
  font-family: "Manrope", "Inter", sans-serif;
}

.stats span {
  color: rgba(240, 246, 252, 0.9);
  font-size: 0.95rem;
}

.section {
  padding: clamp(2.8rem, 7vw, 4.8rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, #edf3f8, #f6f9fc);
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.35rem;
}

.section h2,
.footer h2 {
  margin: 0.45rem 0 0.7rem;
  color: var(--heading);
  font-size: clamp(1.55rem, 3.3vw, 2.25rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.service-card,
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.service-card h3,
.project-card h3,
.trust-card h3,
.footer h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.08rem;
}

.service-card p,
.project-card p,
.company-band p,
.quality-card p,
.footer p,
.footer address {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

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

.showcase-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.showcase-media {
  height: 160px;
}

.showcase-media.is-plant {
  background:
    linear-gradient(165deg, rgba(11, 31, 58, 0.78), rgba(30, 90, 168, 0.68)),
    radial-gradient(420px 120px at 12% 12%, rgba(255, 255, 255, 0.35), transparent 68%);
}

.showcase-media.is-clima {
  background:
    linear-gradient(145deg, rgba(30, 90, 168, 0.78), rgba(0, 163, 163, 0.7)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 9px, transparent 9px, transparent 20px);
}

.showcase-media.is-grid {
  background:
    linear-gradient(170deg, rgba(11, 31, 58, 0.8), rgba(11, 31, 58, 0.52)),
    linear-gradient(90deg, rgba(0, 163, 163, 0.4), transparent);
}

.showcase-copy {
  padding: 1rem;
}

.showcase-copy h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1.06rem;
}

.showcase-copy p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.quality-card,
.trust-card,
.company-band {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: clamp(1.2rem, 2.8vw, 1.8rem);
}

.trust-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.trust-card li + li {
  margin-top: 0.55rem;
}

.company-band {
  max-width: 920px;
  margin: 0 auto;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.quote-intro,
.quote-form-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: clamp(1.3rem, 2.8vw, 1.9rem);
}

.quote-intro ul {
  margin: 0.95rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.quote-intro li + li {
  margin-top: 0.45rem;
}

.quote-form {
  margin: 0;
}

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

.quote-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--heading);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 31, 58, 0.2);
  border-radius: 10px;
  padding: 0.72rem 0.76rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(30, 90, 168, 0.18);
  outline-offset: 0;
}

.quote-form textarea {
  resize: vertical;
  min-height: 120px;
}

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

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.consent-line input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.quote-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quote-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.quote-status.success {
  color: #0f7a4c;
}

.quote-status.error {
  color: #ad2d2d;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.footer {
  background: #0a1e30;
  color: #f2f7fb;
  padding: clamp(2.7rem, 7vw, 4rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 1.3rem;
}

.footer h2,
.footer h3 {
  color: #fff;
}

.contact-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.contact-list li + li {
  margin-top: 0.52rem;
}

.contact-list a {
  color: #ffd889;
}

.btn-small {
  margin-top: 0.9rem;
}

.footer-bottom {
  margin-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  padding-top: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(241, 248, 255, 0.8);
}

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

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

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

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

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

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

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(360px, 92vw);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    border-radius: 14px;
    border: 1px solid rgba(11, 31, 58, 0.14);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    padding: 0.65rem;
  }

  .menu.open {
    display: flex;
  }

  .hero-grid,
  .quote-layout,
  .quality-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-text small {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1160px, calc(100% - 1.45rem));
  }

  .topbar {
    border-radius: 14px;
  }

  .brand-mark {
    width: 132px;
    height: 30px;
  }

  .brand-text strong {
    font-size: 0.87rem;
  }

  .brand-text small {
    display: none;
  }

  .services-grid,
  .projects-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

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

  .quote-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
