/* =========================================================
   AM Serveis Digitals — styles (mobile-first)
   ========================================================= */
:root {
  --primary: #0056C4;
  --primary-600: #004aa9;
  --primary-050: #eef4fd;
  --dark: #1D2834;
  --dark-800: #151d26;
  --white: #FFFFFF;
  --accent: #FF7A00;
  --accent-600: #e56d00;
  --text: #1D2834;
  --muted: #55606d;
  --line: #e3e8ef;
  --soft: #f5f8fc;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', 'Inter', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(29, 40, 52, .06), 0 2px 8px rgba(29, 40, 52, .05);
  --shadow: 0 10px 30px -12px rgba(29, 40, 52, .22);
  --shadow-accent: 0 10px 24px -8px rgba(255, 122, 0, .55);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--dark); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

section[id] { scroll-margin-top: var(--header-h); }

.container { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--dark); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-lg .icon { width: 1.35em; height: 1.35em; }

.btn-accent { background: var(--accent); color: var(--white); box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-600); box-shadow: 0 14px 28px -8px rgba(255, 122, 0, .65); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-600); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-outline { background: transparent; color: var(--dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--dark); }

.link-btn {
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: none; text-align: left;
}
.link-btn:hover { text-decoration: underline; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(29,40,52,.35); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; height: 100%; }
.brand img { display: block; height: 46px; width: auto; max-height: calc(var(--header-h) - 16px); object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-cta { display: none; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
}
.lang-btn {
  border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .78rem; letter-spacing: .04em;
  padding: .38rem .6rem; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s;
}
.lang-btn[aria-pressed="true"] { background: var(--primary); color: var(--white); }

.menu-toggle {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border: 0; background: transparent; cursor: pointer; border-radius: 10px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed; inset: var(--header-h) 0 0; background: var(--white);
  padding: 1.5rem 1.25rem 2rem; display: flex; flex-direction: column; gap: 1.5rem;
  transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.main-nav.is-open { transform: none; visibility: visible; }
.main-nav ul { display: flex; flex-direction: column; }
.main-nav a:not(.btn) {
  display: block; padding: 1rem .25rem; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--dark); text-decoration: none; border-bottom: 1px solid var(--line);
}
.main-nav a[aria-current="true"] { color: var(--primary); }
.nav-cta-mobile { align-self: stretch; }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
  .brand img { height: 52px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .brand img { height: 58px; }
  .menu-toggle, .nav-cta-mobile { display: none; }
  .main-nav {
    position: static; transform: none; visibility: visible; background: none; padding: 0; overflow: visible;
    flex-direction: row; align-items: center; margin-left: auto;
  }
  .main-nav ul { flex-direction: row; gap: .25rem; }
  .main-nav a:not(.btn) {
    position: relative; padding: .5rem .8rem; font-family: var(--font-body); font-weight: 600; font-size: .95rem; border: 0;
    color: var(--dark); transition: color .2s;
  }
  .main-nav a:not(.btn)::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: var(--primary);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .main-nav a:not(.btn):hover, .main-nav a[aria-current="true"] { color: var(--primary); }
  .main-nav a:not(.btn):hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }
  .header-actions { gap: .9rem; }
}

/* ---------------- Typography helpers ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: #7fb2ff; }

.section { padding: 4.5rem 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: rgba(255,255,255,.82); }
.section-dark h2 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
.section-lead { font-size: 1.075rem; color: var(--muted); }
.section-dark .section-lead { color: rgba(255,255,255,.75); }
.section-cta { margin-top: 2.75rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.cta-note { margin: 0; font-weight: 600; color: var(--dark); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--dark); color: rgba(255,255,255,.85);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(0,86,196,.65) 0%, rgba(0,86,196,0) 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(0,86,196,.35) 0%, rgba(0,86,196,0) 70%),
    linear-gradient(160deg, #1D2834 0%, #18222d 60%, #0f1720 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
}
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero .eyebrow { color: #7fb2ff; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.4rem + 4.2vw, 4rem); font-weight: 800; margin-bottom: 1.1rem; }
.hero .hl {
  background: linear-gradient(90deg, #5aa0ff, #a8cbff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); max-width: 560px; color: rgba(255,255,255,.78); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-direction: column; gap: .85rem; }
.hero-ctas .btn { width: 100%; }
.hero-trust { margin-top: 2rem; display: grid; gap: .6rem; font-size: .95rem; }
.hero-trust li { display: flex; align-items: center; gap: .55rem; }
.hero-trust .icon { color: var(--accent); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.nfc-card {
  width: min(100%, 360px); aspect-ratio: 1.586; padding: 1.4rem 1.5rem; border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #eef4fd 100%); color: var(--dark);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.4) inset;
  transform: rotate(-6deg); display: flex; flex-direction: column; justify-content: space-between;
  animation: floaty 6s ease-in-out infinite;
}
.nfc-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.nfc-waves { width: 46px; height: 46px; color: var(--primary); }
.nfc-qr { width: 52px; height: 52px; color: var(--dark); }
.nfc-card-label { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; }
.nfc-stars { color: #FFC107; font-size: 1.5rem; letter-spacing: .12em; line-height: 1; }
.nfc-card-hint { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 500; }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--white);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .85rem; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
}
.float-chip strong { font-size: 1rem; }
.chip-1 { top: 4%; right: 2%; animation: floaty 7s ease-in-out infinite reverse; }
.chip-2 { bottom: 4%; left: 0; animation: floaty 8s ease-in-out infinite; }
.chip-2 .icon { color: #5aff9b; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-ctas .btn { width: auto; }
  .hero-trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.25rem; }
}
@media (min-width: 960px) {
  .hero { padding: calc(var(--header-h) + 5rem) 0 6rem; min-height: min(100vh, 860px); display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-visual { min-height: 420px; }
}

/* ---------------- Services ---------------- */
/* Centered grid: uniform card width/height; incomplete last rows are centered
   via a doubled track count (each card spans 2 tracks). */
.cards-grid {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr; grid-auto-rows: 1fr;
  justify-content: center; max-width: 1120px; margin: 0 auto;
}
.service-card {
  display: flex; flex-direction: column; height: 100%;
  position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--primary), #5aa0ff);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--primary-050); color: var(--primary); transition: background-color .3s, color .3s;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--primary); color: var(--white); }

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .cards-grid > * { grid-column: span 2; }
  .cards-grid > :last-child:nth-child(odd) { grid-column: 2 / span 2; }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
  .cards-grid > :last-child:nth-child(odd) { grid-column: span 2; }
  .cards-grid > :nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .cards-grid > :nth-child(3n+1):last-child { grid-column: 3 / span 2; }
}

/* ---------------- Coverage ---------------- */
.coverage-inner { display: grid; gap: 3rem; align-items: center; }
.zone-list { display: grid; gap: .75rem; margin-top: 1.75rem; }
.zone-list li {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background-color .25s, border-color .25s;
}
.zone-list li:hover { background: rgba(0,86,196,.18); border-color: rgba(90,160,255,.4); }
.zone-list strong { display: block; color: var(--white); font-family: var(--font-head); }
.zone-list span { font-size: .92rem; }
.zone-dot { width: 12px; height: 12px; margin-top: .4rem; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(0,86,196,.3); flex: none; }
.zone-dot-remote { background: transparent; border: 2px dashed #7fb2ff; box-shadow: none; }

.coverage-map svg { width: 100%; max-width: 480px; margin-inline: auto; overflow: visible; }
.map-outline { fill: none; stroke: #5aa0ff; stroke-width: 2; stroke-linejoin: round; opacity: .8; }
.map-link { fill: none; stroke: rgba(127,178,255,.5); stroke-width: 1.5; stroke-dasharray: 5 6; animation: dash 18s linear infinite; }
.pin-core { fill: var(--white); stroke: var(--primary); stroke-width: 3; }
.pin-pulse { fill: none; stroke: #7fb2ff; stroke-width: 2; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s var(--ease) infinite; }
.map-pin:nth-of-type(2) .pin-pulse { animation-delay: .6s; }
.map-pin:nth-of-type(3) .pin-pulse { animation-delay: 1.2s; }
.map-pin:nth-of-type(4) .pin-pulse { animation-delay: 1.8s; }
.map-label { fill: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 14px; text-anchor: middle; }

@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -220; } }

@media (min-width: 960px) {
  .coverage-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .zone-list { grid-template-columns: 1fr 1fr; }
  .zone-list li:last-child { grid-column: 1 / -1; }
}

/* ---------------- About ---------------- */
.about-inner { display: grid; gap: 3rem; align-items: center; }
.about-logo-card {
  padding: 2.25rem; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative;
}
.about-logo-card::after {
  content: ""; position: absolute; inset: auto -12px -12px auto; width: 60%; height: 60%; border-radius: 24px;
  background: var(--primary-050); z-index: -1;
}
.about-media { position: relative; isolation: isolate; }
.about-logo-card img { margin-inline: auto; width: 100%; max-width: 420px; height: auto; object-fit: contain; }
.stats { margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stats div { padding: 1rem .5rem; border-radius: var(--radius-sm); background: var(--soft); text-align: center; }
.stats dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stats dd { margin: .25rem 0 0; font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: clamp(.95rem, .85rem + .5vw, 1.2rem); }
.about-copy p { color: var(--muted); font-size: 1.04rem; }
.values { display: grid; gap: 1rem; margin-top: 1.75rem; }
.values li { display: flex; gap: .9rem; align-items: flex-start; }
.values .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--primary-050); color: var(--primary); }
.values strong { display: block; color: var(--dark); font-family: var(--font-head); }
.values span { color: var(--muted); font-size: .95rem; }

@media (min-width: 960px) {
  .about-inner { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
}

/* ---------------- Clients ---------------- */
.logo-marquee {
  overflow: hidden; padding: .5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.client-logo {
  display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.5rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--dark); font-family: var(--font-head); font-weight: 700; white-space: nowrap;
  filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s, transform .3s var(--ease);
}
.client-logo svg { width: 28px; height: 28px; color: var(--primary); }
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.logo-track .client-logo[aria-hidden="true"] { pointer-events: none; }

@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { mask-image: none; -webkit-mask-image: none; }
  .logo-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
  .logo-track .client-logo[aria-hidden="true"] { display: none; }
}

.benefits { display: grid; gap: 1rem; margin-top: 2.5rem; }
.benefit { display: flex; gap: .9rem; align-items: center; padding: 1.25rem 1.4rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.benefit .icon { width: 28px; height: 28px; color: var(--primary); }
.benefit p { margin: 0; color: var(--muted); }
.benefit strong { color: var(--dark); }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- FAQ ---------------- */
.faq-inner { max-width: 820px; }
.accordion { display: grid; gap: .85rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .25s, border-color .25s; }
.acc-item.is-open { border-color: rgba(0,86,196,.35); box-shadow: var(--shadow); }
.acc-item h3 { margin: 0; font-size: 1.05rem; }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left;
  padding: 1.2rem 1.35rem; background: none; border: 0; cursor: pointer; color: var(--dark);
  font-family: var(--font-head); font-weight: 700; font-size: inherit; line-height: 1.35; border-radius: var(--radius);
}
.acc-trigger:hover { color: var(--primary); }
.acc-icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--primary-050); transition: background-color .25s, transform .3s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .3s var(--ease), background-color .25s; }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon { background: var(--primary); transform: rotate(180deg); }
.acc-item.is-open .acc-icon::before, .acc-item.is-open .acc-icon::after { background: var(--white); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { padding: 0 1.35rem 1.25rem; animation: accIn .3s var(--ease); }
.acc-panel p { margin: 0; color: var(--muted); }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------- CTA band ---------------- */
.cta-band { padding: 0 0 4.5rem; }
.cta-band-inner {
  display: grid; gap: 1.75rem; padding: 2.5rem 1.75rem; border-radius: 24px;
  background: radial-gradient(80% 120% at 100% 0%, #2a73d8 0%, var(--primary) 45%, #00439a 100%);
  color: rgba(255,255,255,.88); box-shadow: 0 30px 60px -30px rgba(0,86,196,.7);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band .btn { justify-self: start; }
@media (min-width: 860px) {
  .cta-band-inner { grid-template-columns: 1fr auto; align-items: center; padding: 3.25rem 3.5rem; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 4rem 0 6rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-logo { display: inline-block; background: var(--white); padding: .6rem .9rem; border-radius: 12px; margin-bottom: 1rem; }
.footer-logo img { display: block; width: 150px; height: auto; object-fit: contain; }
.footer-brand p { max-width: 320px; }
.footer-title { color: var(--white); font-family: var(--font-head); font-size: 1rem; margin-bottom: 1rem; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.footer-contact .icon { color: var(--accent); }
.site-footer a, .site-footer .link-btn { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; word-break: break-word; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--white); text-decoration: underline; }
.footer-links li { margin-bottom: .6rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr .8fr .9fr; } .site-footer { padding-bottom: 3rem; } }

/* ---------------- Floating WhatsApp ---------------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--white); box-shadow: var(--shadow-accent);
  transition: transform .25s var(--ease), background-color .2s;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: waPulse 2.6s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); background: var(--accent-600); }
.wa-tooltip {
  position: absolute; right: calc(100% + .75rem); top: 50%; translate: 0 -50%;
  background: var(--dark); color: var(--white); padding: .45rem .8rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s;
}
.wa-float:hover .wa-tooltip, .wa-float:focus-visible .wa-tooltip { opacity: 1; translate: -4px -50%; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (min-width: 768px) { .wa-float { right: 1.75rem; bottom: 1.75rem; width: 64px; height: 64px; } }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 150;
  background: var(--white); color: var(--text); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(29,40,52,.45);
  opacity: 0; transform: translateY(20px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-inner { padding: 1.25rem; display: grid; gap: 1rem; }
.cookie-text h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.cookie-text p { margin: 0; font-size: .9rem; color: var(--muted); }
.cookie-prefs { margin-top: .9rem; display: grid; gap: .6rem; font-size: .9rem; }
.switch-row { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--primary); flex: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { flex: 1 1 auto; }
@media (min-width: 768px) {
  .cookie-banner { left: 1.5rem; right: auto; bottom: 1.5rem; max-width: 520px; }
  .cookie-inner { padding: 1.5rem; }
}

/* ---------------- Reveal animation ---------------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .cards-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js-reveal .cards-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js-reveal .cards-grid .reveal:nth-child(5) { transition-delay: .08s; }
.js-reveal .cards-grid .reveal:nth-child(6) { transition-delay: .16s; }

/* ---------------- Legal pages ---------------- */
html[lang="ca"] [data-lang="es"], html[lang="es"] [data-lang="ca"] { display: none; }
.legal { padding: calc(var(--header-h) + 3rem) 0 4rem; }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.legal li { margin-bottom: .35rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--dark); background: var(--soft); }
.legal-updated { font-size: .9rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; }
.back-link:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }
