/* INETIK — fulla d'estils compartida. Extreta d'index.html el 28/07/2026. */
/* ═══════════════════════════════════════════════
   INETIK v3 — clar, minimalista, product-first
   Sense llibreries. Tipografia del sistema.
   ═══════════════════════════════════════════════ */
:root {
  --ink:      #0b0f14;
  --ink-2:    #3c4650;
  --ink-3:    #6e7781;
  --hair:     #e8eaed;
  --paper:    #ffffff;
  --mist:     #f5f6f7;
  --mist-2:   #eef0f2;
  --brand:    #0a8fa3;
  --brand-br: #10b3cb;
  --night:    #0b0f14;
  --night-2:  #141a21;
  --night-3:  #1d242d;
  --ok:       #2e9e5b;
  --warm:     #d97706;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --w: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--paper); color: var(--ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button, input, textarea { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(10,143,163,.16); }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: 28px; }

/* ── Reveal ── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* ═══ NAV ═══ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 60px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.on { border-color: var(--hair); }
.nav-in { max-width: var(--w); margin-inline: auto; padding-inline: 28px; height: 100%; display: flex; align-items: center; gap: 40px; }
.wordmark { font-size: 17px; font-weight: 700; letter-spacing: .16em; }
.wordmark b { color: var(--brand); font-weight: 700; }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: 8px; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: color .2s; padding-block: 6px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  margin-left: auto; font-size: 13.5px; font-weight: 600; color: #fff; background: var(--ink);
  padding: 8px 18px; border-radius: 99px; transition: background .2s, transform .2s var(--ease);
}
.nav-cta:hover { background: #232b34; transform: scale(1.03); }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span + span { margin-top: 6px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.sheet {
  display: none; position: fixed; inset: 60px 0 auto; z-index: 49;
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hair); padding: 20px 28px 28px;
}
.sheet.open { display: block; }
.sheet ul { list-style: none; display: grid; gap: 4px; }
.sheet a { display: block; padding: 12px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--mist-2); }

/* ═══ HERO ═══ */
.hero { padding: 148px 0 0; text-align: center; position: relative; overflow: hidden; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(42px, 7.2vw, 84px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
  max-width: 15ch; margin-inline: auto; text-wrap: balance;
}
.h2 { text-wrap: balance; }
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--ink-3); line-height: 1.55;
  max-width: 52ch; margin: 26px auto 0; letter-spacing: -.01em;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 15px; font-weight: 600; padding: 13px 26px; border-radius: 99px;
  border: 0; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #232b34; transform: scale(1.03); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #d5d9dd; }
.btn-ghost:hover { border-color: var(--ink); transform: scale(1.03); }
.btn .arr { transition: transform .2s var(--ease); font-weight: 400; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero product shot — finestra d'app animada */
.stage { margin: 72px auto -2px; max-width: 980px; padding-inline: 28px; }
.app {
  background: var(--night); border-radius: 18px 18px 0 0; overflow: hidden;
  box-shadow: 0 -1px 0 rgba(255,255,255,.06) inset, 0 30px 80px -24px rgba(11,15,20,.45);
  text-align: left; color: #dfe6ec;
}
.app-bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: var(--night-2); border-bottom: 1px solid rgba(255,255,255,.05); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c343e; }
.app-title { font-size: 12px; color: #8b98a5; font-weight: 500; letter-spacing: .02em; }
.app-live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #59d98c; }
.app-live i { width: 6px; height: 6px; border-radius: 50%; background: #59d98c; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.app-body { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; }
.kpi { background: var(--night-2); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; padding: 14px 16px; }
.kpi-l { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #74828f; margin-bottom: 8px; }
.kpi-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.kpi-v small { font-size: 13px; font-weight: 500; color: #8b98a5; }
.kpi-s { font-size: 11px; color: #74828f; margin-top: 4px; }
.kpi-s.up { color: #59d98c; }
.app-rooms { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.room { background: var(--night-2); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; transition: border-color .4s; }
.room.on { border-color: rgba(16,179,203,.4); }
.room-dot { width: 8px; height: 8px; border-radius: 50%; background: #333d47; transition: background .4s, box-shadow .4s; flex-shrink: 0; }
.room.on .room-dot { background: var(--brand-br); box-shadow: 0 0 12px rgba(16,179,203,.8); }
.room-n { font-size: 12.5px; font-weight: 600; color: #b9c4cd; }
.room-s { font-size: 10.5px; color: #74828f; margin-top: 1px; }

/* ═══ TRUST STRIP ═══ */
.strip { border-block: 1px solid var(--hair); background: var(--paper); }
.strip-in {
  max-width: var(--w); margin-inline: auto; padding: 22px 28px;
  display: flex; align-items: center; justify-content: center; gap: 12px 44px; flex-wrap: wrap;
}
.strip span { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9aa4ad; }

/* ═══ SECTIONS ═══ */
.sec { padding: 120px 0; }
.sec-head { max-width: 720px; margin-bottom: 64px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kick { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }
.sub { font-size: 17.5px; color: var(--ink-3); margin-top: 18px; line-height: 1.6; letter-spacing: -.005em; }

/* Cards de solució — alternades */
.sol { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sol + .sol { margin-top: 110px; }
.sol.flip .sol-media { order: 2; }
.sol h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.sol-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.sol p { font-size: 16.5px; color: var(--ink-2); margin-top: 16px; line-height: 1.65; }
.sol ul { list-style: none; margin-top: 22px; display: grid; gap: 11px; }
.sol li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.tick { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.sol-media { position: relative; }

/* Marc de demo (les "peces de vídeo") */
.demo {
  border-radius: 20px; overflow: hidden; background: var(--mist);
  border: 1px solid var(--hair); box-shadow: 0 24px 60px -30px rgba(11,15,20,.25);
}
.demo.dark { background: var(--night); border-color: rgba(255,255,255,.06); }

/* Demo 1 — Escenes / llums (KNX) */
.scene { padding: 26px; }
.scene-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.scene-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.scene-chip { font-size: 11.5px; font-weight: 600; color: var(--brand); background: rgba(10,143,163,.08); padding: 4px 12px; border-radius: 99px; }
.plan { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 16 / 10.4; }
.zone {
  background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 13px 15px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  transition: background .6s;
}
.zone::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(255,196,87,.35), transparent 68%);
  opacity: 0; transition: opacity .6s;
}
.zone.lit::after { opacity: 1; }
.zone-n { font-size: 12px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; }
.zone-s { font-size: 10.5px; color: var(--ink-3); position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.zone-bulb { position: absolute; top: 12px; right: 13px; width: 7px; height: 7px; border-radius: 50%; background: #d9dde1; transition: background .5s, box-shadow .5s; }
.zone.lit .zone-bulb { background: #f6b73c; box-shadow: 0 0 10px rgba(246,183,60,.9); }
.zone.big { grid-row: span 2; }

/* Demo 2 — Energia (EMS) */
.energy { padding: 26px; }
.eflow { width: 100%; height: auto; }
.eflow .wire { fill: none; stroke: #d7dce0; stroke-width: 1.6; }
.eflow .flowdot { fill: var(--brand); }
.eflow .nlabel { font: 600 10px var(--sans); fill: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.eflow .nval { font: 700 15px var(--sans); fill: var(--ink); letter-spacing: -.02em; }
.eflow .nbox { fill: #fff; stroke: var(--hair); }
.eflow .icon { stroke: var(--ink-2); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Demo 3 — Protect (mur de càmeres) */
.cams { padding: 18px; }
.cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam {
  aspect-ratio: 16/9; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1a222b 0%, #10161d 70%);
}
.cam::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.045) 45%, transparent 70%);
  animation: sweep 7s linear infinite;
}
.cam:nth-child(2)::before { animation-delay: 1.8s; }
.cam:nth-child(3)::before { animation-delay: 3.4s; }
.cam:nth-child(4)::before { animation-delay: 5.1s; }
@keyframes sweep { from { transform: translateX(-60%) } to { transform: translateX(60%) } }
.cam-tag { position: absolute; left: 10px; top: 9px; font: 600 10px var(--mono); color: #aeb9c2; letter-spacing: .04em; }
.cam-rec { position: absolute; right: 10px; top: 9px; display: flex; align-items: center; gap: 5px; font: 700 9px var(--sans); color: #ff6b62; letter-spacing: .1em; }
.cam-rec i { width: 6px; height: 6px; border-radius: 50%; background: #ff6b62; animation: pulse 1.6s infinite; }
.cam-time { position: absolute; right: 10px; bottom: 8px; font: 500 10px var(--mono); color: #7d8994; font-variant-numeric: tabular-nums; }
.detect {
  position: absolute; width: 26%; height: 46%; left: 12%; bottom: 12%;
  border: 1.5px solid #10b3cb; border-radius: 4px; opacity: 0;
  animation: walk 9s var(--ease) infinite;
}
.detect b { position: absolute; top: -18px; left: -1.5px; font: 700 8.5px var(--sans); color: #0b0f14; background: #10b3cb; padding: 2px 7px; border-radius: 3px; letter-spacing: .06em; }
@keyframes walk {
  0%, 34% { opacity: 0; transform: translateX(0); }
  38% { opacity: 1; }
  62% { opacity: 1; transform: translateX(150%); }
  66%, 100% { opacity: 0; transform: translateX(170%); }
}
.cam-bar { display: flex; align-items: center; gap: 10px; padding: 13px 6px 2px; }
.cam-bar-line { flex: 1; height: 3px; border-radius: 2px; background: #232c35; position: relative; overflow: hidden; }
.cam-bar-line i { position: absolute; inset: 0 auto 0 0; width: 34%; background: var(--brand-br); border-radius: 2px; animation: scrub 9s linear infinite; }
@keyframes scrub { from { transform: translateX(-20%) } to { transform: translateX(220%) } }
.cam-bar span { font: 500 10px var(--mono); color: #7d8994; }

/* Demo 4 — Accés (targeta → porta) */
.acc { padding: 26px; display: grid; gap: 14px; }
.acc-viz { display: flex; align-items: center; justify-content: center; gap: 34px; padding: 18px 0 10px; }
.reader { width: 74px; height: 110px; border-radius: 14px; background: linear-gradient(170deg, #232b34, #161c23); position: relative; box-shadow: 0 10px 30px -12px rgba(11,15,20,.5); }
.reader-ring { position: absolute; left: 50%; top: 38px; width: 34px; height: 34px; transform: translateX(-50%); border-radius: 50%; border: 2px solid #39434d; animation: ringOK 6s infinite; }
.reader-led { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 22px; height: 4px; border-radius: 3px; background: #333d47; animation: ledOK 6s infinite; }
@keyframes ringOK { 0%, 28% { border-color: #39434d; box-shadow: none; } 34%, 60% { border-color: #2ecf7a; box-shadow: 0 0 18px rgba(46,207,122,.55); } 70%, 100% { border-color: #39434d; box-shadow: none; } }
@keyframes ledOK { 0%, 28% { background: #333d47; } 34%, 60% { background: #2ecf7a; } 70%, 100% { background: #333d47; } }
.card {
  width: 84px; height: 54px; border-radius: 8px; background: linear-gradient(135deg, #ffffff, #e9edf0);
  border: 1px solid var(--hair); box-shadow: 0 8px 24px -10px rgba(11,15,20,.3);
  position: relative; animation: tap 6s var(--ease) infinite;
}
.card::after { content: ''; position: absolute; left: 10px; top: 10px; width: 18px; height: 13px; border-radius: 3px; background: linear-gradient(135deg, #cfd6db, #b4bec6); }
@keyframes tap {
  0%, 16% { transform: translate(46px, 0) rotate(6deg); opacity: 0; }
  26%, 30% { transform: translate(6px, 0) rotate(0deg); opacity: 1; }
  56% { transform: translate(6px, 0); opacity: 1; }
  70%, 100% { transform: translate(46px, 0) rotate(6deg); opacity: 0; }
}
.doorf { width: 92px; height: 120px; border-radius: 10px; border: 1.5px solid #d5d9dd; position: relative; background: #fff; overflow: hidden; }
.leaf { position: absolute; inset: 6px auto 6px 6px; width: 38px; border-radius: 5px; background: linear-gradient(170deg, #29323c, #1a212a); transform-origin: left; animation: openLeaf 6s var(--ease) infinite; }
@keyframes openLeaf { 0%, 32% { transform: perspective(300px) rotateY(0); } 44%, 62% { transform: perspective(300px) rotateY(-58deg); } 76%, 100% { transform: perspective(300px) rotateY(0); } }
.acc-log { border-top: 1px solid var(--hair); padding-top: 13px; display: grid; gap: 7px; }
.logline { display: flex; gap: 10px; align-items: baseline; font: 500 11.5px var(--mono); color: var(--ink-3); }
.logline b { color: var(--ok); font-weight: 700; }
.logline.new { animation: lognew 6s infinite; }
@keyframes lognew { 0%, 33% { opacity: 0; transform: translateY(4px); } 40%, 100% { opacity: 1; transform: none; } }

/* ═══ BANDA FOSCA — plataforma ═══ */
.band { background: var(--night); color: #eef2f5; padding: 130px 0; }
.band .kick { color: var(--brand-br); }
.band .h2 { color: #fff; }
.band .sub { color: #97a3ae; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 64px; }
.bcard { background: var(--night-2); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 28px; transition: border-color .3s, transform .3s var(--ease); }
.bcard:hover { border-color: rgba(16,179,203,.35); transform: translateY(-3px); }
.bcard .ic { width: 40px; height: 40px; margin-bottom: 18px; }
.bcard h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.bcard p { font-size: 14px; color: #97a3ae; margin-top: 8px; line-height: 1.6; }

/* ═══ VÍDEOS ═══ */
.vids { background: var(--mist); }
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vid {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10;
  border: 1px solid var(--hair); cursor: pointer; background: var(--night);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.vid:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(11,15,20,.4); }
.vid-bg { position: absolute; inset: 0; }
.vid[data-v="1"] .vid-bg { background: linear-gradient(150deg, #10222b 0%, #0b3d4a 100%); }
.vid[data-v="2"] .vid-bg { background: linear-gradient(150deg, #151a2b 0%, #22304f 100%); }
.vid[data-v="3"] .vid-bg { background: linear-gradient(150deg, #1c1712 0%, #40331d 100%); }
.vid-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: grid; place-items: center; transition: transform .25s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.vid:hover .vid-play { transform: translate(-50%, -50%) scale(1.1); }
.vid-play::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--ink); margin-left: 3px; }
.vid-meta { position: absolute; left: 18px; bottom: 15px; right: 18px; color: #fff; }
.vid-meta b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.vid-meta span { font-size: 12px; color: rgba(255,255,255,.65); }
.vid-dur { position: absolute; right: 14px; top: 12px; font: 600 11px var(--mono); color: rgba(255,255,255,.85); background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 5px; }
.vids-note { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 26px; }

/* ═══ QUI SOM ═══ */
.quisom { background: var(--mist); }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.who h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.who p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; letter-spacing: -.005em; }
.who p b { color: var(--ink); font-weight: 650; }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ═══ PUNTS FORTS ═══ */
.forts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fort { border: 1px solid var(--hair); border-radius: 16px; padding: 30px 26px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.fort:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(11,15,20,.3); }
.fort .ic { width: 38px; height: 38px; margin-bottom: 20px; }
.fort h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; }
.fort p { font-size: 14px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }

/* ═══ PROCÉS ═══ */
.steps { counter-reset: pas; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding: 26px 24px 28px; border-radius: 16px; background: var(--mist); }
.step::before {
  counter-increment: pas; content: "0" counter(pas);
  font: 700 13px var(--mono); color: var(--brand); letter-spacing: .06em;
  display: block; margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.step p { font-size: 13.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.6; }

/* ═══ CTA FINAL ═══ */
.cta { text-align: center; padding: 140px 0; }
.cta .h2 { max-width: 18ch; margin-inline: auto; }
.cta .sub { max-width: 46ch; margin-inline: auto; }
.cta .hero-actions { margin-top: 34px; }
.cta-areas { margin-top: 54px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.area { text-align: center; }
.area b { display: block; font-size: 14.5px; font-weight: 700; }
.area span { font-size: 13px; color: var(--ink-3); }

/* ═══ FOOTER ═══ */
.foot { border-top: 1px solid var(--hair); padding: 44px 0 54px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot small { font-size: 12.5px; color: var(--ink-3); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 12.5px; color: var(--ink-3); transition: color .2s; }
.foot-links a:hover { color: var(--ink); }

/* ═══ CONFIGURADOR (wizard) ═══ */
.wiz {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  display: none; overflow-y: auto; overscroll-behavior: contain;
}
.wiz.open { display: block; }
.wiz-top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.86); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hair);
}
.wiz-top-in { max-width: 1080px; margin-inline: auto; padding: 13px 28px; display: flex; align-items: center; gap: 16px; }
.wiz-step-n { font: 600 12.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.wiz-close {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hair); background: #fff; cursor: pointer;
  color: var(--ink-2); display: grid; place-items: center; font-size: 14px;
  transition: border-color .2s, transform .2s var(--ease);
}
.wiz-close:hover { border-color: var(--ink); transform: scale(1.06); }
.wiz-prog { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--brand); transition: width .45s var(--ease); }
.wiz-body {
  max-width: 1080px; margin-inline: auto; padding: 48px 28px 110px;
  display: grid; grid-template-columns: 1fr 296px; gap: 56px; align-items: start;
}
.wstep { display: none; }
.wstep.on { display: block; animation: wIn .45s var(--ease); }
@keyframes wIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wstep .kick { margin-bottom: 12px; }
.wstep h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; letter-spacing: -.028em; line-height: 1.08; text-wrap: balance; }
.wstep .whint { font-size: 15.5px; color: var(--ink-3); margin-top: 12px; max-width: 54ch; }
.wiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.wiz-opts.two { grid-template-columns: repeat(2, 1fr); }
.wopt {
  position: relative; text-align: left; background: #fff;
  border: 1px solid var(--hair); border-radius: 16px; padding: 19px 18px;
  cursor: pointer; font-family: inherit;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.wopt:hover { border-color: #c3cad0; transform: translateY(-2px); }
.wopt.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 14px 30px -20px rgba(11,15,20,.35); }
.wopt .wic { width: 32px; height: 32px; margin-bottom: 13px; color: var(--ink-3); transition: color .2s; }
.wopt.on .wic { color: var(--brand); }
.wopt b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.wopt span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.wopt .wchk {
  position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #d5d9dd; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.wopt .wchk::after { content: ''; width: 9px; height: 5px; border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: rotate(-45deg) translateY(-1px); opacity: 0; }
.wopt.on .wchk { background: var(--ink); border-color: var(--ink); }
.wopt.on .wchk::after { opacity: 1; }
.wopt.trim { padding: 22px 20px; }
.wopt.trim .ttag { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: rgba(10,143,163,.08); padding: 3px 10px; border-radius: 99px; margin-bottom: 12px; }
.wopt.trim ul { list-style: none; margin-top: 14px; display: grid; gap: 7px; }
.wopt.trim li { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.wopt.trim li::before { content: '✓'; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.wopt.trim li.no { color: #9aa4ad; }
.wopt.trim li.no::before { content: '—'; color: #c6ccd2; }
.wopt.trim .tadj { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mist-2); font: 600 11.5px var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wiz-nav { margin-top: 38px; display: flex; align-items: center; gap: 12px; }
.wiz-nav .spacer { flex: 1; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.wlab { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.winput {
  width: 100%; padding: 12px 14px; border: 1px solid #d5d9dd; border-radius: 11px;
  font: 500 16px var(--sans); color: var(--ink); background: #fff; outline: none;
  transition: border-color .2s;
}
.winput:focus { border-color: var(--ink); }
.wgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wfield { margin-top: 18px; }
.werr { display: block; font-size: 13.5px; color: #c0392b; margin-top: 14px; }
.werr:empty { display: none; }
.wiz-side { position: sticky; top: 86px; border: 1px solid var(--hair); border-radius: 18px; background: var(--mist); padding: 24px; }
.wiz-side h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wsum { margin-top: 16px; display: grid; gap: 13px; }
.wsum-row b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.wsum-row span { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.wsum-row .dim { color: var(--ink-3); font-weight: 500; }
.wiz-recap { border: 1px solid var(--hair); border-radius: 14px; background: var(--mist); padding: 18px 20px; margin-top: 26px; display: grid; gap: 10px; }
.wiz-recap .wsum-row span { font-weight: 500; }
.wprice { display: block; margin-top: 9px; font: 600 11.5px var(--sans); font-style: normal; color: var(--brand); font-variant-numeric: tabular-nums; }
.wprice.inc { color: var(--ok); }
.wiz-opts.sys { grid-template-columns: repeat(2, 1fr); }
.wcard {
  border: 1px solid var(--hair); border-radius: 16px; background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.wcard:hover { border-color: #c3cad0; transform: translateY(-2px); }
.wcard:has(.wopt.on) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 14px 30px -20px rgba(11,15,20,.35); }
.wcard .wopt, .wcard .wopt:hover, .wcard .wopt.on {
  border: 0; border-radius: 0; padding: 0; width: 100%;
  box-shadow: none; transform: none;
}
.wviz { display: grid; place-items: center; height: 96px; background: var(--mist); border-bottom: 1px solid var(--mist-2); width: 100%; }
.wviz svg { width: 96px; height: 56px; }
.wviz .recdot { animation: pulse 1.6s infinite; }
.wbody { display: block; padding: 14px 16px 16px; }
.wcard .wchk { top: 10px; right: 10px; z-index: 2; background: #fff; }
.wcard .wopt.on .wchk { background: var(--ink); }
.wdet-inline { border-top: 1px solid var(--mist-2); background: #fafbfb; margin-top: auto; }
.wdet-inline summary { cursor: pointer; list-style: none; display: flex; align-items: center; padding: 10px 16px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.wdet-inline summary::-webkit-details-marker { display: none; }
.wdet-inline summary::after { content: '+'; margin-left: auto; color: var(--ink-3); font-size: 16px; font-weight: 500; }
.wdet-inline[open] summary::after { content: '–'; }
.wdet-inline p { padding: 0 16px 13px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.west { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair); }
.west b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.west-v { font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.west small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin-top: 9px; }
.wdets { margin-top: 30px; border-top: 1px solid var(--hair); }
.wdets-cap { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 16px 0 4px; }
.wdet { border-bottom: 1px solid var(--mist-2); }
.wdet summary { cursor: pointer; padding: 13px 4px; font-size: 14px; font-weight: 600; list-style: none; display: flex; align-items: center; }
.wdet summary::-webkit-details-marker { display: none; }
.wdet summary::after { content: '+'; margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 17px; }
.wdet[open] summary::after { content: '–'; }
.wdet p { font-size: 13px; color: var(--ink-2); padding: 0 4px 15px; line-height: 1.65; max-width: 62ch; }
.wok { text-align: center; padding: 40px 0; }
.wok .wok-ic { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: rgba(10,143,163,.1); display: grid; place-items: center; }
.wok h2 { font-size: 30px; }
.wok p { font-size: 15.5px; color: var(--ink-3); margin-top: 12px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 980px) {
  .wiz-body { grid-template-columns: 1fr; gap: 30px; padding: 36px 22px 90px; }
  .wiz-side { position: static; }
  .wiz-opts { grid-template-columns: 1fr 1fr; }
  .sol, .sol.flip { grid-template-columns: 1fr; gap: 34px; }
  .sol.flip .sol-media { order: 0; }
  .band-grid { grid-template-columns: 1fr; }
  .vid-grid { grid-template-columns: 1fr; }
  .forts-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .app-body { grid-template-columns: 1fr 1fr; }
  .app-rooms { grid-template-columns: 1fr 1fr; }
  .sec { padding: 90px 0; }
}
@media (max-width: 640px) {
  .wiz-opts, .wiz-opts.two, .wiz-opts.sys { grid-template-columns: 1fr; }
  .wgrid2 { grid-template-columns: 1fr; }
  .wiz-nav { gap: 8px; }
  .wiz-nav .btn { padding: 12px 18px; font-size: 14px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .forts-grid, .steps { grid-template-columns: 1fr; }
  .acc-viz { gap: 18px; transform: scale(.86); }
  .strip-in { gap: 10px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   VÍDEO INCRUSTAT AMB CÀRREGA DIFERIDA
   Cap petició a YouTube fins que l'usuari hi clica.
   Sense galetes de tercers => sense banner de cookies.
   ═══════════════════════════════════════════════ */
.yt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.yt {
  position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--night-2) 0%, var(--night-3) 55%, #24303b 100%);
  border: 1px solid rgba(255,255,255,.07); cursor: pointer;
  transition: border-color .3s, transform .3s var(--ease);
}
.yt:hover { border-color: rgba(16,179,203,.4); transform: translateY(-3px); }
.yt:focus-visible { outline: 2px solid var(--brand-br); outline-offset: 3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 99px; background: rgba(255,255,255,.94);
  display: grid; place-items: center; transition: transform .25s var(--ease), background .2s;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.yt:hover .yt-play { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.yt-play::after {
  content: ''; width: 0; height: 0; border-style: solid;
  border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ink);
  margin-left: 4px;
}
.yt-meta { position: absolute; left: 20px; right: 20px; bottom: 17px; color: #fff; pointer-events: none; }
.yt-meta b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.yt-meta span { font-size: 12.5px; color: rgba(255,255,255,.62); }
.yt-src {
  position: absolute; top: 14px; right: 16px; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.5); pointer-events: none;
}
.yt-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.band .yt-note { color: rgba(238,242,245,.5); }
@media (max-width: 860px) { .yt-grid { grid-template-columns: 1fr; } }

/* Blocs pendents de material propi — visibles només mentre es munta la pàgina */
.todo {
  border: 1px dashed var(--brand); border-radius: 14px; padding: 22px 24px;
  background: rgba(10,143,163,.05); color: var(--ink-2); font-size: 14px; line-height: 1.6;
}
.todo b { display: block; color: var(--brand); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }

/* ═══════════════════════════════════════════════
   PAQUETS PER NIVELL (Essencial / Confort / Integral)
   Mateixos nivells que el configurador de la portada.
   ═══════════════════════════════════════════════ */
.paq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.paq {
  border: 1px solid var(--hair); border-radius: 18px; padding: 30px 28px 32px; background: #fff;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.paq:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(11,15,20,.09); }
.paq.destacat { border-color: var(--brand); box-shadow: 0 10px 34px rgba(10,143,163,.13); }
.paq-tag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand); background: rgba(10,143,163,.09); border-radius: 99px; padding: 5px 11px; margin-bottom: 15px;
}
.paq h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 5px; }
.paq .paq-clam { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.paq ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.paq li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.paq li::before {
  content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; border-radius: 99px;
  background: rgba(10,143,163,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a8fa3' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.paq-preu { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--hair); }
.paq-preu b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.paq-preu span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.paq-nota { margin-top: 22px; font-size: 13px; color: var(--ink-3); max-width: 74ch; line-height: 1.6; }
@media (max-width: 980px) { .paq-grid { grid-template-columns: 1fr; } }

/* Nombre de columnes de .forts-grid com a classe, no com a estil en línia:
   un style="" guanya a les media queries i trencava el mòbil.
   Els overrides van aquí sota i amb la mateixa especificitat per poder manar. */
.forts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.forts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .forts-grid.cols-2, .forts-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .forts-grid.cols-2, .forts-grid.cols-3 { grid-template-columns: 1fr; } }

/* El peu ha de plegar: amb sis seccions més el correu no hi cap en un mòbil
   i feia desplaçar tota la pàgina de costat. */
.foot-links { flex-wrap: wrap; }
@media (max-width: 640px) { .foot-links { gap: 12px 18px; } }
