/* =========================================
   PLATGES DEL SUD — STYLESHEET v4
   Blau #2E6FA3 / Groc #F5A623 · Solo en botones
   Marquee · Fullscreen mobile menu · Popup · i18n
   ========================================= */

/* ---- RESET & ROOT ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #2E6FA3;
  --blue-dark:   #1F5080;
  --blue-light:  #4A8FBF;
  --blue-pale:   #EBF3FA;
  --yellow:      #F5A623;
  --yellow-dark: #D48A10;
  --yellow-pale: #FEF5E4;

  --ink:         #111111;
  --ink-2:       #2E2E2E;
  --ink-muted:   #666666;
  --ink-light:   #AAAAAA;
  --border:      #E8E8E8;
  --surface:     #F8F8F8;
  --surface-2:   #F2F2F0;
  --white:       #FFFFFF;
  --charcoal:    #181818;
  --charcoal-2:  #242424;

  --shadow-sm:   0 2px 14px rgba(0,0,0,.06);
  --shadow-md:   0 8px 36px rgba(0,0,0,.09);
  --shadow-blue: 0 8px 28px rgba(46,111,163,.25);

  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --transition:  .28s cubic-bezier(.4,0,.2,1);
  --nav-height:  78px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
}

/* =========================================
   BUTTONS — blue/yellow solo en botones
   ========================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-blue {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}
.btn-blue:hover { background: var(--blue-dark); }

.btn-yellow {
  background: var(--yellow); color: var(--white); border-color: var(--yellow);
}
.btn-yellow:hover { background: var(--yellow-dark); }

.btn-hero-21k {
  background: var(--yellow); color: var(--white); border-color: var(--yellow);
  font-size: 1rem; padding: 16px 36px;
}
.btn-hero-21k:hover { background: var(--yellow-dark); }

.btn-white {
  background: var(--white); color: var(--blue); border-color: var(--white);
}
.btn-white:hover { background: var(--surface); }

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

.btn-full { width: 100%; justify-content: center; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height); max-width: 1180px;
  margin: 0 auto; padding: 0 28px; gap: 24px;
}

.nav-logo img { height: 62px; width: auto; transition: opacity var(--transition); }
.nav-logo:hover img { opacity: .8; }

.nav-menu {
  display: flex; align-items: center; gap: 6px; list-style: none;
}

.nav-link {
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: .84rem; font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--ink); background: var(--surface); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 6px; min-width: 180px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: var(--shadow-md); z-index: 50;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--ink-2);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu li a:hover { background: var(--surface); color: var(--blue); }

/* Lang switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; color: var(--ink-muted);
  transition: border-color var(--transition), color var(--transition);
}
.lang-switcher:hover { border-color: var(--ink-muted); color: var(--ink); }
.lang-active { color: var(--blue); }
.lang-sep { opacity: .4; }

/* Nav CTA */
.nav-cta-btn {
  padding: 9px 20px; border-radius: var(--radius-sm);
  background: var(--blue); color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: .875rem; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  margin-left: 4px;
}
.nav-cta-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* Mobile right group */
.nav-right-mobile { display: none; align-items: center; gap: 10px; }

/* Hamburger */
.nav-toggle {
  width: 42px; height: 42px; border: none; background: transparent;
  cursor: pointer; border-radius: var(--radius-sm); padding: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--surface); }
.hamburger-line {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, width .25s ease;
}
.nav-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   MOBILE FULLSCREEN NAV
   ========================================= */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-nav-overlay.open { transform: translateX(0); }

.mobile-nav-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 80px 40px 30px; width: 100%; max-width: 480px;
  text-align: center;
}

.mobile-nav-list { display: flex; flex-direction: column; gap: 2px; width: 100%; }

.mobile-nav-link {
  display: block; padding: 6px 16px; border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif; font-size: 1.18rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-link:hover { color: var(--blue); background: var(--blue-pale); }
.mobile-dropdown-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-dropdown-header .mobile-nav-link {
  padding-left: 0;
  padding-right: 0;
}
.mobile-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  color: var(--ink-muted);
  transition: transform var(--transition), background var(--transition);
}
.mobile-arrow:hover {
  background: var(--blue-pale);
  color: var(--blue);
}
.mobile-dropdown.open .mobile-arrow {
  transform: rotate(180deg);
}
.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding-left: 16px;
  margin: 2px 0 8px;
}
.mobile-dropdown.open .mobile-submenu {
  display: flex;
}
.mobile-submenu-link {
  display: block; padding: 5px 16px; border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--transition), background var(--transition);
  text-align: center;
}
.mobile-submenu-link:hover { color: var(--blue); background: var(--blue-pale); }

.mobile-cta {
  margin-top: 12px; width: 100%; max-width: 320px; justify-content: center;
  font-size: 1rem;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center; will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.38) 60%, rgba(10,10,10,.62) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 24px;
  padding: 0 24px; max-width: 780px;
}
.hero-badge {
  display: inline-block;
  padding: 7px 20px; border-radius: 50px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-family: 'Inter', sans-serif; font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.85); letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--white); line-height: 1.08;
  letter-spacing: -.02em;
}
.hero-title-accent {
  color: var(--white);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.65); font-weight: 400; letter-spacing: .01em;
}
.hero-subcopy {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--yellow); font-weight: 600; letter-spacing: .01em;
  margin-top: 4px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; cursor: pointer;
}
.scroll-arrow {
  width: 28px; height: 28px;
  border-right: 2px solid rgba(255,255,255,.5);
  border-bottom: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg); margin: 0 auto;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(6px); } }

/* =========================================
   MARQUEE — Ajuntaments
   ========================================= */
.ayuntamientos-band {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 36px 0; overflow: hidden;
}
.ayunt-label-wrap { text-align: center; margin-bottom: 20px; }
.ayunt-label {
  font-family: 'Inter', sans-serif; font-size: .78rem;
  font-weight: 500; color: var(--ink-light); letter-spacing: .1em; text-transform: uppercase;
}

.marquee-wrap { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex; align-items: center; gap: 0; width: max-content;
  animation: marqueeScroll 18s linear infinite;
}
.marquee-set {
  display: flex; align-items: center; gap: 64px; padding: 0 32px;
}
.marquee-set img { height: 52px; width: auto; object-fit: contain; flex-shrink: 0; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   SECTIONS — base
   ========================================= */
.section { padding: 128px 0; }
.section-light    { background: var(--white); }
.section-dark     { background: var(--charcoal); }
.section-muted    { background: var(--surface); }
.section-grey { background: #F3F4F6; }
.section-solidarity { background: var(--charcoal); }

.section-header {
  text-align: center; max-width: 720px;
  margin: 0 auto 80px;
}

/* Section tag — plain (sin caja) */
.section-tag-plain {
  display: inline-block;
  font-family: 'Inter', sans-serif; font-size: .75rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 14px;
}
.section-tag-plain.tag-light { color: rgba(255,255,255,.5); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink);
  margin-bottom: 20px; letter-spacing: -.02em;
}
.section-title.light { color: var(--white); }

.section-body {
  font-size: 1.02rem; color: var(--ink-muted); line-height: 1.75;
  margin-bottom: 14px;
}
.section-body.light { color: rgba(255,255,255,.65); }
.section-body.centered-text { text-align: center; max-width: 660px; margin-left: auto; margin-right: auto; }
.section-body.section-italic { font-style: italic; }

.section-highlight {
  font-size: 1.05rem; color: var(--ink-2);
  background: var(--surface); border-left: 3px solid var(--blue);
  padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; line-height: 1.7;
}

/* =========================================
   GRID — Presentació
   ========================================= */
.section-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 96px; align-items: start; margin-bottom: 96px;
}
.image-card { border-radius: var(--radius-lg); overflow: hidden; }
.image-card img { width: 100%; height: 420px; object-fit: cover; }

.stat-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px;
}
.stat-card {
  background: var(--surface); border-radius: var(--radius-md);
  padding: 22px 20px; text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card-yellow { background: var(--yellow-pale); border-color: rgba(245,166,35,.2); }
.stat-number {
  display: block; font-family: 'Outfit', sans-serif;
  font-size: 1.9rem; font-weight: 700; color: var(--blue);
  line-height: 1.1; letter-spacing: -.02em;
}
.stat-card-yellow .stat-number { color: var(--yellow-dark); }
.stat-number small { font-size: .9rem; font-weight: 500; margin-left: 3px; }
.stat-label { display: block; font-size: .78rem; color: var(--ink-muted); margin-top: 6px; font-weight: 500; }

/* =========================================
   SUBSECTION / ESSÈNCIA
   ========================================= */
.subsection {
  padding-top: 80px; text-align: center;
}
.subsection-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 24px; letter-spacing: -.015em;
}

/* ---- Values ticker ---- */
.values-ticker-wrap {
  overflow: hidden; margin: 48px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.values-ticker {
  display: flex; width: max-content;
  animation: marqueeScroll 14s linear infinite;
}
.values-ticker-set {
  display: flex; align-items: center; gap: 28px; padding: 0 14px; white-space: nowrap;
}
.values-ticker-set span {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em;
}
.ticker-dot { color: var(--blue); font-size: 1rem !important; font-weight: 400 !important; }

.group-photo-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.group-photo { width: 100%; height: 420px; object-fit: cover; }

/* =========================================
   INSCRIPCIONS
   ========================================= */
.modalities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
  align-items: stretch; /* equal height rows */
}
.modality-card {
  background: var(--white); border: 1px solid #dde0e6;
  border-radius: var(--radius-lg); padding: 36px 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.modality-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.modality-title { font-size: 1.35rem; color: var(--ink); }
.modality-desc  { font-size: .92rem; color: var(--ink-muted); line-height: 1.72; }

.modality-features { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.modality-features li {
  font-size: .87rem; color: var(--ink-muted);
  padding-left: 18px; position: relative;
}
.modality-features li::before {
  content: '—'; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}

.modality-quote {
  font-style: italic; color: var(--ink-muted); font-size: .88rem; line-height: 1.65;
  border-left: 2px solid var(--border); padding-left: 14px;
}

/* Button always at bottom of card */
.modality-btn-wrap { margin-top: auto; padding-top: 8px; }

.modality-note { font-size: .74rem; color: var(--ink-light); text-align: center; margin-top: 8px; }

/* Dorsal 0 button — black solid, no shadow */
.btn-dorsal {
  background: var(--ink); color: var(--white); border-color: var(--ink);
  box-shadow: none;
}
.btn-dorsal:hover { background: var(--ink-2); box-shadow: none; }

/* Ensure content above btn-wrap grows equally in all cards */
.modality-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }

/* =========================================
   MUNICIPIS — route bullet
   ========================================= */
.municipalities-wrap { display: flex; flex-direction: column; gap: 64px; }
.route-municipalities { display: flex; justify-content: center; }

.route-bullet-list {
  display: flex; flex-direction: column;
  max-width: 480px; width: 100%; position: relative;
}
.route-bullet-list::before {
  content: ''; position: absolute; left: 12px; top: 18px; bottom: 18px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--blue), rgba(46,111,163,.1));
}
.route-bullet-item {
  display: flex; align-items: center; gap: 20px; padding: 22px 0; position: relative;
}
.route-bullet-item + .route-bullet-item { border-top: 1px solid var(--border); }

.route-bullet-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue);
  flex-shrink: 0; position: relative; z-index: 1;
  transition: background var(--transition);
}
.route-bullet-start .route-bullet-dot { background: var(--blue); }
.route-bullet-item:hover .route-bullet-dot { background: var(--blue); }

.route-bullet-content { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.route-bullet-name {
  font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 600;
  color: var(--ink); transition: color var(--transition);
}
.route-bullet-item:hover .route-bullet-name { color: var(--blue); }
.route-bullet-tag {
  background: var(--blue); color: var(--white);
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; padding: 4px 12px; border-radius: 50px;
}

.route-image-wrap { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.route-image { width: 100%; height: 440px; object-fit: cover; }
.route-badge {
  position: absolute; bottom: 20px; right: 20px;
  background: var(--blue); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-md); text-align: center;
}
.route-badge span { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; display: block; }
.route-badge small { font-size: .72rem; opacity: .8; }

/* =========================================
   SOLIDARITAT
   ========================================= */
.solidarity-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start;
}
.link-highlight { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.link-highlight:hover { color: var(--white); }

.pau-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 28px; margin: 28px 0;
  display: block;
}
.pau-title {
  display: flex; align-items: center; gap: 8px; margin-top: 0; margin-bottom: 12px;
  color: var(--white); font-size: 1.3rem;
}
.pau-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.pau-image { display: block; width: 100%; height: auto; border-radius: var(--radius-md); margin-bottom: 25px; object-fit: cover; }
.pau-text { width: 100%; }
.pau-text p  { font-size: 1.05rem; color: rgba(255,255,255,.75); line-height: 1.65; }

.angelman-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 40px;
}
.angelman-title { color: var(--white); font-size: 1.4rem; margin-bottom: 18px; }
.angelman-card > p { color: rgba(255,255,255,.6); font-size: .92rem; margin-bottom: 16px; }
.angelman-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.angelman-list li {
  color: rgba(255,255,255,.6); font-size: .88rem;
  padding-left: 18px; position: relative;
}
.angelman-list li::before { content: '—'; position: absolute; left: 0; color: var(--blue); }
.angelman-note {
  background: rgba(255,255,255,.05); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 18px;
}
.angelman-note p { font-size: .85rem; color: rgba(255,255,255,.55); }
.angelman-footer { color: rgba(255,255,255,.45); font-size: .82rem; margin-bottom: 24px; }

.impact-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.impact-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-md); padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.impact-box-yellow { background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.2); }
.impact-box span  { font-size: .78rem; color: rgba(255,255,255,.45); }
.impact-box strong { font-size: .88rem; color: var(--white); }

/* =========================================
   CURSA
   ========================================= */
.cursa-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.cursa-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
}
.cursa-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.cursa-card-header h3 { font-size: 1.25rem; color: var(--ink); }
.cursa-icon-svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }

.route-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.route-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--border);
  counter-increment: route;
}
.route-list li::before {
  content: counter(route, decimal-leading-zero);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .78rem;
  color: var(--blue); min-width: 28px;
}
.route-list { counter-reset: route; }
.route-list li span { font-weight: 600; color: var(--ink); }
.route-list li em { font-size: .75rem; color: var(--blue); font-weight: 600; margin-left: auto; }

.coming-soon-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--blue-pale); border-radius: var(--radius-md);
  padding: 16px 20px; margin-top: 24px;
}
.coming-soon-banner p { font-size: .88rem; color: var(--blue); }

.coming-soon-full {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px 20px; gap: 14px;
}
.coming-soon-icon { font-size: 2.5rem; }
.coming-soon-full h4 { font-size: 1.1rem; color: var(--ink); }
.coming-soon-full p  { font-size: .9rem; color: var(--ink-muted); }

.placeholder-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.placeholder-badges span {
  padding: 6px 14px; border-radius: 50px; font-size: .78rem; font-weight: 500;
  background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--border);
}

/* =========================================
   PATROCINADORS
   ========================================= */
.sponsor-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 52px;
}
.sponsor-tier {
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center;
  transition: transform var(--transition);
}
.sponsor-tier:hover { transform: translateY(-4px); }
.sponsor-gold { background: linear-gradient(145deg, rgba(255,215,0,.08), rgba(255,215,0,.03)); border-color: rgba(255,215,0,.15); }
.sponsor-silver { background: rgba(255,255,255,.03); }
.sponsor-collaborator { background: rgba(255,255,255,.03); }

.tier-icon { font-size: 2.2rem; margin-bottom: 16px; }
.sponsor-tier h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.sponsor-tier p  { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.65; }

/* =========================================
   FORMS
   ========================================= */
.form-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 52px;
}
.form-card-light {
  background: var(--surface); border: 1px solid var(--border);
}
.form-title { font-size: 1.3rem; color: var(--white); margin-bottom: 28px; }
.form-title.dark { color: var(--ink); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.55);
  font-family: 'Inter', sans-serif;
}
label.dark { color: var(--ink-muted); }

input, textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: .93rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none; resize: vertical;
}
.form-card-light input, .form-card-light textarea {
  background: var(--white); border-color: var(--border); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.22); }
.form-card-light input::placeholder, .form-card-light textarea::placeholder { color: var(--ink-light); }
input:focus, textarea:focus {
  border-color: var(--blue); background: rgba(255,255,255,.09);
}
.form-card-light input:focus, .form-card-light textarea:focus {
  border-color: var(--blue); background: var(--white);
}

.form-check { display: flex; align-items: flex-start; gap: 12px; }
.form-check input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0;
  accent-color: var(--blue); margin-top: 3px; cursor: pointer; padding: 0;
}
.form-check label { font-size: .87rem; color: rgba(255,255,255,.5); cursor: pointer; }
.form-card-light .form-check label { color: var(--ink-muted); }

.link-inline { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* Custom Select */
.custom-select-wrap { position: relative; width: 100%; user-select: none; }
.custom-select-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 16px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
  color: rgba(255,255,255,.35); font-family: 'Inter', sans-serif;
  font-size: .93rem; cursor: pointer; text-align: left;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.custom-select-btn.has-value { color: var(--white); }
.custom-select-btn:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.09); }
.form-card-light .custom-select-btn { background: var(--white); border-color: var(--border); color: var(--ink-light); }
.form-card-light .custom-select-btn.has-value { color: var(--ink); }
.form-card-light .custom-select-btn:hover { border-color: var(--ink-muted); }
.custom-select-arrow { width: 16px; height: 16px; flex-shrink: 0; opacity: .6; transition: transform var(--transition); }
.custom-select-btn[aria-expanded="true"] .custom-select-arrow { transform: rotate(180deg); }
.custom-select-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #1e1e1e; border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); padding: 6px; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  box-shadow: 0 12px 36px rgba(0,0,0,.4); max-height: 260px; overflow-y: auto;
}
.form-card-light .custom-select-dropdown { background: var(--white); border-color: var(--border); }
.custom-select-wrap.open .custom-select-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-select-dropdown li {
  padding: 10px 14px; border-radius: var(--radius-sm); list-style: none;
  font-family: 'Inter', sans-serif; font-size: .9rem; color: rgba(255,255,255,.75);
  cursor: pointer; transition: background var(--transition), color var(--transition);
}
.form-card-light .custom-select-dropdown li { color: var(--ink-2); }
.custom-select-dropdown li:hover { background: var(--blue); color: var(--white); }
.custom-select-placeholder { color: rgba(255,255,255,.3) !important; font-style: italic; cursor: default !important; }
.form-card-light .custom-select-placeholder { color: rgba(90,90,90,.4) !important; }
.custom-select-dropdown li[aria-selected="true"] { background: var(--blue); color: var(--white); }

/* =========================================
   VOLUNTARIAT
   ========================================= */
.voluntariat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start;
}
.volunteer-tasks { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.volunteer-tasks li {
  display: flex; align-items: center; gap: 14px;
  font-size: .93rem; color: var(--ink-muted);
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  transition: background var(--transition), color var(--transition);
}
.volunteer-tasks li:hover { background: var(--blue-pale); color: var(--blue); }
.task-icon-svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); }

/* =========================================
   SERVEIS
   ========================================= */
.coming-soon-services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 720px; margin: 0 auto;
}
.service-placeholder {
  background: var(--blue-pale); border-radius: var(--radius-lg);
  padding: 40px 28px; text-align: center;
  border: 1px solid rgba(46,111,163,.12);
}
.service-placeholder span { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.service-placeholder h4 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.service-placeholder p  { font-size: .82rem; color: var(--blue); font-weight: 500; }

/* =========================================
   CONTACTE
   ========================================= */
.contacte-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 96px; align-items: start;
}
.contact-block {
  margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--border);
}
.contact-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-block h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }
.contact-block p  { font-size: .88rem; color: var(--ink-muted); margin-bottom: 14px; line-height: 1.65; }
.contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--ink-muted); margin-bottom: 10px;
  transition: color var(--transition);
}
.contact-item:hover { color: var(--blue); }
.contact-item svg { color: var(--blue); }

.social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: .83rem;
  color: var(--ink-muted); transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--charcoal); color: var(--white); }
.footer-top { padding: 80px 0 60px; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
}
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.footer-date {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.75); font-size: .87rem; margin-top: 4px;
}

.footer-links h4, .footer-contact h4 {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 18px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
  font-size: .88rem; color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--white); }

.footer-contact a {
  display: flex; align-items: center;
  font-size: .87rem; color: rgba(255,255,255,.5); margin-bottom: 12px;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--white); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); transition: background var(--transition), border-color var(--transition), color var(--transition);
  margin-bottom: 0;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.footer-social a svg { width: 15px; height: 15px; }

/* Footer ayuntamientos marquee on white */
.footer-ayuntamientos {
  padding: 44px 0; overflow: hidden;
}
.footer-ayuntamientos-white { background: var(--white); border-top: 1px solid var(--border); }
.ayunt-label-footer {
  text-align: center; margin-bottom: 20px;
  font-family: 'Inter', sans-serif; font-size: .78rem;
  font-weight: 500; color: var(--ink-light); letter-spacing: .1em; text-transform: uppercase;
}
.marquee-track-footer .marquee-set img { height: 48px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0;
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.3); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }

/* =========================================
   POPUP (form success)
   ========================================= */
.popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.popup-overlay.visible { opacity: 1; visibility: visible; }

.popup-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 52px 44px; max-width: 440px; width: 100%;
  text-align: center; position: relative;
  transform: translateY(20px) scale(.96);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.popup-overlay.visible .popup-card { transform: translateY(0) scale(1); }

.popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--surface); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.popup-close:hover { background: var(--surface-2); }
.popup-close svg { width: 16px; height: 16px; color: var(--ink-muted); }

.popup-icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  color: var(--blue);
}
.popup-icon svg { width: 72px; height: 72px; }

.popup-title {
  font-size: 1.5rem; color: var(--ink); margin-bottom: 12px; font-weight: 600;
}
.popup-text { font-size: .93rem; color: var(--ink-muted); line-height: 1.7; }

/* =========================================
   TOAST
   ========================================= */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--white);
  padding: 14px 28px; border-radius: 50px;
  font-size: .88rem; font-weight: 500; z-index: 3000;
  opacity: 0; transition: all .3s ease; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #c0392b; }
.toast.success { background: #27ae60; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .modalities-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .section-grid { grid-template-columns: 1fr; gap: 56px; margin-bottom: 64px; }
  .solidarity-grid { grid-template-columns: 1fr; gap: 56px; }
  .cursa-grid { grid-template-columns: 1fr; }
  .sponsor-tiers { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 48px; }
  .voluntariat-grid { grid-template-columns: 1fr; gap: 56px; }
  .contacte-grid { grid-template-columns: 1fr; gap: 56px; }
  .impact-boxes { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Show mobile controls */
  .nav-right-mobile { display: flex; }
  /* Hide desktop nav */
  .nav-menu { display: none; }

  .nav-logo img { height: 54px; } /* fit inside white header bar */

  .section { padding: 80px 0; }
  .container { padding: 0 18px; }
  .section-header { margin-bottom: 52px; }

  .hero-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .stat-cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .cursa-card { padding: 28px 20px; }
  .form-card { padding: 28px 18px; }
  .pau-card { padding: 24px 20px; }
  .angelman-card { padding: 28px 20px; }
  .coming-soon-services { grid-template-columns: 1fr; max-width: 320px; }

  .popup-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .values-ticker-set span { font-size: 1.1rem; }
  .modality-card { padding: 28px 20px; }
}

/* PRINT */
@media print {
  .navbar, .mobile-nav-overlay, .hero-scroll, .hero-video-wrap { display: none; }
  .hero { min-height: auto; }
}
