/* ============================================================
   INSTAL·LACIONS JNB — modern site styles
   Themes switched via [data-theme] on <html>.
   ============================================================ */

:root {
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-sign: 'Dancing Script', cursive;

  /* brand anchors (from the JNB publicity / logo) */
  --navy:  #14284f;
  --red:   #e2231a;
  --blue:  #2f6fc4;
  --yellow:#f5b301;
  --green: #3aa856;
  --cyan:  #4bb4e6;

  /* themed tokens — default = "Marca JNB" (navy / red / white) */
  --bg:       #ffffff;
  --bg-alt:   #eef2f8;
  --bg-deep:  #14284f;
  --ink:      #14284f;
  --ink-soft: #5a6b85;
  --line:     #dde4ee;
  --card:     #ffffff;
  --card-2:   #f4f7fb;
  --accent:   #e2231a;
  --accent-2: #14284f;
  --on-accent:#ffffff;
  --radius:   16px;
  --radius-sm:11px;
  --shadow:   0 18px 40px -22px rgba(20,40,79,.34);
  --shadow-sm:0 6px 18px -10px rgba(20,40,79,.26);
  --ring:     rgba(226,35,26,.16);
  --eyebrow-spacing: .18em;
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
  color: var(--accent);
}
/* (rayita decorativa retirada a petició del client) */
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  margin-top: 14px;
}
.section-head p { color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 19px); margin-top: 16px; }

/* ============================================================ buttons */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  padding: 14px 24px; border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); }
.btn-wa { background: #25d366; color: #052e16; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(37,211,102,.6); }

/* ============================================================ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 18px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 46px; width: auto; transition: height .3s ease; }
.scrolled .brand img { height: 40px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-name span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* language toggle */


.phone-cta { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.phone-cta .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.phone-cta .ic svg { width: 17px; height: 17px; }
.phone-cta small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; cursor: pointer; place-items: center; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }

/* ============================================================ hero */
.hero { padding: clamp(120px, 17vh, 180px) 0 clamp(60px, 8vw, 100px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.hero-badge b { background: var(--accent); color: var(--on-accent); padding: 4px 10px; border-radius: 999px; font-family: var(--font-head); font-size: 12px; }
.hero-tagline {
  display: block; margin-top: 22px; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px); letter-spacing: .01em; color: var(--accent);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 80px);
  margin: 10px 0 0;
}
.hero h1 .hl { color: var(--blue); }
.hero .lede { font-size: clamp(17px, 1.7vw, 21px); color: var(--ink-soft); margin-top: 24px; max-width: 32em; }
.promise-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; }
.promise { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.promise svg { width: 19px; height: 19px; color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-sign { display: flex; align-items: baseline; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.sign-name { font-family: var(--font-sign); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); color: var(--accent); line-height: 1; }
.sign-tag { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 38px; }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust .ht b { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.hero-trust .ht span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.hero-trust .divider { width: 1px; height: 38px; background: var(--line); }

/* hero visual */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -18px -18px 34px 30px; z-index: 0;
  background: var(--navy);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 8px;
}
[data-theme="calido"] .hero-visual::before, [data-theme="industrial"] .hero-visual::before { display: none; }
.hero-photo {
  position: relative; z-index: 1;
  overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; border: 3px solid #fff;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
[data-theme="calido"] .hero-photo, [data-theme="industrial"] .hero-photo {
  clip-path: none; border-radius: calc(var(--radius) + 8px); border-color: var(--line);
}
.hero-visual .float-card {
  position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.float-card .fc-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.float-card .fc-ic svg { width: 21px; height: 21px; }
.float-card b { font-family: var(--font-head); font-size: 15px; display: block; }
.float-card span { font-size: 12.5px; color: var(--ink-soft); }
.fc-1 { top: 22px; left: -26px; }
.fc-2 { bottom: 26px; right: -22px; }

/* image slot styling */
.ph { width: 100%; height: 100%; object-fit: cover; display: block; }
image-slot { width: 100%; height: 100%; --is-radius: 0; }
image-slot::part(frame) {
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 7%, transparent) 0 10px, transparent 10px 20px),
    var(--card-2);
}
image-slot::part(empty) {
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-family: var(--font-body); font-weight: 600; letter-spacing: .01em;
}

/* ============================================================ logos / stats strip */
.stats {
  background: var(--bg-deep); color: #fff; padding: clamp(56px, 6vw, 76px) 0 clamp(40px, 5vw, 60px);
  clip-path: polygon(0 38px, 100% 0, 100% 100%, 0 100%);
  margin-top: -10px;
}
[data-theme="calido"] .stats, [data-theme="industrial"] .stats { clip-path: none; margin-top: 0; padding-top: clamp(40px,5vw,60px); }
.stat b .u { color: var(--accent); }
[data-theme="industrial"] .stats { border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.03em; display: block; color: #fff; }
.stat b .u { color: var(--accent); }
.stat span { font-size: 14px; color: rgba(255,255,255,.66); font-weight: 600; }

/* ============================================================ services */
.services { padding: clamp(70px, 9vw, 120px) 0; background: var(--bg-alt); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.svc-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: var(--ic, var(--accent)); transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::after { transform: scaleY(1); }
.svc-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  background: color-mix(in srgb, var(--ic, var(--accent)) 13%, transparent); color: var(--ic, var(--accent)); margin-bottom: 20px;
  transition: background .25s ease, color .25s ease;
}
.svc-card:hover .svc-ic { background: var(--ic, var(--accent)); color: #fff; }
.svc-ic svg { width: 27px; height: 27px; }
.svc-card h3 { font-size: 20px; margin-bottom: 8px; }
.svc-card p { font-size: 14.5px; color: var(--ink-soft); }
.svc-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--line); }

/* ============================================================ avaria band */
.avaria { background: var(--accent); padding: clamp(30px, 4vw, 44px) 0; }
.avaria-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.avaria-copy { display: flex; align-items: center; gap: 20px; }
.avaria-ic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.16); color: #fff; }
.avaria-ic svg { width: 30px; height: 30px; }
.avaria-copy h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.avaria-copy p { color: rgba(255,255,255,.9); font-size: clamp(14px, 1.5vw, 17px); margin-top: 5px; max-width: 52ch; }
.avaria-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================ about */
.about { padding: clamp(70px, 9vw, 120px) 0; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about-photos { position: relative; }
.about-photo-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/6; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-photo-sub { position: absolute; bottom: -28px; right: -24px; width: 46%; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); border: 4px solid var(--bg); }
.about-since {
  position: absolute; top: -22px; left: -22px; background: var(--accent); color: var(--on-accent);
  width: 116px; height: 116px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  font-family: var(--font-head); box-shadow: var(--shadow); rotate: -8deg;
}
.about-since b { font-size: 30px; font-weight: 800; line-height: 1; }
.about-since span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; opacity: .9; }
.about h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 14px 0 18px; }
.about .lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-top: 32px; }
.gen3-chip {
  display: flex; align-items: center; gap: 15px; margin-top: 26px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.gen3-chip .g3-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; }
.gen3-chip .g3-ic svg { width: 22px; height: 22px; }
.gen3-chip .g3-txt b { font-family: var(--font-head); font-size: 16px; display: block; color: var(--ink); }
.gen3-chip .g3-txt span { font-size: 14px; color: var(--ink-soft); }
.about-feat { display: flex; gap: 13px; align-items: flex-start; }
.about-feat .af-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.about-feat .af-ic svg { width: 19px; height: 19px; }
.about-feat b { font-family: var(--font-head); font-size: 15.5px; display: block; }
.about-feat span { font-size: 13.5px; color: var(--ink-soft); }

/* ============================================================ credentials */
.creds { padding: clamp(64px, 9vw, 120px) 0; }
.creds .section-head { text-align: center; margin-inline: auto; }
.creds .section-head .eyebrow { justify-content: center; }
.knx-banner {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 26px);
  padding: clamp(22px, 3vw, 34px) clamp(24px, 3.2vw, 40px);
  background: var(--bg-deep); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 22px; position: relative; overflow: hidden;
}
.knx-banner::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  pointer-events: none;
}
.knx-banner .kb-ic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--accent); color: #fff; }
.knx-banner .kb-ic svg { width: 32px; height: 32px; }
.knx-banner .kb-txt { position: relative; }
.knx-banner h3 { color: #fff; font-size: clamp(20px, 2.5vw, 28px); }
.knx-banner p { color: rgba(255,255,255,.74); margin-top: 6px; font-size: clamp(14px, 1.4vw, 16px); max-width: 56ch; }
.knx-banner .kb-tag {
  margin-left: auto; flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; padding: 8px 15px; border-radius: 999px; position: relative;
}
.knx-banner .kb-tag svg { width: 15px; height: 15px; }
.logos-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.logo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; text-align: center; position: relative;
}
.logo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.logo-card .lc-slot { width: 100%; height: 96px; border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; }
.logo-card .lc-slot .lc-img { max-width: 88%; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.logo-card b { font-family: var(--font-head); font-size: 16px; }
.logo-card span.cap { font-size: 13px; color: var(--ink-soft); margin-top: -8px; }
.logo-card .lc-badge { position: absolute; top: 14px; right: 14px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }

/* ============================================================ gallery */
.gallery { padding: clamp(60px, 8vw, 110px) 0; background: var(--bg-alt); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gal-item { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; }
.gal-item.tall { grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }
.gal-item image-slot { --is-radius: 0; }

/* ============================================================ zone */
.zone { padding: clamp(70px, 9vw, 120px) 0; }
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: center; }
.zone-towns { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.zone-town {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.zone-town:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.zone-town .zt-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--on-accent); flex: none; }
.zone-town .zt-ic svg { width: 22px; height: 22px; }
.zone-town b { font-family: var(--font-head); font-size: 19px; }
.zone-town span { font-size: 13.5px; color: var(--ink-soft); }
.zone-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 1.1/1; }
.zone-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.1); }

/* ============================================================ reviews */
.reviews { padding: clamp(70px, 9vw, 120px) 0; background: var(--bg-deep); color: #fff; }
.reviews .eyebrow { color: #fff; }

.reviews .section-head h2 { color: #fff; }
.reviews .section-head p { color: rgba(255,255,255,.7); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 30px 28px; backdrop-filter: blur(6px);
}
.rev-stars { display: flex; gap: 3px; color: #ffc043; margin-bottom: 16px; }
.rev-stars svg { width: 18px; height: 18px; fill: currentColor; }
.rev-card p { font-size: 16px; color: rgba(255,255,255,.9); line-height: 1.65; }
.rev-author { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.rev-author .ra-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; flex: none; }
.rev-author b { font-family: var(--font-head); font-size: 15px; }
.rev-author span { font-size: 13px; color: rgba(255,255,255,.6); }
.rev-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; color: rgba(255,255,255,.7); font-size: 14.5px; }
.rev-foot b { color: #fff; }

/* reviews — real rating + google */
.rev-rating { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; justify-content: center; margin-bottom: clamp(34px, 4.5vw, 52px); }
.rev-score { display: flex; align-items: baseline; gap: 12px; }
.rev-score b { font-family: var(--font-head); font-weight: 800; font-size: clamp(52px, 7vw, 74px); color: #fff; line-height: 1; letter-spacing: -.03em; }
.rev-score .rs-meta { display: flex; flex-direction: column; gap: 6px; }
.rev-score .rs-stars { display: flex; gap: 3px; color: #ffc043; }
.rev-score .rs-stars svg { width: 19px; height: 19px; fill: currentColor; }
.rev-score .rs-count { font-size: 14px; color: rgba(255,255,255,.7); font-weight: 600; }
.rev-divider { width: 1px; height: 56px; background: rgba(255,255,255,.16); }
.rev-google { display: inline-flex; align-items: center; gap: 11px; padding: 12px 20px; border-radius: 999px; background: #fff; color: #1a1a1a; font-family: var(--font-head); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.rev-google:hover { transform: translateY(-2px); }
.rev-google .g-logo { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.rev-featured { max-width: 760px; margin-inline: auto; }
.rev-carousel { min-height: 220px; }
.rev-track.fade { animation: revFade .5s ease; }
@keyframes revFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rev-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.rev-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff;
  cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.rev-arrow:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.rev-arrow svg { width: 20px; height: 20px; }
.rev-dots { display: flex; gap: 9px; }
.rev-dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,.28); transition: background .2s ease, width .2s ease; }
.rev-dot.on { background: var(--accent); width: 26px; border-radius: 999px; }
.rev-card.featured { text-align: center; }
.rev-card.featured .rev-stars { justify-content: center; }
.rev-card.featured p { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.6; }
.rev-card.featured .rev-author { justify-content: center; }
.rev-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.rev-verified svg { width: 14px; height: 14px; }

/* ============================================================ contact */
.contact { padding: clamp(70px, 9vw, 120px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); }
.contact-info .lede { color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 19px); margin-top: 16px; }
.ci-list { display: flex; flex-direction: column; gap: 8px; margin-top: 34px; }
.ci-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius-sm); transition: background .2s ease; }
.ci-item:hover { background: var(--bg-alt); }
.ci-item .ci-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); flex: none; }
.ci-item .ci-ic svg { width: 22px; height: 22px; }
.ci-item small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.ci-item b { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.ci-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring);
}
.form-card .btn-primary { width: 100%; margin-top: 6px; }
.form-wa-btn { width: 100%; margin-top: 6px; }
.form-mail-btn { width: 100%; margin-top: 10px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 14px; }
.form-ok { display: none; text-align: center; padding: 20px; border-radius: var(--radius-sm); background: color-mix(in srgb, #25d366 16%, transparent); color: var(--ink); font-weight: 600; margin-top: 14px; }
.form-ok.show { display: block; }

/* ============================================================ footer */
.footer { background: var(--bg-deep); color: rgba(255,255,255,.7); padding: clamp(56px, 7vw, 84px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand-name b { color: #fff; }
.footer .brand-name span { color: rgba(255,255,255,.5); }
.footer-brand { gap: 16px; }
.footer-logo-chip {
  display: grid; place-items: center; flex: none;
  background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.55);
}
.footer-logo-chip img { height: 58px; width: auto; display: block; }
.footer-about { font-size: 14.5px; margin-top: 18px; max-width: 30ch; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 800; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-contact li { font-size: 14.5px; color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* ============================================================ floating wa */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 11px;
  background: #25d366; color: #052e16; padding: 13px 20px 13px 15px; border-radius: 999px;
  box-shadow: 0 16px 34px -10px rgba(37,211,102,.6); font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float .wa-txt { transition: max-width .3s ease; }
@keyframes wapulse { 0%,100% { box-shadow: 0 16px 34px -10px rgba(37,211,102,.6); } 50% { box-shadow: 0 16px 34px -10px rgba(37,211,102,.6), 0 0 0 12px rgba(37,211,102,0); } }
.wa-float { animation: wapulse 2.6s ease-in-out infinite; }

/* ============================================================ reveal anim */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* hard snap — used when a transition gets frozen (throttled tab) so content never stays hidden */
.reveal.seen { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .wa-float { animation: none; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* lang visibility */
[data-show-lang] { display: none; }
html[data-lang="ca"] [data-show-lang="ca"],
html[data-lang="es"] [data-show-lang="es"],
html[data-lang="en"] [data-show-lang="en"] { display: revert; }

/* ============================================================ responsive */
.mobile-nav { display: none; }
@media (max-width: 1000px) {
  .nav-links, .phone-cta { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: -1; }
  .about-grid, .zone-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photos { max-width: 460px; margin-inline: auto; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .knx-banner { flex-wrap: wrap; gap: 16px; }
  .knx-banner .kb-tag { margin-left: 0; order: -1; }

  .mobile-nav {
    display: block; position: fixed; inset: 0; z-index: 49;
    background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(8px);
    padding: 100px 8vw 40px; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .mobile-nav.open { transform: none; }
  .mobile-nav a { display: block; font-family: var(--font-head); font-weight: 600; font-size: 26px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-nav .mn-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .about-feats { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .gal-item.wide { grid-column: span 1; }
  .logos-row { grid-template-columns: 1fr; }
  .rev-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual .float-card { display: none; }
  .wa-float .wa-txt { display: none; }
  .about-since { width: 92px; height: 92px; }
  .about-since b { font-size: 24px; }
  .avaria-inner { flex-direction: column; align-items: flex-start; }
  .avaria-cta { width: 100%; }
  .avaria-cta .btn { flex: 1; }
}


/* perf: evitar reflow de imágenes */
img{max-width:100%;height:auto}

/* ============================================================
   GALERIA — filtres + lightbox
   ============================================================ */
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.gal-filter {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink-soft);
  border: 1.5px solid var(--line);
  transition: all .2s ease;
}
.gal-filter:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.gal-filter.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 22px -10px var(--accent); }

.gal-grid { transition: none; }
.gal-item { cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease, opacity .3s ease; }
.gal-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gal-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gal-item.hide { display: none; }
.gal-item .gal-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--accent);
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gal-item .gal-zoom svg { width: 20px; height: 20px; }
.gal-item:hover .gal-zoom, .gal-item:focus-visible .gal-zoom { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 14, 26, .92); backdrop-filter: blur(4px);
  padding: 5vh 6vw;
}
.lightbox.open { display: flex; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox .lb-img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
  object-fit: contain;
}
.lightbox .lb-cap {
  position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center;
  color: rgba(255,255,255,.85); font-size: 14.5px; font-weight: 600;
  padding: 0 12vw; text-wrap: balance;
}
.lightbox button {
  position: absolute; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.lightbox button:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.07); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 3vh; right: 4vw; }
.lightbox .lb-prev { left: 2vw; }
.lightbox .lb-next { right: 2vw; }
.lightbox .lb-prev svg, .lightbox .lb-next svg { width: 26px; height: 26px; }

/* ============================================================
   ZONA — botons de població + mapa
   ============================================================ */
.zone-towns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.zone-town {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; width: 100%;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; text-align: left; font-family: var(--font-body);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.zone-town:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--ink-soft); }
.zone-town.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); box-shadow: var(--shadow-sm); }
.zone-town .zt-ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  transition: background .2s ease, color .2s ease;
}
.zone-town.on .zt-ic { background: var(--accent); color: var(--on-accent); }
.zone-town .zt-ic svg { width: 20px; height: 20px; }
.zone-town b { font-family: var(--font-head); font-size: 16.5px; color: var(--ink); display: block; line-height: 1.25; }
.zone-town span[data-i18n] { font-size: 12.5px; color: var(--ink-soft); }
.zone-note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.zone-map { position: relative; }
.zone-ph {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 6%, transparent) 0 12px, var(--card-2) 12px 24px);
  color: color-mix(in srgb, var(--accent) 60%, transparent);
}
.zone-ph svg { width: 44px; height: 44px; }

/* ============================================================
   FAQ — acordió
   ============================================================ */
.faq { padding: clamp(70px, 9vw, 120px) 0; background: var(--bg-alt); }
.faq-list { max-width: 840px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
  padding: 20px 22px; cursor: pointer; background: transparent; border: none; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(15.5px, 1.6vw, 18px); color: var(--ink);
  transition: color .2s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-ic {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  transition: transform .3s cubic-bezier(.4,0,.2,1), background .2s ease, color .2s ease;
}
.faq-ic svg { width: 18px; height: 18px; }
.faq-item.open .faq-ic { transform: rotate(90deg); background: var(--accent); color: var(--on-accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq-a p { padding: 0 22px 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.faq-cta { display: flex; justify-content: center; margin-top: 34px; }

@media (max-width: 700px) {
  .zone-towns { grid-template-columns: 1fr; }
  .lightbox { padding: 4vh 4vw; }
  .lightbox .lb-prev { left: 1vw; }
  .lightbox .lb-next { right: 1vw; }
  .lightbox button { width: 42px; height: 42px; }
  .lightbox .lb-cap { padding: 0 4vw; font-size: 13px; }
  .gal-filters { gap: 8px; }
  .gal-filter { font-size: 13px; padding: 9px 14px; }
}

/* ============================================================
   COM TREBALLEM — 4 passos
   ============================================================ */
.steps { padding: clamp(64px, 8vw, 110px) 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; }
.step {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -13px; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--line), var(--accent)); z-index: 1;
}
.step-n {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 34px;
  color: color-mix(in srgb, var(--accent) 16%, transparent); line-height: 1;
}
.step-ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  margin-bottom: 14px; transition: background .25s ease, color .25s ease;
}
.step:hover .step-ic { background: var(--accent); color: var(--on-accent); }
.step-ic svg { width: 24px; height: 24px; }
.step b { font-family: var(--font-head); font-size: 17px; color: var(--ink); line-height: 1.3; }
.step > span:last-child { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   BARRA D'ACCIÓ FIXA (mòbil)
   ============================================================ */
.action-bar { display: none; }
@media (max-width: 800px) {
  .wa-float { display: none; }
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(20,40,79,.4);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .ab-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 8px 4px; border-radius: 12px;
    font-family: var(--font-head); font-weight: 600; font-size: 12px; color: var(--ink);
    transition: background .2s ease, transform .15s ease;
  }
  .ab-item:active { transform: scale(.95); }
  .ab-item svg { width: 22px; height: 22px; }
  .ab-call { color: var(--accent); }
  .ab-wa { color: #128c3e; }
  .ab-quote { color: var(--accent-2); }
  .ab-item::before {
    content: ""; position: absolute; /* separadors */
  }
  .action-bar .ab-item + .ab-item { border-left: 1px solid var(--line); border-radius: 0; }
  /* deixa aire perquè la barra no tapi el peu */
  .footer { padding-bottom: calc(28px + 78px); }
}

/* honeypot antispam — invisible per a humans */
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* estat d'error del formulari */
.form-ok.error { background: color-mix(in srgb, #e2231a 14%, transparent); color: var(--ink); }
.form-send-btn:disabled { opacity: .6; cursor: wait; }
.form-wa-btn { margin-top: 10px; }

/* enllaços legals del peu */
.foot-legal a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s ease; }
.foot-legal a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1000px) { .steps-grid { grid-template-columns: 1fr 1fr; } .step:nth-child(2)::after { display: none; } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } .step::after { display: none !important; } }

/* consentiment RGPD del formulari */
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.form-consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.form-consent a { color: var(--accent); text-decoration: underline; }

/* ============================================================
   PÀGINES DE POBLACIÓ
   ============================================================ */
.town-hero { padding: clamp(120px, 16vh, 170px) 0 clamp(50px, 6vw, 80px); background: var(--bg-alt); position: relative; }
.town-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.town-hero .wrap { max-width: 900px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 26px; font-weight: 600; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.town-hero h1 { font-size: clamp(32px, 5.2vw, 60px); margin: 14px 0 0; }
.town-hero .lede { font-size: clamp(16.5px, 1.7vw, 20px); color: var(--ink-soft); margin-top: 22px; max-width: 60ch; }
.town-hero .hero-cta { margin-top: 30px; }
.town-hero .promise-row { margin-top: 28px; }
.town .services { background: var(--bg); }
.town .svc-card h3 { font-size: 18px; }
.town-links {
  text-align: center; margin-top: 34px; font-size: 15px; color: var(--ink-soft); font-weight: 600;
  text-wrap: balance;
}
.town-links a { color: var(--accent); font-weight: 700; }
.town-links a:hover { text-decoration: underline; }
.town .zone-map iframe { width: 100%; height: 100%; border: 0; }


/* botó tornar a l'inici (pàgines de població i legals) */
.back-home {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
  transition: all .2s ease;
}
.back-home:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-3px); }
.back-home svg { width: 17px; height: 17px; }
.town-back { margin-bottom: 26px; }

/* ============================================================
   PÀGINES LEGALS (avís legal / privacitat)
   ============================================================ */
.legal { padding: 150px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal .back-home { margin-bottom: 30px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 10px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; font-weight: 600; margin-bottom: 40px; }
.legal h2 { font-size: clamp(19px, 2.3vw, 25px); margin: 40px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .box {
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 24px; margin: 20px 0;
}
.legal .box p { margin-bottom: 8px; color: var(--ink); }
.legal .box p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .legal { padding: 120px 0 60px; }
  .legal + .footer, .footer { padding-bottom: calc(28px + 78px); }
}

/* camps nous del formulari */
.field label .opt { font-weight: 600; color: var(--ink-soft); font-size: 12px; }
.type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-opt { cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.type-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .15s ease;
  height: 100%;
}
.type-card svg { width: 22px; height: 22px; color: var(--ink-soft); margin-bottom: 6px; transition: color .2s ease; }
.type-card b { font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.type-card small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.type-opt:hover .type-card { border-color: var(--ink-soft); transform: translateY(-2px); }
.type-opt input:checked + .type-card {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--card));
  box-shadow: 0 0 0 3px var(--ring);
}
.type-opt input:checked + .type-card svg { color: var(--accent); }
.type-opt input:focus-visible + .type-card { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .type-row { grid-template-columns: 1fr; } }

/* ============================================================
   SELECTOR D'IDIOMA — desplegable amb banderes
   ============================================================ */
.lang { position: relative; }
.lang .flag {
  display: block; width: 22px; height: 15px; border-radius: 3px; overflow: hidden;
  flex: none; box-shadow: 0 0 0 1px rgba(20,40,79,.14) inset;
}
.lang .flag svg { display: block; width: 100%; height: 100%; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-caret { display: grid; place-items: center; }
.lang-btn svg.lucide { width: 14px; height: 14px; color: var(--ink-soft); transition: transform .25s ease; }
.lang.open .lang-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.lang.open .lang-btn svg.lucide { transform: rotate(90deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 90;
  min-width: 178px; padding: 6px; margin: 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 22px 44px -18px rgba(20,40,79,.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { margin: 0; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 9px; border: none; cursor: pointer;
  background: transparent; color: var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 14px; text-align: left;
  transition: background .15s ease, color .15s ease;
}
.lang-menu button:hover { background: var(--bg-alt); }
.lang-menu button.on { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
@media (max-width: 1000px) {
  .lang-btn { padding: 5px 8px 5px 6px; }
  .lang-btn .lang-code { display: none; }
  .lang-menu { min-width: 160px; }
}

/* demanar opinió a Google */
.rev-ask {
  margin-top: 34px; padding-top: 28px; text-align: center;
  border-top: 1px solid rgba(255,255,255,.12);
}
.rev-ask p { font-size: 15px; color: rgba(255,255,255,.72); margin-bottom: 16px; }
.rev-ask-btn svg { color: #ffc043; fill: currentColor; }
