/* ============================================================
   ASBAE 2026 — Full Stylesheet
   Variables → Reset → Base → Components → Seccions → Mobile
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --red:        #E20015;
  --red-dark:   #8b0010;
  --navy:       #1a1a2e;
  --bg:         #0f0f1a;
  --gold:       #FFD700;
  --text:       #ffffff;
  --text-muted: #aaaaaa;
  --text-dim:   #666666;
  --glass-bg:   rgba(255, 255, 255, 0.05);
  --glass-border:rgba(255, 255, 255, 0.10);
  --glass-blur: blur(12px);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:       'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --nav-h:      72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ff3344; }

ul { list-style: none; }

/* ── TIPOGRAFIA ─────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container    { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.section      { padding: 100px 0; }

/* ── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.btn:hover::before { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary::before { background: rgba(0,0,0,0.15); }
.btn-primary:hover   { color: #fff; box-shadow: 0 0 30px rgba(226,0,21,0.5); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline::before { background: rgba(255,255,255,0.1); }
.btn-outline:hover   { border-color: #fff; color: #fff; }

.btn-lg   { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-titol  { color: var(--text); }
.section-subtitol { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }
.section-linia  {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ── SECTION DIVIDERS ────────────────────────────────────────── */
.section-divider {
  line-height: 0;
  background: var(--navy);
}
.section-divider svg { width: 100%; height: 80px; display: block; }
.section-divider-inv { background: var(--bg); }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.7s forwards;
}
.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.25s; }
.animate-in:nth-child(3) { animation-delay: 0.4s; }
.animate-in:nth-child(4) { animation-delay: 0.55s; }
.animate-in:nth-child(5) { animation-delay: 0.7s; }
.animate-in:nth-child(6) { animation-delay: 0.85s; }
.animate-in:nth-child(7) { animation-delay: 1.0s; }

@keyframes slideUp {
  to { opacity: 1; transform: none; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* ── NAVEGACIÓ ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-logo-text { letter-spacing: 1px; }
.nav-logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--red); }

.nav-link-cta {
  background: var(--red);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 50px;
}
.nav-link-cta:hover { background: var(--red-dark); }

.nav-idioma {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all var(--transition);
}
.nav-idioma:hover { border-color: var(--red); color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 26, 0.92) 0%,
    rgba(15, 15, 26, 0.75) 50%,
    rgba(226, 0, 21, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-titol {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-titol-accent {
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitol {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}
.hero-meta-item { display: flex; align-items: center; gap: 6px; }
.hero-meta-sep  { color: rgba(255,255,255,0.3); }

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 12px;
}
.countdown-num {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  transition: color 0.3s;
}
.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 6px;
}
.countdown-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 20px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-places-aviso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--red));
  margin: 0 auto;
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── SOBRE ───────────────────────────────────────────────────── */
.sobre { background: var(--navy); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.sobre-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.sobre-punts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sobre-punts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}
.sobre-punts svg { flex-shrink: 0; margin-top: 2px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  padding: 28px 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-text {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ── PROGRAMA / TIMELINE ─────────────────────────────────────── */
.programa { background: var(--bg); }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Línia vertical animada */
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(226,0,21,0.1));
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 20px 1fr;
  gap: 0 20px;
  margin-bottom: 24px;
  align-items: start;
}

.timeline-hora {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  padding-top: 18px;
  font-variant-numeric: tabular-nums;
}

.timeline-punt {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 22px;
}
.timeline-punt::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(226,0,21,0.3);
  transition: box-shadow var(--transition);
}
.timeline-item:hover .timeline-punt::before {
  box-shadow: 0 0 0 6px rgba(226,0,21,0.2);
}

/* Colors per tipus d'activitat */
.timeline-item[data-tipus="conferencia"]  .timeline-punt::before { background: #2196F3; }
.timeline-item[data-tipus="taula_rodona"] .timeline-punt::before { background: #9C27B0; }
.timeline-item[data-tipus="workshop"]     .timeline-punt::before { background: #FF9800; }
.timeline-item[data-tipus="dinar"]        .timeline-punt::before { background: #4CAF50; }
.timeline-item[data-tipus="sopar"]        .timeline-punt::before { background: var(--gold); }
.timeline-item[data-tipus="visita"]       .timeline-punt::before { background: #00BCD4; }
.timeline-item[data-tipus="pausa"]        .timeline-punt::before { background: #78909C; }

.timeline-card {
  overflow: hidden;
}

.timeline-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.timeline-header:hover { background: rgba(255,255,255,0.04); }
.timeline-header:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.timeline-titol-grup { flex: 1; min-width: 0; }
.timeline-titol   { font-size: 1rem; font-weight: 600; color: var(--text); }
.timeline-subtitol{ font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; display: block; }

.timeline-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.timeline-header[aria-expanded="true"] .timeline-arrow {
  transform: rotate(180deg);
}

.timeline-body {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
}

/* Badges de tipus */
.timeline-tipus-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.tipus-conferencia  { background: rgba(33,150,243,.2); color: #64b5f6; }
.tipus-taula_rodona { background: rgba(156,39,176,.2); color: #ce93d8; }
.tipus-workshop     { background: rgba(255,152,0,.2);  color: #ffb74d; }
.tipus-dinar,
.tipus-sopar        { background: rgba(76,175,80,.2);  color: #81c784; }
.tipus-visita       { background: rgba(0,188,212,.2);  color: #80deea; }
.tipus-pausa,
.tipus-logistica    { background: rgba(120,144,156,.2); color: #b0bec5; }

/* ── PATROCINADORS ───────────────────────────────────────────── */
.patrocinadors { background: var(--navy); }

.pat-filtres {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.pat-filtre {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.pat-filtre:hover  { border-color: var(--red); color: var(--text); }
.pat-filtre.actiu  { background: var(--red); border-color: var(--red); color: #fff; }

.pat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.pat-card {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all var(--transition);
}
.pat-card.oculta { display: none; }

.pat-logo-wrap {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Skeleton loader */
.pat-skeleton {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}
@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pat-logo-wrap.loaded .pat-skeleton { display: none; }

.pat-logo {
  font-weight: 800;
  font-size: 1.1rem;
  padding: 10px 16px;
  border-radius: 8px;
  letter-spacing: 1px;
}

.pat-nom       { font-weight: 600; font-size: 0.9rem; }
.pat-cat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.cat-or     { background: rgba(255,215,0,.2); color: #FFD700; }
.cat-plata  { background: rgba(192,192,192,.2); color: #d4d4d4; }
.cat-bronze { background: rgba(205,127,50,.2); color: #cd7f32; }
.cat-col    { background: rgba(255,255,255,.08); color: #888; }

.pat-web-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all var(--transition);
}
.pat-web-link:hover { color: var(--red); border-color: var(--red); }

/* ── INSCRIPCIÓ / FORMULARI ──────────────────────────────────── */
.inscripcio { background: var(--bg); }

.alert-aforament {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px;
  text-align: left;
}
.alert-aforament h3 { color: var(--red); margin-bottom: 8px; }
.alert-aforament p  { color: var(--text-muted); }

.places-num { color: var(--gold); }

.form-inscripcio {
  padding: 40px;
}

fieldset {
  border: none;
  margin-bottom: 36px;
}
legend {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-grup label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-grup input[type=text],
.form-grup input[type=email],
.form-grup input[type=tel],
.form-grup textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-grup input:focus,
.form-grup textarea:focus {
  border-color: var(--red);
  background: rgba(226,0,21,0.04);
}
.form-grup input.error,
.form-grup textarea.error { border-color: var(--red) !important; }
.form-grup textarea { resize: vertical; min-height: 80px; }

/* Input autofill fix */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a1a2e inset !important;
  -webkit-text-fill-color: #fff !important;
}

.form-error {
  font-size: 0.78rem;
  color: #ff6b6b;
  display: block;
  min-height: 1em;
}

/* Modalitats */
.modalitat-opcions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.modalitat-opcio input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.modalitat-opcio {
  cursor: pointer;
}
.modalitat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  transition: all var(--transition);
  position: relative;
  height: 100%;
}
.modalitat-opcio input:checked + .modalitat-card {
  border-color: var(--red);
  background: rgba(226,0,21,0.06);
}
.modalitat-card:hover { border-color: rgba(226,0,21,0.4); }

.modalitat-badge {
  position: absolute;
  top: -1px;
  right: 12px;
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.modalitat-nom  { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.modalitat-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.modalitat-preu { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-top: 6px; }

/* Checkbox custom */
.form-grup-check { flex-direction: row; align-items: center; }
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  user-select: none;
}
.check-label input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.check-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 5px;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.check-label input:checked + .check-custom {
  background: var(--red);
  border-color: var(--red);
}
.check-label input:checked + .check-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.check-label .link-legal { color: var(--red); margin-left: 4px; }

/* Pagament */
.pagament-opcions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pagament-opcio input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.pagament-opcio { cursor: pointer; }
.pagament-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.pagament-opcio input:checked + .pagament-card {
  border-color: var(--red);
  background: rgba(226,0,21,0.06);
}
.pagament-card:hover { border-color: rgba(226,0,21,0.4); }
.pagament-card svg { color: var(--text-muted); flex-shrink: 0; }

.legal-grup { margin-bottom: 28px; }

/* Footer del formulari */
.form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}
.form-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.form-total span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.form-total strong { font-size: 1.8rem; color: var(--gold); font-weight: 700; }

/* Spinner animació */
.spinner {
  animation: spin 0.8s linear infinite;
  stroke-dashoffset: 20;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: #080812;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 12px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }

/* ── TOAST NOTIFICATIONS ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 20px;
  background: #1e1e30;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: toastIn 0.3s ease forwards;
}
.toast.toast-exit { animation: toastOut 0.3s ease forwards; }
.toast-ok    { border-left: 3px solid #4caf50; }
.toast-error { border-left: 3px solid var(--red); }
.toast-warn  { border-left: 3px solid var(--gold); }
.toast-icon  { flex-shrink: 0; font-size: 1.2rem; }
.toast-msg   { font-size: 0.9rem; color: var(--text); }

@keyframes toastIn  { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: none; } }
@keyframes toastOut { from { opacity:1; transform: none; } to { opacity:0; transform: translateX(30px); } }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(15,15,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link, .nav-link-cta {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1.1rem;
  }
  .nav-idioma { width: 100%; text-align: center; padding: 12px; }

  /* Hero */
  .countdown-item  { min-width: 64px; padding: 12px 8px; }
  .countdown-num   { font-size: 1.6rem; }
  .countdown-sep   { font-size: 1.4rem; margin-bottom: 16px; }

  /* Timeline */
  .timeline::before { left: 50px; }
  .timeline-item { grid-template-columns: 50px 16px 1fr; gap: 0 12px; }
  .timeline-hora { font-size: 0.78rem; }

  /* Formulari */
  .form-row         { grid-template-columns: 1fr; }
  .modalitat-opcions{ grid-template-columns: 1fr; }
  .pagament-opcions { grid-template-columns: 1fr; }
  .form-footer      { flex-direction: column; align-items: stretch; }
  .form-inscripcio  { padding: 24px 20px; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-lg    { width: 100%; justify-content: center; }
  .pat-grid  { grid-template-columns: repeat(2, 1fr); }
  .countdown { gap: 4px; }
  .countdown-item { min-width: 56px; }
}
