/* ==========================================================================
   Calendapt · disseny web 2 (mateix estil que l'app mòbil)
   Les pàgines l'activen posant $WEB_V2 = true abans d'incloure header.php.
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-SemiBold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Bold.woff') format('woff');
  font-weight: 700 800;
  font-display: swap;
}

:root {
  --bg: #110f1c;
  --card: #1d1b2b;
  --card-raised: #282538;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .12);
  --text: #f6f4ff;
  --muted: #a19dba;
  --faint: #8f8baa;
  --accent: #818cf8;
  --indigo: #4f46e5;
  --teal: #2dd4bf;
  --rose: #f43f5e;
  --brand: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #2563eb 100%);
  --brand-glow: 0 14px 34px rgba(79, 70, 229, .45);
  --radius: 20px;
  --radius-sm: 14px;
  --display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
.w2 [hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.w2 {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at -10% -10%, rgba(109, 74, 255, .32), transparent 60%),
    radial-gradient(800px 600px at 110% 110%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(500px 400px at 70% 20%, rgba(124, 92, 255, .10), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

:where(.w2) a { color: inherit; } /* sense pes: els botons i enllaços mantenen el seu color */
.w2 h1, .w2 h2, .w2 h3 { font-family: var(--display); letter-spacing: -.02em; }

.w2-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- Capçalera */
.w2-header { padding: 18px 0 8px; position: relative; z-index: 5; }
.w2-header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px 12px 14px;
  border-radius: var(--radius);
  background: rgba(29, 27, 43, .72);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.w2-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.w2-brand-logo {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  filter: drop-shadow(0 8px 18px rgba(79, 70, 229, .45));
}
.w2-brand-logo img { width: 48px; height: 48px; object-fit: contain; }
.w2-brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; color: var(--text); }
.w2-brand-tag { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.w2-nav { display: flex; align-items: center; gap: 6px; }
.w2-nav a {
  text-decoration: none; color: var(--muted);
  font-size: .92rem; font-weight: 600;
  padding: 8px 14px; border-radius: 12px;
  transition: color .15s, background .15s;
}
.w2-nav a:hover, .w2-nav a.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }

.w2-lang {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 34px 8px 12px; border-radius: 12px;
  background: var(--card-raised); border: 1px solid var(--border);
  color: var(--text); font-size: .88rem; font-weight: 600;
}
.w2-lang svg { width: 18px; height: 18px; color: var(--muted); }
.w2-lang select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; cursor: pointer;
}
.w2-lang select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.w2-lang select option { background: var(--card); color: var(--text); }
.w2-lang::after {
  content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.w2-menu-btn { display: none; }
.w2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- Botons i camps */
.w2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 var(--body);
  padding: 15px 22px; border-radius: var(--radius-sm);
  color: #fff; background: var(--brand); box-shadow: var(--brand-glow);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.w2-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 18px 40px rgba(79, 70, 229, .55); }
.w2-btn:active { transform: translateY(0); }
.w2-btn:focus-visible { outline: 3px solid rgba(129, 140, 248, .6); outline-offset: 3px; }
.w2-btn svg { width: 20px; height: 20px; }
.w2-btn-block { width: 100%; }

.w2-field { margin-bottom: 16px; }
.w2-label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--text); }
.w2-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px; height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(17, 15, 28, .65);
  border: 1px solid var(--border-strong);
  transition: border-color .15s, box-shadow .15s;
}
.w2-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(129, 140, 248, .18); }
.w2-input-wrap > svg { width: 20px; height: 20px; color: var(--faint); flex-shrink: 0; }
.w2-input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  color: var(--text); font: 500 1rem var(--body);
}
.w2-input::placeholder { color: var(--faint); }
.w2-input:-webkit-autofill,
.w2-input:-webkit-autofill:hover,
.w2-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px #17152a inset;
  caret-color: var(--text);
  transition: background-color 9999s;
}
.w2-icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; margin-right: -6px;
  border: 0; border-radius: 10px; background: transparent; color: var(--faint); cursor: pointer;
}
.w2-icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.w2-icon-btn svg { width: 20px; height: 20px; }

.w2-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; font-size: .9rem; color: var(--muted); }
.w2-check input { width: 18px; height: 18px; accent-color: var(--indigo); margin: 0; }

.w2-alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 18px; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .35);
  color: #ffd5dc; font-size: .92rem; line-height: 1.4;
}
.w2-alert svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--rose); }

.w2-link { color: #a594ff; font-weight: 700; text-decoration: none; }
.w2-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Login (portada) */
.w2-auth {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(360px, 410px);
  align-items: center;
  gap: 36px;
  padding: 36px 20px 40px;
}

.w2-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: #fcd34d;
  background: rgba(252, 211, 77, .08);
  border: 1px solid rgba(252, 211, 77, .35);
}
.w2-pill svg { width: 16px; height: 16px; }
.w2-pill span + span { color: var(--muted); }
.w2-pill .sep { color: var(--faint); }

.w2-hero-title { margin: 22px 0 14px; line-height: 1.04; }
.w2-hero-title .brand-word {
  display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800;
  background: linear-gradient(90deg, #8b7bff 0%, #6d8bff 55%, #4fa3ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w2-hero-title .claim { display: block; font-size: clamp(2rem, 3.2vw, 2.85rem); font-weight: 700; color: var(--text); max-width: 12.5em; }
.w2-hero-text { margin: 0 0 26px; max-width: 520px; color: var(--muted); font-size: 1.05rem; }

.w2-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.w2-feature { display: flex; align-items: center; gap: 16px; }
.w2-feature-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px;
  display: grid; place-items: center; color: #fff;
}
.w2-feature-icon svg { width: 26px; height: 26px; }
.w2-feature-icon.purple { background: linear-gradient(135deg, #7c5cff, #4f46e5); box-shadow: 0 10px 24px rgba(124, 92, 255, .35); }
.w2-feature-icon.teal   { background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 10px 24px rgba(45, 212, 191, .3); }
.w2-feature-icon.orange { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 10px 24px rgba(249, 115, 22, .3); }
.w2-feature-icon.pink   { background: linear-gradient(135deg, #e879f9, #c026d3); box-shadow: 0 10px 24px rgba(192, 38, 211, .3); }
.w2-feature h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.w2-feature p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* Mòbils amb captures reals de l'app */
.w2-devices { position: relative; height: 560px; }
.w2-devices::before {
  content: ''; position: absolute; inset: 8% 4% 6%;
  background: radial-gradient(closest-side, rgba(109, 74, 255, .45), transparent);
  filter: blur(30px);
}
.w2-devices::after {
  content: ''; position: absolute; width: 360px; height: 360px; right: -40px; top: 10px;
  border-radius: 50%; border: 34px solid rgba(124, 92, 255, .10);
}
.w2-phone {
  position: absolute; width: 218px; aspect-ratio: 540 / 1199;
  padding: 8px; border-radius: 36px;
  background: #0b0a14;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(124, 92, 255, .25), 0 0 60px rgba(109, 74, 255, .25);
  z-index: 1;
}
.w2-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.w2-phone.front { left: 4%; top: 46px; z-index: 2; transform: rotate(-4deg); }
.w2-phone.back { right: 2%; top: 0; transform: rotate(5deg) scale(.94); opacity: .95; }

/* Targeta del formulari */
.w2-card {
  padding: 32px 30px 28px;
  border-radius: 26px;
  background: rgba(29, 27, 43, .78);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(124, 92, 255, .12) inset;
}
.w2-card h1 { margin: 0 0 8px; font-size: 1.75rem; font-weight: 700; }
.w2-card-sub { margin: 0 0 24px; color: var(--muted); font-size: .95rem; }
.w2-card-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .95rem; }
.w2-card-foot p { margin: 0 0 10px; }
.w2-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 18px; color: var(--faint); font-size: .85rem; }
.w2-divider::before, .w2-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }

/* Franja de confiança */
.w2-trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(17, 15, 28, .55);
  backdrop-filter: blur(10px);
}
.w2-trust-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px 18px; }
.w2-trust-item + .w2-trust-item { border-left: 1px solid var(--border); }
.w2-trust-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: rgba(129, 140, 248, .12); color: var(--accent);
}
.w2-trust-icon.teal { background: rgba(45, 212, 191, .12); color: var(--teal); }
.w2-trust-icon.pink { background: rgba(232, 121, 249, .12); color: #e879f9; }
.w2-trust-icon svg { width: 22px; height: 22px; }
.w2-trust-item strong { display: block; font-size: .95rem; }
.w2-trust-item span:not(.w2-trust-icon) { display: block; color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- Peu */
.w2-footer { border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; }
.w2-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.w2-footer a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.w2-footer a:hover { color: var(--text); }

/* Bàner de cookies amb l'estil nou */
.w2 #calendapt-cookie-banner {
  background: rgba(29, 27, 43, .96) !important;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5) !important;
}
.w2 #calendapt-cookie-banner button {
  border: 0; cursor: pointer; color: #fff; font: 700 .9rem var(--body);
  padding: 10px 18px; border-radius: 12px; background: var(--brand) !important;
}
.w2 #calendapt-cookie-banner #calendapt-reject-analytics { background: var(--card-raised) !important; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .w2-auth { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); }
  .w2-devices { display: none; }
}
@media (max-width: 900px) {
  .w2-nav { display: none; }
  .w2-auth { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; align-content: start; }
  .w2-auth-form { order: -1; }
  .w2-trust { grid-template-columns: 1fr; }
  .w2-trust-item { justify-content: flex-start; }
  .w2-trust-item + .w2-trust-item { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .w2-container, .w2-auth { padding-left: 16px; padding-right: 16px; }
  .w2-brand-tag { display: none; }
  .w2-card { padding: 26px 20px 22px; border-radius: 22px; }
  .w2-lang { padding-right: 30px; }
  .w2-footer a { margin: 0 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .w2-btn, .w2-nav a { transition: none; }
}

/* ==========================================================================
   Portada (index.php)
   ========================================================================== */
.w2-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: var(--radius-sm);
  font: 700 1rem/1 var(--body); color: var(--text); text-decoration: none; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong);
  transition: background .15s, border-color .15s;
}
.w2-btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); }
.w2-btn svg, .w2-btn-ghost svg, .w2-btn-white svg, .w2-btn-outline-white svg { width: 20px; height: 20px; }

.w2-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center; gap: 40px; padding-top: 44px; padding-bottom: 30px;
}
.w2-hero-h1 {
  margin: 22px 0 18px; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; font-weight: 800;
  background: linear-gradient(100deg, #ffffff 0%, #e4dfff 45%, #9fb1ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w2-chips { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.w2-chips li {
  padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong);
}
.w2-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.w2-section { padding-top: 56px; padding-bottom: 8px; }
.w2-section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.w2-section-head h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.w2-section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.w2-center { text-align: center; margin-top: 22px; }

/* Aparició suau */
.w2-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.w2-reveal.is-visible { opacity: 1; transform: none; }

/* Xifres en blocs de color (com a l'app) */
.w2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w2-stat {
  position: relative; overflow: hidden; padding: 24px 24px 22px; border-radius: 24px; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.w2-stat::after {
  content: ''; position: absolute; right: -40px; bottom: -50px; width: 160px; height: 160px;
  border-radius: 50%; border: 24px solid rgba(255, 255, 255, .12);
}
.w2-stat.purple { background: linear-gradient(135deg, #7c5cff, #4338ca); box-shadow: 0 18px 40px rgba(109, 74, 255, .3); }
.w2-stat.blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 18px 40px rgba(37, 99, 235, .3); }
.w2-stat.teal   { background: linear-gradient(135deg, #0f9f8f, #0b6f66); box-shadow: 0 18px 40px rgba(15, 159, 143, .3); }
.w2-stat-value { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.w2-stat strong { font-family: var(--display); font-size: 1.1rem; }
.w2-stat > span:last-child { color: rgba(255, 255, 255, .85); font-size: .92rem; max-width: 30ch; }

/* Targetes de funcionalitats */
.w2-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w2-feature-card, .w2-who-card {
  padding: 24px; border-radius: 22px;
  background: rgba(29, 27, 43, .7); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s, background .2s;
}
.w2-feature-card:hover, .w2-who-card:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, .35); background: rgba(40, 37, 56, .75); }
.w2-feature-card h3, .w2-who-card h3 { margin: 16px 0 6px; font-size: 1.12rem; font-weight: 700; }
.w2-feature-card p, .w2-who-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.w2-feature-icon.blue  { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 10px 24px rgba(37, 99, 235, .3); }
.w2-feature-icon.amber { background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 10px 24px rgba(245, 158, 11, .3); color: #3b2a00; }
.w2-who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Galeria de captures */
.w2-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w2-shot {
  position: relative; display: block; padding: 0; overflow: hidden; cursor: zoom-in; text-align: left;
  border-radius: 18px; border: 1px solid var(--border); background: var(--card);
  aspect-ratio: 16 / 10; color: var(--text); font: inherit; width: 100%;
}
.w2-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .4s ease; }
.w2-shot:hover img { transform: scale(1.04); }
.w2-shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.w2-shot-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(10, 9, 18, .95), rgba(10, 9, 18, 0));
}
.w2-shot-caption strong { display: block; font-family: var(--display); font-size: 1rem; }
.w2-shot-caption span { display: block; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2-shot-zoom {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(17, 15, 28, .7); color: #fff; opacity: 0; transition: opacity .2s;
}
.w2-shot-zoom svg { width: 18px; height: 18px; }
.w2-shot:hover .w2-shot-zoom, .w2-shot:focus-visible .w2-shot-zoom { opacity: 1; }
.w2-gallery .is-extra { display: none; }
.w2-gallery.show-all .is-extra { display: block; }

/* Preguntes freqüents */
.w2-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.w2-faq details { border-radius: 18px; background: rgba(29, 27, 43, .7); border: 1px solid var(--border); }
.w2-faq details[open] { border-color: rgba(129, 140, 248, .35); }
.w2-faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
}
.w2-faq summary::-webkit-details-marker { display: none; }
.w2-faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.w2-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.w2-faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Crida final */
.w2-final {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px; border-radius: 28px; background: var(--brand);
  box-shadow: 0 28px 60px rgba(79, 70, 229, .35);
}
.w2-final::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 36px solid rgba(255, 255, 255, .1);
}
.w2-final h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; }
.w2-final p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 46ch; }
.w2-final-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.w2-btn-white, .w2-btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: var(--radius-sm);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.w2-btn-white { background: #fff; color: #3730a3; border: 0; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.w2-btn-white:hover { filter: brightness(.96); }
.w2-btn-outline-white { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.w2-btn-outline-white:hover { background: rgba(255, 255, 255, .16); }
.w2-contact-note { text-align: center; color: var(--muted); margin: 16px auto 40px; max-width: 60ch; font-size: .95rem; }

/* Finestres (contacte i visor) */
.w2-modal, .w2-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8, 7, 15, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.w2-modal.active, .w2-lightbox.active { display: flex; }
.w2-modal-box { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; }
.w2-modal-box h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.5rem; }
.w2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w2-select { position: relative; }
.w2-select::after {
  content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.w2-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px; }
.w2-select select option { background: var(--card); color: var(--text); }
.w2-textarea { height: auto; padding: 12px 14px; }
.w2-textarea textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.w2-meta { display: flex; justify-content: space-between; margin-top: 6px; color: var(--faint); font-size: .82rem; }
.w2-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.w2-success {
  margin: 4px 0 18px; padding: 14px 16px; border-radius: 12px;
  background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .35); color: #c8fff6;
}
.w2-lightbox-box { width: 100%; max-width: 1100px; }
.w2-lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.w2-lightbox-head strong { font-family: var(--display); font-size: 1.15rem; }
.w2-lightbox-body { position: relative; }
.w2-lightbox-body img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 16px; background: var(--card); }
.w2-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: rgba(17, 15, 28, .8); color: #fff; font-size: 1.6rem; cursor: pointer;
}
.w2-lightbox-nav.prev { left: 10px; }
.w2-lightbox-nav.next { right: 10px; }

/* Barra fixa al mòbil */
.w2-sticky { display: none; }

@media (max-width: 1080px) {
  .w2-hero { grid-template-columns: 1fr; }
  .w2-hero .w2-devices { display: none; }
  .w2-feature-grid, .w2-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .w2-stats, .w2-feature-grid, .w2-who-grid, .w2-gallery { grid-template-columns: 1fr; }
  .w2-two { grid-template-columns: 1fr; }
  .w2-final { padding: 28px 22px; }
  .w2-hero { padding-top: 24px; }
  .w2-sticky {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    padding: 10px; border-radius: 18px; background: rgba(29, 27, 43, .92); border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  }
  .w2-sticky a { flex: 1; padding: 13px 10px; }
  .w2-landing ~ .w2-footer, .w2-sticky ~ .w2-footer { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .w2-reveal { opacity: 1; transform: none; transition: none; }
  .w2-shot img, .w2-feature-card, .w2-who-card { transition: none; }
}

/* ---------------------------------------------------------------- Registre, contrasenya i verificació */
.w2-auth-reg { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
.w2-checklist { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.w2-checklist li {
  position: relative;
  padding: 14px 16px 14px 52px;
  border-radius: 16px;
  background: rgba(29, 27, 43, .6);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.45;
}
.w2-checklist li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
}

/* Passos del registre */
.w2-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; align-items: center; }
.w2-steps li { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: .78rem; font-weight: 700; }
.w2-steps li + li::before { content: ""; flex: 0 0 18px; height: 2px; margin-right: 2px; border-radius: 2px; background: var(--border-strong); }
.w2-step-dot {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border-strong);
  font-size: .8rem;
}
.w2-steps li.is-current { color: var(--text); }
.w2-steps li.is-current .w2-step-dot { background: var(--brand); border-color: transparent; color: #fff; box-shadow: var(--brand-glow); }
.w2-steps li.is-done { color: var(--muted); }
.w2-steps li.is-done .w2-step-dot { background: rgba(45, 212, 191, .18); border-color: rgba(45, 212, 191, .5); color: #5eead4; }
.w2-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Avís verd */
.w2-alert.is-ok { background: rgba(45, 212, 191, .12); border-color: rgba(45, 212, 191, .4); color: #ccfbf1; }
.w2-alert.is-ok svg { color: #2dd4bf; }
.w2-alert a { color: #fff; font-weight: 700; }

.w2-hint { margin: 10px 0 0; color: var(--faint); font-size: .84rem; line-height: 1.45; }
.w2-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w2-input-solo {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(17, 15, 28, .55);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
  color-scheme: dark;
  outline: none;
}
.w2-input-solo:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(129, 140, 248, .18); }
select.w2-input-solo option { background: var(--card); }
.w2-dob { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; }
.w2-at { color: var(--faint); font-weight: 700; }
.w2-actions-row { display: flex; gap: 10px; margin-top: 6px; }
.w2-actions-row .w2-btn { flex: 1; }
.w2-actions-row .w2-btn-ghost { flex: 0 0 auto; }

/* Requisits de contrasenya */
.w2-reqs { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(17, 15, 28, .45); border: 1px solid var(--border); }
.w2-reqs p { margin: 0 0 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.w2-reqs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.w2-reqs .requirement-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--faint);
  font-size: .78rem;
  font-weight: 650;
  transition: background .15s ease, color .15s ease;
}
.w2-reqs .requirement-circle { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.w2-reqs .requirement-item.valid { background: rgba(45, 212, 191, .14); color: #5eead4; }
.w2-reqs .requirement-item.valid .requirement-circle { background: #2dd4bf; box-shadow: 0 0 8px rgba(45, 212, 191, .8); }
.w2-match { margin: 8px 0 0; font-size: .82rem; font-weight: 700; }
.w2-match.is-ok { color: #5eead4; }
.w2-match.is-bad { color: #fda4af; }

/* Pàgines d'una sola targeta (contrasenya, verificació) */
.w2-auth-center { flex: 1; display: grid; place-items: center; padding-top: 30px; padding-bottom: 50px; }
.w2-card-narrow { width: 100%; max-width: 460px; }
.w2-card-center { text-align: center; }
.w2-big-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--brand-glow);
}
.w2-card-center .w2-big-icon { margin-left: auto; margin-right: auto; width: 76px; height: 76px; border-radius: 50%; }
.w2-big-icon svg { width: 30px; height: 30px; }
.w2-big-icon.is-ok { background: linear-gradient(135deg, #0d9488, #2dd4bf); box-shadow: 0 14px 34px rgba(45, 212, 191, .4); }
.w2-big-icon.is-bad { background: linear-gradient(135deg, #be123c, #f43f5e); box-shadow: 0 14px 34px rgba(244, 63, 94, .4); }
.w2-card .w2-btn-block { justify-content: center; text-decoration: none; }
a.w2-btn-ghost.w2-btn-block { display: inline-flex; align-items: center; justify-content: center; width: 100%; }

@media (max-width: 900px) {
  .w2-auth-reg { grid-template-columns: 1fr; }
  .w2-auth-reg .w2-auth-form { order: -1; }
  .w2-checklist { display: none; }
}
@media (max-width: 520px) {
  .w2-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .w2-step-label { display: none; }
  .w2-steps li { flex: 0 0 auto; }
  .w2-steps li + li::before { flex-basis: 40px; }
  .w2-steps { justify-content: center; }
}
.w2-reg-claim { font-size: clamp(2.2rem, 3.6vw, 3.1rem) !important; max-width: 14em !important; }
.w2-grad { background: linear-gradient(90deg, #a5b4fc, #818cf8 45%, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Peu: enllaços a les guies (v33) */
.w2-footer-guides { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 16px 20px 0; font-size: .82rem; }
.w2-footer-guides a { color: var(--faint); text-decoration: none; }
.w2-footer-guides a:hover { color: var(--text); }
