/* =========================================================
   XARXA BANYERENCA — LANDING PAGE
   Paleta i tipografies extretes del lloc original
   ========================================================= */

:root {
  --navy: #0B1F5C;
  --navy-dark: #081740;
  --navy-deep: #06112F;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #DBEAFE;
  --lime: #D7F56B;
  --ink: #0F172A;
  --slate: #475569;
  --muted: #64748B;
  --line: #E5EAF2;
  --bg: #F6F8FC;
  --white: #FFFFFF;
  --red: #DC2626;
  --amber: #EA580C;
  --green: #16A34A;

  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 92, .05);
  --shadow: 0 18px 50px rgba(11, 31, 92, .10);
  --shadow-lg: 0 40px 80px rgba(4, 13, 36, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -.035em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--lime); color: var(--navy); }

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 28px;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.footer-social a[aria-label^="Facebook"] .icon,
.nav-social.fb .icon,
.hero-social-btn.fb .icon { fill: currentColor; stroke: none; }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(215, 245, 107, .16);
  animation: pulse-dot 2.4s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(215, 245, 107, .16); }
  50% { box-shadow: 0 0 0 8px rgba(215, 245, 107, 0); }
}

/* =========================================================
   ETIQUETES I BOTONS
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-light);
  border: 1px solid #cfe0ff;
  padding: 8px 15px;
  border-radius: 100px;
}
.eyebrow .icon { width: 15px; height: 15px; }
.eyebrow-light {
  color: #EAF1FF;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover .icon { transform: translateX(4px); }

.btn-lime {
  background: var(--lime);
  color: var(--navy-deep);
  box-shadow: 0 12px 30px rgba(215, 245, 107, .22);
}
.btn-lime:hover { background: #e2ff85; box-shadow: 0 18px 38px rgba(215, 245, 107, .32); }

.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .04);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 92, .20);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-white { background: #fff; color: var(--navy); box-shadow: 0 14px 34px rgba(2, 10, 30, .22); }
.btn-white:hover { background: var(--lime); }

.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 14px;
  transition: gap .3s var(--ease), color .2s ease;
}
.text-link .icon { width: 17px; height: 17px; }
.text-link:hover { gap: 15px; color: var(--navy); }
.text-link.light { color: var(--lime); }
.text-link.light:hover { color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(6, 17, 47, .10); }

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  transition: height .35s var(--ease), opacity .3s ease;
  height: 42px;
}
.site-header.scrolled .topbar { height: 0; opacity: 0; }
.topbar-inner { display: flex; align-items: center; justify-content: center; height: 42px; }
.topbar .live-dot { width: 6px; height: 6px; }

.nav-wrap {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 31, 92, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.site-header.scrolled .nav-inner { height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.05em;
  color: var(--navy);
}
.brand-name span { font-weight: 500; }
.brand-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 5px;
}

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav > a:not(.nav-cta) {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  position: relative;
  transition: color .2s ease;
}
.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav > a:not(.nav-cta):hover { color: var(--navy); }
.main-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-social {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: transform .3s var(--ease), filter .25s ease, box-shadow .3s ease;
}
.nav-social .icon { width: 15px; height: 15px; }
.nav-social.fb { background: #1877F2; box-shadow: 0 4px 12px rgba(24,119,242,.28); }
.nav-social.ig { background: linear-gradient(135deg, #F9CE34, #EE2A7B 55%, #6228D7); box-shadow: 0 4px 12px rgba(238,42,123,.28); }
.nav-social:hover { transform: translateY(-3px); filter: brightness(1.12); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 19px;
  border-radius: 100px;
  transition: background .25s ease, transform .3s var(--ease);
}
.nav-cta .icon { width: 15px; height: 15px; }
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-2px); }
.mobile-cta { display: none; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  color: var(--navy);
  align-items: center;
  justify-content: center;
}
.menu-toggle .icon-close { display: none; }
.nav-open .menu-toggle .icon-open { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 12%, rgba(37, 99, 235, .42), transparent 62%),
    linear-gradient(145deg, #0B1F5C 0%, #081740 55%, #050E28 100%);
  color: #fff;
  padding: 104px 0 118px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-1 { width: 480px; height: 480px; background: rgba(37, 99, 235, .30); top: -160px; right: -80px; }
.hero-glow-2 { width: 380px; height: 380px; background: rgba(215, 245, 107, .09); bottom: -140px; left: -120px; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}
.hero-watermark {
  position: absolute;
  width: 560px;
  right: -140px;
  top: 60px;
  opacity: .035;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 70px;
  align-items: center;
}
.hero-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.hero-copy h1 {
  font-size: clamp(2.65rem, 4.7vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.048em;
  margin: 26px 0 22px;
  max-width: 660px;
}
.hero-copy h1 span { color: var(--lime); }
.hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .76);
  max-width: 570px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: var(--navy);
  border: 2px solid #0C1E54;
  margin-left: -9px;
  background: #C9DAFF;
}
.avatar-stack span:first-child { margin-left: 0; background: var(--lime); }
.avatar-stack span:nth-child(2) { background: #A9C6FF; }
.avatar-stack span:nth-child(3) { background: #E7ECFF; }
.avatar-stack span:nth-child(4) { background: #8FB3F5; }
.hero-trust p { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.hero-trust strong { font-weight: 700; }
.hero-trust small { color: rgba(255, 255, 255, .5); font-size: 11px; }

.hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.hero-social-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .48);
  margin-right: 4px;
}
.hero-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.hero-social-btn > .icon:first-child { width: 16px; height: 16px; }
.hero-social-btn .arrow { width: 13px; height: 13px; opacity: .6; transition: transform .3s var(--ease), opacity .3s ease; }
.hero-social-btn:hover { transform: translateY(-3px); }
.hero-social-btn:hover .arrow { transform: translate(2px, -2px); opacity: 1; }
.hero-social-btn.fb:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 10px 22px rgba(24, 119, 242, .32); }
.hero-social-btn.ig:hover { background: linear-gradient(135deg, #F9CE34, #EE2A7B 55%, #6228D7); border-color: transparent; box-shadow: 0 10px 22px rgba(238, 42, 123, .32); }

/* Dashboard mockup */
.hero-visual { position: relative; padding: 18px 6px 26px 10px; }
.dashboard {
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .8s var(--ease);
}
.hero-visual:hover .dashboard { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.dash-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.dash-title { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--navy); }
.dash-title .live-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); margin-right: 3px; }
.dash-live { font-size: 8px; letter-spacing: .1em; background: #DCFCE7; color: #15803D; padding: 3px 7px; border-radius: 100px; margin-left: 6px; }
.dash-dots { display: flex; gap: 5px; }
.dash-dots i { width: 6px; height: 6px; border-radius: 50%; background: #D8E0EC; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 17px 0; }
.dash-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dash-stats > div + div { border-left: 1px solid var(--line); }
.dash-stats strong { font-family: var(--font-display); font-size: 27px; line-height: 1; color: var(--navy); letter-spacing: -.05em; }
.dash-stats span { font-size: 10px; color: var(--muted); margin-top: 5px; }
.dash-report {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  background: #F7F9FD;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 9px;
  align-items: center;
}
.dash-report img { width: 116px; height: 88px; object-fit: cover; border-radius: 9px; }
.report-body .tag { margin-bottom: 7px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 100px;
}
.tag .icon { width: 11px; height: 11px; }
.tag-alert { background: #FEE2E2; color: #B91C1C; }
.tag-warn { background: #FFEDD5; color: #C2410C; }
.tag-done { background: #DCFCE7; color: #15803D; }
.report-body h3 { font-size: 13px; line-height: 1.3; color: var(--navy); letter-spacing: -.02em; }
.report-body p { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--muted); margin-top: 8px; }
.report-body p .icon { width: 11px; height: 11px; }

.dash-report { transition: opacity .28s ease, transform .28s ease; }
.dash-report.swapping { opacity: 0; transform: translateY(6px); }
.report-controls { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 0; }
.report-dots { display: flex; align-items: center; gap: 6px; }
.report-dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: #CBD5E1;
  transition: width .35s var(--ease), background .3s ease;
}
.report-dot.active { width: 22px; background: var(--blue); }
.report-counter { font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #94A3B8; }
.dash-map {
  position: relative;
  height: 132px;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,.7) 30px 34px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,.7) 42px 46px),
    #E8EEF7;
}
.dash-map .road { position: absolute; background: #fff; box-shadow: 0 0 0 1px #DCE5F1; }
.dash-map .r1 { left: 12%; top: 0; width: 12px; height: 100%; transform: rotate(9deg); }
.dash-map .r2 { left: 55%; top: 0; width: 9px; height: 100%; transform: rotate(-7deg); }
.dash-map .r3 { top: 34%; left: 0; width: 100%; height: 11px; transform: rotate(-4deg); }
.dash-map .r4 { top: 72%; left: 0; width: 100%; height: 8px; transform: rotate(3deg); }
.dash-map .park { position: absolute; left: 24%; top: 42%; width: 34%; height: 34%; border-radius: 30% 45% 35% 50%; background: #CBE7C4; opacity: .9; }
.dash-map .pin { position: absolute; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.dash-map .pin::after { content: ""; position: absolute; inset: 3px; background: #fff; border-radius: 50%; }
.dash-map .pin-1 { left: 36%; top: 48%; }
.dash-map .pin-2 { left: 68%; top: 26%; background: var(--amber); }
.dash-map .pin-3 { left: 74%; top: 76%; background: var(--green); }
.dash-map .pin-4 { left: 18%; top: 62%; }
.dash-map .pin-5 { left: 52%; top: 22%; background: var(--amber); }
.dash-map .pin { transition: width .3s var(--ease), height .3s var(--ease), box-shadow .3s ease, top .5s var(--ease), left .5s var(--ease); }
.dash-map .pin.active {
  width: 17px; height: 17px;
  z-index: 4;
  box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 0 0 6px rgba(37,99,235,.35), 0 3px 10px rgba(6,17,47,.3);
}
.dash-map .pin.active::after { inset: 5px; }
.map-label { position: absolute; left: 26%; top: 57%; font-size: 7px; font-weight: 800; letter-spacing: .06em; color: #4D7A4B; }
.float-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  color: var(--ink);
  padding: 11px 15px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 10, 30, .22);
  animation: float 6s ease-in-out infinite;
}
.float-badge strong { display: block; font-size: 11px; line-height: 1.25; color: var(--navy); }
.float-badge small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.badge-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue-dark); }
.badge-icon .icon { width: 17px; height: 17px; }
.float-badge-2 { right: -14px; bottom: 8%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  display: flex; justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.hero-scroll span { width: 3px; height: 7px; border-radius: 3px; background: rgba(255,255,255,.7); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 17px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee-track i { color: var(--blue); font-style: normal; font-size: 15px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECCIONS GENERALS
   ========================================================= */
.section { padding: 112px 0; }
.section-head { margin-bottom: 54px; }
.section-head.center { max-width: 710px; margin-inline: auto; text-align: center; }
.section-head h2, .stats-intro h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin: 20px 0 16px;
  color: var(--navy);
}
.section-head h2 span, .stats-intro h2 span, .newsletter-copy h2 span { color: var(--blue); }
.section-head p { color: var(--slate); font-size: 16px; max-width: 620px; }
.section-head.center p { margin-inline: auto; }
.section-head.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: end; }
.section-head.split h2 { margin-bottom: 0; }
.head-side { padding-bottom: 4px; }
.head-side p { color: var(--slate); font-size: 15px; margin-bottom: 18px; }
.sync-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 13px;
  border-radius: 100px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.sync-note .live-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.14); width: 6px; height: 6px; }
.sync-note small { color: #4D7C5B; font-size: 10px; font-weight: 600; letter-spacing: 0; }

/* =========================================================
   COM FUNCIONA
   ========================================================= */
.steps-section { background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s ease;
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.step-card:hover::before { transform: scaleX(1); }
.step-num {
  position: absolute;
  top: 18px; right: 26px;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  color: #EEF2FA;
  letter-spacing: -.08em;
}
.step-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--blue-light);
  color: var(--blue-dark);
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}
.step-icon .icon { width: 26px; height: 26px; }
.step-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 12px; position: relative; z-index: 1; }
.step-card p { color: var(--slate); font-size: 14px; line-height: 1.7; position: relative; z-index: 1; }
.step-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 24px;
  font-size: 12px; font-weight: 700; color: var(--blue-dark);
}
.step-link .icon { width: 15px; height: 15px; }

/* =========================================================
   XIFRES
   ========================================================= */
.stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0B1F5C, #0A1A49 60%, #0C2A72);
  color: #fff;
  padding: 100px 0;
}
.stats-section::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  right: -220px; top: -280px;
  background: radial-gradient(circle, rgba(37,99,235,.5), transparent 68%);
  pointer-events: none;
}
.stats-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.stats-intro h2 { color: #fff; }
.stats-intro h2 span { color: var(--lime); }
.stats-intro p { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 24px; max-width: 380px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 28px 28px 24px;
  backdrop-filter: blur(6px);
  transition: background .3s ease, transform .4s var(--ease);
}
.stat:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -.06em;
}
.stat span { display: block; font-size: 14px; font-weight: 700; margin-top: 14px; color: #fff; }
.stat small { display: block; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* =========================================================
   INICIATIVES
   ========================================================= */
.initiative-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.initiative-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.initiative-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.card-media { position: relative; height: 208px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.initiative-card:hover .card-media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: .02em;
  padding: 7px 12px; border-radius: 100px;
  backdrop-filter: blur(6px);
}
.badge-open { background: rgba(22,163,74,.94); color: #fff; }
.badge-closed { background: rgba(255,255,255,.94); color: var(--slate); }
.card-body { padding: 25px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.card-meta .icon { width: 13px; height: 13px; color: var(--blue); }
.card-meta span { margin-left: auto; font-family: var(--font-display); font-weight: 600; color: var(--blue-dark); }
.card-body h3 { font-size: 20px; color: var(--navy); margin: 13px 0 11px; line-height: 1.28; }
.card-body > p { font-size: 13px; color: var(--slate); line-height: 1.7; flex: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 20px; padding-top: 17px;
  border-top: 1px solid var(--line);
}
.card-foot > span { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); font-weight: 600; }
.card-foot > span .icon { width: 14px; height: 14px; color: var(--blue); }
.card-foot a {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-light); color: var(--blue-dark);
  transition: background .25s ease, color .25s ease, transform .3s var(--ease);
}
.card-foot a:hover { background: var(--navy); color: #fff; transform: rotate(45deg); }
.card-foot a .icon { width: 16px; height: 16px; }

.initiative-more {
  border: 1.5px dashed #B8C7E8;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #F4F7FF, #FAFBFF);
  padding: 42px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition: border-color .3s ease, background .3s ease, transform .4s var(--ease);
}
.initiative-more:hover { border-color: var(--blue); background: #EEF3FF; transform: translateY(-6px); }
.more-icon { width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--blue-dark); display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.more-icon .icon { width: 24px; height: 24px; }
.initiative-more h3 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.initiative-more p { font-size: 14px; color: var(--slate); margin-bottom: 24px; }
.more-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--blue-dark); }
.more-link .icon { width: 16px; height: 16px; }

/* =========================================================
   MAPA
   ========================================================= */
.map-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #071538, #06122F 70%);
  color: #fff;
  padding: 112px 0;
}
.map-bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.section-head.light h2 { color: #fff; }
.section-head.light h2 span { color: var(--lime); }
.section-head.light p { color: rgba(255,255,255,.68); }
.map-inner { position: relative; z-index: 1; }
.map-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 26px; align-items: stretch; }
.map-panel {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-chip {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.7);
  font-size: 11px; font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
  transition: all .25s ease;
}
.filter-chip:hover { background: rgba(255,255,255,.12); color: #fff; }
.filter-chip.active { background: var(--lime); border-color: var(--lime); color: var(--navy-deep); }
.map-canvas {
  position: relative;
  height: 392px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,.9), rgba(255,255,255,0) 40%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,.65) 58px 63px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.65) 46px 51px),
    #DCE7F2;
}
.map-layers { position: absolute; inset: 0; transition: transform .35s var(--ease); transform-origin: center center; }
.m-road { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(11,31,92,.06); }
.mr1 { left: 18%; top: -10%; width: 18px; height: 120%; transform: rotate(12deg); }
.mr2 { left: 62%; top: -10%; width: 14px; height: 120%; transform: rotate(-9deg); }
.mr3 { top: 28%; left: -10%; width: 120%; height: 16px; transform: rotate(-7deg); }
.mr4 { top: 65%; left: -10%; width: 120%; height: 12px; transform: rotate(5deg); }
.mr5 { top: 86%; left: -10%; width: 120%; height: 9px; transform: rotate(-2deg); }
.m-block { position: absolute; background: rgba(203, 215, 232, .55); border-radius: 6px; }
.mb1 { left: 4%; top: 8%; width: 16%; height: 22%; }
.mb2 { left: 30%; top: 6%; width: 22%; height: 16%; }
.mb3 { right: 5%; top: 34%; width: 20%; height: 20%; }
.mb4 { left: 8%; bottom: 4%; width: 24%; height: 15%; }
.m-green { position: absolute; background: #BFDFB7; border-radius: 45% 55% 40% 60%; }
.mg1 { left: 24%; top: 39%; width: 22%; height: 20%; }
.mg2 { right: 12%; bottom: 14%; width: 16%; height: 17%; }
.m-river { position: absolute; left: -5%; bottom: -12%; width: 70%; height: 26%; background: #BBD9F0; border-radius: 50%; transform: rotate(-8deg); opacity: .8; }
.map-marker {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 30px; height: 30px;
  border: 0; padding: 0;
  background: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity .3s ease, transform .3s ease;
}
.map-marker > span:first-child {
  position: absolute; inset: 6px;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(6,17,47,.25);
  transition: box-shadow .3s ease, transform .3s var(--ease);
}
.map-marker::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .18;
  animation: pin-pulse 2.4s ease-out infinite;
}
.map-marker { color: var(--red); }
.marker-warn { color: var(--amber); }
.marker-warn > span:first-child { background: var(--amber); }
.marker-done { color: var(--green); }
.marker-done > span:first-child { background: var(--green); }
.map-marker:hover { transform: translate(-50%, -50%) scale(1.25); z-index: 6; }
.map-marker.dimmed { opacity: .15; pointer-events: none; }

.map-marker.active { z-index: 5; transform: translate(-50%, -50%) scale(1.18); }
.map-marker.active > span:first-child {
  box-shadow: 0 0 0 5px rgba(255,255,255,.85), 0 0 0 9px currentColor, 0 5px 16px rgba(6,17,47,.35);
  transform: rotate(-45deg) scale(1.08);
}
.marker-tip {
  position: absolute;
  left: 50%; bottom: calc(100% + 12px);
  transform: translate(-50%, 6px);
  width: max-content;
  max-width: 190px;
  padding: 7px 11px;
  border-radius: 9px;
  background: #0B1F5C;
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(6,17,47,.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
  z-index: 7;
}
.marker-tip::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  width: 10px; height: 10px;
  background: #0B1F5C;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.map-marker.active .marker-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@keyframes pin-pulse { 0% { transform: scale(.7); opacity: .4; } 100% { transform: scale(1.5); opacity: 0; } }
.map-caption {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 9px; font-weight: 800; letter-spacing: .14em;
  color: #5C7391;
  background: rgba(255,255,255,.75);
  padding: 5px 9px; border-radius: 6px;
}
.map-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.map-zoom button {
  width: 28px; height: 28px;
  border: 0; border-radius: 7px;
  background: #fff; color: var(--navy);
  font-size: 17px; line-height: 1; font-weight: 600;
  box-shadow: 0 2px 8px rgba(6,17,47,.12);
}
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 17px 6px 2px; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: rgba(255,255,255,.62); }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-alert { background: var(--red); }
.dot-warn { background: var(--amber); }
.dot-done { background: var(--green); }
.dot-init { background: var(--blue-light); }

.alerts-panel {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.alerts-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.alerts-head h3 { font-size: 19px; color: #fff; }
.live-pill { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); background: rgba(215,245,107,.1); border: 1px solid rgba(215,245,107,.2); padding: 6px 10px; border-radius: 100px; }
.live-pill .live-dot { width: 5px; height: 5px; }
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  transition: background .25s ease;
}
.alert-item:first-of-type { border-top: 0; padding-top: 0; }
.alert-item:hover .alert-text strong { color: var(--lime); }
.alert-item.active {
  background: rgba(215,245,107,.07);
  box-shadow: inset 3px 0 0 var(--lime);
  border-radius: 0 12px 12px 0;
  padding-left: 14px;
}
.alert-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.alert-icon .icon { width: 18px; height: 18px; }
.alert-icon.red { background: rgba(220,38,38,.17); color: #FCA5A5; }
.alert-icon.amber { background: rgba(234,88,12,.17); color: #FDBA74; }
.alert-icon.blue { background: rgba(37,99,235,.25); color: #93C5FD; }
.alert-text { flex: 1; min-width: 0; }
.alert-tag { display: block; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.alert-tag.red { color: #FCA5A5; }
.alert-tag.amber { color: #FDBA74; }
.alert-tag.blue { color: #93C5FD; }
.alert-text strong { display: block; font-size: 14px; line-height: 1.4; color: #fff; transition: color .2s ease; }
.alert-text small { display: block; font-size: 11px; color: rgba(255,255,255,.45); margin-top: 6px; }
.alert-arrow { width: 16px; height: 16px; color: rgba(255,255,255,.3); margin-top: 4px; }
.alerts-all {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 12px; font-weight: 700;
  transition: background .25s ease;
}
.alerts-all:hover { background: rgba(255,255,255,.1); }
.alerts-all .icon { width: 15px; height: 15px; color: var(--lime); }

/* =========================================================
   NOTÍCIES
   ========================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.news-media { position: relative; height: 210px; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-tag {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(11,31,92,.92);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 6px 11px; border-radius: 100px;
}
.news-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: 11px; color: var(--muted); font-weight: 600; }
.news-body h3 { font-size: 18px; line-height: 1.35; color: var(--navy); margin: 12px 0 22px; flex: 1; }
.news-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.news-link .icon { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.news-card:hover .news-link .icon { transform: translateX(5px); }

/* =========================================================
   CTA
   ========================================================= */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-dark), var(--navy) 72%);
  color: #fff;
  padding: 92px 0 96px;
  text-align: center;
}
.cta-section::before, .cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.cta-section::before { width: 520px; height: 520px; left: -160px; top: -260px; }
.cta-section::after { width: 380px; height: 380px; right: -120px; bottom: -230px; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-icon { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; margin-bottom: 26px; }
.cta-icon .icon { width: 30px; height: 30px; color: var(--lime); }
.cta-inner h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); max-width: 800px; color: #fff; }
.cta-inner > p { color: rgba(255,255,255,.75); max-width: 590px; margin: 18px 0 32px; font-size: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 26px; font-size: 11px; color: rgba(255,255,255,.55); }
.cta-note .icon { width: 14px; height: 14px; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-section { background: var(--bg); }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.newsletter-copy h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--navy); margin: 20px 0 18px; }
.newsletter-copy > p { color: var(--slate); font-size: 15px; max-width: 480px; }
.feature-list { display: grid; gap: 13px; margin-top: 30px; }
.feature-list li { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: var(--navy); }
.feature-list .icon { width: 19px; height: 19px; color: var(--green); }
.signup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.signup-badge { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue-dark); margin-bottom: 22px; }
.signup-badge .icon { width: 24px; height: 24px; }
.signup-card h3 { font-size: 23px; color: var(--navy); margin-bottom: 8px; }
.signup-card > p { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.signup-card label:not(.checkbox) { display: block; font-size: 12px; font-weight: 700; color: var(--slate); margin-bottom: 9px; }
.input-row { display: flex; gap: 9px; }
.input-row input {
  flex: 1; min-width: 0;
  height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 0 20px;
  font-size: 14px;
  color: var(--ink);
  background: #FBFCFE;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.input-row .btn { min-height: 54px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; font-size: 11px; color: var(--muted); cursor: pointer; }
.checkbox input { accent-color: var(--blue); width: 15px; height: 15px; margin: 2px 0 0; flex: 0 0 auto; }
.checkbox a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.form-msg { font-size: 12px; margin-top: 12px; min-height: 18px; font-weight: 600; }
.form-msg.success { color: var(--green); }
.form-msg.error { color: var(--red); }

/* =========================================================
   AVÍS LEGAL
   ========================================================= */
.disclaimer-section { background: #fff; padding: 64px 0; border-top: 1px solid var(--line); }
.disclaimer { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: start; }
.disclaimer-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: #FFF4E5; color: #B45309; }
.disclaimer-icon .icon { width: 25px; height: 25px; }
.disclaimer h2 { font-size: 19px; color: var(--navy); margin-bottom: 9px; }
.disclaimer p { font-size: 13px; color: var(--slate); line-height: 1.75; max-width: 850px; }
.disclaimer .emergency { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--navy); font-weight: 600; }
.disclaimer .emergency .icon { width: 15px; height: 15px; color: var(--red); }
.disclaimer > .text-link { margin-top: 10px; white-space: nowrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 76px 0 26px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 50px; padding-bottom: 58px; }
.footer-logo .brand-name { color: #fff; }
.footer-logo .brand-tag { color: var(--lime); }
.footer-logo img { width: 48px; height: 48px; }
.footer-brand > p { font-size: 13px; line-height: 1.8; max-width: 350px; margin: 22px 0 24px; }
.footer-social { display: flex; gap: 9px; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  transition: background .25s ease, transform .3s var(--ease);
}
.footer-social a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-col h3 { font-size: 13px; color: #fff; margin-bottom: 20px; letter-spacing: -.01em; }
.footer-col > a:not(.footer-btn) { display: block; font-size: 12.5px; padding: 6px 0; transition: color .2s ease, padding-left .25s ease; }
.footer-col > a:not(.footer-btn):hover { color: var(--lime); padding-left: 5px; }
.footer-col .mail-link { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.footer-col .mail-link .icon { width: 15px; height: 15px; color: var(--lime); }
.footer-small { font-size: 11px; line-height: 1.7; margin: 12px 0 18px; }
.footer-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--navy-deep);
  background: var(--lime);
  padding: 11px 17px; border-radius: 100px;
  transition: transform .3s var(--ease), background .25s ease;
}
.footer-btn:hover { transform: translateY(-2px); background: #e2ff85; }
.footer-btn .icon { width: 14px; height: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 11px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { font-size: 11px; transition: color .2s ease; }
.footer-legal a:hover { color: var(--lime); }

/* =========================================================
   ANIMACIONS D'APARICIÓ
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

/* =========================================================
   EL MUNICIPI
   ========================================================= */
.municipi-section { background: var(--bg); }
.municipi-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.municipi-grid .eyebrow { margin-bottom: 16px; }
.municipi-grid h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.04em; margin-bottom: 20px; }
.municipi-grid h2 span { color: var(--blue-dark); }
.municipi-grid p { color: var(--slate); font-size: 15px; line-height: 1.8; max-width: 680px; margin-bottom: 14px; }
.municipi-sources { font-size: 11px !important; color: var(--muted) !important; margin-top: 20px !important; }
.municipi-sources a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.municipi-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.municipi-facts .fact {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow-sm);
}
.municipi-facts .fact strong {
  display: block; font-family: var(--font-display); font-size: 26px;
  color: var(--navy); letter-spacing: -.04em;
}
.municipi-facts .fact span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-inner { gap: 40px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); }
  .float-badge-2 { right: -4px; }
  .stats-inner { gap: 45px; }
  .newsletter-grid { gap: 50px; }
  .footer-main { gap: 30px; }
  .main-nav { gap: 18px; }
}

@media (max-width: 900px) {
  .section { padding: 82px 0; }
  .municipi-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-inner { height: 68px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 28px 24px;
    box-shadow: 0 20px 40px rgba(6,17,47,.12);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a:not(.nav-cta) { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav > a::after { display: none; }
  .nav-actions > .nav-cta { display: none; }
  .mobile-cta { display: inline-flex !important; margin-top: 18px; justify-content: center; }

  .hero { padding: 78px 0 92px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy h1 { max-width: 720px; }
  .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-scroll { display: none; }

  .section-head.split { grid-template-columns: 1fr; gap: 22px; }
  .stats-inner { grid-template-columns: 1fr; gap: 42px; }
  .stats-intro p { max-width: 620px; }
  .steps-grid, .initiative-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .initiative-more { min-height: 100%; }
  .map-layout { grid-template-columns: 1fr; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 44px; }
  .newsletter-copy > p { max-width: 650px; }
  .disclaimer { grid-template-columns: auto 1fr; }
  .disclaimer > .text-link { grid-column: 2; margin-top: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .topbar-inner > span { font-size: 10px; line-height: 1.25; text-align: center; }
  .topbar-extra { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .brand-tag { font-size: 8px; }
  .nav-actions { gap: 6px; }
  .nav-social { width: 30px; height: 30px; }
  .nav-social .icon { width: 13px; height: 13px; }
  .hero-topline .eyebrow { font-size: 10px; }

  .hero { padding: 64px 0 78px; }
  .hero-copy h1 { font-size: clamp(2.15rem, 9vw, 2.9rem); margin: 22px 0 18px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { margin-top: 34px; }
  .hero-visual { padding: 0; }
  .dashboard { padding: 14px; transform: none; }
  .dash-report { grid-template-columns: 92px 1fr; gap: 10px; }
  .dash-report img { width: 92px; height: 82px; }
  .float-badge { display: none; }

  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2, .stats-intro h2 { font-size: 2rem; }
  .steps-grid, .initiative-grid, .news-grid { grid-template-columns: 1fr; }
  .step-card { padding: 30px 26px 26px; }
  .stats-grid { gap: 10px; }
  .stat { padding: 22px 20px; }
  .stat strong { font-size: 42px; }
  .map-panel { padding: 14px; }
  .map-canvas { height: 300px; }
  .map-legend { gap: 8px 14px; }
  .alerts-panel { padding: 22px 18px; }
  .signup-card { padding: 28px 22px; }
  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; }
  .cta-section { padding: 68px 0 72px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }

  .disclaimer { grid-template-columns: 1fr; gap: 16px; }
  .disclaimer > .text-link { grid-column: 1; }
  .footer { padding-top: 58px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
