/* ============================================================
   ARQTPC — Stylesheet Professional
   Arquitecte Tècnic PC · arqtpc.es
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-dark:  #0d1b2a;
  --navy:       #1e3a5f;
  --navy-mid:   #163152;
  --blue:       #2563eb;
  --gold:       #c9a84c;
  --gold-light: #e8c97e;
  --white:      #ffffff;
  --off-white:  #f8f9fa;
  --light:      #f0f4f8;
  --text:       #1a1f2e;
  --text-muted: #5a6478;
  --border:     rgba(30,58,95,0.12);
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-disp:  'Playfair Display', Georgia, serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 2px 12px rgba(13,27,42,0.08);
  --shadow-md:  0 8px 32px rgba(13,27,42,0.12);
  --shadow-lg:  0 24px 64px rgba(13,27,42,0.18);
  --radius:     14px;
  --radius-sm:  8px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section-sm { padding: 72px 0; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-disp); line-height: 1.2; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); }
.section-title { font-size: clamp(30px, 4.5vw, 52px); color: var(--navy-dark); margin-bottom: 18px; }
.section-subtitle { font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 580px; }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── HEADER / NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; background: var(--gold); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text { line-height: 1; }
.logo-text .brand { font-family: var(--font-disp); font-size: 21px; color: var(--white); font-weight: 700; }
.logo-text .tagline { font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 400; letter-spacing: 0.08em; margin-top: 2px; display: block; }
.nav-menu { display: flex; align-items: center; list-style: none; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-link {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8);
  padding: 8px 14px; border-radius: 6px; display: flex; align-items: center; gap: 4px;
  transition: color 0.2s, background 0.2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link .chevron { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.nav-menu li:hover .chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 290px; background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  padding: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  transform: translateX(-50%) translateY(6px);
}
.nav-menu li:hover .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 6px; font-size: 13px; color: rgba(255,255,255,0.75);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-dropdown a .dd-icon { width: 30px; height: 30px; border-radius: 6px; background: rgba(201,168,76,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-dropdown a .dd-icon svg { width: 14px; height: 14px; fill: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--navy-dark) !important; font-weight: 700 !important; border-radius: 8px !important; padding: 9px 20px !important; }
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: rgba(255,255,255,0.06); border-radius: 6px; border: none; z-index: 1001; position: relative; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; display: block; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  background: linear-gradient(160deg, #080f1c 0%, #0d1b2a 45%, #111e30 100%);
  overflow: hidden; padding: 120px 0 80px;
}
.hero-canvas { position: absolute; inset: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow1 {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 65%);
  top: -15%; right: -10%; pointer-events: none;
}
.hero-glow2 {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 65%);
  bottom: -5%; left: 5%; pointer-events: none;
}
.hero-orb {
  position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.05);
  animation: orb-float 8s ease-in-out infinite;
}
.hero-orb:nth-child(1) { width: 400px; height: 400px; top: 10%; right: 15%; animation-duration: 8s; }
.hero-orb:nth-child(2) { width: 250px; height: 250px; top: 50%; right: 8%; animation-duration: 11s; animation-delay: -3s; border-color: rgba(201,168,76,0.1); }
.hero-orb:nth-child(3) { width: 160px; height: 160px; bottom: 20%; right: 28%; animation-duration: 6s; animation-delay: -1.5s; }
@keyframes orb-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(6deg); }
  66% { transform: translateY(10px) rotate(-4deg); }
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-content {}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 100px; padding: 7px 18px; margin-bottom: 32px;
  font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pdot 2.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(.75)} }
.hero h1 { font-size: clamp(40px, 6vw, 72px); color: var(--white); margin-bottom: 24px; line-height: 1.08; }
.hero h1 .accent { color: var(--gold); display: block; }
.hero-desc { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 500px; line-height: 1.8; margin-bottom: 44px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Btn system */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 9px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.25s var(--ease); border: 2px solid transparent; font-family: var(--font-body); white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,168,76,0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.btn-dark { background: var(--navy-dark); color: var(--white); }
.btn-dark:hover { background: #1a2e4a; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(13,27,42,0.4); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn-link-quiet {
  background: transparent; color: rgba(255,255,255,0.6); border-color: transparent;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.2);
  padding: 14px 14px;
}
.btn-link-quiet:hover { color: var(--gold); text-decoration-color: var(--gold); transform: none; }

.btn-ask-assistant {
  position: relative; padding-right: 32px;
}
.btn-ask-assistant::after {
  content: ''; position: absolute; top: 50%; right: 14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(201,168,76,0.6);
  animation: chat-pulse 2.4s ease-out infinite;
}

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card-stack { position: relative; width: 100%; max-width: 420px; }
.hcard {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px 28px; backdrop-filter: blur(10px);
}
.hcard-main { position: relative; z-index: 3; }
.hcard-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 10px; }
.hcard-title { font-family: var(--font-disp); font-size: 22px; color: var(--white); margin-bottom: 8px; }
.hcard-subtitle { font-size: 13px; color: rgba(255,255,255,0.5); }
.hcard-services { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.hcard-service-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,0.04); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.hcard-service-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hcard-service-dot.gold { background: var(--gold); }
.hcard-service-dot.blue { background: #4f8ef7; }
.hcard-service-dot.green { background: #34d399; }
.hcard-service-text { font-size: 13px; color: rgba(255,255,255,0.75); flex: 1; }
.hcard-2 {
  position: absolute; bottom: -24px; right: -24px; width: 220px; z-index: 2;
  background: rgba(201,168,76,0.92); border-color: rgba(255,255,255,0.2); backdrop-filter: blur(20px);
  animation: card-float 5s ease-in-out infinite;
}
@keyframes card-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hcard-2 .hcard-label { color: rgba(13,27,42,0.7); }
.hcard-2 .hcard-big { font-family: var(--font-disp); font-size: 36px; font-weight: 700; color: var(--navy-dark); line-height: 1; }
.hcard-2 .hcard-desc { font-size: 12px; color: rgba(13,27,42,0.65); margin-top: 4px; }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; cursor: pointer; }
.hero-scroll span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); animation: sl 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes sl { 0%{opacity:0;transform:scaleY(0)} 50%{opacity:1;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(1) translateY(20px)} }

/* ── SERVICES GRID ── */
.services-section { background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  display: flex; flex-direction: column;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(5deg); box-shadow: 0 8px 24px rgba(30,58,95,0.3); }
.service-icon svg { width: 26px; height: 26px; fill: var(--white); }
.service-card h3 { font-size: 18px; color: var(--navy-dark); margin-bottom: 12px; line-height: 1.3; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.72; margin-bottom: 20px; flex: 1; }
.service-link { font-size: 13px; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.service-link svg { width: 13px; height: 13px; stroke: var(--gold); fill: none; stroke-width: 2.5; transition: transform 0.2s; }
.service-card:hover .service-link svg { transform: translateX(5px); }

/* ── ABOUT ── */
.about-section { background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-img-box {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--navy-dark) 0%, #1d3557 50%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.about-img-svg { width: 60%; opacity: 0.15; }
.about-img-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 28px;
  background: linear-gradient(to top, rgba(13,27,42,0.8) 0%, transparent 60%);
}
.about-img-caption { color: rgba(255,255,255,0.8); font-size: 13px; font-style: italic; }
.about-badge-wrap { position: absolute; bottom: -24px; right: -24px; }
.about-badge {
  background: var(--gold); color: var(--navy-dark); padding: 22px 26px; border-radius: var(--radius);
  font-family: var(--font-disp); text-align: center; box-shadow: var(--shadow-md); line-height: 1;
}
.about-badge-num { font-size: 52px; font-weight: 700; display: block; }
.about-badge-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; display: block; margin-top: 4px; }
.about-text {}
.about-text p { font-size: 15.5px; color: var(--text-muted); line-height: 1.82; margin-bottom: 18px; }
.about-features { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text); }
.check-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(201,168,76,0.12); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.check-icon svg { width: 10px; height: 10px; stroke: var(--gold); fill: none; stroke-width: 3; }

/* ── STATS ── */
.stats-section {
  background: linear-gradient(160deg, var(--navy-dark) 0%, #12263d 60%, #0a1520 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.stats-bg { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M32 0l32 32L32 64 0 32z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; z-index: 1; }
.stat-item { text-align: center; padding: 20px 30px; border-right: 1px solid rgba(255,255,255,0.07); }
.stat-item:last-child { border-right: none; }
.stat-icon { width: 48px; height: 48px; background: rgba(201,168,76,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.stat-icon svg { width: 22px; height: 22px; fill: var(--gold); }
.stat-number { font-family: var(--font-disp); font-size: clamp(40px,5vw,60px); color: var(--white); line-height: 1; margin-bottom: 8px; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-plus { color: var(--gold); font-size: 0.65em; margin-left: 2px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; font-weight: 500; }

/* ── WHY US ── */
.why-section { background: var(--light); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.why-card { padding: 34px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow 0.3s; }
.why-card:hover { box-shadow: var(--shadow-md); }
.why-num { font-family: var(--font-disp); font-size: 52px; color: rgba(201,168,76,0.18); line-height: 1; margin-bottom: 12px; }
.why-card h3 { font-size: 17px; color: var(--navy-dark); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-muted); line-height: 1.72; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(130deg, var(--gold) 0%, #a07830 55%, #8a6624 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; right: -80px; top: -80px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.cta-band::after { content: ''; position: absolute; left: 10%; bottom: -60px; width: 250px; height: 250px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 1; }
.cta-text h2 { font-size: clamp(24px,3.5vw,40px); color: var(--navy-dark); max-width: 500px; line-height: 1.2; }
.cta-text p { font-size: 16px; color: rgba(13,27,42,0.65); margin-top: 10px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ── CONTACT ── */
.contact-section { background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.contact-info h3 { font-size: 26px; color: var(--navy-dark); margin-bottom: 14px; }
.contact-info > p { font-size: 15px; color: var(--text-muted); line-height: 1.78; margin-bottom: 34px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.c-icon { width: 46px; height: 46px; border-radius: 11px; background: rgba(30,58,95,0.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon svg { width: 20px; height: 20px; fill: var(--navy); }
.c-text strong { display: block; font-size: 11px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; }
.c-text span { font-size: 15px; color: var(--text); }
.contact-form-box { background: var(--light); border-radius: var(--radius); padding: 40px; }
.contact-form-box h4 { font-size: 20px; color: var(--navy-dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(90,100,120,0.5); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(30,58,95,0.08); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-notice { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.form-success { display: none; padding: 14px 18px; background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.3); border-radius: var(--radius-sm); color: #15803d; font-size: 14px; font-weight: 500; text-align: center; margin-top: 16px; }
.form-error { display: none; padding: 14px 18px; background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); border-radius: var(--radius-sm); color: #b91c1c; font-size: 14px; margin-top: 16px; }

/* ── FOOTER ── */
.site-footer { background: var(--navy-dark); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-mark-sm { width: 36px; height: 36px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo .logo-mark-sm svg { width: 18px; height: 18px; }
.footer-logo-name { font-family: var(--font-disp); font-size: 18px; color: var(--white); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 260px; }
.footer-col h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-hr { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 28px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── SERVICE PAGE ── */
.page-hero {
  background: linear-gradient(160deg, #080f1c 0%, var(--navy-dark) 50%, #111e30 100%);
  padding: 140px 0 70px; position: relative; overflow: hidden;
}
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 60px 60px; }
.page-hero-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 65%); top: -15%; right: 0; pointer-events: none; }
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 22px; position: relative; z-index: 1; }
.breadcrumb-nav a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 5vw, 52px); position: relative; z-index: 1; }
.page-hero .lead { color: rgba(255,255,255,0.6); font-size: 17px; margin-top: 16px; max-width: 600px; line-height: 1.75; position: relative; z-index: 1; }
.service-page-body { padding: 80px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 52px; align-items: start; }
.content-body h2 { font-size: 26px; color: var(--navy-dark); margin-bottom: 14px; margin-top: 36px; }
.content-body h2:first-child { margin-top: 0; }
.content-body p { font-size: 15.5px; color: var(--text-muted); line-height: 1.82; margin-bottom: 16px; }
.content-body ul { list-style: none; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.content-body ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.content-body ul li::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; font-size: 14px; margin-top: 2px; }
.sidebar .sidebar-card { background: var(--off-white); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; border: 1px solid var(--border); }
.sidebar .sidebar-card h4 { font-size: 15px; color: var(--navy-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.tax-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--white); border-radius: var(--radius-sm); margin-bottom: 8px; border: 1px solid var(--border); }
.tax-code { font-weight: 700; font-size: 12px; color: var(--navy); min-width: 52px; flex-shrink: 0; }
.tax-name { font-size: 12px; color: var(--text-muted); }
.cta-sidebar {
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius); padding: 28px; color: var(--white);
}
.cta-sidebar h4 { font-size: 18px; margin-bottom: 10px; }
.cta-sidebar p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 20px; line-height: 1.65; }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,168,76,0.4); }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; } .d5 { transition-delay: 0.40s; } .d6 { transition-delay: 0.48s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { max-width: 680px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-badge-wrap { position: static; display: inline-block; margin-top: 24px; }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-menu {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,27,42,0.98); flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; z-index: 999; padding: 20px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: all; background: rgba(255,255,255,0.06); border: none; box-shadow: none; margin-top: 6px; transform: none !important; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 28px 20px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .why-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ══ LANGUAGE SWITCHER ══ */
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); padding: 4px 8px; border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: rgba(255,255,255,0.85); }
.lang-btn.active { color: var(--white); background: rgba(255,255,255,0.12); }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 12px; }
.lang-item-mobile { display: none; }
.lang-switch-mobile { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.lang-switch-mobile .lang-btn { font-size: 15px; padding: 8px 18px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: rgba(255,255,255,0.6); }
.lang-switch-mobile .lang-btn.active { color: var(--white); background: rgba(201,168,76,0.2); border-color: rgba(201,168,76,0.4); }

/* ══ NAV SUBMENU FIX ══ */
/* Canvi: el toggle és un <button>, no un <span> */
.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
}
/* Dropdown obertura per JS (classe .is-open) a més de :hover */
.has-dropdown:hover .nav-dropdown,
.has-dropdown.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
/* Chevron rotació quan obert */
.has-dropdown.is-open .chevron,
.has-dropdown:hover .chevron { transform: rotate(180deg); }

/* ══ MOBILE OVERRIDES ══ */
@media (max-width: 768px) {
  .nav-right .lang-switch { display: none; } /* mostrar dins el menú */
  .lang-item-mobile { display: block; }
  .nav-right { gap: 8px; }

  /* Dropdown dins menú mòbil */
  .has-dropdown .nav-dropdown {
    position: static; transform: none !important; opacity: 1; visibility: visible;
    pointer-events: all; background: rgba(255,255,255,0.06); border: none;
    box-shadow: none; padding: 4px; margin-top: 4px; min-width: 0;
    display: none; width: 100%; border-radius: 8px;
  }
  .has-dropdown.is-open .nav-dropdown { display: block; }
  .nav-dropdown a { font-size: 14px; }
  .nav-dropdown .dd-icon { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   FLYOUT SUB-MENU — Desktop: panel a la dreta de cada ítem
                     Mobile:  acordió desplegable
   ══════════════════════════════════════════════════════════════ */

/* ── Fila principal del servei (icona + text + botó) ── */
.dd-item { position: relative; }

.dd-row {
  display: flex; align-items: center;
  border-radius: 6px;
  transition: background 0.15s;
}
.dd-row:hover { background: rgba(255,255,255,0.05); }

.dd-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 10px 11px 14px; flex: 1;
  font-size: 13px; color: rgba(255,255,255,0.78);
  border-radius: 6px 0 0 6px; transition: color 0.15s;
  text-decoration: none;
}
.dd-link:hover { color: var(--white); }
.dd-label { flex: 1; }

/* Botó de la fletxa (mòbil: expandir; desktop: indicador) */
.sub-toggle {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 100%; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); border-radius: 0 6px 6px 0;
  transition: color 0.2s, background 0.2s; flex-shrink: 0;
}
.sub-toggle svg { width: 10px; height: 10px; transition: transform 0.25s; }
.sub-toggle:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

/* ── Submenú flyout (desktop) ── */
.nav-submenu {
  position: absolute;
  left: calc(100% + 8px);   /* apareix a la dreta */
  top: 0;
  min-width: 270px;
  background: #0e1f33;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  padding: 8px;
  list-style: none;
  box-shadow: 8px 0 40px rgba(0,0,0,0.5);

  /* Invisible per defecte */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.22s var(--ease),
              visibility 0.22s,
              transform 0.22s var(--ease);
  z-index: 1100;
}

/* Mostrar en hover del dd-item (desktop) */
.dd-item:hover > .nav-submenu,
.dd-item.sub-open > .nav-submenu {
  opacity: 1; visibility: visible;
  pointer-events: all; transform: translateX(0);
}

/* Rotar fletxa quan obert */
.dd-item:hover .sub-toggle svg,
.dd-item.sub-open .sub-toggle svg { color: var(--gold); }

/* Ítems dins el submenú */
.sub-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 5px;
  font-size: 12.5px; color: rgba(255,255,255,0.68);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sub-link:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.sub-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0.6; flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.sub-link:hover .sub-dot { opacity: 1; transform: scale(1.3); }

/* "Veure tot el servei" footer link */
.sub-all a {
  display: block; padding: 8px 14px 6px;
  font-size: 11.5px; font-weight: 600; color: var(--gold);
  opacity: 0.8; letter-spacing: 0.04em;
  border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.sub-all a:hover { opacity: 1; }

/* ── Connector invisible per no perdre el hover al moure el ratolí ── */
.dd-item::after {
  content: '';
  position: absolute;
  right: -8px; top: 0;
  width: 8px; height: 100%;
  background: transparent;
}

/* ══ MOBILE: acordió ══ */
@media (max-width: 768px) {
  .nav-submenu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important; visibility: visible !important;
    pointer-events: all !important;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    border: none; border-radius: 8px;
    margin: 4px 0 6px 0; padding: 4px;
    display: none;  /* ocult fins que s'expandeix */
  }
  .dd-item.sub-open > .nav-submenu { display: block; }

  /* En mòbil la fletxa apunta avall quan tancat, amunt quan obert */
  .sub-toggle svg { transform: rotate(90deg); } /* avall */
  .dd-item.sub-open .sub-toggle svg { transform: rotate(-90deg); } /* amunt */

  .dd-link { font-size: 15px; padding: 12px 10px; }
  .sub-link { font-size: 14px; padding: 10px 14px; }
  .sub-toggle { width: 44px; min-height: 48px; }
  .dd-item::after { display: none; }
  .sub-all a { font-size: 13px; padding: 10px 14px 8px; }
}

/* ══════════════════════════════════════════════════════════════
   SERVICE PAGE — Sections desenvolupades
   ══════════════════════════════════════════════════════════════ */

/* Quick navigation tabs */
.quick-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 48px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.quick-nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: var(--off-white); border: 1px solid var(--border);
  transition: all 0.2s var(--ease); text-decoration: none;
}
.quick-nav-item:hover, .quick-nav-item.active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.quick-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* Section blocks */
.section-block {
  scroll-margin-top: 100px;
  margin-bottom: 64px; padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.section-block:last-child { border-bottom: none; margin-bottom: 0; }

.section-block-header {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
}
.section-block-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1d3557 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(30,58,95,0.25);
}
.section-block-icon svg { width: 24px; height: 24px; stroke: white; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.section-block-header h2 { font-size: 22px; color: var(--navy-dark); margin: 0; padding: 0; margin-top: 4px; }
.section-block-header .section-number { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 4px; }

/* Two-col layout inside a section */
.section-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
.section-cols ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.section-cols ul li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--text-muted); }
.section-cols ul li::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; font-size: 13px; margin-top: 2px; }
@media(max-width:640px){ .section-cols { grid-template-columns: 1fr; } }

/* Info box highlight */
.info-box {
  background: rgba(30,58,95,0.05); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 20px 0; font-size: 14.5px;
  color: var(--text-muted); line-height: 1.72;
}
.info-box strong { color: var(--navy-dark); }

/* Chip row (tax codes, terminis, etc.) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: rgba(30,58,95,0.08); color: var(--navy); border: 1px solid var(--border);
}
.chip.gold { background: rgba(201,168,76,0.12); color: #a07830; border-color: rgba(201,168,76,0.3); }
.chip.green { background: rgba(22,163,74,0.08); color: #15803d; border-color: rgba(22,163,74,0.25); }

/* Stat row (destacats numèrics) */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0; }
.stat-mini { text-align: center; padding: 20px 14px; background: var(--off-white); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.stat-mini-num { font-family: var(--font-disp); font-size: 32px; color: var(--navy-dark); line-height: 1; margin-bottom: 4px; }
.stat-mini-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
@media(max-width:480px){ .stat-row{grid-template-columns:1fr 1fr;} }

/* Process steps */
.process-steps { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.process-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: none; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: white; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-body h4 { font-size: 15px; color: var(--navy-dark); margin-bottom: 4px; }
.step-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }


/* ══════════════════════════════════════════════════════════════════════
   v2 — Additive layer: a11y, ERP button, back-to-top, legal pages,
   cookie table, container width helpers, hero badge polish, focus rings.
   No changes to tokens / palette.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute; top: -100px; left: 12px;
  background: var(--gold); color: var(--navy-dark);
  padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 700; z-index: 2000;
  transition: top 0.2s var(--ease);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--white); outline-offset: 2px; }

/* ── Focus rings consistents ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .nav-link:focus-visible, .lang-btn:focus-visible,
.service-link:focus-visible, .quick-nav-item:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ── <main> wrapper ── */
#main-content { outline: none; }

/* ── Container narrow (per pàgines legals / text llarg) ── */
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

/* ── Back to top floating button ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-dark); color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(13,27,42,0.32);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.92);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s, background 0.2s;
  z-index: 900;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(0) scale(1); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
@media (max-width: 768px) {
  .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}

/* ── Botó d'Accés ERP (desktop · ocult fins activar feature flag) ── */
.nav-erp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(201,168,76,0.32);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.nav-erp svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-erp:hover {
  background: rgba(201,168,76,0.18); border-color: var(--gold);
  color: var(--white); transform: translateY(-1px);
}
.nav-erp .nav-erp-label { line-height: 1; }
.nav-erp-mobile {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; background: rgba(201,168,76,0.14);
  border: 1px solid rgba(201,168,76,0.4); border-radius: 10px;
  padding: 12px 18px !important; color: var(--white) !important;
}
.nav-erp-mobile svg { width: 18px; height: 18px; }
@media (min-width: 769px) { .erp-item-mobile { display: none !important; } }
@media (max-width: 1024px) { .nav-erp .nav-erp-label { display: none; } .nav-erp { padding: 8px 10px; } }
@media (max-width: 768px)  { .nav-right .nav-erp { display: none; } }

/* ── Legal pages typography ── */
.legal-page .content-body h2 {
  font-size: 22px; color: var(--navy-dark); margin-top: 38px; margin-bottom: 12px;
}
.legal-page .content-body h2:first-child { margin-top: 0; }
.legal-page .content-body p { font-size: 15.5px; color: var(--text); line-height: 1.78; margin-bottom: 14px; }
.legal-page .content-body ul { margin: 12px 0 20px; }
.legal-page .content-body ul li { font-size: 15px; color: var(--text); }
.legal-page .content-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.15s; }
.legal-page .content-body a:hover { color: var(--gold); }
.legal-updated {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); font-style: italic;
}

/* ── Cookie table ── */
.cookie-table-wrap { overflow-x: auto; margin: 16px 0 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cookie-table thead { background: var(--navy-dark); color: var(--white); }
.cookie-table th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cookie-table td { padding: 14px; border-top: 1px solid var(--border); vertical-align: top; color: var(--text); }
.cookie-table tbody tr:nth-child(even) { background: var(--off-white); }
.cookie-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(30,58,95,0.06); padding: 2px 8px; border-radius: 5px;
  font-size: 13px; color: var(--navy);
}

/* ── Hero badge polish (sense canvi de paleta) ── */
.hero-badge { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ── Service link arrow polish ── */
.service-link { transition: color 0.2s; }
.service-link:hover { color: var(--navy); }
.service-link:hover svg { stroke: var(--navy); }

/* ── Image / Logo accent: small interactive bounce on logo hover ── */
.site-logo:hover .logo-mark { transform: rotate(-3deg) scale(1.04); transition: transform 0.3s var(--ease); }
.logo-mark { transition: transform 0.3s var(--ease); }

/* ── Form: estats de validació subtle ── */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
  border-color: rgba(220,38,38,0.45);
}
.form-group input:user-valid,
.form-group textarea:user-valid {
  border-color: rgba(22,163,74,0.35);
}

/* ── Print-friendly per pàgines legals ── */
@media print {
  .site-header, .site-footer, .back-to-top, .skip-link, .nav-erp,
  .page-hero-grid, .page-hero-glow, .breadcrumb-nav { display: none !important; }
  .page-hero { padding: 24px 0; background: none; color: var(--navy-dark); }
  .page-hero h1, .page-hero .lead { color: var(--navy-dark); }
  body { background: white; }
  .legal-page .content-body p, .legal-page .content-body li { font-size: 11pt; line-height: 1.55; }
}

/* ── Reduced-motion: respect user preferences ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-orb, .pulse-dot, .hcard-2, .scroll-line { animation: none !important; }
}

/* ── Mobile: tighten section-block headers ── */
@media (max-width: 640px) {
  .section-block-header { flex-direction: column; gap: 12px; }
  .section-block-icon { width: 44px; height: 44px; }
  .section-block-icon svg { width: 20px; height: 20px; }
  .section-block-header h2 { font-size: 19px; margin-top: 0; }
  .quick-nav { gap: 6px; margin-bottom: 32px; }
  .quick-nav-item { padding: 6px 12px; font-size: 12px; }
  .container, .container-narrow { padding: 0 18px; }
  .page-hero { padding: 120px 0 56px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero .lead { font-size: 15px; }
}


/* ══════════════════════════════════════════════════════════════════════
   v3 — Mobile polish: scrollable menu, no iOS zoom, tighter spacings,
   improved touch targets, small-phone (<420px) tweaks, sticky-aware skip-link.
   No changes to tokens / palette.
   ══════════════════════════════════════════════════════════════════════ */

/* iOS NO zoom en focus dels inputs (mínim 16px) */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }
}

/* ── Mobile nav overlay: top-aligned, scrollable, mai centrat ── */
@media (max-width: 768px) {
  .nav-menu {
    /* override del bloc anterior — top-aligned + scroll */
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 84px 22px 32px !important;     /* deixa l'header sticky lliure */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > .nav-link,
  .nav-menu > li > .nav-dropdown-toggle {
    width: 100%; justify-content: space-between;
    padding: 14px 16px; font-size: 16px;
    border-radius: 10px; min-height: 48px;
  }
  .nav-menu .nav-cta { text-align: center; margin-top: 8px; }
  /* Touch targets generous */
  .nav-dropdown a, .sub-link, .dd-link { min-height: 44px; }
  /* Dropdown items dins el menú mòbil */
  .has-dropdown .nav-dropdown { padding: 6px !important; }
  .dd-row { gap: 0; }
  .dd-link { padding: 14px 12px !important; font-size: 15px !important; }
  .sub-toggle { min-height: 48px !important; width: 48px !important; }
  /* Mobile lang switcher tighter */
  .lang-switch-mobile { justify-content: center; margin-top: 14px !important; }
  /* Skip link no s'amaga sota el menú obert */
  .nav-menu.is-open ~ .skip-link { display: none; }
}

/* ── Hero compacte mòbil ── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 100px 0 56px; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); line-height: 1.12; margin-bottom: 18px; }
  .hero-desc { font-size: 15.5px; line-height: 1.7; margin-bottom: 32px; }
  .hero-badge { font-size: 10px; padding: 6px 14px; margin-bottom: 22px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 50px; }
  .hero-scroll { display: none; }   /* no pinta a mòbil — el hint és innecessari */
  .hero-glow1, .hero-glow2 { width: 360px; height: 360px; }
  .hero-orb { opacity: 0.5; }
}
@media (max-width: 420px) {
  .hero { padding: 92px 0 44px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 14.5px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
}

/* ── Section spacing global mòbil ── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(26px, 6.5vw, 36px); }
  .section-subtitle { font-size: 15.5px; }
}

/* ── Service cards mòbil ── */
@media (max-width: 768px) {
  .services-grid { gap: 16px; margin-top: 36px; }
  .service-card { padding: 26px 22px; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 14.5px; }
  .service-icon { width: 50px; height: 50px; margin-bottom: 16px; }
}

/* ── Stats mòbil + petit ── */
@media (max-width: 768px) {
  .stats-section { padding: 56px 0; }
  .stat-item { padding: 22px 14px; }
  .stat-icon { margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item, .stat-item:nth-child(odd) { border-right: none !important; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.07); padding: 22px 0; }
  .stat-item:last-child { border-bottom: none; }
  .stat-number { font-size: 42px; }
}

/* ── About / Why · mòbil ── */
@media (max-width: 768px) {
  .about-text p { font-size: 15px; }
  .about-img-svg { width: 70%; }
  .why-section .why-num { font-size: 42px; }
  .why-card { padding: 28px 22px; }
}

/* ── CTA band · mòbil ── */
@media (max-width: 768px) {
  .cta-band { padding: 56px 0; }
  .cta-inner { gap: 24px; }
  .cta-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 50px; }
}
@media (max-width: 420px) {
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
}

/* ── Contacte secció mòbil ── */
@media (max-width: 768px) {
  .contact-inner { gap: 36px; }
  .contact-form-box { padding: 26px 22px; border-radius: 14px; }
  .contact-info h3 { font-size: 22px; }
  .contact-info > p { font-size: 14.5px; }
  .form-row { gap: 12px; }
  .form-group { margin-bottom: 14px; }
  .form-group input,
  .form-group textarea,
  .form-group select { padding: 14px 14px; }     /* 16px font ja venia de la regla anterior */
  .form-submit { min-height: 52px; }
}

/* ── Page-hero (subpàgines) mòbil ── */
@media (max-width: 768px) {
  .page-hero { padding: 110px 0 48px; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .breadcrumb-nav { margin-bottom: 16px; flex-wrap: wrap; gap: 6px; font-size: 12px; }
}

/* ── Service page sidebar mòbil ── */
@media (max-width: 900px) {
  .service-page-body { padding: 56px 0; }
  .sidebar { margin-top: 36px; }
  .sidebar .sidebar-card { padding: 22px; }
}

/* ── Footer mòbil ── */
@media (max-width: 768px) {
  .site-footer { padding: 56px 0 28px; }
  .footer-top { margin-bottom: 36px; gap: 32px !important; }
  .footer-col h5 { margin-bottom: 14px; }
  .footer-col ul { gap: 10px; }
  .footer-col ul li a { font-size: 15px; padding: 4px 0; }   /* touch target més generós */
  .footer-legal { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .footer-legal a { font-size: 13px; padding: 6px 4px; }
}

/* ── Botons globals mòbil — assegurar touch targets ── */
@media (max-width: 768px) {
  .btn { min-height: 46px; padding: 13px 22px; }
  .btn-full { min-height: 50px; }
}

/* ── Header sticky mòbil — espai per al hamburger ── */
@media (max-width: 768px) {
  .site-header { padding: 16px 0; }
  .site-header.scrolled { padding: 10px 0; }
  .nav-toggle { width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }
}

/* ── Logo: encongir text en mòbil per evitar wrap ── */
@media (max-width: 420px) {
  .logo-text .brand { font-size: 18px; }
  .logo-text .tagline { font-size: 9px; }
  .logo-mark { width: 38px; height: 38px; }
}

/* ── Quan menú obert: hide overscroll del body + dim background ── */
@media (max-width: 768px) {
  body:has(.nav-menu.is-open) { overflow: hidden; }
}

/* ── Submenus dins el menú mòbil: més clars visualment ── */
@media (max-width: 768px) {
  .nav-submenu { background: rgba(255,255,255,0.04); padding: 6px !important; }
  .sub-link { padding: 12px 14px !important; }
}

/* ── Skip-link evita el header sticky ── */
.skip-link:focus { top: 76px; }
@media (max-width: 768px) { .skip-link:focus { top: 64px; } }


/* ══════════════════════════════════════════════════════════════════════
   v4 — Chat widget · FAQ pre-carregada · sense API · bilingüe
   No canvis a tokens / paleta. Tot additiu.
   ══════════════════════════════════════════════════════════════════════ */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Floating chat button (FAB) ───────────────────────── */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold) 0%, #b89a44 100%);
  color: var(--navy-dark); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(201,168,76,0.45), 0 4px 12px rgba(13,27,42,0.2);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.2s;
  z-index: 950;
}
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 40px rgba(201,168,76,0.55); }
.chat-fab.is-active { background: var(--navy-dark); color: var(--gold); }
.chat-fab.is-active:hover { background: var(--navy); }

/* Notification dot per cridar atenció en la primera càrrega */
.chat-fab-dot {
  position: absolute; top: 9px; right: 9px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ef4444; border: 2px solid var(--white);
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: chat-pulse 2.4s ease-out infinite;
}
.chat-fab.is-active .chat-fab-dot { display: none; }
@keyframes chat-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50%      { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}

/* Stack back-to-top sobre el chat-fab */
.back-to-top { bottom: 102px; right: 35px; }
@media (max-width: 768px) {
  .chat-fab { bottom: 18px; right: 18px; width: 54px; height: 54px; }
  .chat-fab svg { width: 23px; height: 23px; }
  .back-to-top { bottom: 84px; right: 24px; width: 40px; height: 40px; }
  .back-to-top svg { width: 16px; height: 16px; }
}

/* ── Chat panel ───────────────────────────────────────── */
.chat-panel {
  position: fixed; bottom: 100px; right: 28px;
  width: 380px; max-width: calc(100vw - 32px);
  height: 580px; max-height: calc(100vh - 140px);
  background: var(--white); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(13,27,42,0.28), 0 4px 12px rgba(13,27,42,0.08);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.97);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  z-index: 960;
  border: 1px solid rgba(13,27,42,0.08);
}
.chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.chat-panel[hidden] { display: none; }

@media (max-width: 768px) {
  .chat-panel {
    bottom: 82px; right: 16px; left: 16px;
    width: auto; height: calc(100vh - 110px);
    border-radius: 16px;
  }
}
@media (max-width: 420px) {
  .chat-panel {
    bottom: 78px; right: 8px; left: 8px;
    height: calc(100vh - 100px);
    border-radius: 14px;
  }
}

/* ── Chat header ──────────────────────────────────────── */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px 14px 18px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white); flex-shrink: 0;
  position: relative;
}
.chat-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: linear-gradient(90deg, var(--gold), transparent);
}
.chat-header-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-header-avatar svg { width: 20px; height: 20px; }
.chat-header-text { flex: 1; min-width: 0; line-height: 1.25; }
.chat-header-text strong { display: block; font-family: var(--font-disp); font-size: 16px; font-weight: 600; }
.chat-header-text span { display: block; font-size: 11.5px; color: rgba(255,255,255,0.6); margin-top: 1px; }
.chat-close {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.75);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s, color 0.15s;
}
.chat-close svg { width: 14px; height: 14px; }
.chat-close:hover { background: rgba(255,255,255,0.16); color: var(--white); }

/* ── Chat body (missatges) ───────────────────────────── */
.chat-body {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  background: var(--off-white);
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }

/* Bubbles */
.chat-bubble {
  max-width: 86%; padding: 11px 14px;
  font-size: 14px; line-height: 1.55;
  border-radius: 16px;
  animation: chat-in 0.28s var(--ease) both;
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-bubble-bot {
  background: var(--white); color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(13,27,42,0.04);
}
.chat-bubble-user {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-bubble a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.chat-bubble-user a { color: var(--gold-light); }
.chat-bubble a:hover { text-decoration: none; }

/* Thinking indicator */
.chat-thinking { display: flex; gap: 5px; padding: 14px 16px; align-items: center; }
.chat-thinking span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted); opacity: 0.45;
  animation: chat-think 1.2s ease-in-out infinite;
}
.chat-thinking span:nth-child(2) { animation-delay: 0.15s; }
.chat-thinking span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-think {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50%      { transform: translateY(-3px); opacity: 1; }
}

/* Suggestions / chips */
.chat-suggestions {
  display: flex; flex-direction: column; gap: 8px;
  padding: 6px 0 2px;
  animation: chat-in 0.32s var(--ease) both;
}
.chat-suggestions-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-left: 4px; margin-bottom: 2px;
}
.chat-chip {
  text-align: left; padding: 10px 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px; color: var(--navy-dark);
  line-height: 1.45;
  transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease);
}
.chat-chip:hover {
  background: rgba(201,168,76,0.08); border-color: var(--gold);
  transform: translateX(2px);
}
.chat-chip::before {
  content: '→ '; color: var(--gold); font-weight: 700;
}

/* ── Chat input ───────────────────────────────────────── */
.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 12px;
  background: var(--white);
  border-top: 2px solid var(--gold);
  flex-shrink: 0;
  position: relative;
}
.chat-input::before {
  /* faixa superior dorada per emfasitzar el camp d'entrada */
  content: ''; position: absolute; top: -2px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  animation: chat-input-shine 4s ease-in-out infinite;
}
@keyframes chat-input-shine {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 0%; }
}
.chat-input input {
  flex: 1; min-width: 0;
  padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 12px; font-family: var(--font-body);
  font-size: 14.5px; color: var(--text); background: var(--white);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  font-weight: 500;
}
.chat-input input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.18);
}
.chat-input input::placeholder { color: var(--text-muted); opacity: 0.9; font-weight: 400; }

.chat-send {
  width: 42px; height: 42px; border-radius: 12px; border: none;
  background: var(--gold); color: var(--navy-dark);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s, transform 0.15s;
}
.chat-send svg { width: 16px; height: 16px; }
.chat-send:hover { background: var(--gold-light); transform: translateX(1px); }

/* iOS NO zoom */
@media (max-width: 768px) {
  .chat-input input { font-size: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════
   v5 — RGPD: checkbox de consentiment + banner de cookies (informatiu)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Checkbox RGPD — natiu amb accent-color ──
   Aproximació SIMPLE: usar checkbox natiu del navegador estilitzat amb
   accent-color (suport universal des 2021). No més capes fake que poden
   bloquejar clic. Si accent-color no es suporta, sale check natiu.
*/
.form-rgpd { margin-top: 6px; }
.rgpd-check {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; user-select: none;
  font-size: 13.5px; line-height: 1.55; color: var(--text);
  padding: 4px 0;
}
.rgpd-check input[type="checkbox"] {
  /* Checkbox natiu visible, estilitzat amb accent-color */
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 20px; height: 20px;
  margin: 0; padding: 0;
  flex-shrink: 0;
  accent-color: #c9a84c;   /* gold del :root, hex literal per compatibilitat màxima */
  cursor: pointer;
  position: relative;       /* no absolute! */
  opacity: 1;               /* no oculto! */
  clip: auto;               /* sense clip */
}
.rgpd-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* El span rgpd-box anterior ja no s'usa */
.rgpd-box { display: none; }
.rgpd-text { flex: 1; }
.rgpd-text a {
  color: var(--navy); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--gold);
}
.rgpd-text a:hover { color: var(--gold); }


/* ── Banner de cookies (bottom-pinned, no bloca lectura) ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 970;
  background: var(--navy-dark); color: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 24px rgba(13,27,42,0.18);
  transform: translateY(110%);
  transition: transform 0.32s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 22px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.cookie-banner-text {
  flex: 1; min-width: 220px;
  font-size: 13.5px; line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin: 0;
}
.cookie-banner-actions {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.cookie-banner-link {
  font-size: 13px; color: rgba(255,255,255,0.65);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.cookie-banner-link:hover { color: var(--gold); }
.cookie-banner-btn {
  background: var(--gold); color: var(--navy-dark);
  border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 8px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.15s var(--ease);
  min-height: 40px;
}
.cookie-banner-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Botó de rebutjar: ha de ser tan visible i fàcil com el d'acceptar (criteri AEPD).
   Mateixa mida i mateixa posició; només canvia el color. */
.cookie-banner-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.cookie-banner-btn-ghost:hover { background: rgba(255,255,255,.12); }

@media (max-width: 640px) {
  .cookie-banner-inner { padding: 14px 16px; gap: 12px; }
  .cookie-banner-text { font-size: 12.5px; min-width: 100%; }
  .cookie-banner-actions { width: 100%; justify-content: space-between; }
  .cookie-banner-btn { padding: 10px 20px; }
}

/* Ajusta el chat-fab i back-to-top quan el banner és visible */
.cookie-banner.is-visible ~ .chat-fab { bottom: 110px; }
.cookie-banner.is-visible ~ .back-to-top { bottom: 184px; }
@media (max-width: 768px) {
  .cookie-banner.is-visible ~ .chat-fab { bottom: 130px; }
  .cookie-banner.is-visible ~ .back-to-top { bottom: 196px; }
}


/* ── Chat footer ──────────────────────────────────────── */
.chat-footer {
  padding: 8px 14px 10px;
  font-size: 10.5px; color: var(--text-muted);
  text-align: center; background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0; line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   v6 — Navegació prev/next entre serveis (millora UX i SEO crawling)
   ══════════════════════════════════════════════════════════════════════ */
.services-nav {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 48px 0;
  border-top: 1px solid rgba(201,168,76,0.18);
}
.services-nav-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px;
  align-items: stretch;
}
.services-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 26px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none; color: var(--white);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  min-width: 0;
}
.services-nav-item:hover {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.40);
  transform: translateY(-2px);
}
.services-nav-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.services-nav-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.services-nav-title {
  font-family: var(--font-disp); font-size: 18px; font-weight: 600;
  color: var(--white); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
}
.services-nav-prev .services-nav-label { justify-content: flex-start; }
.services-nav-next .services-nav-label { justify-content: flex-end; text-align: right; }
.services-nav-next .services-nav-title { text-align: right; }
.services-nav-all {
  align-items: center; justify-content: center;
  padding: 22px 30px;
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.30);
}
.services-nav-all .services-nav-label { color: var(--gold); }
.services-nav-all:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .services-nav { padding: 36px 0; }
  .services-nav-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .services-nav-item { padding: 16px 18px; }
  .services-nav-title { font-size: 14.5px; }
  .services-nav-all {
    grid-column: 1 / -1; order: -1;
    padding: 14px 18px;
  }
  .services-nav-all .services-nav-label { font-size: 10.5px; }
}

/* ── Follow-up conversacional (després de cada resposta) ── */
.chat-followup {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px; margin-top: 4px;
  background: rgba(201,168,76,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  animation: chat-in 0.32s var(--ease) both;
}
.chat-followup-text {
  font-size: 13px; color: var(--text); line-height: 1.55;
}
.chat-followup-text strong { color: var(--navy-dark); }
.chat-followup-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px;
}
.chat-chip-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--border);
  color: var(--navy-dark); font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-body);
  transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease);
}
.chat-chip-action::before { content: ''; }   /* sobreescriu la fletxa "→" del .chat-chip base */
.chat-chip-action svg { width: 12px; height: 12px; flex-shrink: 0; }
.chat-chip-action:hover {
  background: rgba(201,168,76,0.08); border-color: var(--gold);
  transform: translateY(-1px);
}
.chat-chip-contact { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.chat-chip-contact:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ── Full-text search results (segona capa) ──────────── */
.chat-results {
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 0; animation: chat-in 0.32s var(--ease) both;
}
.chat-result {
  display: block; text-decoration: none;
  padding: 12px 14px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--border);
  transition: background 0.18s, border-color 0.18s, transform 0.18s var(--ease);
}
.chat-result:hover {
  background: rgba(201,168,76,0.06); border-color: var(--gold);
  transform: translateX(2px);
}
.chat-result-title {
  font-family: var(--font-disp); font-size: 14.5px;
  color: var(--navy-dark); font-weight: 600; line-height: 1.3;
  margin-bottom: 4px;
}
.chat-result-snippet {
  font-size: 12.5px; color: var(--text-muted);
  line-height: 1.55; margin-bottom: 6px;
}
.chat-result-snippet mark {
  background: rgba(201,168,76,0.32); color: var(--navy-dark);
  padding: 0 2px; border-radius: 3px; font-weight: 600;
}
.chat-result-cta {
  font-size: 11.5px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ============================================================
   HUB DE GUIES  ·  /guias/
   ============================================================ */
.guides-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:24px;
  margin-top:28px;
}
.guide-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow-sm);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
  display:flex;
  flex-direction:column;
}
.guide-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.guide-card-meta{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:14px;
}
.guide-card-time{ font-size:13px; color:var(--text-muted); }
.guide-card-title{ font-size:20px; line-height:1.35; margin:0 0 10px; }
.guide-card-title a{ color:var(--navy-dark); text-decoration:none; }
.guide-card-title a:hover{ color:var(--blue); }
.guide-card-desc{ color:var(--text-muted); font-size:15px; flex:1; }
.guide-card-date{ font-size:13px; color:var(--text-muted); margin:14px 0 10px; }
.guide-card-link{
  font-weight:600; font-size:15px; color:var(--blue); text-decoration:none;
}
.guide-card-link:hover{ text-decoration:underline; }

/* Byline de guia */
.guide-byline{
  margin-top:18px; font-size:14px; color:rgba(255,255,255,0.75);
}
.page-hero .guide-byline strong{ color:var(--gold-light); }

/* Blocs FAQ dins de guies */
.faq-item + .faq-item{ border-top:1px solid var(--border); padding-top:6px; }

/* ============================================================
   FIX · targeta daurada del hero ("-30% estalvi fiscal")
   Estava per DARRERE de la targeta principal (z-index 2 < 3):
   el text quedava tapat i no es llegia. La posem al davant i
   la separem una mica. Mateixos colors, mida i animació.
   ============================================================ */
.hcard-2 {
  z-index: 4;
  right: -40px;
  bottom: -34px;
  box-shadow: 0 18px 44px rgba(13, 27, 42, 0.45);
}
@media (max-width: 980px) {
  .hcard-2 { right: -12px; bottom: -20px; }
}

/* ============================================================
   CAPTACIÓ · barra fixa inferior (només mòbil)
   ============================================================ */
.lead-bar { display: none; }
@media (max-width: 820px) {
  .lead-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; gap: 10px; padding: 10px 12px;
    background: rgba(13, 27, 42, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
  }
  .lead-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 10px; border-radius: 10px;
    font-size: 15px; font-weight: 700; text-decoration: none;
  }
  .lead-bar-call { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.16); }
  .lead-bar-call svg { width: 18px; height: 18px; }
  .lead-bar-wa   { background: #25D366; color: #0b2b1a; }
  .lead-bar-wa svg { width: 18px; height: 18px; }
  .lead-bar-cta  { background: var(--gold); color: var(--navy-dark); }
  /* deixa aire perquè la barra no tapi el peu ni el botó de tornar amunt */
  .site-footer { padding-bottom: 84px; }
  .back-to-top { bottom: 84px; }
  .chat-fab, #chatFab { bottom: 84px !important; }
}

/* ============================================================
   CAPTACIÓ · bloc de formulari al final de serveis i guies
   ============================================================ */
.lead-inline {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start;
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px;
}
.lead-inline h2 { font-size: 26px; }
.lead-inline-form .form-group { margin-bottom: 14px; }
.lead-inline-form input[type="text"],
.lead-inline-form input[type="email"],
.lead-inline-form input[type="tel"],
.lead-inline-form textarea { background: #fff; }
@media (max-width: 900px) {
  .lead-inline { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
