
:root {
  --lv-blue: #123a63;
  --lv-blue-2: #0e5a8a;
  --lv-light: #f4f8fb;
  --lv-ink: #17202a;
  --lv-muted: #5f6f7b;
  --lv-border: #d9e4ec;
  --lv-accent: #f2b84b;
  --lv-white: #ffffff;
  --lv-radius: 18px;
  --lv-shadow: 0 14px 40px rgba(18,58,99,.12);
}
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--lv-ink); background: #fff; scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
a { color: var(--lv-blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lv-border); box-shadow: 0 4px 18px rgba(18,58,99,.06); }
.topbar { background: #0b2239; color: #fff; font-size: .92rem; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.topbar-link { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; line-height: 1; }
.topbar-link:hover { color: #fff; text-decoration: underline; }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--lv-blue); font-weight: 800; font-size: 1.15rem; }
.brand img { height: 58px; width: auto; max-width: 210px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .95rem; }
.nav a, .nav .obf-link { color: var(--lv-ink); cursor: pointer; font-weight: 700; border-radius: 999px; padding: 8px 10px; }
.nav a:hover { background: var(--lv-light); text-decoration: none; color: var(--lv-blue-2); }
.header-actions { display:flex; gap: 10px; align-items:center; }
.btn { display: inline-flex; align-items: center; justify-content:center; gap: 8px; min-height: 42px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.btn-primary { background: var(--lv-blue); color: #fff !important; }
.btn-secondary { background: var(--lv-light); color: var(--lv-blue); border-color: var(--lv-border); }
.whatsapp-simple { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 18px; border-radius: 999px; background: #26a65b; color: #fff !important; font-weight: 800; border: 1px solid rgba(255,255,255,.25); text-decoration: none !important; white-space: nowrap; }
.whatsapp-simple:hover { background: #1f8d4d; color:#fff !important; text-decoration:none !important; }
.hero { background: linear-gradient(135deg, #f8fbfe, #eaf3f9); padding: 72px 0 58px; border-bottom: 1px solid var(--lv-border); }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items:center; }
.kicker { display:none !important; }
h1 { font-size: clamp(2.1rem, 4vw, 4.1rem); line-height: 1.05; margin: 0 0 20px; color: var(--lv-blue); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--lv-muted); margin: 0 0 24px; }
.hero-card { background: #fff; border: 1px solid var(--lv-border); border-radius: var(--lv-radius); padding: 14px; box-shadow: var(--lv-shadow); }
.hero-card img { border-radius: calc(var(--lv-radius) - 6px); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.quality-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.quality-badge { background: #fff; border: 1px solid var(--lv-border); border-radius: 16px; padding: 15px; color: var(--lv-blue); text-decoration: none; box-shadow: 0 8px 22px rgba(18,58,99,.07); min-height: 138px; display: flex; flex-direction: column; justify-content: flex-start; gap: 7px; }
.quality-badge:hover { transform: translateY(-2px); box-shadow: var(--lv-shadow); text-decoration: none; }
.quality-badge strong { font-size: 1rem; color: var(--lv-blue); }
.quality-badge small { color: var(--lv-muted); line-height: 1.35; }
.quality-icon { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--lv-light); color: var(--lv-blue-2); }
.quality-badge-img img { max-height: 42px; width: auto; object-fit: contain; align-self: flex-start; }
.breadcrumbs { font-size: .9rem; color: var(--lv-muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--lv-blue); font-weight: 800; }
.main-section { padding: 58px 0; }
.content-shell { display:grid; grid-template-columns: minmax(0, 2fr) 320px; gap: 28px; align-items:start; }
.article { background:#fff; border:1px solid var(--lv-border); border-radius: var(--lv-radius); padding: 28px; min-width: 0; }
.article h2 { color: var(--lv-blue); margin-top: 34px; margin-bottom: 12px; }
.article h2:first-child { margin-top: 0; }
.rich-content .intro-copy { font-size: 1.12rem; line-height: 1.72; color: #23384b; }
.rich-content p { line-height: 1.75; color: #334e62; }
.rich-content a { font-weight: 750; }
.rich-content ul { padding-left: 1.2rem; display: grid; gap: .45rem; }
.sidebar { position: sticky; top: 118px; display:grid; gap: 16px; }
.sidebar-badges { display:grid; gap: 12px; }
.sidebar-badge { background:#fff; border:1px solid var(--lv-border); border-radius: 16px; padding: 16px; text-align:center; color: var(--lv-blue); text-decoration:none; box-shadow: 0 8px 22px rgba(18,58,99,.07); display:flex; flex-direction: column; align-items:center; justify-content:center; gap:10px; min-height: 94px; }
.sidebar-badge:hover { text-decoration:none; box-shadow: var(--lv-shadow); transform: translateY(-2px); }
.sidebar-badge strong { display:block; color: var(--lv-blue); font-size: .98rem; }
.sidebar-badge img { display:block; margin: 0 auto; object-fit: contain; }
.sidebar-badge.brand-side img { width: 88px; height:auto; }
.sidebar-badge.iso-side img { max-width: 146px; max-height: 74px; }
.service-link-card { border: 1px solid rgba(15, 23, 42, 0.10); border-radius: 18px; padding: 1.15rem 1.25rem; margin: 1rem 0; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06); }
.service-link-number { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: .08em; color: #2563eb; margin-bottom: .25rem; }
.service-link-card h3 { margin: .1rem 0 .45rem; }
.service-link-card h3 a { color: inherit; text-decoration: none; }
.service-link-card h3 a:hover { color: #2563eb; text-decoration: underline; }
.service-link-card p { margin-bottom: 0; }
.hub-directory { margin-top: 34px; border-top: 1px solid var(--lv-border); padding-top: 28px; }
.hub-directory h2 { color: var(--lv-blue); margin-top:0; }
.hub-directory > p { color: var(--lv-muted); }
.hub-directory-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.hub-card { display:grid; grid-template-columns: 42px 1fr; gap: 12px; align-items:center; background: var(--lv-light); border:1px solid var(--lv-border); border-radius: 16px; padding: 16px; }
.hub-card h3 { margin:0; font-size: 1rem; }
.hub-card h3 a { color: var(--lv-blue); text-decoration:none; }
.hub-card h3 a:hover { color: var(--lv-blue-2); text-decoration: underline; }
.hub-icon { width: 42px; height:42px; border-radius: 13px; background:#fff; color: var(--lv-blue-2); display:flex; align-items:center; justify-content:center; }
.icon { width: 1.15em; height: 1.15em; max-width: 1.15em; max-height: 1.15em; display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }
.context-links { margin-top: 34px; border-top: 1px solid var(--lv-border); padding-top: 28px; }
.context-links h2 { margin-top:0; }
.context-list { display:grid; gap: 10px; padding-left: 1.2rem; }
.context-list li { color: var(--lv-muted); }
.context-list a { font-weight: 800; }
.faq-section { background: #fff; }
.faq-list { display: grid; gap: 12px; margin-top: 16px; }
details { border: 1px solid var(--lv-border); border-radius: 14px; padding: 16px 18px; background: #fff; }
summary { cursor: pointer; font-weight: 800; color: var(--lv-blue); display: flex; align-items: flex-start; gap: 10px; }
summary::before { content: '?'; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--lv-light); color: var(--lv-blue-2); font-weight: 900; margin-top: -2px; }
details p { color: var(--lv-muted); margin-bottom: 0; }
.cta { background: var(--lv-blue); color:#fff; border-radius: var(--lv-radius); padding: 30px; }
.cta h2 { margin-top:0; color:#fff; }
.cta p { color: rgba(255,255,255,.86); }
.trustindex-section { background: #fff; border-bottom: 1px solid var(--lv-border); padding: 22px 0; }
.trustindex-wrap { display: flex; justify-content: center; min-height: 70px; }
.footer { background:#0b2239; color:#dce8f2; padding: 0; margin-top: 56px; }
.footer a, .footer .obf-link, .footer button { color:#fff; cursor:pointer; }
.footer-main { padding: 44px 0 34px; }
.footer-grid { display:grid; grid-template-columns: 1.25fr 1fr 1fr 1.15fr; gap: 28px; align-items: start; }
.footer-brand img { width: min(250px, 100%); height: auto; object-fit: contain; background:#fff; border-radius: 12px; padding: 8px; }
.footer-links { display:grid; gap: 10px; }
.footer-contact { display: grid; gap: 12px; }
.footer-phone, .footer-mail { display:inline-flex; align-items:center; gap:8px; color:#fff; }
.footer-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.footer-phones { border-top: 1px solid rgba(255,255,255,.13); padding: 14px 0; }
.footer-phone-line { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap: 10px; color:#fff; }
.footer-phone-line span:not(.sep) { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.footer-phone-line img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; display:inline-block; }
.footer-phone-line .sep { opacity:.55; margin: 0 5px; }
.footer button { appearance:none; border:0; background:transparent; padding:0; cursor:pointer; font:inherit; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.18); padding: 16px 0; font-size: .9rem; }
.footer-bottom-inner { display:flex; align-items:center; justify-content: space-between; gap: 18px; flex-wrap:wrap; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background:#fff; border:1px solid var(--lv-border); box-shadow: var(--lv-shadow); border-radius: 18px; padding: 18px; max-width: 760px; margin: 0 auto; display:none; }
.cookie-actions { display:flex; gap: 10px; flex-wrap:wrap; margin-top: 12px; }
.cookie-options[hidden], #save-cookies[hidden] { display: none !important; }
.obf-link { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .hero-grid, .content-shell, .footer-grid { grid-template-columns: 1fr; } .sidebar { position: static; } .sidebar-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nav { display:none; } }
@media (max-width: 680px) { .quality-badges, .hub-directory-grid { grid-template-columns: 1fr; } .sidebar-badges { grid-template-columns: 1fr 1fr; } .header-inner { flex-wrap: wrap; padding: 10px 0; } .topbar-inner { justify-content:center; flex-wrap:wrap; padding:8px 0; } .header-actions { width:100%; justify-content:center; } .footer-phone-line { justify-content:flex-start; } }
@media (max-width: 480px) { .sidebar-badges { grid-template-columns: 1fr; } .topbar .obf-inline { display:none; } }


/* v22 structural fixes */
.topbar .topbar-wa { display: none !important; }
.sidebar-badge.brand-side { align-items: center; justify-content: center; text-align: center; }
.sidebar-badge.brand-side img { margin-left: auto; margin-right: auto; width: 110px; max-width: 100%; }
.sidebar-badge, .sidebar-badge:hover { text-decoration: none !important; }
.hub-directory-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.hub-card { display:grid; grid-template-columns: 42px 1fr; gap: 12px; align-items:center; background: var(--lv-light); border:1px solid var(--lv-border); border-radius: 16px; padding: 16px; color: var(--lv-blue); text-decoration:none !important; min-height: 78px; }
.hub-card:hover { background:#fff; box-shadow: var(--lv-shadow); transform: translateY(-2px); text-decoration:none !important; }
.hub-card-title { font-weight: 850; line-height: 1.25; }
.context-list li a { font-weight: 850; }
.context-list li span { color: var(--lv-muted); }
.whatsapp-simple { background:#25d366 !important; border-color:#25d366 !important; color:#fff !important; }
.whatsapp-simple:hover { background:#1fb85a !important; color:#fff !important; }
.quote-btn { text-align:center; }
.footer-phone-line { gap: 12px; }
.footer-phone-line .sep { margin: 0 10px; opacity:.55; }
.footer-phone-line span:not(.sep) { gap: 9px; }
.footer-phone-line img { margin-right: 3px; }
@media (max-width: 680px) {
  .quote-btn { width: min(100%, 260px); text-align:center; }
  .header-actions { justify-content:center; text-align:center; }
  .footer-brand { display:none !important; }
  .hub-directory-grid { grid-template-columns: 1fr; }
}

/* v26 mobile header, hero, footer and tracking-consent refinements */
.menu-toggle { display:none; align-items:center; justify-content:center; min-height:40px; padding:9px 16px; border:1px solid var(--lv-border); border-radius:999px; background:var(--lv-light); color:var(--lv-blue); font-weight:850; cursor:pointer; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-actions { grid-column: 1; grid-row: 2; }
.hero .quality-badges { grid-column: 1; grid-row: 3; }
.hero-card { grid-column: 2; grid-row: 1 / span 3; }
.cookie-options label { display:block; margin-top:8px; color:var(--lv-ink); }
.cookie-options label span { display:block; color:var(--lv-muted); font-size:.9rem; margin-left:24px; }

@media (max-width: 980px) {
  .menu-toggle { display:inline-flex; }
  .nav { display:none; }
  .nav.is-open { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:8px; width:100%; }
  .nav.is-open a { background:var(--lv-light); text-align:center; }
  .hero-grid { grid-template-columns: 1fr; gap:22px; align-items:start; }
  .hero-copy { grid-column:1; grid-row:1; }
  .hero-card { grid-column:1; grid-row:2; width:100%; }
  .hero-actions { grid-column:1; grid-row:3; }
  .hero .quality-badges { grid-column:1; grid-row:4; }
}

@media (max-width: 680px) {
  .topbar-inner { justify-content:center; gap:10px 14px; text-align:center; }
  .topbar .obf-inline { display:inline-flex !important; }
  .header-inner { display:grid; grid-template-columns: 1fr auto; align-items:center; gap:12px; padding:10px 0; }
  .brand { grid-column:2; grid-row:1; justify-self:end; }
  .brand img { height:52px; max-width:190px; }
  .menu-toggle { grid-column:1; grid-row:1; justify-self:start; }
  .nav { grid-column:1 / -1; grid-row:2; }
  .nav.is-open { grid-template-columns:1fr; }
  .header-actions { grid-column:1 / -1; grid-row:3; width:100%; justify-content:center; text-align:center; }
  .hero { padding:42px 0 38px; }
  .hero-card { margin-top:0; }
  .hero-actions { width:100%; justify-content:center; text-align:center; }
  .hero-actions .btn { width:min(100%, 270px); }
  .quality-badges { text-align:center; }
  .quality-badge { align-items:center; justify-content:center; text-align:center; min-height:128px; }
  .quality-icon { margin-left:auto; margin-right:auto; }
  .quality-badge-img img { align-self:center; margin-left:auto; margin-right:auto; }
  .footer-contact { justify-items:center; align-items:center; text-align:center; }
  .footer-phone, .footer-mail { justify-content:center; text-align:center; }
  .footer-actions { justify-content:center; text-align:center; width:100%; }
  .footer-phone-line { justify-content:center !important; text-align:center; }
  .footer-bottom-inner { justify-content:center; text-align:center; }
}

@media (max-width: 480px) {
  .topbar { font-size:.86rem; }
  .topbar-link { gap:5px; }
  .topbar .obf-inline { display:inline-flex !important; }
  .container { width:min(100% - 24px, 1180px); }
}

/* v27 schema and local office blocks */
.local-office-block { margin-top: 34px; border-top: 1px solid var(--lv-border); padding-top: 28px; }
.local-office-block h2 { margin-top: 0; color: var(--lv-blue); }
.local-office-block > p { color: var(--lv-muted); }
.local-office-card { background: var(--lv-light); border: 1px solid var(--lv-border); border-radius: 16px; padding: 18px; color: var(--lv-ink); }
.local-office-card address { font-style: normal; line-height: 1.7; color: #334e62; }
.local-office-card p { margin: .75rem 0 0; color: #334e62; }
.local-office-card a { font-weight: 850; }

/* Catalan version additions */
.trustindex-placeholder { color: var(--lv-muted); text-align:center; }
.local-office-rating { font-weight: 800; }
.footer-phone-line img[alt="Catalunya"] { image-rendering: auto; }
