/* ============================================================
   EQUIPDESO.COM — Proposta B: clar + lila porpra
   Inspiració: estil comercial llumin&oacute;s, banners i CTA
   ============================================================ */

:root {
  --brand:     #6D28D9;   /* porpra profund principal */
  --brand-d:   #5B21B6;   /* fosc per a hovers */
  --brand-l:   #8B5CF6;   /* clar */
  --brand-50:  #F3EEFC;   /* fons porpra molt suau */
  --brand-100: #E7DcF8;
  --accent:    #EC4899;   /* rosa magenta complementari per a destacats */
  --ink:       #1C1626;   /* text principal (gairebé negre violaci) */
  --ink-soft:  #463C57;
  --mute:      #87809A;
  --white:     #FFFFFF;
  --line:      rgba(28, 22, 38, .1);
  --line-2:    rgba(109, 40, 217, .2);
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --radius:    16px;
  --radius-lg: 22px;
  --nav-h:     74px;
  --shadow:    0 14px 40px rgba(109, 40, 217, .12);
  --shadow-lg: 0 26px 70px rgba(109, 40, 217, .2);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: clip; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--brand); color: #fff; }

h1, h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- BARRA SUPERIOR PROMO ---------- */
.topbar {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  position: relative;
  z-index: 101;
}
.topbar strong { font-weight: 800; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav.menu-open {
  backdrop-filter: none;
  background: transparent;
  border-bottom-color: transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-block { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.brand-tag { font-size: 11.5px; font-weight: 500; color: var(--mute); text-decoration: none; letter-spacing: .01em; transition: color .25s; }
.brand-tag:hover { color: var(--brand); }
.brand {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink);
}
.brand b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links .menu-cta { display: none; }
.nav-links a {
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink-soft);
  transition: color .25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
}
.btn:hover { background: var(--brand-d); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(128, 49, 167, .35); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: #E83578; box-shadow: 0 12px 30px rgba(255, 77, 141, .4); }
.btn--ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); padding: 12px 26px; }
.btn--ghost:hover { background: var(--brand-50); box-shadow: none; }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--brand-50); }
.btn--lg { padding: 17px 38px; font-size: 16.5px; }
.nav .btn { padding: 11px 22px; font-size: 14.5px; }
.nav .btn--nav {
  font-weight: 500;
  animation: navNeon 6s ease-in-out infinite;
}
@keyframes navNeon {
  0%, 82%, 100% { box-shadow: 0 0 0 rgba(109, 40, 217, 0); }
  88% { box-shadow: 0 0 0 2px rgba(109, 40, 217, .35), 0 0 18px 2px rgba(139, 92, 246, .75), 0 0 32px 4px rgba(139, 92, 246, .45); }
  94% { box-shadow: 0 0 0 1px rgba(109, 40, 217, .2), 0 0 10px 1px rgba(139, 92, 246, .4); }
}
.nav .btn--nav:hover { animation: none; }
@media (prefers-reduced-motion: reduce) { .nav .btn--nav { animation: none; } }

/* Hamburguesa */
.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  z-index: 120;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO (foto de fons) ---------- */
.hero {
  position: relative;
  min-height: min(88svh, 760px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) - 40px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 500px at 80% 10%, rgba(109,40,217,.34), transparent 60%),
    linear-gradient(180deg, rgba(20,12,32,.58) 0%, rgba(20,12,32,.68) 55%, rgba(20,12,32,.82) 100%);
}
.hero-inner { color: #fff; max-width: none; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #38E29B; box-shadow: 0 0 0 4px rgba(56,226,155,.25); }
.hero h1 { font-size: clamp(31px, 4.6vw, 54px); color: #fff; max-width: 18ch; }
.hero-title { font-weight: 500; }
.hero-title em {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(105deg, #A78BFA 0%, #E879F9 38%, #F0ABFC 60%, #A78BFA 88%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(167, 139, 250, .55));
  animation: heroShimmer 5.5s linear infinite;
}
@keyframes heroShimmer { from { background-position: 0 center; } to { background-position: 220% center; } }
.hero-title .word { display: inline-block; }
.hero-title.is-split .word { opacity: 0; transform: translateY(24px); animation: heroWord .7s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes heroWord { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-title em { animation: none; }
  .hero-title.is-split .word { animation: none; opacity: 1; transform: none; }
}
.hero-sub { font-weight: 300; margin-top: 22px; max-width: 56ch; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.9); }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: nowrap; }
.hero-cta .btn { font-size: 14px; padding: 12px 24px; white-space: nowrap; }
.hero-trust { margin-top: 40px; display: flex; gap: clamp(26px, 5vw, 56px); flex-wrap: wrap; align-items: center; }
.hero-trust div strong { font-family: "Poppins", sans-serif; font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: #fff; display: block; }
.hero-trust div span { font-size: 13.5px; color: rgba(255,255,255,.7); }

/* ---------- BANNERS DE SERVEI (4 columnes) ---------- */
.svc-section { padding: clamp(48px, 6vw, 72px) 0; }
.svc-banners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.svc-banner:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.svc-banner .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); margin-bottom: 12px; }
.svc-banner h3 { font-size: 19px; font-weight: 800; }
.svc-banner p { font-size: 14.5px; color: var(--ink-soft); }
.svc-banner .more { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.svc-banner .more svg { transition: transform .25s; }
.svc-banner:hover .more svg { transform: translateX(4px); }

/* ---------- SECCIONS ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--brand { background: var(--brand-50); }
.section--deep {
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  color: #fff;
}
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .kicker { background: rgba(255,255,255,.16); color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { font-weight: 300; margin-top: 14px; color: var(--ink-soft); font-size: 17.5px; }
.section--deep .section-head p { color: rgba(255,255,255,.85); }

/* ---------- PANELL INFO (imatge + text alternat) ---------- */
.infopanel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.infopanel + .infopanel { margin-top: clamp(48px, 6vw, 80px); }
.infopanel:nth-child(even) .infopanel-media { order: 2; }
.infopanel-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/11; box-shadow: var(--shadow); }
.infopanel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.infopanel:hover .infopanel-media img { transform: scale(1.04); }
.infopanel h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.infopanel p { color: var(--ink-soft); margin-bottom: 14px; }
.infopanel .btn { margin-top: 10px; }

/* ---------- PACKS / TARIFES ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; align-items: stretch; }
.pack {
  background: linear-gradient(165deg, #8257E5, #6D28D9);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #fff;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.pack:nth-child(1) { background: linear-gradient(165deg, #8257E5, #6D28D9); }
.pack:nth-child(2) { background: linear-gradient(165deg, #6D28D9, #5B21B6); }
.pack:nth-child(3) { background: linear-gradient(165deg, #5B21B6, #4C1D95); }
.pack:nth-child(4) { background: linear-gradient(165deg, #4C1D95, #3B1580); }
.pack:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pack--popular { border: 2px solid rgba(255, 255, 255, .55); box-shadow: var(--shadow-lg); }
.pack-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 999px;
  white-space: nowrap;
}
.pack h3 { font-size: 21px; color: #fff; }
.pack-price { margin: 14px 0 4px; font-family: "Poppins", sans-serif; display: flex; align-items: baseline; gap: 4px; }
.pack-price strong { font-size: 46px; font-weight: 800; color: #fff; line-height: 1; }
.pack-price .cur { font-size: 22px; font-weight: 700; color: #fff; }
.pack-price .per { font-size: 14px; color: rgba(255, 255, 255, .7); font-family: "Roboto", sans-serif; align-self: flex-end; }
.pack-note { font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 22px; }
.pack ul { list-style: none; flex: 1; margin-bottom: 26px; }
.pack li { font-size: 14.8px; color: rgba(255, 255, 255, .92); padding: 9px 0 9px 28px; border-bottom: 1px solid rgba(255, 255, 255, .18); position: relative; }
.pack li:last-child { border-bottom: 0; }
.pack li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 13px; height: 7px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.pack .btn { background: #fff; color: var(--brand); width: 100%; border: 0; }
.pack .btn:hover { background: var(--brand-50); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }

/* ---------- AVANTATGES (icones) ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.perk { text-align: left; }
.perk .ico { width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--brand); margin-bottom: 16px; box-shadow: var(--shadow); }
.perk h3 { font-size: 18px; margin-bottom: 8px; }
.perk p { font-size: 14.5px; color: var(--ink-soft); }
.section--deep .perk .ico { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.section--deep .perk p { color: rgba(255,255,255,.85); }

/* ---------- BANNER CTA AMPLE ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); max-width: 18ch; position: relative; }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 10px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- GALERIA ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; }
.gallery a { border-radius: var(--radius); overflow: hidden; position: relative; display: block; box-shadow: var(--shadow); }
.gallery a:nth-child(1) { grid-row: span 2; }
.gallery a:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery a:hover img { transform: scale(1.07); }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; background: #fff; }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 16px; color: var(--mute); white-space: nowrap; }
.marquee-track span::after { content: "●"; color: var(--brand); margin-left: 50px; font-size: 8px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- RESSENYES ---------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 48px); }
.gscore { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow); }
.gscore-logo { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 22px; }
.gscore-logo .g-b { color: #4285F4; } .gscore-logo .g-r { color: #EA4335; } .gscore-logo .g-y { color: #FBBC05; } .gscore-logo .g-g { color: #34A853; }
.gscore-num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 24px; line-height: 1; }
.gscore-meta { font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: #FBBC05; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; gap: 20px; scroll-snap-type: x mandatory; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; cursor: grab; }
.reviews-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; flex: 0 0 clamp(280px, 80vw, 360px); background: linear-gradient(160deg, #fff 55%, var(--brand-50)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(109, 40, 217, .07); }
.review .stars { margin-bottom: 14px; }
.review-text { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 17px; color: #fff; background: var(--brand); flex-shrink: 0; }
.review-author b { display: block; font-size: 15px; font-weight: 700; }
.review-author time, .review-author span { font-size: 13px; color: var(--mute); }
.reviews-nav { display: flex; gap: 10px; margin-top: 22px; justify-content: center; }
.reviews-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .25s; box-shadow: var(--shadow); }
.reviews-nav button:hover { background: var(--brand-50); transform: translateY(-2px); }
.reviews-nav button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.reviews-cta { margin-top: 26px; text-align: center; }

/* ---------- CLIENTS ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.client-grid li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; font-size: 15px; color: var(--ink-soft); transition: border-color .3s, transform .3s, box-shadow .3s; }
.client-grid li:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- INVENTARI MATERIAL ---------- */
.inventory { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.inv-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.inv-block h3 { font-size: 18px; color: var(--brand); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--brand-100); }
.inv-block ul { list-style: none; }
.inv-block li { font-size: 14.8px; color: var(--ink-soft); padding: 7px 0 7px 20px; position: relative; }
.inv-block li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.brand-marquee {
  container-type: inline-size;
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(36px, 5vw, 52px);
  border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track { display: flex; width: max-content; animation: brandScroll 28s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-item { flex: 0 0 20cqw; display: grid; place-items: center; padding: 0 10px; }
.brand-item img { width: 170px; height: 90px; max-width: 100%; object-fit: contain; }
@keyframes brandScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .brand-track { animation: none; } }

/* ---------- PAGE HERO INTERIORS ---------- */
.page-hero {
  background: radial-gradient(800px 400px at 85% 0%, var(--brand-100), transparent 60%), linear-gradient(180deg, var(--brand-50), #fff);
  padding: clamp(44px, 7vw, 80px) 0 clamp(40px, 5vw, 64px);
}
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); }
.page-hero .lead { font-weight: 300; margin-top: 18px; max-width: 64ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); }

/* ---------- FORMULARIS ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 15.5px; padding: 13px 16px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input[type="file"] { padding: 11px 14px; color: var(--mute); }
.field input[type="file"]::file-selector-button { background: var(--brand-50); color: var(--brand); border: 0; border-radius: 8px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; margin-right: 14px; cursor: pointer; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px; font-size: 14.5px; color: var(--ink-soft); transition: all .25s; user-select: none; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-100); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--mute); margin-top: 14px; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: 15px; }
.form-status.ok { display: block; background: #E8F8F0; color: #1A8A5A; border: 1px solid #A8E5C8; }
.form-status.err { display: block; background: #FDECEC; color: #C0392B; border: 1px solid #F5C0C0; }
.contact-aside { background: var(--brand-50); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 32px 30px; height: fit-content; }
.contact-aside h3 { font-size: 20px; margin-bottom: 16px; }
.contact-aside a { color: var(--brand); text-decoration: none; font-weight: 700; }
.contact-aside a:hover { text-decoration: underline; }
.contact-aside p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 14px; }
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }

/* ---------- CLIENTS (graella de logos estil popnroll) ---------- */
.clients-block { margin-top: clamp(40px, 5vw, 64px); }
.clients-block:first-of-type { margin-top: 0; }
.clients-block > h2 { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 6px; }
.clients-block > h2 .hl { color: var(--brand); }
.clients-block .block-sub { color: var(--ink-soft); font-weight: 300; margin-bottom: clamp(24px, 3vw, 36px); }

/* Subgrup de província (ajuntaments) */
.prov-group { margin-bottom: 28px; }
.prov-group h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--brand-100);
}

/* Ajuntaments: graella compacta, sense targeta */
.town-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 18px 10px;
}
.town {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.town img { width: 46px; height: 56px; object-fit: contain; }
.town .ph {
  width: 46px; height: 56px;
  display: grid; place-items: center;
  background: var(--brand-50);
  border-radius: 8px;
  color: var(--brand);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 18px;
}
.town span { font-size: 11.5px; line-height: 1.25; color: var(--ink-soft); }

/* Grups, organitzadors, entitats: només text en càpsules */
.name-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.name-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.2;
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s, color .25s;
}
.name-grid li:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .town-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 36px; }
.footer .brand { color: #fff; }
.footer .brand b { color: var(--brand-l); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 14.5px; color: rgba(255,255,255,.7); transition: color .25s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 26px; }
.footer-copy a { color: rgba(255,255,255,.7); }

/* ---------- WHATSAPP FLOTANT ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s var(--ease-out); }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(30,19,48,.92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s linear .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out), visibility 0s; }
.lightbox-img { max-width: min(92vw, 1200px); max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.96); transition: transform .3s var(--ease-out); object-fit: contain; }
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lb-btn { position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .25s; -webkit-tap-highlight-color: transparent; }
.lb-btn:hover { background: rgba(255,255,255,.26); transform: scale(1.06); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 14px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); padding: 6px 16px; border-radius: 999px; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .svc-banners { grid-template-columns: repeat(2, 1fr); }
  .infopanel { grid-template-columns: 1fr; }
  .infopanel:nth-child(even) .infopanel-media { order: 0; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery a:nth-child(4) { grid-column: auto; }
}
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .brand-tag { display: none; }
  .brand-item { flex: 0 0 33.333cqw; }

  /* Cards de servei i packs en carrusel horitzontal al mòbil */
  .svc-banners, .packs {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-inline: -24px;
    padding-inline: 24px;
    padding-bottom: 6px;
  }
  .svc-banners::-webkit-scrollbar, .packs::-webkit-scrollbar { display: none; }
  .svc-banner, .pack {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }
  .packs { padding-top: 18px; } /* espai per al badge "El més popular" */

  .nav-toggle { display: flex; position: relative; z-index: 120; }
  .nav-links {
    position: fixed; inset: 0;
    z-index: 105;
    height: 100svh;
    background: linear-gradient(165deg, #fff 0%, var(--brand-50) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    padding: clamp(80px, 16vh, 140px) 32px 48px;
    box-shadow: none;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .42s var(--ease-out), visibility 0s linear .42s;
  }
  .nav-links.is-open { transform: none; visibility: visible; transition: transform .42s var(--ease-out), visibility 0s; }
  .nav-links li { opacity: 0; transform: translateY(14px); }
  .nav-links.is-open li { animation: menuItem .5s var(--ease-out) forwards; }
  .nav-links.is-open li:nth-child(1) { animation-delay: .12s; }
  .nav-links.is-open li:nth-child(2) { animation-delay: .19s; }
  .nav-links.is-open li:nth-child(3) { animation-delay: .26s; }
  .nav-links.is-open li:nth-child(4) { animation-delay: .33s; }
  .nav-links.is-open li:nth-child(5) { animation-delay: .40s; }
  @keyframes menuItem { to { opacity: 1; transform: none; } }
  .nav-links a {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 30px;
    text-transform: none;
    letter-spacing: -.01em;
    width: 100%;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
  }
  .nav-links a::after {
    content: "→";
    color: var(--brand);
    font-size: 24px;
    opacity: .55;
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
  /* Botó de pressupost destacat dins del menú a pantalla completa */
  .nav-links .menu-cta { display: block; margin-top: 28px; }
  .nav-links .menu-cta a {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 999px;
    justify-content: center;
    font-size: 18px;
    padding: 17px 24px;
  }
  .nav-links .menu-cta a::after { content: none; }
  .nav .btn--nav { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery a:nth-child(1) { grid-row: auto; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
