:root{
  --red:#b5001a;
  --red-dark:#8f0014;
  --bg:#f4f5f7;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
.fixed{position:sticky;top:0;z-index:10;display:flex;gap:14px;align-items:center;padding:14px 18px;background:#fff;border-bottom:4px solid var(--red);box-shadow:0 2px 12px rgba(0,0,0,.08)}
.fixed img{width:222px;height:auto;border-radius:8px}.title{font-weight:800;font-size:20px}.subtitle{font-size:14px;color:var(--muted);margin-top:2px}.wrap{max-width:1180px;margin:24px auto;padding:0 14px}.card{background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 28px rgba(0,0,0,.08);padding:22px}.form-title{font-size:24px;font-weight:800;margin-bottom:8px}.intro{color:var(--muted);margin-top:0}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.choice-button{display:block;text-decoration:none;border:2px solid var(--border);background:#fff;border-radius:16px;padding:24px;text-align:left;cursor:pointer;transition:.18s ease;box-shadow:0 4px 14px rgba(0,0,0,.05)}.choice-button:hover,.choice-button:focus{border-color:var(--red);transform:translateY(-2px);outline:none}.choice-button span{display:block;font-size:22px;font-weight:800;color:var(--red-dark)}.choice-button small{display:block;margin-top:8px;color:var(--muted);font-size:14px}@media (max-width:760px){.choice-grid{grid-template-columns:1fr}.fixed img{width:58px}.title{font-size:18px}}


/* Capçalera comuna segons referència */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  background:#fff;
  padding:11px 12px 6px 12px;
  border-bottom:none;
  box-shadow:none;
}
.brand-block,.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:inherit;
}
.site-header img{
  width:222px;
  height:54px;
  object-fit:contain;
  border-radius:14px;
  display:block;
}
.brand-text{display:block;line-height:1.08}
.title{font-weight:900;font-size:21px;color:#111;letter-spacing:.1px}
.subtitle{display:block;font-size:14px;color:#666;font-weight:400;margin-top:3px}
.switch-personal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid #e30613;
  border-radius:999px;
  color:#e30613;
  background:#fff;
  text-decoration:none;
  font-weight:900;
  padding:10px 14px;
  white-space:nowrap;
}
.switch-personal:hover{background:#e30613;color:#fff}
@media (max-width:640px){
  .site-header{align-items:flex-start;padding:10px 12px 8px 12px}
  .brand-block,.brand{gap:10px}
  .site-header img{width:170px;height:auto}
  .title{font-size:18px}
  .subtitle{font-size:13px}
  .switch-personal{width:100%;margin-top:6px}
}
@media print{.site-header,.switch-personal{display:none!important}}



/* ===== Header i footer ajustats segons referència ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  background:#fff;
  padding:18px 16px 12px 16px;
  border-bottom:1px solid #ececec;
  box-shadow:0 3px 14px rgba(0,0,0,.06);
}
.site-header .brand-block{display:block}
.site-header .brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  text-decoration:none;
  color:inherit;
}
.site-header img{
  width:220px;
  height:auto;
  object-fit:contain;
  border-radius:0;
  display:block;
}
.brand-text{display:block;line-height:1.08}
.title{
  display:block;
  font-weight:900;
  font-size:32px;
  color:#111;
  letter-spacing:-0.02em;
}
.brand-version{
  display:block;
  margin-top:6px;
  font-size:22px;
  font-weight:900;
  color:#111;
}
.subtitle{display:none!important}
.switch-personal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid #e30613;
  border-radius:999px;
  color:#e30613;
  background:#fff;
  text-decoration:none;
  font-weight:900;
  padding:10px 14px;
  white-space:nowrap;
  margin-top:8px;
}
.switch-personal:hover{background:#e30613;color:#fff}
.site-footer{
  margin-top:28px;
  padding:18px 16px 26px;
  text-align:center;
  font-size:16px;
  font-weight:800;
  color:#111;
}
@media (max-width:640px){
  .site-header{padding:14px 12px 10px}
  .site-header img{width:170px}
  .title{font-size:22px}
  .brand-version{font-size:18px}
  .switch-personal{width:100%;margin-top:0}
  .site-footer{font-size:15px;padding:16px 12px 22px}
}
@media print{.site-header,.switch-personal,.site-footer{display:none!important}}


/* ===== v4.03.00 capçalera bilingüe ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:nowrap;
  background:#fff;
  padding:18px 20px 14px;
  border-bottom:4px solid #cc1d12;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}
.site-header .brand-wrap,
.site-header .brand{
  display:flex;
  align-items:center;
  gap:18px;
  text-decoration:none;
  color:inherit;
  min-width:0;
}
.site-header .brand-wrap{flex:1 1 auto}
.site-header img{
  width:180px;
  max-width:38vw;
  height:auto;
  object-fit:contain;
  border-radius:0;
  flex:0 0 auto;
}
.brand-text{
  display:block;
  min-width:0;
}
.title,
.brand-title{
  display:block;
  font-size:28px;
  line-height:1.05;
  font-weight:900;
  color:#111;
  letter-spacing:-0.02em;
  margin:0;
}
.brand-version{
  display:block;
  margin-top:6px;
  font-size:20px;
  line-height:1.1;
  font-weight:800;
  color:#444;
}
.lang-switcher{
  display:flex;
  gap:10px;
  flex:0 0 auto;
}
.lang-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:78px;
  min-height:78px;
  border-radius:22px;
  border:2px solid #d8d8d8;
  background:#fff;
  color:#111;
  text-decoration:none;
  font-weight:900;
  font-size:20px;
  box-shadow:0 1px 0 rgba(0,0,0,.04) inset;
}
.lang-btn.is-active{
  background:#cc1d12;
  color:#fff;
  border-color:#cc1d12;
}
.subnav{
  max-width:980px;
  margin:16px auto 0;
  padding:0 14px;
}
.subnav .switch-personal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid #e30613;
  border-radius:999px;
  color:#e30613;
  background:#fff;
  text-decoration:none;
  font-weight:900;
  padding:10px 16px;
  white-space:nowrap;
  margin:0;
}
.subnav .switch-personal:hover{background:#e30613;color:#fff}
.site-footer{
  margin-top:28px;
  padding:18px 16px 26px;
  text-align:center;
  font-size:16px;
  font-weight:800;
  color:#111;
}
@media (max-width:760px){
  .site-header{align-items:flex-start;gap:14px;flex-wrap:wrap;padding:14px 12px 12px}
  .site-header .brand-wrap,.site-header .brand{gap:12px}
  .site-header img{width:150px;max-width:44vw}
  .title,.brand-title{font-size:21px}
  .brand-version{font-size:17px}
  .lang-switcher{margin-left:auto}
  .lang-btn{min-width:66px;min-height:66px;border-radius:18px;font-size:18px}
}
@media (max-width:560px){
  .site-header .brand-wrap{width:100%}
  .lang-switcher{width:100%;justify-content:flex-end}
  .title,.brand-title{font-size:18px}
  .brand-version{font-size:15px}
  .lang-btn{min-width:58px;min-height:58px;border-radius:16px;font-size:17px}
}
@media print{.site-header,.lang-switcher,.subnav,.site-footer{display:none!important}}


/* Easter egg: cinc clics sobre el peu */
.site-footer{
  user-select:none;
  -webkit-user-select:none;
}


/* ===== v4.03.04 alineació horitzontal de marca ===== */
.site-header .brand-wrap,
.site-header .brand{
  flex-direction:row !important;
  align-items:center !important;
}
.site-header .brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}
.site-header .brand-title,
.site-header .brand-version{
  width:auto;
  text-align:left;
}
@media (max-width:760px){
  .site-header .brand-wrap,
  .site-header .brand{
    flex-direction:row !important;
    align-items:center !important;
  }
}

/* ===== V4.05.04 capçalera mòbil compacta ===== */
@media (max-width:620px){
  .site-header{align-items:center!important;gap:10px!important;flex-wrap:wrap!important;padding:12px 10px 10px!important}
  .site-header .brand-wrap{width:auto!important;flex:1 1 auto!important;min-width:0!important}
  .site-header .brand{gap:10px!important;min-width:0!important}
  .site-header img{width:132px!important;max-width:38vw!important}
  .site-header .brand-title{font-size:clamp(15px,4.3vw,20px)!important;white-space:nowrap}
  .site-header .brand-version{font-size:14px!important;margin-top:4px!important}
  .lang-switcher{width:auto!important;margin:0!important;flex-direction:column!important;gap:6px!important;justify-content:center!important}
  .lang-btn{min-width:54px!important;min-height:44px!important;border-radius:14px!important;font-size:16px!important}
}


/* ===== V4.05.04 — sistema visual unificat de botons ===== */
.choice-button{
  border:2px solid #CC0000;
  border-radius:18px;
  min-height:58px;
  font-weight:900;
}
.choice-button:hover,.choice-button:focus{
  border-color:#CC0000;
  box-shadow:0 0 0 4px rgba(204,0,0,.12);
}
.subnav .switch-personal{
  width:100%;
  min-height:58px;
  border:2px solid #CC0000;
  border-radius:18px;
  color:#CC0000;
  font-size:1.05rem;
  padding:12px 18px;
}
.subnav .switch-personal:hover,
.subnav .switch-personal:focus-visible{
  background:#CC0000;
  color:#fff;
  outline:none;
}
