/*
Theme Name: Espai Data
Theme URI: https://www.espaidata.com
Author: Espai Data Serveis Informàtics, S.L.
Description: Tema corporatiu trilingüe (català, castellà i anglès) per a Espai Data Serveis Informàtics. Sense dependències de connectors.
Version: 2.1.0
Requires at least: 6.2
Requires PHP: 7.4
License: Propietari
Text Domain: espaidata
*/

:root {
	--navy: #1e2a78;
	--navy-2: #27359a;
	--ink: #0f1747;
	--ink-2: #141e5a;
	--accent: #f25c1f;
	--accent-2: #e04a10;
	--sun: #ffb020;
	--sky: #eef2fb;
	--sky-2: #dfe6f7;
	--line: #dbe1ee;
	--text: #3a4258;
	--muted: #6b7489;
	--white: #fff;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(15, 23, 71, .08);
	--shadow-lg: 0 24px 60px rgba(15, 23, 71, .16);
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: #fff; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, .h1 { font-family: var(--font); color: var(--ink); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; }

/* ---------- Botons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .2s ease; line-height: 1.2; font-family: inherit; text-align: center; }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(242, 92, 31, .35); }
.btn-accent:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--sky); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-block { width: 100%; }

.kicker { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker.center { display: flex; justify-content: center; }
.kicker.light { color: var(--sun); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: #c9d1ee; font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar a { color: #e4e8f7; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-l { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-tag { opacity: .75; }
.topbar-r { display: flex; align-items: center; gap: 14px; }
.topbar .soc .ico { width: 16px; height: 16px; }
.langs { display: flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.langs a { padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem; letter-spacing: .05em; }
.langs a.on { background: #fff; color: var(--ink); }

/* ---------- Capçalera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(15, 23, 71, .08); border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 92px; transition: min-height .25s; }
.scrolled .header-in { min-height: 72px; }
.brand img { width: 150px; height: auto; transition: width .25s; }
.scrolled .brand img { width: 124px; }
.site-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 22px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--ink); border-radius: 8px; }
.menu > li > a:hover, .menu > li > a.on { color: var(--accent); }
.menu > li > a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }
.caret { width: 14px; height: 14px; transform: rotate(90deg); }
.sub-toggle { display: none; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: 760px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 26px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; opacity: 0; visibility: hidden; transition: .2s; }
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-sub:hover .mega, .has-sub:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-h { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col:first-child ul { grid-template-columns: 1fr 1fr; }
.mega a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mega a:hover { background: var(--sky); color: var(--navy); }
.mega a .ico { color: var(--accent); margin-top: 1px; }
.mega-sectors { background: var(--sky); border-radius: 12px; padding: 16px; }
.mega-sectors a:hover { background: #fff; }
.mega-all { margin-top: 10px; color: var(--accent) !important; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: .65em 1.15em; font-size: .88rem; white-space: nowrap; }
.nav-toggle, .nav-mobile-extra { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); background: var(--ink); overflow: hidden; color: #fff; display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.is-active .slide-bg { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 16, 56, .94) 0%, rgba(20, 30, 90, .82) 42%, rgba(20, 30, 90, .25) 100%); }
.slide-in { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 130px; }
.slide-in h1, .slide-in .h1 { color: #fff; max-width: 15ch; margin-bottom: .4em; }
.slide-in p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 56ch; color: #dfe5fb; font-weight: 400; }
.slide.is-active .slide-in > * { animation: rise .9s both; }
.slide.is-active .slide-in > *:nth-child(2) { animation-delay: .1s; }
.slide.is-active .slide-in > *:nth-child(3) { animation-delay: .2s; }
.slide.is-active .slide-in > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions.center { justify-content: center; }
.hero-nav { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3; display: flex; align-items: center; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dot { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: .3s; }
.dot.on { background: var(--accent); width: 54px; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-arrow:hover { background: #fff; color: var(--ink); }
.hero-arrow.prev .ico { transform: rotate(180deg); }

/* ---------- Seccions ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.sec-head .kicker { justify-content: center; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; text-align: left; margin-bottom: 32px; }
.sec-head.light h2 { color: #fff; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.link-more:hover { gap: 10px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 32px; }

/* Introducció i xifres */
.intro { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.intro-txt p { font-size: 1.08rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.stat:nth-child(2), .stat:nth-child(3) { border-top-color: var(--accent); }
.stat strong { display: block; font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .92rem; color: var(--muted); line-height: 1.4; display: block; }
.stats.compact { margin-top: 18px; }

/* Targetes de servei (estil contorn arrodonit) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.svc-card { border: 1.5px solid var(--sky-2); border-radius: 22px; background: #fff; transition: .25s ease; }
.svc-card:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-link { display: flex; flex-direction: column; height: 100%; padding: 30px 28px; color: var(--text); }
.svc-link:hover { color: var(--text); }
.svc-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--sky); color: var(--navy); display: grid; place-items: center; margin-bottom: 20px; transition: .25s; flex: none; }
.svc-ico .ico { width: 28px; height: 28px; }
.svc-card:hover .svc-ico { background: var(--navy); color: #fff; }
.svc-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.svc-card.alt { background: var(--navy); border-color: var(--navy); }
.svc-card.alt h3 { color: #fff; }
.svc-card.alt p { color: #c9d1ee; }
.svc-card.alt .svc-ico { background: rgba(255, 255, 255, .12); color: #fff; }
.svc-card.alt .more { color: var(--sun); }
.svc-card.alt2 { background: var(--accent); border-color: var(--accent); }
.svc-card.alt2 h3, .svc-card.alt2 .more { color: #fff; }
.svc-card.alt2 p { color: #ffe5d8; }
.svc-card.alt2 .svc-ico { background: rgba(255, 255, 255, .18); color: #fff; }
.svc-card.alt:hover, .svc-card.alt2:hover { border-color: var(--ink); }
.svc-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--accent); margin-top: 6px; transition: gap .2s; }
a:hover .more { gap: 10px; }

/* Sectors */
.sectors-sec { background: var(--sky); }
.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.sector-card { position: relative; min-height: 380px; border-radius: 24px; overflow: hidden; padding: 38px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; }
.sector-card::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; z-index: -2; transition: transform .6s ease; }
.sector-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 71, .1) 0%, rgba(15, 23, 71, .88) 72%); z-index: -1; }
.sector-card:hover::before { transform: scale(1.06); }
.sector-card h3 { color: #fff; font-size: 1.5rem; }
.sector-card p { color: #dce3fa; max-width: 46ch; }
.sector-card .more { color: var(--sun); }
.sector-card:hover { color: #fff; }
.sector-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.sector-ico .ico { width: 26px; height: 26px; }

/* Per què */
.why { background: var(--ink); color: #c9d1ee; isolation: isolate; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover; opacity: .12; z-index: -1; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 30px 26px; backdrop-filter: blur(4px); }
.why-item h3 { color: #fff; }
.why-item p { font-size: .94rem; margin: 0; }
.why-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; margin-bottom: 18px; }
.why-ico .ico { width: 24px; height: 24px; }

/* Partners */
.partners-strip { padding: 56px 0; border-bottom: 1px solid var(--line); }
.logos { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-top: 14px; }
.logos-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item { flex: none; width: 190px; height: 80px; display: grid; place-items: center; margin: 0 6px; filter: grayscale(1); opacity: .7; transition: .25s; }
.logo-item:hover { filter: none; opacity: 1; }
.logo-item img { max-height: 46px; max-width: 150px; object-fit: contain; }
.logo-item span, .partner-logo span { font-weight: 800; font-size: 1.45rem; color: #48506a; letter-spacing: .02em; }
.p-hp span { font-style: italic; font-size: 1.9rem; }
.p-intel span { font-size: 1.8rem; letter-spacing: -.02em; }
.p-microsoft span, .p-mikrotik span, .p-tplink span { font-weight: 700; }
.p-sonicwall span, .p-kyocera span, .p-salicru span, .p-epson span { letter-spacing: .08em; }

/* Notícies */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: .25s; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card a { color: var(--text); display: block; height: 100%; }
.news-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px 24px 26px; }
.news-body time { font-size: .8rem; color: var(--accent); font-weight: 700; }
.news-body h3 { margin: 6px 0 8px; }
.news-body p { font-size: .92rem; color: var(--muted); }

/* CTA */
.cta { position: relative; padding: 84px 0; color: #fff; isolation: isolate; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(30, 42, 120, .96), rgba(15, 23, 71, .85)); z-index: -1; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #d6ddf7; font-size: 1.1rem; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contacte */
.contact-mini { background: var(--sky); }
.contact-mini-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: center; background: #fff; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.contact-list b { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list span, .contact-list a { font-weight: 600; color: var(--ink); }
.cl-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.form-card h2 { font-size: 1.5rem; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; font: inherit; font-size: .98rem; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcff; color: var(--ink); transition: .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(30, 42, 120, .1); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); }
.form-legal { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.5; }
.form .btn { justify-self: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.alert.ok { background: #e7f8ef; color: #0b6b3a; border: 1px solid #b5e8cb; }
.alert.err { background: #fdeceb; color: #a5281b; border: 1px solid #f6c3be; }
.map { margin-top: 10px; border-radius: var(--radius); background: var(--sky) url("assets/img/map-bg.svg") center / cover; min-height: 300px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; overflow: hidden; text-align: center; padding: 20px; }
.map small { color: var(--muted); }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.map.loaded { padding: 0; }

/* Capçalera interior */
.page-hero { position: relative; color: #fff; padding: 84px 0 76px; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 16, 56, .95) 0%, rgba(30, 42, 120, .78) 60%, rgba(30, 42, 120, .5) 100%); z-index: -1; }
.page-hero h1 { color: #fff; max-width: 22ch; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero .lead { color: #dbe2fa; font-size: 1.12rem; max-width: 62ch; margin: 0; }
.page-hero.slim { padding: 64px 0 56px; }
.crumbs { font-size: .82rem; margin-bottom: 22px; color: #aeb8df; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #dfe5fb; }
.crumbs a:hover { color: #fff; }

/* Llistat de serveis */
.svc-list { display: grid; gap: 34px; }
.svc-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.svc-row.rev .svc-row-img { order: 2; }
.svc-row-img { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.svc-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-row:hover .svc-row-img img { transform: scale(1.04); }
.svc-row h2 { font-size: 1.6rem; }
.svc-row h2 a { color: var(--ink); }
.svc-row h2 a:hover { color: var(--accent); }
.tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); }

/* Detall de servei */
.svc-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.lead-dark { font-size: 1.2rem; color: var(--ink); font-weight: 500; line-height: 1.6; }
.checks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 500; color: var(--ink); }
.checks .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.6; }
.h-tags { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.svc-aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.svc-fig { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.svc-fig img { width: 100%; height: 100%; object-fit: cover; }
.aside-cta { background: var(--ink); color: #c9d1ee; border: 0; display: grid; gap: 12px; }
.aside-cta h3 { color: #fff; font-size: 1.3rem; margin: 0; }
.aside-cta p { margin: 0 0 6px; }
.aside-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.aside-cta .btn-ghost:hover { border-color: #fff; }
.related { background: var(--sky); }
.svc-grid.small { grid-template-columns: repeat(4, 1fr); }

/* Empresa */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about-txt p { font-size: 1.08rem; }
.about-txt p:first-child { font-size: 1.25rem; color: var(--ink); font-weight: 500; }
.quote { margin: 32px 0 0; padding: 28px 32px; border-left: 5px solid var(--accent); background: var(--sky); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.35rem; font-weight: 700; color: var(--ink); font-style: italic; }
.about-fig { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.about-fig img { width: 100%; height: 100%; object-fit: cover; }
.values { background: var(--sky); }
.steps { display: grid; gap: 22px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); }
.step-n { position: absolute; top: 18px; right: 22px; font-size: 2.6rem; font-weight: 800; color: var(--sky-2); line-height: 1; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Partners pàgina */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.partner-card { border: 1.5px solid var(--sky-2); border-radius: 20px; padding: 28px; text-align: center; transition: .25s; background: #fff; }
.partner-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.partner-logo { height: 90px; display: grid; place-items: center; margin-bottom: 12px; }
.partner-logo img { max-height: 60px; max-width: 170px; object-fit: contain; }
.partner-logo span { color: var(--navy); }
.partner-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Suport */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.download-card { text-align: center; padding: 48px 36px; background: linear-gradient(160deg, #fff 0%, var(--sky) 100%); }
.dl-ico { width: 84px; height: 84px; border-radius: 24px; background: var(--navy); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; }
.dl-ico .ico { width: 42px; height: 42px; }
.dl-buttons { display: grid; gap: 12px; justify-items: center; margin: 22px 0; }
.safety { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: .85rem; color: var(--muted); background: #fff; border-radius: 12px; padding: 14px 16px; margin: 26px 0 0; border: 1px dashed var(--line); }
.safety .ico { color: var(--accent); }
.steps-v { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.steps-v li { display: flex; gap: 18px; align-items: flex-start; }
.steps-v .step-n { position: static; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.1rem; display: grid; place-items: center; flex: none; }
.steps-v h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.steps-v p { color: var(--muted); margin: 0; }
.help-card .contact-list { margin-bottom: 0; }
.help-card .contact-list li { background: var(--sky); border: 0; }

/* Text legal */
.prose { max-width: 860px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose a { text-decoration: underline; }
.post-thumb { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pager a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 700; }
.pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.big404 { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; color: var(--sky-2); line-height: 1; margin: 0; }

/* ---------- Peu ---------- */
.site-footer { background: var(--ink); color: #aeb8df; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr 1.2fr; gap: 40px; padding-top: 72px; padding-bottom: 52px; }
.f-logo { width: 170px; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.f-links, .f-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.f-links a, .f-contact a { color: #c9d1ee; }
.f-links a:hover, .f-contact a:hover { color: #fff; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ico { color: var(--accent); margin-top: 3px; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.f-social a:hover { background: var(--accent); color: #fff; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: .82rem; }
.f-bottom-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.f-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.f-bottom a { color: #aeb8df; }
.f-bottom a:hover { color: #fff; }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .3s; z-index: 40; }
.to-top .ico { transform: rotate(-90deg); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); color: #fff; }
.wa-float { position: fixed; left: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 40; box-shadow: var(--shadow-lg); }
.wa-float .ico { width: 30px; height: 30px; }
.cookie { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; width: calc(100% - 32px); max-width: 780px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px 12px 20px; z-index: 60; font-size: .82rem; border: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; line-height: 1.45; }

/* Animació d'aparició */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
	.logos-track { flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
	.nav-cta .btn-ghost { display: none; }
	.menu > li > a { padding: 10px 11px; }
}
@media (max-width: 1180px) {
	.why-grid, .steps.four, .svc-grid.small { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
	.topbar-tag { display: none; }
	.site-header { backdrop-filter: none; background: #fff; }
	.header-in { min-height: 76px; }
	.brand img { width: 122px; }
	.nav-toggle { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
	.nav-toggle .ico { width: 24px; height: 24px; }
	.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
	.nav-open .nav-toggle .i-close { display: block; }
	.site-nav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--hh, 118px); width: 100%; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.menu { flex-direction: column; }
	.menu > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.menu > li > a { padding: 16px 4px; font-size: 1.08rem; flex: 1; }
	.menu > li > a.on::after { display: none; }
	.caret { display: none; }
	.sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--sky); border-radius: 10px; color: var(--navy); cursor: pointer; }
	.sub-toggle .ico { transform: rotate(90deg); transition: .2s; }
	.sub-open .sub-toggle .ico { transform: rotate(-90deg); }
	.mega { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 14px; grid-template-columns: 1fr; gap: 12px; display: none; opacity: 1; visibility: visible; }
	.has-sub:hover .mega { transform: none; }
	.sub-open .mega { display: grid; }
	.mega-col:first-child ul { grid-template-columns: 1fr; }
	.nav-cta { margin-top: 22px; flex-direction: column; }
	.nav-cta .btn, .nav-cta .btn-ghost { display: flex; padding: 1em; }
	.nav-mobile-extra { display: grid; gap: 16px; margin-top: 22px; justify-items: center; font-weight: 700; }
	.nav-mobile-extra > a { display: flex; gap: 8px; align-items: center; color: var(--ink); }
	.nav-mobile-extra .langs { background: var(--sky); }
	.nav-mobile-extra .langs a { padding: 8px 14px; font-size: .85rem; color: var(--ink); }
	.nav-mobile-extra .langs a.on { background: var(--navy); color: #fff; }
	.intro-grid, .contact-mini-grid, .contact-grid, .svc-detail, .about-grid, .support-grid { grid-template-columns: 1fr; gap: 40px; }
	.svc-aside { position: static; }
	.news-grid { grid-template-columns: 1fr 1fr; }
	.svc-row, .svc-row.rev { grid-template-columns: 1fr; gap: 22px; }
	.svc-row.rev .svc-row-img { order: 0; }
}
@media (max-width: 680px) {
	body { font-size: 16px; }
	.wrap { padding: 0 18px; }
	.topbar-l a:nth-child(2) span { display: none; }
	.topbar-l { gap: 14px; }
	.topbar .soc { display: none; }
	.hero { min-height: 640px; }
	.slide::after { background: linear-gradient(180deg, rgba(10, 16, 56, .7) 0%, rgba(15, 23, 71, .92) 70%); }
	.slide-in { padding-top: 56px; padding-bottom: 120px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.hero-arrow { display: none; }
	.stats, .sector-grid, .why-grid, .steps.four, .svc-grid.small, .news-grid, .grid-2, .footer-grid { grid-template-columns: 1fr; }
	.stat strong { font-size: 2.1rem; }
	.sector-card { min-height: 320px; padding: 28px; }
	.card { padding: 24px 20px; }
	.cta-actions .btn { flex: 1 1 100%; }
	.sec-head { margin-bottom: 34px; }
	.sec-head.row { flex-direction: column; align-items: start; }
	.cookie { bottom: 10px; font-size: .76rem; padding: 10px 12px; gap: 10px; }
	.form .btn { justify-self: stretch; }
	.quote { font-size: 1.12rem; padding: 22px; }
}

/* ---------- v1.1: menú Programació i blocs de programari ---------- */
.mega.drop { width: 380px; grid-template-columns: 1fr; padding: 16px; }
.mega.drop ul { grid-template-columns: 1fr !important; }
.software-sec { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.svc-grid.three { grid-template-columns: repeat(3, 1fr); }
.f-gap { margin-bottom: 26px !important; }
@media (max-width: 1024px) {
	.mega.drop { width: 100%; padding: 0 0 14px; }
	.svc-grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) { .svc-grid.three { grid-template-columns: 1fr; } }
.news-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .news-grid { grid-template-columns: 1fr; } }
/* v1.4: sis sectors en graella de tres */
.sector-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sector-card { min-height: 320px; padding: 30px; }
.sector-card h3 { font-size: 1.3rem; }
@media (max-width: 1024px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .sector-grid { grid-template-columns: 1fr; } .sector-card { min-height: 280px; } }
@media (max-width: 1240px) { .topbar-tag { display: none; } }
/* v1.5: bloc de posicionament i preguntes freqüents */
.seo-sec { background: #fff; border-top: 1px solid var(--line); }
.seo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.seo-text { font-size: 1.05rem; line-height: 1.8; }
.seo-text a { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--sky-2); }
.seo-text a:hover { color: var(--accent); border-color: var(--accent); }
.faq h2 { font-size: 1.5rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--navy); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
h1.kicker { font-size: .78rem; line-height: 1.4; margin: 0 0 14px; }
@media (max-width: 1024px) { .seo-grid { grid-template-columns: 1fr; gap: 36px; } }
.slide-in h1.kicker { max-width: none; color: var(--sun); margin-bottom: 14px; font-size: .78rem; }
.slide-in p.h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; color: #fff; max-width: 15ch; line-height: 1.18; margin: 0 0 .4em; letter-spacing: -.01em; }

/* v1.6 – segona foto al lateral dels sectors */
.svc-fig-2 { margin-top: 18px; }

/* v1.8 – Menú Serveis: serveis en horitzontal (3 columnes) i sectors en vertical a la dreta */
@media (min-width: 1025px) {
	.header-in { position: relative; }
	.menu > li.has-sub:not(.has-drop) { position: static; }
	.menu > li.has-sub:not(.has-drop) > a { position: relative; }
	.menu > li.has-sub:not(.has-drop) > .mega {
		top: calc(100% - 6px); left: 50%;
		width: min(1100px, calc(100vw - 40px));
		grid-template-columns: 3fr 1fr; gap: 22px; padding: 24px;
	}
	.menu > li.has-sub:not(.has-drop) > .mega .mega-col:first-child ul { grid-template-columns: repeat(3, 1fr); column-gap: 6px; row-gap: 2px; }
	.mega-sectors ul { grid-template-columns: 1fr; }
}

/* v2.0 – Pàgina Kit Digital */
.section.alt { background: var(--sky); }
.kd-logos-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }
.kd-logos-bar.foot { border-top: 1px solid var(--line); border-bottom: 0; }
.kd-logos-bar img { display: block; max-width: 100%; max-height: 90px; width: auto; margin: 0 auto; }
.kd-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.kd-logo { max-width: 240px; height: auto; margin-bottom: 18px; }
.lead-p { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }
.kd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.kd-status { border-left: 4px solid var(--accent); padding: 28px; }
.kd-status-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff1ea; color: var(--accent); margin-bottom: 12px; }
.kd-status h3 { margin: 0 0 8px; }
.kd-status p { margin: 0; color: var(--muted); }
.kd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.kd-who { display: grid; gap: 14px; }
.kd-who .card { padding: 20px 22px; }
.kd-who h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.05rem; }
.kd-who h3 .ico { color: var(--accent); }
.kd-who p { margin: 0; color: var(--muted); }
.kd-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: none; }
.kd-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; }
.kd-steps .step-n { position: static; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.kd-steps h3 { font-size: 1.02rem; margin: 0 0 6px; }
.kd-steps p { margin: 0; color: var(--muted); font-size: .93rem; }
.kd-sol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kd-sol-card { display: block; padding: 24px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.kd-sol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kd-sol-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--navy); margin-bottom: 12px; }
.kd-sol-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.kd-sol-card p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 1180px) { .kd-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .kd-intro, .kd-two { grid-template-columns: 1fr; gap: 32px; } .kd-sol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .kd-steps, .kd-sol { grid-template-columns: 1fr; } }
/* v2.0 – menú amb una opció més: evitar salts de línia */
@media (min-width: 1025px) {
	.menu > li > a { white-space: nowrap; }
}
@media (max-width: 1440px) and (min-width: 1025px) {
	.menu > li > a { padding: 10px 10px; font-size: .92rem; }
	.menu > li > a.on::after { left: 10px; right: 10px; }
	.site-nav { gap: 14px; }
}
@media (max-width: 1340px) and (min-width: 1025px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1180px) and (min-width: 1025px) { .menu > li > a { padding: 10px 7px; font-size: .88rem; } .brand img { width: 130px; height: auto; } }
