/* Web corporativa de 6BDN. Colors del logo: blau #000080 i groc #FFCC33. Sense tipografies externes. */
:root {
  --navy: #000080;      /* blau del logo */
  --navy-2: #1b2fa6;    /* blau per a hover i enllaços sobre fons clar */
  --navy-deep: #00004d; /* peu */
  --ink: #0a103a;       /* text principal */
  --ink-2: #353d63;     /* text secundari: prou contrast sobre blanc i sobre --tint */
  --gold: #ffcc33;      /* groc del logo: accents, mai text sobre blanc */
  --tint: #e4e9fa;      /* fons de secció alternat: blau clar que es distingeix del blanc */
  --tint-2: #f2f4fd;
  --line: #bfc7e4;
  --radius: 10px;
  --max: 1140px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 80px; }  /* que la capçalera fixa no tapi el títol en saltar a una secció */
.salta { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; }
.salta:focus { left: 16px; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

/* Capçalera */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95);
         backdrop-filter: blur(8px); border-bottom: 3px solid var(--navy); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand svg { height: 44px; width: auto; display: block; }
.brand span { font-size: 13px; line-height: 1.25; color: var(--ink-2); border-left: 2px solid var(--gold); padding-left: 12px; }
nav { display: flex; gap: 26px; align-items: center; font-size: 15px; }
nav > a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav > a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold);
                text-decoration-thickness: 3px; text-underline-offset: 7px; }
.lang { font-size: 13px; border: 1px solid var(--line); border-radius: 20px; padding: 3px 11px; }
.lang b { color: var(--navy); }
.lang a { text-decoration: none; }

/* Portada */
.hero { padding: 84px 0 76px; background: linear-gradient(105deg, #fff 0%, #fff 52%, var(--tint) 52%, var(--tint) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; font-weight: 600; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 4px; background: var(--gold);
                   vertical-align: middle; margin-right: 10px; }
h1 { font-size: clamp(34px, 4.3vw, 52px); line-height: 1.12; letter-spacing: -.02em; font-weight: 750; }
h1 em { font-style: normal; color: var(--navy); box-shadow: inset 0 -.28em 0 var(--gold); }
.lead { font-size: 19px; color: var(--ink-2); margin: 24px 0 34px; max-width: 34em; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--gold); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { color: var(--navy); margin-left: 16px; }

/* Diagrama d'integració */
.diagram { width: 100%; height: auto; }
.diagram .node rect { fill: #fff; stroke: var(--navy); stroke-width: 1.2; }
.diagram .node text { font-size: 13px; fill: var(--ink); font-family: inherit; font-weight: 500; }
.diagram .hub rect { fill: var(--navy); }
.diagram .hub text { fill: #fff; font-weight: 700; font-size: 14px; }
.diagram .link { stroke: var(--navy); stroke-opacity: .45; stroke-width: 1.6; stroke-dasharray: 5 5; fill: none; }
.diagram .dot { fill: var(--gold); stroke: var(--navy); stroke-width: 1; }

/* Seccions */
section { padding: 84px 0; }
.tint { background: var(--tint); }
.tint-2 { background: var(--tint-2); }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.015em; line-height: 1.2; margin-bottom: 14px; }
h2::after { content: ""; display: block; width: 48px; height: 4px; background: var(--gold); margin-top: 14px; }
.sub { color: var(--ink-2); max-width: 42em; margin-bottom: 44px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius);
        padding: 26px 26px 28px; box-shadow: 0 6px 18px rgba(0,0,80,.06); }
.card .num { font-size: 13px; color: var(--navy); font-weight: 700; }
.card h3 { font-size: 20px; margin: 4px 0 10px; }
.card p { color: var(--ink-2); font-size: 16px; }

.situations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sit { padding: 22px 24px; border-left: 4px solid var(--gold); background: var(--tint-2); border-radius: 0 var(--radius) var(--radius) 0; }
.sit q { display: block; font-size: 18.5px; font-weight: 650; quotes: "«" "»"; color: var(--ink); }
.sit p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.sit p b { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* Franja d'independència: el color fort de la pàgina */
.band { background: var(--navy); color: #fff; }
.band h2 { color: #fff; }
.band .sub { color: #d5dbff; }
.band .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.band .cols div { border-top: 4px solid var(--gold); padding-top: 18px; }
.band h3 { font-size: 19px; margin-bottom: 8px; }
.band p { color: #d5dbff; font-size: 16px; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.how div { border-top: 4px solid var(--navy); padding-top: 16px; }
.how h3 { font-size: 17px; margin-bottom: 6px; }
.how p { color: var(--ink-2); font-size: 15.5px; }

.techgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 44px; margin-top: 18px; }
.techgroups h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-bottom: 4px; }
.tech-more { margin-top: 26px; color: var(--ink-2); font-size: 16px; border-left: 4px solid var(--gold); padding-left: 14px; }
.tech { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tech span { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 12px; font-size: 14.5px; font-weight: 500; }

.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.about p + p { margin-top: 14px; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; border-top: 4px solid var(--gold); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { font-weight: 600; text-align: right; }

.where { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: stretch; }
.where address { font-style: normal; line-height: 1.9; font-size: 17px; }
.where .links { margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 320px; position: relative;
       background: var(--tint-2) repeating-linear-gradient(45deg, transparent 0 18px, rgba(0,0,128,.035) 18px 36px); }
.map .placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 24px; }
.map .placeholder p { font-size: 14px; color: var(--ink-2); max-width: 26em; }
.map iframe { border: 0; width: 100%; height: 100%; min-height: 320px; display: block; }
.map button { font: inherit; cursor: pointer; border: 0; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact address { font-style: normal; line-height: 1.9; margin-top: 18px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; padding: 26px; border-radius: var(--radius);
       border: 1px solid var(--line); }
form .full { grid-column: span 2; }
label { font-size: 14px; color: var(--ink-2); display: block; margin-bottom: 4px; font-weight: 500; }
input, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #a9b2d6; border-radius: 8px; background: #fff; }
input:focus, textarea:focus { outline: 3px solid var(--gold); border-color: var(--navy); }
textarea { min-height: 130px; resize: vertical; }
.rgpd { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.rgpd .check { display: inline; font-size: 13px; }
.rgpd .check input { width: auto; margin-right: 8px; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
/* Camp parany del formulari: fora de la vista, però no amb display:none (alguns robots el detecten) */
.parany { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form { position: relative; }

footer { background: var(--navy-deep); color: #c9cff0; padding: 40px 0; font-size: 14px; border-top: 4px solid var(--gold); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }

.sense-marge { margin-bottom: 0; }
.tec-titol { margin-top: 56px; font-size: 17px; }
.nota-visita { margin-top: 14px; color: var(--ink-2); }

/* Pàgines legals i de missatge */
.estret { max-width: 820px; }
.legal h1, .missatge h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 8px; }
.legal .actualitzat { color: var(--ink-2); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal h2::after { width: 36px; height: 3px; margin-top: 10px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--tint); }
.missatge { min-height: 50vh; }
.missatge p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.missatge .btn { margin-top: 18px; }
.telefon-gran { font-size: 26px !important; font-weight: 700; }
.telefon-gran a { text-decoration: none; }

@media (max-width: 960px) {
  nav > a:not(.nav-contacte) { display: none; }
  nav { gap: 14px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border-top: 0; }
  .legal tr { border-top: 1px solid var(--line); margin-bottom: 12px; }
  .brand span { display: none; }
  .hero { background: #fff; }
  .hero .wrap, .about, .contact, .where { grid-template-columns: 1fr; }
  .services, .band .cols, .techgroups { grid-template-columns: 1fr; }
  .situations { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr 1fr; }
  form { grid-template-columns: 1fr; }
  form .full { grid-column: auto; }
}
