/* ==========================================================================
   Calers · lloc comercial
   Sistema visual: fons negre, tons blaus, Sora (títols) + Inter (text)
   ========================================================================== */

:root {
    --bg: #03050a;
    --bg-2: #060a14;
    --bg-3: #0a1020;
    --surface: rgba(13, 20, 38, .62);
    --surface-2: rgba(20, 30, 56, .55);
    --surface-solid: #0b1222;
    --border: rgba(148, 163, 184, .12);
    --border-2: rgba(148, 163, 184, .2);
    --border-blue: rgba(96, 165, 250, .38);
    --text: #e9eef8;
    --text-2: #c3cddf;
    --muted: #8d99b0;
    --dim: #5f6b82;
    --blue: #3b82f6;
    --blue-2: #60a5fa;
    --blue-3: #93c5fd;
    --cyan: #38bdf8;
    --indigo: #6366f1;
    --green: #34d399;
    --amber: #fbbf24;
    --rose: #fb7185;
    --red: #f87171;
    --grad: linear-gradient(135deg, #60a5fa 0%, #3b82f6 45%, #4f46e5 100%);
    --grad-text: linear-gradient(92deg, #bfdbfe 0%, #60a5fa 45%, #38bdf8 100%);
    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
    --glow: 0 0 0 1px rgba(96, 165, 250, .25), 0 18px 60px -18px rgba(59, 130, 246, .55);
    --font-title: 'Sora', 'Inter', system-ui, sans-serif;
    --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 72px;
    --strong: #fff;
    --indigo-2: #a5b4fc;
    --surface-open: rgba(13, 22, 44, .78);
    --tint: rgba(255, 255, 255, .03);
    --tint-2: rgba(255, 255, 255, .05);
    --tint-3: rgba(255, 255, 255, .08);
    --header-bg: rgba(3, 5, 10, .72);
    --menu-bg: rgba(8, 12, 24, .97);
    --mobile-nav-bg: rgba(3, 5, 10, .97);
    --section-alt: rgba(10, 16, 32, .65);
    --franja-bg: #070d1b;
    --grid-line: rgba(148, 163, 184, .07);
    --glow-blue: #1d4ed8;
    --glow-cyan: #0891b2;
    --glow-indigo: #4338ca;
    --frame-bg: #0b0f19;
    --frame-bar: #0e1424;
    --frame-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 90px -20px rgba(59, 130, 246, .35);
    --float-bg: rgba(10, 16, 32, .78);
    --float-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
    --trust-bg: rgba(6, 10, 20, .92);
    --card-grad: linear-gradient(180deg, rgba(17, 25, 46, .78), rgba(8, 12, 24, .78));
    --shot-fade: rgba(8, 12, 24, .95);
    --cta-bg: radial-gradient(120% 140% at 50% 0%, rgba(37, 99, 235, .35), rgba(8, 12, 24, .95) 60%);
    --footer-top: rgba(8, 12, 24, .6);
    --phone-bar: #0b0f1a;
    --phone-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -25px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(59, 130, 246, .4);
}

/* ---------- Tema clar ---------- */
[data-theme="light"] {
    --bg: #f5f7fb;
    --bg-2: #eef2f8;
    --bg-3: #e5ebf5;
    --surface: rgba(255, 255, 255, .8);
    --surface-2: rgba(255, 255, 255, .6);
    --surface-solid: #fff;
    --surface-open: #fff;
    --border: rgba(15, 23, 42, .09);
    --border-2: rgba(15, 23, 42, .15);
    --border-blue: rgba(37, 99, 235, .35);
    --text: #0f172a;
    --text-2: #334155;
    --muted: #55657e;
    --dim: #76849b;
    --strong: #0b1220;
    --blue: #2563eb;
    --blue-2: #2563eb;
    --blue-3: #1d4ed8;
    --cyan: #0284c7;
    --indigo: #4f46e5;
    --indigo-2: #4f46e5;
    --green: #059669;
    --amber: #d97706;
    --rose: #e11d48;
    --red: #dc2626;
    --grad-text: linear-gradient(92deg, #1e3a8a 0%, #2563eb 45%, #0891b2 100%);
    --shadow: 0 30px 70px -30px rgba(15, 23, 42, .22);
    --glow: 0 0 0 1px rgba(37, 99, 235, .18), 0 16px 44px -16px rgba(37, 99, 235, .5);
    --tint: rgba(15, 23, 42, .03);
    --tint-2: rgba(15, 23, 42, .05);
    --tint-3: rgba(15, 23, 42, .08);
    --header-bg: rgba(245, 247, 251, .82);
    --menu-bg: rgba(255, 255, 255, .98);
    --mobile-nav-bg: #f5f7fb;
    --section-alt: rgba(226, 233, 245, .7);
    --franja-bg: #e9eff9;
    --grid-line: rgba(15, 23, 42, .06);
    --glow-blue: #93c5fd;
    --glow-cyan: #a5f3fc;
    --glow-indigo: #c7d2fe;
    --frame-bg: #fff;
    --frame-bar: #f1f4f9;
    --frame-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 40px 100px -35px rgba(15, 23, 42, .35), 0 0 80px -25px rgba(59, 130, 246, .3);
    --float-bg: rgba(255, 255, 255, .9);
    --float-shadow: 0 20px 50px -20px rgba(15, 23, 42, .3);
    --trust-bg: rgba(255, 255, 255, .94);
    --card-grad: linear-gradient(180deg, #fff, #f7f9fd);
    --shot-fade: rgba(247, 249, 253, .96);
    --cta-bg: radial-gradient(120% 140% at 50% 0%, rgba(59, 130, 246, .2), rgba(255, 255, 255, .96) 60%);
    --footer-top: rgba(226, 233, 245, .5);
    --phone-bar: #eef3fb;
    --phone-shadow: 0 0 0 1px rgba(15, 23, 42, .1), 0 36px 80px -30px rgba(15, 23, 42, .45), 0 0 60px -25px rgba(59, 130, 246, .35);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
::selection { background: rgba(59, 130, 246, .45); color: #fff; }
a { color: var(--blue-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-3); }
h1, h2, h3, h4, h5 { font-family: var(--font-title); color: var(--strong); letter-spacing: -.025em; line-height: 1.12; font-weight: 700; text-wrap: balance; }
.section-lead, .hero-lead { text-wrap: pretty; }
p { color: var(--text-2); }
img { max-width: 100%; height: auto; }
.num { font-variant-numeric: tabular-nums; }
.container { max-width: 1240px; }
@media (max-width: 767px) { .container { --bs-gutter-x: 2.5rem; } }
.container-narrow { max-width: 860px; margin: 0 auto; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; color: #000; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- Fons decoratius ---------- */
.bg-grid {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.glow {
    position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
    opacity: .55;
}
.glow--blue { background: var(--glow-blue); }
.glow--cyan { background: var(--glow-cyan); }
.glow--indigo { background: var(--glow-indigo); }

/* ---------- Botons ---------- */
.btn-c {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-text); font-weight: 600; font-size: .98rem;
    padding: .78rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .25s ease, background .25s, border-color .25s, color .2s;
    white-space: nowrap; line-height: 1.2; cursor: pointer;
}
.btn-c:hover { transform: translateY(-1px); }
.btn-c:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.btn-c--primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-c--primary:hover { color: #fff; box-shadow: 0 0 0 1px rgba(147, 197, 253, .45), 0 22px 70px -16px rgba(59, 130, 246, .8); }
.btn-c--ghost { background: var(--tint-2); color: var(--text); border-color: var(--border-2); }
.btn-c--ghost:hover { color: var(--strong); border-color: var(--border-blue); background: rgba(59, 130, 246, .08); }
.btn-c--text { color: var(--text-2); padding-left: .6rem; padding-right: .6rem; }
.btn-c--text:hover { color: var(--strong); }
.btn-c--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-c--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-c .bi-arrow-right { transition: transform .2s; }
.btn-c:hover .bi-arrow-right { transform: translateX(3px); }

/* ---------- Capçalera ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    height: var(--header-h);
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom-color: var(--border);
}
.site-nav { height: 100%; padding: 0; }
.site-nav .container { height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--strong); font-family: var(--font-title); font-weight: 700; font-size: 1.28rem; letter-spacing: -.03em; }
.brand:hover { color: var(--strong); }
.brand img { width: 34px; height: 34px; }
.site-nav .nav-link {
    color: var(--text-2); font-weight: 500; font-size: .95rem; padding: .5rem .85rem !important; border-radius: 10px;
    transition: color .2s, background .2s;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .nav-link.show { color: var(--strong); background: var(--tint-2); }
.site-nav .dropdown-toggle::after { border: 0; content: "\F282"; font-family: 'bootstrap-icons'; vertical-align: -.1em; font-size: .7rem; margin-left: .35rem; transition: transform .2s; }
.site-nav .dropdown-toggle.show::after { transform: rotate(180deg); }
.navbar-toggler { border: 1px solid var(--border-2); border-radius: 12px; padding: .45rem .6rem; color: var(--strong); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, .35); }
.navbar-toggler .bi { font-size: 1.35rem; }

/* Megamenú de funcionalitats */
.mega-menu {
    background: var(--menu-bg); border: 1px solid var(--border-2); border-radius: 22px;
    padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(20px);
    width: min(720px, 92vw); margin-top: .75rem !important;
}
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; }
.mega-grid > .mega-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mega-item { display: flex; gap: .85rem; padding: .8rem .85rem; border-radius: 14px; color: var(--text); transition: background .2s; }
.mega-item:hover { background: rgba(59, 130, 246, .09); color: var(--strong); }
.mega-item strong { display: block; font-size: .95rem; font-weight: 600; color: var(--strong); }
.mega-item span:not(.ico) { display: block; font-size: .83rem; color: var(--muted); line-height: 1.45; margin-top: .1rem; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .6rem; padding: .85rem .85rem .35rem; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }

/* Icona amb color d'accent */
.ico {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
    font-size: 1.15rem; color: var(--blue-2); background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .22);
}
.ico--lg { width: 52px; height: 52px; border-radius: 15px; font-size: 1.4rem; }
.ico--cyan { color: var(--cyan); background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .24); }
.ico--indigo { color: var(--indigo-2); background: rgba(99, 102, 241, .13); border-color: rgba(129, 140, 248, .26); }
.ico--green { color: var(--green); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .24); }
.ico--amber { color: var(--amber); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .24); }
.ico--rose { color: var(--rose); background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .24); }

/* Selector d'idioma */
.lang-btn { background: transparent; border: 1px solid var(--border-2); color: var(--text-2); border-radius: 999px; padding: .42rem .8rem; font-size: .85rem; font-weight: 600; }
.lang-btn:hover, .lang-btn.show { color: var(--strong); border-color: var(--border-blue); }
.dropdown-menu-dark-c { background: var(--menu-bg); border: 1px solid var(--border-2); border-radius: 14px; padding: .4rem; box-shadow: var(--shadow); }
.dropdown-menu-dark-c .dropdown-item { color: var(--text-2); border-radius: 9px; font-size: .92rem; padding: .5rem .8rem; }
.dropdown-menu-dark-c .dropdown-item:hover { background: rgba(59, 130, 246, .12); color: var(--strong); }
.dropdown-menu-dark-c .dropdown-item.active { background: rgba(59, 130, 246, .22); color: var(--strong); }

/* Selector de tema clar / fosc (al costat del d'idioma) */
.theme-btn {
    width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center;
    background: transparent; border: 1px solid var(--border-2); color: var(--text-2); border-radius: 999px; font-size: .95rem;
    transition: color .2s, border-color .2s;
}
.theme-btn:hover { color: var(--strong); border-color: var(--border-blue); }
.theme-btn:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.theme-ico-dark { display: none; }
[data-theme="light"] .theme-ico-light { display: none; }
[data-theme="light"] .theme-ico-dark { display: inline; }

/* ---------- Seccions ---------- */
main { position: relative; }
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--junt-baix { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section--junt-dalt { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section--alt { background: linear-gradient(180deg, transparent, var(--section-alt) 18%, var(--section-alt) 82%, transparent); }
/* Franja de fons suau: les llums queden a les cantonades perquè l'anell del logo central dels bancs coincideixi amb el color de fons */
.section--franja {
    overflow: hidden;
    background:
        radial-gradient(45% 70% at 0% 100%, rgba(56, 189, 248, .08), transparent 70%),
        radial-gradient(45% 70% at 100% 0%, rgba(99, 102, 241, .1), transparent 70%),
        var(--franja-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--compact { margin-bottom: .5rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1.1rem; }
.section-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin: 0; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem)) 0 0; overflow: hidden; }
.hero .glow--blue { width: 720px; height: 520px; left: 50%; top: -160px; transform: translateX(-50%); opacity: .5; }
.hero .glow--indigo { width: 420px; height: 420px; right: -120px; top: 280px; opacity: .3; }
.hero .glow--cyan { width: 380px; height: 380px; left: -140px; top: 420px; opacity: .22; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 920px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 0 0 1.4rem; }
.hero-lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--muted); max-width: 680px; margin: 0 auto 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-notes { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.hero-notes span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-notes .bi { color: var(--green); }

/* Marc de navegador amb captura */
.hero-stage { position: relative; z-index: 1; margin-top: clamp(3rem, 7vw, 4.5rem); perspective: 2000px; }
.hero-stage .frame { transform: rotateX(var(--tilt, 14deg)) scale(var(--scale, .96)); transform-origin: 50% 0; transition: transform .1s linear; }
.frame {
    position: relative; border-radius: 16px; overflow: hidden; background: var(--frame-bg);
    border: 1px solid var(--border-2);
    box-shadow: var(--frame-shadow);
}
.frame-bar { display: flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .9rem; background: var(--frame-bar); border-bottom: 1px solid var(--border); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3347; }
.frame-bar i:nth-child(1) { background: #f87171; opacity: .75; }
.frame-bar i:nth-child(2) { background: #fbbf24; opacity: .75; }
.frame-bar i:nth-child(3) { background: #34d399; opacity: .75; }
.frame-url { margin: 0 auto; transform: translateX(-24px); font-size: .75rem; color: var(--muted); background: var(--tint-2); border: 1px solid var(--border); border-radius: 8px; padding: .15rem .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.frame-url .bi { color: var(--green); font-size: .7rem; }
.frame img { display: block; width: 100%; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, transparent, var(--bg) 92%); z-index: 2; pointer-events: none; }

/* Targetes flotants sobre la captura */
.float-card {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .8rem;
    padding: .85rem 1.1rem; border-radius: 16px; min-width: 220px;
    background: var(--float-bg); border: 1px solid var(--border-2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--float-shadow);
    animation: flota 7s ease-in-out infinite;
}
.float-card small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.float-card strong { display: block; font-family: var(--font-title); font-size: 1.12rem; color: var(--strong); letter-spacing: -.02em; }
.float-card .up { color: var(--green); }
.float-card--1 { left: -3%; top: 16%; }
.float-card--2 { right: -3%; top: 30%; animation-delay: -2.5s; }
.float-card--3 { left: 6%; top: 58%; animation-delay: -4.5s; }
.float-bar { height: 6px; border-radius: 99px; background: var(--tint-3); margin-top: .4rem; overflow: hidden; width: 150px; }
.float-bar span { display: block; width: 91%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #f87171); }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Franja de confiança ---------- */
.trust { position: relative; z-index: 3; margin-top: -2rem; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.trust-item { background: var(--trust-bg); padding: 1.35rem 1.4rem; display: flex; align-items: center; gap: .9rem; }
.trust-item strong { display: block; color: var(--strong); font-size: .98rem; font-weight: 600; }
.trust-item span:not(.ico) { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* ---------- Graella bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.bento-card {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: var(--card-grad);
    border: 1px solid var(--border); padding: 1.7rem; color: var(--text);
    transition: border-color .3s, transform .3s, box-shadow .3s;
    display: flex; flex-direction: column; min-height: 250px;
}
.bento-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .14), transparent 45%);
}
.bento-card:hover { border-color: var(--border-blue); transform: translateY(-3px); color: var(--text); box-shadow: 0 30px 70px -35px rgba(59, 130, 246, .5); }
.bento-card:hover::before { opacity: 1; }
.bento-card h3 { font-size: 1.28rem; margin: 1.1rem 0 .5rem; }
.bento-card p { font-size: .96rem; color: var(--muted); margin: 0; }
.bento-card .more { margin-top: auto; padding-top: 1.1rem; font-size: .9rem; font-weight: 600; color: var(--blue-2); display: inline-flex; gap: .4rem; align-items: center; }
.bento-card:hover .more .bi { transform: translateX(3px); }
.bento-card .more .bi { transition: transform .2s; }
.bento-card--w2 { grid-column: span 2; }
.bento-card--w3 { grid-column: span 3; }
.bento-card--w4 { grid-column: span 4; }
.bento-card--w6 { grid-column: span 6; }
.bento-card--shot { padding-bottom: 0; }
.bento-shot { margin: 1.4rem -1.7rem 0; margin-top: auto; padding-top: 1.4rem; position: relative; }
.bento-shot img { display: block; width: 100%; border-top-left-radius: 14px; border-top: 1px solid var(--border-2); border-left: 1px solid var(--border-2); margin-left: 1.7rem; width: calc(100% - 1.7rem); object-fit: cover; object-position: 0 0; height: 230px; }
.bento-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, transparent, var(--shot-fade)); }

/* Mini visuals de les targetes bento sense captura */
.bento-mini { margin-top: auto; padding-top: 1.4rem; display: grid; gap: .55rem; }
.mini-row { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 12px; background: var(--tint); border: 1px solid var(--border); font-size: .88rem; color: var(--text-2); }
.mini-row b { margin-left: auto; font-weight: 600; }
.mini-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.mini-dot--green { background: #22c55e; }
.mini-dot--red { background: #ef4444; }
.mini-dot--orange { background: #f97316; }
.mini-ok { color: var(--green); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.mini-bar { padding: .1rem 0; }
.mini-bar-top { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-2); margin-bottom: .35rem; }
.mini-bar-top b { color: var(--strong); font-weight: 600; }
.mini-track { height: 7px; border-radius: 99px; background: var(--tint-3); overflow: hidden; }
.mini-fill { display: block; height: 100%; border-radius: inherit; }
.mini-fill--ok { background: linear-gradient(90deg, #3b82f6, #38bdf8); }
.mini-fill--warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.mini-fill--over { background: linear-gradient(90deg, #ef4444, #f87171); }
.mini-w19 { width: 19%; }
.mini-w78 { width: 78%; }
.mini-w91 { width: 91%; }
.mini-w100 { width: 100%; }
.mini-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; }
.mini-cols div { padding: .6rem .8rem; border-radius: 12px; background: var(--tint); border: 1px solid var(--border); }
.mini-cols small { display: block; font-size: .75rem; color: var(--muted); }
.mini-cols b { font-family: var(--font-title); font-size: 1rem; }
.mini-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.mini-chip { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--cyan); padding: .35rem .7rem; border-radius: 9px; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .22); }
.mini-steps { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.mini-steps span { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(59, 130, 246, .15); color: var(--blue-2); font-weight: 700; font-size: .78rem; }
.mini-steps i { flex: 0 0 18px; height: 1px; background: var(--border-blue); }
.mini-steps em { font-style: normal; margin-left: .3rem; }

/* ---------- Pestanyes de captures ---------- */
.tabs-shots { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.tab-shot {
    display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.05rem; border-radius: 999px;
    background: var(--tint); border: 1px solid var(--border); color: var(--text-2); font-weight: 500; font-size: .93rem;
    transition: all .2s;
}
.tab-shot:hover { color: var(--strong); border-color: var(--border-2); }
.tab-shot[aria-selected="true"] { background: rgba(59, 130, 246, .14); border-color: var(--border-blue); color: var(--strong); box-shadow: 0 10px 30px -12px rgba(59, 130, 246, .6); }
.shots-stage { position: relative; max-width: 1080px; margin: 0 auto; }
.shots-stage .glow { width: 70%; height: 60%; left: 15%; top: 20%; opacity: .35; }
.shot-panel { display: none; position: relative; z-index: 1; }
.shot-panel.is-active { display: block; animation: apareix .45s ease; }
.shot-caption { text-align: center; margin-top: 1.4rem; color: var(--muted); font-size: .98rem; }
@keyframes apareix { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: pas; }
.step { position: relative; padding: 1.9rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step-num { font-family: var(--font-title); font-size: .85rem; font-weight: 700; color: var(--blue-2); letter-spacing: .1em; }
.step h3 { font-size: 1.25rem; margin: .8rem 0 .5rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -1.2rem; width: 1.2rem; height: 1px;
    background: linear-gradient(90deg, var(--border-blue), transparent);
}

/* ---------- Mòbil ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split--rev .split-media { order: -1; }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-2); }
.check-list .bi { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; color: var(--blue-2); background: rgba(59, 130, 246, .14); margin-top: .12rem; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 1.4rem; padding: 1rem 0; }
.phones .glow { width: 80%; height: 70%; left: 10%; top: 15%; opacity: .35; }
.phone {
    position: relative; z-index: 1; width: min(270px, 44%); border-radius: 44px; padding: 10px;
    background: linear-gradient(160deg, #2a3350, #0d1220 40%, #1a2138);
    box-shadow: var(--phone-shadow);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 30%; height: 18px; border-radius: 99px; background: #000; z-index: 2; }
/* Barra d'estat fosca perquè la "notch" no tapi la capçalera de l'app */
.phone img { display: block; width: 100%; border-radius: 35px; border-top: 30px solid var(--phone-bar); background: var(--phone-bar); aspect-ratio: 780 / 1718; object-fit: cover; object-position: top; }
.phone--2 { margin-top: 3.5rem; }

/* ---------- Seguretat (targetes) ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.sec-card { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.sec-card h3 { font-size: 1.08rem; margin: 1rem 0 .45rem; }
.sec-card p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Preus ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 1.4rem; justify-content: center; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column; padding: 2.2rem; border-radius: var(--radius-lg);
    background: var(--card-grad); border: 1px solid var(--border);
}
.plan--featured { border-color: var(--border-blue); box-shadow: 0 0 0 1px rgba(96, 165, 250, .2), 0 40px 100px -40px rgba(59, 130, 246, .7); }
.plan--featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(180deg, rgba(96, 165, 250, .8), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-badge { position: absolute; top: -13px; left: 2.2rem; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .8rem; border-radius: 999px; box-shadow: var(--glow); }
.plan h3 { font-size: 1.35rem; margin: 0 0 .4rem; }
.plan-desc { color: var(--muted); font-size: .95rem; margin: 0 0 1.6rem; }
.plan-price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .35rem; }
.plan-price strong { font-family: var(--font-title); font-size: 3.3rem; font-weight: 800; letter-spacing: -.05em; color: var(--strong); line-height: 1; }
.plan-price span { color: var(--muted); font-size: 1rem; }
.plan-sub { font-size: .88rem; color: var(--blue-3); margin-bottom: 1.6rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.plan li { display: flex; gap: .65rem; color: var(--text-2); font-size: .96rem; }
.plan li .bi { color: var(--blue-2); margin-top: .15rem; }
.plan .btn-c { margin-top: auto; width: 100%; }
.plans-note { text-align: center; color: var(--dim); font-size: .88rem; margin-top: 1.8rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--border-blue); background: var(--surface-open); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 600; color: var(--strong); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F4FE"; font-family: 'bootstrap-icons'; color: var(--blue-2); transition: transform .25s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- Banda CTA final ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; border: 1px solid var(--border-blue); background: var(--cta-bg); }
.cta-band .bg-grid { mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.cta-band p { color: var(--text-2); max-width: 600px; margin: 0 auto 2rem; font-size: 1.12rem; }

/* ---------- Capçalera de pàgina interior ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .glow--blue { width: 640px; height: 440px; left: 50%; top: -180px; transform: translateX(-50%); opacity: .42; }
.page-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.04em; margin: 1.2rem 0 1.2rem; }
.page-hero .hero-lead { margin-bottom: 2rem; }
.breadcrumb-c { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); }
.breadcrumb-c a { color: var(--muted); }
.breadcrumb-c a:hover { color: var(--strong); }
.landing-shot { position: relative; z-index: 1; max-width: 1120px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.landing-shot .glow { width: 70%; height: 60%; left: 15%; top: 20%; opacity: .32; }
.landing-shot .frame { position: relative; z-index: 1; }

/* Targetes de funcionalitats (landing) */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feat-card { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, transform .25s; }
.feat-card:hover { border-color: var(--border-blue); transform: translateY(-2px); }
.feat-card h3 { font-size: 1.08rem; margin: 1rem 0 .45rem; }
.feat-card p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Blocs alterns (text + captura) */
.block + .block { margin-top: clamp(4rem, 8vw, 6.5rem); }
.block h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); margin-bottom: 1rem; }
.block p { color: var(--muted); font-size: 1.05rem; }
.split-media { position: relative; }
.split-media .glow { width: 80%; height: 70%; left: 10%; top: 15%; opacity: .28; }
.split-media .frame, .split-media .phone, .split-media .visual { position: relative; z-index: 1; }
.split-media .phone { margin: 0 auto; width: min(290px, 70%); }

/* Llista visual (quan no hi ha captura) */
.visual { border-radius: var(--radius-lg); padding: 1.6rem; background: var(--card-grad); border: 1px solid var(--border-2); box-shadow: var(--shadow); display: grid; gap: .8rem; }
.visual-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--tint); border: 1px solid var(--border); }
.visual-row span:not(.ico) { color: var(--text); font-weight: 500; font-size: .98rem; line-height: 1.4; }
.visual-row .ok { margin-left: auto; color: var(--green); font-size: 1.1rem; }

/* Altres funcionalitats */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.related a { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, background .2s; }
.related a:hover { border-color: var(--border-blue); background: var(--surface-open); color: var(--strong); }
.related strong { display: block; font-size: .96rem; font-weight: 600; }
.related .ico { flex-shrink: 0; }
.related strong + span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* Pàgines legals */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; }
.legal p { color: var(--text-2); }
.legal .legal-meta { color: var(--dim); font-size: .9rem; margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.3rem; }

/* Documents legals amb índex lateral */
.legal-date { display: inline-flex; align-items: center; gap: .45rem; margin: 1.2rem 0 0; color: var(--dim); font-size: .9rem; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); max-width: 1100px; margin: 0 auto; align-items: start; }
.legal-layout .legal { max-width: none; margin: 0; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
.legal-toc-title { margin: 0 0 .6rem .5rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.legal-toc a { display: flex; gap: .4rem; padding: .38rem .5rem; border-radius: 8px; color: var(--muted); font-size: .87rem; line-height: 1.35; transition: background .2s, color .2s; }
.legal-toc a span { color: var(--dim); min-width: 1.3rem; }
.legal-toc a:hover { color: var(--strong); background: rgba(59, 130, 246, .1); }
.legal-sec { scroll-margin-top: calc(var(--header-h) + 1.5rem); padding-bottom: 1.8rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--border); }
.legal-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-sec h2 { margin: 0 0 .9rem; }
.legal-num { color: var(--blue-2); margin-right: .2rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--text-2); }
.legal li { margin-bottom: .5rem; }
.legal li::marker { color: var(--blue-2); }
.legal-sec > :last-child { margin-bottom: 0; }
.legal-others { max-width: 1100px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
@media (max-width: 991px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; max-height: none; }
}

/* ---------- Guies ---------- */
.bento-card h2 { font-size: 1.28rem; margin: 1.1rem 0 .5rem; }
.legal ol { margin: 0 0 1rem; padding-left: 1.4rem; color: var(--text-2); }
.guia h2.guia-sec { scroll-margin-top: calc(var(--header-h) + 1.5rem); font-size: 1.45rem; margin: 2.6rem 0 .8rem; }
.guia h2.guia-sec:first-child { margin-top: 0; }
.guia h3 { font-size: 1.12rem; margin: 1.6rem 0 .6rem; }
.guia strong { color: var(--strong); }
.guia-funcio { display: flex; align-items: center; gap: 1rem; margin-top: 2.6rem; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-blue); color: var(--text); transition: background .2s; }
.guia-funcio:hover { background: var(--surface-open); color: var(--strong); }
.guia-funcio .ico { flex-shrink: 0; }
.guia-funcio small { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); }
.guia-funcio strong { display: block; font-size: 1.02rem; }
.guia-funcio strong + span { display: block; font-size: .88rem; color: var(--muted); }
.guia-funcio > .bi { margin-left: auto; color: var(--blue-2); }
.guia-funcio--landing { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.guia-funcio--landing:has(+ .guia-funcio--landing) { margin-bottom: .8rem; }

/* Blog de guies: contingut i bloc lateral */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 4vw, 3.5rem); max-width: 1180px; margin: 0 auto; align-items: start; }
.blog-layout .legal { max-width: none; margin: 0; }
.blog-main { min-width: 0; }
.blog-layout ~ .legal-others { max-width: 1180px; }
/* Article: l'índex va dalt del bloc lateral a l'escriptori i abans del text al mòbil */
.blog-layout--post { grid-template-areas: "main toc" "main side"; grid-template-rows: auto 1fr; row-gap: 1.25rem; }
.blog-layout--post .blog-main { grid-area: main; }
.blog-layout--post .blog-side { grid-area: side; }
.blog-toc { grid-area: toc; position: static; max-height: none; }
.page-hero--post .page-hero-inner { max-width: 900px; }
.post-hero-cat { margin: 1.3rem 0 0; }
.post-portada { max-width: 1180px; margin: 0 auto clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--franja-bg); }
.post-portada img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* Targetes de guia */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--card-grad); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.post-card:hover { border-color: var(--border-blue); transform: translateY(-3px); color: var(--text); box-shadow: 0 30px 70px -35px rgba(59, 130, 246, .5); }
.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--franja-bg); border-bottom: 1px solid var(--border); }
.post-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-img--ico { display: grid; place-items: center; }
.post-card-body { flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1.3rem 1.3rem; }
.post-card-title { font-size: 1.16rem; line-height: 1.3; margin: 0; }
.post-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.post-meta { margin-top: auto; padding-top: .3rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--dim); }
.post-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.post-card--destacada { display: grid; grid-template-columns: 1.15fr 1fr; height: auto; }
.post-card--destacada .post-card-img { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--border); }
.post-card--destacada .post-card-body { justify-content: center; padding: clamp(1.4rem, 3vw, 2.2rem); }
.post-card--destacada .post-card-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.post-card--destacada p { font-size: .98rem; }
.post-card--destacada .post-meta { margin-top: .4rem; }
/* Si l'última targeta queda sola a la fila, ocupa tota l'amplada en horitzontal */
@media (min-width: 768px) {
    .post-grid:not(.post-grid--3) > .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .post-grid:not(.post-grid--3) > .post-card:last-child:nth-child(odd) .post-card-img { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--border); }
}

/* Etiqueta de categoria (mateixos colors que les icones) */
.post-cat { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; padding: .26rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; color: var(--blue-2); background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .22); }
a.post-cat:hover { color: var(--strong); }
.post-cat--cyan { color: var(--cyan); background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .24); }
.post-cat--indigo { color: var(--indigo-2); background: rgba(99, 102, 241, .13); border-color: rgba(129, 140, 248, .26); }
.post-cat--green { color: var(--green); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .24); }
.post-cat--amber { color: var(--amber); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .24); }
.post-cat--rose { color: var(--rose); background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .24); }

/* Capçaleres del llistat, filtre actiu i cap resultat */
.blog-etiqueta { margin-bottom: .9rem; }
.blog-subtitol { font-size: 1.3rem; margin: clamp(2.2rem, 4vw, 3rem) 0 1.2rem; }
.blog-filtre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.blog-filtre h2 { font-size: 1.35rem; margin: 0; }
.blog-filtre p { margin: .25rem 0 0; font-size: .88rem; color: var(--dim); }
.blog-buit { text-align: center; padding: 3rem 1.5rem; border-radius: var(--radius); border: 1px dashed var(--border-2); }
.blog-buit p { margin: 1rem 0 0; color: var(--muted); }

/* Peu de l'article: etiquetes i compartir */
.post-peu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.post-compartir { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.post-compartir > span { margin-right: .3rem; font-size: .85rem; color: var(--dim); }
.post-compartir a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--tint-2); border: 1px solid var(--border); transition: color .2s, border-color .2s, background .2s; }
.post-compartir a:hover { color: var(--strong); border-color: var(--border-blue); background: rgba(59, 130, 246, .12); }

/* Blocs del lateral */
.blog-side { display: grid; gap: 1.25rem; min-width: 0; }
.widget { padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.widget-title { margin: 0 0 .9rem; font-family: var(--font-text); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.cerca-guies { position: relative; display: flex; align-items: center; gap: .5rem; }
.cerca-guies > .bi { position: absolute; left: .95rem; color: var(--dim); pointer-events: none; }
.cerca-guies input { flex: 1; min-width: 0; height: 42px; padding: 0 .9rem 0 2.5rem; border-radius: 999px; font-size: .93rem; background: var(--surface-solid); color: var(--strong); border: 1px solid var(--border-2); transition: border-color .2s, box-shadow .2s; }
.cerca-guies input::placeholder { color: var(--dim); }
.cerca-guies input:focus { outline: 0; border-color: var(--border-blue); box-shadow: var(--glow); }
.widget--subscriu { text-align: center; border-color: var(--border-blue); background: radial-gradient(120% 110% at 50% 0%, rgba(37, 99, 235, .3), transparent 65%), var(--surface); }
.widget--subscriu .widget-title { margin: .9rem 0 .45rem; font-family: var(--font-title); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; text-transform: none; color: var(--strong); }
.widget--subscriu p { margin: 0 0 1.1rem; font-size: .92rem; color: var(--muted); }
.widget--subscriu .btn-c { width: 100%; }
.widget--subscriu small { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .75rem; font-size: .8rem; color: var(--dim); }
.widget--subscriu small .bi { color: var(--green); }
.widget-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.widget-cats a { display: flex; align-items: center; gap: .7rem; padding: .42rem .5rem; border-radius: 10px; font-size: .93rem; color: var(--text-2); transition: background .2s, color .2s; }
.widget-cats a:hover, .widget-cats a.active { color: var(--strong); background: rgba(59, 130, 246, .1); }
.widget-cats .ico { width: 32px; height: 32px; border-radius: 10px; font-size: .95rem; }
.widget-n { margin-left: auto; min-width: 1.7rem; padding: .1rem .45rem; border-radius: 999px; font-size: .78rem; text-align: center; color: var(--muted); background: var(--tint-3); }
.widget-recents { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.widget-recents a { display: flex; align-items: center; gap: .8rem; color: var(--text); }
.widget-recents img { flex: 0 0 auto; width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.widget-recents strong { display: block; font-size: .9rem; font-weight: 600; line-height: 1.35; transition: color .2s; }
.widget-recents a:hover strong { color: var(--blue-2); }
.widget-recents time { font-size: .78rem; color: var(--dim); }
.widget-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.widget-tags a { padding: .32rem .75rem; border-radius: 999px; font-size: .82rem; color: var(--muted); background: var(--tint-2); border: 1px solid var(--border); transition: color .2s, border-color .2s, background .2s; }
.widget-tags a:hover, .widget-tags a.active { color: var(--strong); border-color: var(--border-blue); background: rgba(59, 130, 246, .12); }
.widget-marca { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; }
.widget-marca strong { font-family: var(--font-title); font-size: 1.1rem; color: var(--strong); }
.widget--sobre p:not(.widget-marca) { margin: 0 0 .8rem; font-size: .9rem; color: var(--muted); }
.widget-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; }

@media (max-width: 1199.98px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}
@media (max-width: 991.98px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr); }
    .blog-layout--post { grid-template-areas: "toc" "main" "side"; grid-template-rows: auto; }
    .blog-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .blog-side > .widget:first-child { grid-column: 1 / -1; }
    .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .post-card--destacada { grid-template-columns: 1fr; }
    .post-card--destacada .post-card-img { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 767.98px) {
    .post-grid, .post-grid--3, .blog-side { grid-template-columns: minmax(0, 1fr); }
    .post-portada img { aspect-ratio: 16 / 9; }
}

/* ---------- Bancs ---------- */
/* Cercador i filtre per país */
.banc-cerca { display: grid; gap: 1rem; justify-items: center; }
.banc-cerca-camp { position: relative; display: block; width: min(560px, 100%); }
.banc-cerca-camp .bi { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.banc-cerca-camp input {
    width: 100%; padding: .95rem 1.2rem .95rem 3rem; border-radius: 999px; font-size: 1.02rem;
    background: var(--surface-solid); color: var(--strong); border: 1px solid var(--border-2); box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.banc-cerca-camp input::placeholder { color: var(--dim); }
.banc-cerca-camp input:focus { outline: 0; border-color: var(--border-blue); box-shadow: var(--glow); }
.banc-paisos { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.banc-pais { padding: .42rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--text-2); background: var(--tint); border: 1px solid var(--border); transition: all .2s; }
.banc-pais:hover { color: var(--strong); border-color: var(--border-2); }
.banc-pais[aria-pressed="true"] { color: var(--strong); background: rgba(59, 130, 246, .14); border-color: var(--border-blue); }
.banc-pais:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

/* Del banc a Calers: tres passos en una franja */
.banc-flux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; counter-reset: flux; }
.banc-flux li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.3rem 1.4rem; counter-increment: flux; position: relative; }
.banc-flux li + li { border-left: 1px solid var(--border); }
.banc-flux li::before { content: counter(flux, decimal-leading-zero); position: absolute; right: 1.1rem; top: .9rem; font-family: var(--font-title); font-size: .78rem; font-weight: 700; color: var(--dim); letter-spacing: .08em; }
.banc-flux-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--glow); }
.banc-flux strong { display: block; color: var(--strong); font-size: .98rem; }
.banc-flux span span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: .15rem; }

/* Directori agrupat per país */
.banc-directori { display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
.banc-grup-titol { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; margin: 0 0 .9rem; }
.banc-grup-titol small { margin-left: auto; font-family: var(--font-text); font-size: .82rem; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.banc-codi { font-family: var(--font-text); font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: .25rem .5rem; border-radius: 7px; color: var(--blue-2); background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .22); }
.banc-grup-nota { display: flex; gap: .55rem; align-items: flex-start; margin: -.2rem 0 .9rem; font-size: .9rem; color: var(--muted); }
.banc-grup-nota .bi { color: var(--indigo-2); margin-top: .15rem; }
.banc-llista { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.banc-llista li + li { border-top: 1px solid var(--border); }
.banc-fila { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.2rem; color: var(--text); transition: background .2s; }
.banc-fila:hover { background: rgba(59, 130, 246, .07); color: var(--strong); }
.banc-fila:focus-visible { outline: 2px solid var(--blue-2); outline-offset: -2px; }
.banc-fila-nom { min-width: 0; flex: 1 1 auto; }
.banc-fila-nom strong { display: block; font-size: 1rem; font-weight: 600; color: var(--strong); }
.banc-fila-nom span { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--dim); }
.banc-formats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.banc-fila-fletxa { color: var(--dim); transition: transform .2s, color .2s; }
.banc-fila:hover .banc-fila-fletxa { color: var(--blue-2); transform: translateX(3px); }
.banc-cap { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 2rem; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); margin: 0; }

/* Monograma del banc (sense logotips de marca) */
.banc-mono { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; font-family: var(--font-title); font-size: .88rem; font-weight: 700; letter-spacing: -.02em; color: var(--blue-2); background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .25); }
.banc-mono--indigo { color: var(--indigo-2); background: rgba(99, 102, 241, .13); border-color: rgba(129, 140, 248, .28); }
.banc-mono--rose { color: var(--rose); background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .26); }
.banc-mono--cyan { color: var(--cyan); background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .26); }
.banc-mono--green { color: var(--green); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .26); }
.banc-mono--amber { color: var(--amber); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .26); }
.banc-mono--xl { display: grid; width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; margin: 1.4rem auto 0; }
/* Placa clara en tots dos temes: els logotips es veuen amb els seus colors de marca; object-fit evita deformar-los quan la placa és més estreta */
.banc-llista { --insignia: 112px; }
.banc-logo { flex: 0 0 auto; width: var(--insignia, 112px); height: 46px; padding: 7px 12px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .5); }
.banc-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.banc-logo--sm { width: 92px; height: 40px; padding: 6px 10px; border-radius: 10px; }
.banc-logo--xl { display: flex; width: 210px; height: 78px; padding: 14px 24px; border-radius: 18px; margin: 1.4rem auto 0; }
.banc-codi--indigo { color: var(--indigo-2); background: rgba(99, 102, 241, .13); border-color: rgba(129, 140, 248, .26); }
.banc-codi--rose { color: var(--rose); background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .24); }
.banc-codi--cyan { color: var(--cyan); background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .24); }
.banc-codi--green { color: var(--green); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .24); }
.banc-codi--amber { color: var(--amber); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .24); }

/* Etiquetes de format */
.banc-format { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; letter-spacing: .02em; padding: .22rem .55rem; border-radius: 7px; color: var(--text-2); background: var(--tint-2); border: 1px solid var(--border); white-space: nowrap; }
.banc-format--top { color: var(--green); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); }
.banc-format--top .bi { font-size: .62rem; }
.banc-format--no { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--border-2); }
.banc-fitxa .banc-format--no { text-decoration: none; }
.banc-avis { display: flex; gap: .55rem; align-items: flex-start; margin: 1.6rem 0 0; font-size: .88rem; color: var(--dim); }
.banc-avis .bi { margin-top: .15rem; }

/* Quin format triar: escala de preferència */
.banc-escala { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; gap: .6rem; }
.banc-escala-pas { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.banc-escala-num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--font-title); font-weight: 700; font-size: .95rem; color: var(--blue-2); background: rgba(59, 130, 246, .13); }
.banc-escala-pas:first-child .banc-escala-num { color: #fff; background: var(--grad); box-shadow: var(--glow); }
.banc-escala-text { flex: 1 1 auto; min-width: 0; }
.banc-escala-text strong { display: block; color: var(--strong); font-size: 1rem; }
.banc-escala-text span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.banc-escala-estat { flex: 0 0 auto; font-size: .76rem; font-weight: 600; color: var(--green); }
.banc-escala-pas--no { background: transparent; border-style: dashed; }
.banc-escala-pas--no .banc-escala-num { color: var(--red); background: rgba(248, 113, 113, .1); font-size: .8rem; }
.banc-escala-pas--no .banc-escala-estat { color: var(--red); }

/* El teu banc no hi és? */
.banc-falta { display: flex; gap: 1.3rem; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--card-grad); border: 1px solid var(--border-2); }
.banc-falta h2 { font-size: 1.35rem; margin: .2rem 0 .5rem; }
.banc-falta p { color: var(--muted); margin: 0 0 1.1rem; }

/* Fitxa del banc */
.banc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 3.5rem); max-width: 1100px; margin: 0 auto; align-items: start; }
.banc-sec { display: flex; align-items: center; gap: .75rem; font-size: 1.45rem; margin: 2.8rem 0 1rem; }
.banc-cos > .banc-sec:first-child { margin-top: 0; }
.banc-sec-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; font-size: .95rem; color: #fff; background: var(--grad); box-shadow: var(--glow); }
.banc-intro { color: var(--text-2); }
.banc-canal { display: inline-flex; align-items: center; gap: .35rem; margin-right: .4rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--blue-2); background: rgba(59, 130, 246, .1); border: 1px solid rgba(96, 165, 250, .22); vertical-align: .08em; }

/* Camí de menús: etiquetes literals de la banca en línia unides per una línia */
.banc-cami { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; position: relative; counter-reset: cami; }
.banc-cami::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: linear-gradient(180deg, var(--border-blue), rgba(52, 211, 153, .45)); }
.banc-cami li { position: relative; display: flex; align-items: center; gap: .9rem; counter-increment: cami; }
.banc-cami li::before { content: counter(cami); position: relative; z-index: 1; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .82rem; font-weight: 700; color: var(--blue-2); background: var(--surface-solid); border: 2px solid var(--border-blue); }
.banc-cami-etiqueta { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 10px; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .88rem; color: var(--strong); background: var(--surface-solid); border: 1px solid var(--border-2); box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .6); }
.banc-cami li.banc-cami-fi { color: var(--muted); font-size: .94rem; }
.banc-cami li.banc-cami-fi::before { content: "\F633"; font-family: 'bootstrap-icons'; color: var(--green); border-color: rgba(52, 211, 153, .5); }
.banc-generics { margin: 1rem 0 0; padding-left: 1.3rem; display: grid; gap: .55rem; color: var(--text-2); }
.banc-generics li::marker { color: var(--blue-2); font-weight: 700; }
.banc-notes { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.banc-notes li { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: rgba(251, 191, 36, .06); border: 1px solid rgba(251, 191, 36, .2); color: var(--text-2); font-size: .94rem; }
.banc-notes .bi { color: var(--amber); margin-top: .1rem; }

/* Fitxa ràpida lateral */
.banc-fitxa { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.banc-fitxa dl { margin: 0; display: grid; gap: .1rem; }
.banc-fitxa dl > div { display: grid; gap: .3rem; padding: .7rem .5rem; border-bottom: 1px solid var(--border); }
.banc-fitxa dl > div:last-child { border-bottom: 0; }
.banc-fitxa dt { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.banc-fitxa dd { margin: 0; color: var(--strong); font-size: .95rem; }
.banc-fitxa-formats { display: flex; flex-wrap: wrap; gap: .35rem; }
.banc-fitxa-nota { margin: .6rem .5rem 0; font-size: .86rem; color: var(--muted); }
.banc-fitxa-ajuda { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: .9rem; padding: .7rem 1rem; border-radius: 12px; font-size: .9rem; font-weight: 600; background: var(--tint-2); border: 1px solid var(--border-2); color: var(--text); }
.banc-fitxa-ajuda:hover { border-color: var(--border-blue); color: var(--strong); }
.related .banc-mono { width: 40px; height: 40px; }

@media (max-width: 991.98px) {
    .banc-layout { grid-template-columns: 1fr; }
    .banc-fitxa { position: static; order: -1; }
    .banc-flux { grid-template-columns: 1fr; }
    .banc-flux li + li { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 575.98px) {
    .banc-llista { --insignia: 88px; }
    .banc-logo:not(.banc-logo--xl) { height: 40px; padding: 6px 9px; }
    .banc-logo--xl { width: 180px; height: 66px; padding: 12px 20px; }
    .banc-fila { flex-wrap: wrap; gap: .6rem .9rem; }
    .banc-fila-nom { flex-basis: calc(100% - var(--insignia) - .9rem - 2rem); }
    .banc-formats { order: 3; flex-basis: 100%; justify-content: flex-start; padding-left: calc(var(--insignia) + .9rem); }
    .banc-escala-pas { flex-wrap: wrap; }
    .banc-escala-estat { flex-basis: 100%; padding-left: calc(36px + 1.1rem); }
    .banc-falta { flex-direction: column; }
}

/* ---------- Bancs compatibles a la portada ---------- */
.bancs-home { margin-top: clamp(2.5rem, 5vw, 4rem); }
.bancs-home .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
/* El farciment vertical deixa espai a l'ombra de les targetes i als anells del centre, que la màscara retallaria */
.logos-banc {
    position: relative; display: grid; gap: 1rem; max-width: 1600px; margin: 0 auto; padding: 1.75rem 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* Dues còpies idèntiques de la llista: en desplaçar-se la meitat, el bucle no té salt */
.logos-banc-fila { display: flex; width: max-content; animation: logos-banc 70s linear infinite; }
.logos-banc-fila--inversa { animation-direction: reverse; animation-duration: 80s; }
.logos-banc-fila--lenta { animation-duration: 90s; }
.logos-banc:hover .logos-banc-fila, .logos-banc:focus-within .logos-banc-fila { animation-play-state: paused; }
.logos-banc-llista { list-style: none; margin: 0; padding: 0 1rem 0 0; display: flex; gap: 1rem; }
@keyframes logos-banc { to { transform: translateX(-50%); } }

/* Plaques clares en tots dos temes: els logotips es veuen amb els seus colors de marca */
.logo-banc {
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-width: 190px; height: 72px; padding: 0 1.5rem;
    border-radius: 18px; background: #fff; border: 1px solid rgba(15, 23, 42, .08); white-space: nowrap;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.logo-banc:hover { border-color: var(--border-blue); box-shadow: var(--glow); transform: translateY(-2px); }
.logo-banc:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.logo-banc-img { flex: 0 0 auto; display: block; }
.logo-banc-nom { font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; color: #0f172a; }
.logo-banc .banc-mono { width: 38px; height: 38px; font-size: .82rem; }

/* Calers al centre: les dues files hi passen per sota */
.logos-banc-hub {
    position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
    width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center;
    background: var(--surface-solid); border: 1px solid var(--border-blue);
    box-shadow: 0 0 0 10px var(--franja-bg), var(--glow), 0 0 90px 20px rgba(59, 130, 246, .35);
}
.logos-banc-hub img { width: 52px; height: 52px; }
.logos-banc-hub::before, .logos-banc-hub::after {
    content: ""; position: absolute; inset: -10px; border-radius: 38px; border: 1px solid var(--border-blue);
    pointer-events: none; animation: logos-banc-pols 3.2s ease-out infinite;
}
.logos-banc-hub::after { animation-delay: 1.6s; }
@keyframes logos-banc-pols { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }

.bancs-home-peu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.6rem; margin-top: clamp(1rem, 2vw, 1.5rem); }
.bancs-home-formats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.bancs-home-privat { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .92rem; color: var(--muted); }
.bancs-home-privat .bi { color: var(--green); }
.bancs-home-avis { margin: 1.4rem auto 0; max-width: 640px; text-align: center; font-size: .8rem; color: var(--dim); }

@media (max-width: 767.98px) {
    .logos-banc { gap: .75rem; padding: 1.25rem 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
    .logos-banc-llista { gap: .75rem; padding-right: .75rem; }
    .logo-banc { min-width: 150px; height: 58px; padding: 0 1.1rem; border-radius: 15px; gap: .6rem; }
    .logo-banc-img { max-height: 26px; width: auto; }
    .logo-banc-nom { font-size: .98rem; }
    .logos-banc-hub { width: 80px; height: 80px; border-radius: 24px; }
    .logos-banc-hub img { width: 40px; height: 40px; }
    .logos-banc-hub::before, .logos-banc-hub::after { border-radius: 30px; }
}

/* Sense moviment: cada fila es desplaça a mà i la còpia del bucle sobra */
@media (prefers-reduced-motion: reduce) {
    .logos-banc { mask-image: none; -webkit-mask-image: none; }
    .logos-banc-fila { animation: none; width: auto; overflow-x: auto; padding: 0 1rem; }
    .logos-banc-llista[aria-hidden="true"] { display: none; }
    .logos-banc-hub::before, .logos-banc-hub::after { animation: none; opacity: 0; }
}

/* ---------- Peu ---------- */
.site-footer { position: relative; border-top: 1px solid var(--border); padding: 4.5rem 0 2rem; margin-top: clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--footer-top), var(--bg)); }
.footer-tagline { color: var(--muted); max-width: 320px; margin: 1rem 0 1.4rem; font-size: .96rem; }
.footer-title { font-family: var(--font-text); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a { color: var(--text-2); font-size: .94rem; }
.footer-links a:hover { color: var(--strong); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--border); color: var(--dim); font-size: .86rem; }
.footer-bottom p { margin: 0; color: var(--dim); }
.footer-langs { display: flex; gap: .4rem; flex-wrap: wrap; }
.footer-langs a { color: var(--muted); font-size: .85rem; padding: .2rem .55rem; border-radius: 8px; border: 1px solid transparent; }
.footer-langs a.active, .footer-langs a:hover { color: var(--strong); border-color: var(--border-2); }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--text-2); font-size: .94rem; text-align: left; cursor: pointer; transition: color .2s; }
.footer-link-btn:hover { color: var(--strong); }
.footer-link-btn:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Bàner de galetes ---------- */
.galetes-banner {
    position: fixed; left: 1rem; bottom: 1rem; z-index: 1040;
    width: min(420px, calc(100vw - 2rem));
    padding: 1.25rem 1.3rem 1.2rem;
    background: var(--surface-open); border: 1px solid var(--border-2); border-radius: var(--radius);
    box-shadow: var(--float-shadow);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.galetes-banner[hidden] { display: none; }
.galetes-titol { font-family: var(--font-text); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 .45rem; }
.galetes-text { font-size: .9rem; line-height: 1.55; margin: 0 0 1rem; color: var(--text-2); }
.galetes-text a { white-space: nowrap; }
.galetes-botons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* ---------- Animació d'aparició ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-card { animation: none; }
    .hero-stage .frame { transform: none; }
    .post-card:hover, .post-card:hover .post-card-img img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .float-card--1 { left: 1%; }
    .float-card--2 { right: 1%; }
    .related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        position: absolute; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        background: var(--mobile-nav-bg); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem 1.5rem;
    }
    .mega-menu { width: 100%; background: transparent; border: 0; box-shadow: none; padding: .25rem 0; margin-top: 0 !important; }
    .mega-grid { grid-template-columns: 1fr; }
    .mega-foot { display: none; }
    .nav-actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card--w2, .bento-card--w3, .bento-card--w4 { grid-column: span 1; }
    .bento-card--wide-md, .bento-card--w6 { grid-column: span 2; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .step:not(:last-child)::after { display: none; }
    .split { grid-template-columns: 1fr; }
    .split--rev .split-media { order: 0; }
    .sec-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .float-card { display: none; }
}
@media (max-width: 767.98px) {
    body { font-size: 1rem; }
    .bento { grid-template-columns: 1fr; }
    .bento-card--wide-md, .bento-card--w6 { grid-column: span 1; }
    .plans { grid-template-columns: 1fr; }
    .sec-grid, .feat-grid, .related { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust { margin-top: 1rem; }
    .frame-bar { height: 28px; }
    .frame-url { display: none; }
    .hero-stage .frame { transform: none; }
    .hero-ctas .btn-c { width: 100%; }
    .btn-c { white-space: normal; text-align: center; max-width: 100%; }
    .phone--2 { margin-top: 2rem; }
}
