:root {
  --bg: #f6f4ef;
  --bg-soft: #ece8df;
  --bg-dark: #1f262c;
  --surface: #ffffff;
  --text: #182026;
  --muted: #59636d;
  --line: rgba(24, 32, 38, 0.12);
  --primary: #c6843f;
  --primary-dark: #9f642b;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(21, 29, 36, 0.08);
  --shadow-soft: 0 14px 32px rgba(21, 29, 36, 0.06);
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
body.motion-ready {
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; transition: color .24s var(--motion-ease), opacity .24s var(--motion-ease); }
img { max-width: 100%; display: block; }
figure { margin: 0; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 32, 38, 0.08);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.brand img {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(100%, 320px);
}
.nav { display: flex; gap: 20px; align-items: center; color: var(--muted); font-size: 0.96rem; }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(24, 32, 38, 0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color .24s var(--motion-ease), background-color .24s var(--motion-ease), transform .24s var(--motion-ease), box-shadow .24s var(--motion-ease);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .24s var(--motion-ease), opacity .24s var(--motion-ease);
}
.header-cta {
  flex: 0 0 auto;
}
.nav-cta {
  display: none;
}
.btn, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700;
  transition: transform .24s var(--motion-ease), box-shadow .24s var(--motion-ease), background-color .24s var(--motion-ease), border-color .24s var(--motion-ease), color .24s var(--motion-ease);
}
.btn { background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-dark); }
.btn-secondary { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.72); }

.icon-service {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}
.hero {
  position: relative;
  padding: 80px 0 56px;
  background:
    linear-gradient(90deg, rgba(31,38,44,0.97) 0%, rgba(31,38,44,0.92) 48%, rgba(31,38,44,0.62) 72%, rgba(31,38,44,0.26) 100%),
    linear-gradient(135deg, rgba(31,38,44,0.14), rgba(31,38,44,0.38)),
    var(--hero-image, url("../img/hero-impermeabilizacion.webp")) center center / cover no-repeat;
  color: #fff;
}
.hero-home { --hero-image: url("../img/hero-impermeabilizacion.webp"); }
.hero-eibar { --hero-image: url("../img/hero-eibar.webp"); }
.hero-fachadas { --hero-image: url("../img/hero-fachadas.webp"); }
.hero-irun { --hero-image: url("../img/hero-irun.webp"); }
.hero-cubiertas { --hero-image: url("../img/hero-cubiertas.webp"); }
.hero-terrazas { --hero-image: url("../img/hero-terrazas.webp"); }
.hero-tolosa { --hero-image: url("../img/hero-tolosa.webp"); }
.hero-humedades { --hero-image: url("../img/hero-humedades.webp"); }
.hero-contact {
  --hero-image: url("../img/hero-impermeabilizacion.webp");
  padding: 80px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
  min-height: clamp(440px, 62vh, 620px);
}
.hero-grid-secondary {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(380px, 54vh, 520px);
}
.hero-content {
  width: min(100%, 760px);
  max-width: 760px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: 28px;
  background: rgba(17, 24, 31, 0.34);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(10, 14, 18, 0.24);
  backdrop-filter: blur(4px);
}
.hero-content-secondary {
  width: min(100%, 720px);
  max-width: 720px;
  padding: clamp(24px, 3vw, 36px);
}
.hero-grid-home {
  grid-template-columns: minmax(0, 1fr);
}
.hero-content-home {
  width: min(100%, 960px);
  max-width: 960px;
  padding: clamp(28px, 4vw, 44px);
  background: rgba(17, 24, 31, 0.58);
}
.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;
}
.eyebrow {
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.70rem; font-weight: 800; color: var(--primary);
}

.hero-content-secondary {
  padding-top: 10px;
}
.hero-kicker {
  max-width: 64ch;
}
.hero-heading {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--primary);
}
.hero-title {
  margin: 0 0 16px;
  max-width: 13ch;
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: #fff;
  font-weight: 900;
  text-wrap: balance;
}
.hero p:not(.hero-title):not(.eyebrow) { margin: 0 0 14px; color: rgba(255,255,255,0.86); font-size: 1.04rem; max-width: 62ch; }
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  position: relative;
  padding-left: 16px;
  color: rgba(255,255,255,0.87);
  font-size: 0.98rem;
  line-height: 1.45;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.hero-sidecard {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 24px 60px rgba(10, 14, 18, 0.22);
}
.contact-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
}
.contact-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-hero-title {
  max-width: 11ch;
}
.contact-hero-points {
  max-width: 62ch;
}
.contact-hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.contact-highlight-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.contact-highlight-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}
.contact-highlight-card p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}
.contact-hero-form {
  align-self: center;
  background: rgba(255,255,255,0.98);
}
.contact-form-title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.contact-form-intro {
  margin: 0 0 22px;
  color: var(--muted);
}
.hero-sidecard-list {
  display: grid;
  gap: 18px;
}
.hero-sidecard-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.hero-sidecard-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}
.text-link::after {
  content: "→";
  transition: transform .24s var(--motion-ease);
}
.text-link:hover::after {
  transform: translateX(3px);
}
.hero-card, .card, .media-card {
  background: var(--surface); color: var(--text); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
  transition: transform .3s var(--motion-ease), box-shadow .3s var(--motion-ease), border-color .3s var(--motion-ease), background-color .3s var(--motion-ease);
}
.hero-card, .media-card-hero { align-self: start; }
.media-card {
  overflow: hidden;
}
.media-card img {
  width: 100%;
  border-radius: calc(var(--radius) - 8px);
  object-fit: cover;
  transition: transform .6s var(--motion-ease), filter .35s var(--motion-ease);
}
.media-card-hero img {
  aspect-ratio: 4 / 5;
  min-height: 100%;
}
.section-media img {
  aspect-ratio: 4 / 3;
  max-height: 500px;
  object-fit: cover;
}
.media-card figcaption {
  margin-top: 16px;
  color: var(--muted);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card h3 { margin: 0 0 12px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card .text-link {
  margin-top: auto;
}
.contact-support-grid {
  align-items: stretch;
}
.contact-support-card {
  position: relative;
  overflow: hidden;
  padding-top: 26px;
}
.contact-support-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(198,132,63,0.95), rgba(159,100,43,0.45));
}
.contact-support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 50px;
  height: 50px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(198,132,63,0.16), rgba(198,132,63,0.06));
  border: 1px solid rgba(198,132,63,0.18);
}
.contact-support-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.process-intro {
  align-items: center;
  margin-bottom: 32px;
}
.section-contrast {
  background: var(--bg-dark);
  color: #fff;
}
.section-contrast .section-title,
.section-contrast .eyebrow {
  color: #fff;
}
.section-contrast .section-intro,
.section-contrast .list li,
.section-contrast .form-note p {
  color: rgba(255,255,255,0.76);
}
.form-section-grid {
  align-items: start;
}
.form-copy {
  padding-top: 8px;
}
.form-benefits {
  margin-bottom: 28px;
}
.form-note {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.form-card-strong {
  padding: 30px;
  box-shadow: 0 24px 56px rgba(6, 10, 14, 0.26);
}
.checkbox-line {
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:0.92rem;
  color:var(--muted);
}
.checkbox-line input {
  margin-top:4px;
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
.section-contact-faq {
  background: linear-gradient(180deg, #e2ddd2 0%, #d7d0c3 100%);
  border-top: 1px solid rgba(24, 32, 38, 0.06);
}
.section-contact-faq .faq-grid {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.section-title { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.03; letter-spacing: -0.05em; }
.section-title-compact { font-size: clamp(1.6rem, 3vw, 2rem); }
.section-intro { margin: 0 0 28px; color: var(--muted); max-width: 68ch; }
.list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.list li { padding-left: 18px; position: relative; color: var(--muted); }
.list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); position: absolute; left: 0; top: 0.62em; }
.form-card form { display: grid; gap: 14px; }
.input, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  font: inherit; color: var(--text); background: #fff;
}
.textarea { min-height: 140px; resize: vertical; }
.label { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; display: block; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq { display: grid; gap: 14px; }
details {
  background: #fff; border-radius: 18px; border: 1px solid rgba(24,32,38,0.08); padding: 18px 20px;
}
.section-contact-faq details {
  box-shadow: 0 10px 24px rgba(21, 29, 36, 0.06);
}
summary { cursor: pointer; font-weight: 700; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--motion-ease), transform .7s var(--motion-ease);
}
[data-reveal].reveal-in {
  opacity: 1;
  transform: translateY(0);
}
.motion-lift {
  will-change: transform;
}
.motion-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(21, 29, 36, 0.12);
}
.media-zoom:hover img,
.media-card:hover img {
  transform: scale(1.03);
}
.btn:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(21, 29, 36, 0.14);
}
.nav a:hover,
.footer-links a:hover {
  color: var(--primary-dark);
}
.footer-links a {
  transition: transform .24s var(--motion-ease), color .24s var(--motion-ease);
}
.footer-links a:hover {
  transform: translateX(3px);
}
summary {
  transition: color .24s var(--motion-ease);
}
details:hover summary {
  color: var(--primary-dark);
}
.site-footer {
  padding: 38px 0; background: #151b20; color: rgba(255,255,255,0.8);
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr; gap: 24px; }
.footer-links { display: grid; gap: 10px; }
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid, .form-row, .faq-grid, .contact-hero-highlights { grid-template-columns: 1fr; }
  .section-contact-faq .faq-grid {
    padding: 24px 20px;
  }
  .site-header {
    overflow: visible;
  }
  .nav-row {
    position: relative;
    min-height: 68px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .brand {
    min-width: 0;
    margin-right: auto;
  }
  .brand img {
    height: 42px;
    max-width: min(100%, 220px);
  }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .header-cta {
    display: none;
  }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(24, 32, 38, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(21, 29, 36, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .24s var(--motion-ease), transform .24s var(--motion-ease), visibility .24s var(--motion-ease);
  }
  .nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 14px;
  }
  .nav a:not(.nav-cta):hover {
    background: var(--bg-soft);
  }
  .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
  }
  .site-header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hero {
    padding: 68px 0 44px;
    background-position: center center;
  }
  .hero-contact {
    padding: 68px 0 52px;
  }
  .hero-grid {
    min-height: auto;
    gap: 16px;
  }
  .hero-content,
  .hero-content-secondary {
    width: 100%;
    max-width: none;
    padding: 24px 20px;
    background: rgba(17, 24, 31, 0.58);
    backdrop-filter: none;
  }
  .hero-content-home {
    padding: 24px 20px;
  }
  .contact-hero-form {
    align-self: stretch;
  }
  .hero-heading {
    font-size: 0.88rem;
  }
  .hero-title {
    max-width: 11ch;
    font-size: clamp(2.35rem, 10vw, 3.6rem);
    line-height: 0.96;
  }
  .hero p:not(.hero-title):not(.eyebrow) {
    font-size: 1rem;
  }
  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }
  .section { padding: 68px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .motion-lift,
  .media-card img,
  .btn,
  .btn-secondary,
  .footer-links a {
    transform: none !important;
  }
}



.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0,0,0,0.22);
  z-index: 1200;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(0,0,0,0.26);
  background: #1ebe5d;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
}
body {
  padding-bottom: max(84px, calc(84px + env(safe-area-inset-bottom, 0px)));
}
@media (max-width: 900px) {
  .whatsapp-float {
    width: 58px;
    height: 58px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  body {
    padding-bottom: max(78px, calc(78px + env(safe-area-inset-bottom, 0px)));
  }
}
