/* =========================================================
   Dia Mundial de la Salut Espiritual · 21 de juny
   Càtedra UB-FSM · bsocialcomunicacion.com
   ========================================================= */

/* --- Tokens ------------------------------------------------ */
:root {
  --blue:        #003DA5;
  --amber:       #E8A020;
  --amber-light: #F5C842;
  --amber-dark:  #E8850A;
  --navy:        #001A3A;
  --white:       #FFFFFF;
  --cream:       #F4F2EE;
  --text-1:      #1A1A1A;
  --text-2:      #555555;
  --text-3:      #888888;
  --rule:        #EDEAE3;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', system-ui, -apple-system, sans-serif;
  --pad-x:       clamp(24px, 8.33vw, 120px);
  --pad-section: clamp(56px, 6.67vw, 96px);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text-1); background: var(--white); -webkit-font-smoothing: antialiased; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }
a    { color: inherit; text-decoration: none; }

/* --- Utils ------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
}
.rule {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  border: none;
  margin: 0;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--pad-x);
  background: var(--white);
  border-bottom: 1px solid #F0EDE6;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  overflow: hidden;
  height: 64px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 280px;
  width: auto;
  display: block;
  margin-top: -98px;
}
.nav-menu  { display: flex; gap: 40px; list-style: none; }
.nav-menu a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-menu a:hover { color: var(--amber); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-1); }
.lang-switcher { display: flex; gap: 8px; align-items: center; margin-left: 32px; }
.lang-switcher a, .lang-switcher .lang-active { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; transition: color .2s, background .2s; }
.lang-switcher a { color: var(--text-2); }
.lang-switcher a:hover { color: var(--amber); }
.lang-switcher .lang-active { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); cursor: default; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, #B87520 0%, #D4920A 35%, #C07818 65%, #7A3A08 100%);
  /* Substituir per una fotografia càlida de solstici/alba */
}
.hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)   0%,
    rgba(0,0,0,0)  35%,
    rgba(0,0,0,.47) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 var(--pad-x) 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber-light);
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  max-width: 860px;
}
.hero-sub {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  max-width: 680px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--amber-light);
  color: #1A1000;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  transition: background .2s;
}
.btn-primary:hover { background: var(--amber); }
.btn-ghost {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.btn-ghost:hover { color: var(--white); }

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.stat-col {
  padding: 36px 48px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-col:first-child { border-left: none; }
.stat-n {
  font-family: var(--serif);
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat-l {
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
}
.stat-s {
  font-size: 11px;
  color: #AAAAAA;
}

/* =========================================================
   QUÈ ÉS
   ========================================================= */
.que-es {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  min-height: 560px;
}
.que-es-text {
  padding: var(--pad-section) 80px var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}
.que-es-text .eyebrow { margin-bottom: -16px; }
.que-es-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.06vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
}
.que-es-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}
.que-es-img {
  background: linear-gradient(135deg, #C8954A 0%, #E8A84A 40%, #D4882A 100%);
  min-height: 480px;
  /* Substituir per foto càlida de persona/natura/llum espiritual */
}

/* =========================================================
   SOLSTICI BAND
   ========================================================= */
.solstici-band {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(to bottom, #F5A500, #E8850A);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
}
.solstici-bg-num {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(200px, 41.7vw, 600px);
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,.09);
  user-select: none;
  pointer-events: none;
}
.solstici-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}
.solstici-tag  { color: rgba(26,16,0,.5); }
.solstici-h2 {
  font-family: var(--serif);
  font-size: clamp(56px, 6.94vw, 100px);
  font-weight: 700;
  line-height: 1;
  color: #1A1000;
}
.solstici-subtitle {
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: 1.5;
  color: rgba(26,16,0,.8);
  max-width: 680px;
}
.solstici-body {
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.65;
  color: rgba(26,16,0,.73);
  max-width: 720px;
}

/* =========================================================
   PER QUÈ EL 21 DE JUNY
   ========================================================= */
.per-que {
  background: var(--cream);
  padding: var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.per-que-hdr { display: flex; flex-direction: column; gap: 16px; }
.per-que-h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.78vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
  max-width: 760px;
}
.per-que-rows { display: flex; flex-direction: column; }
.rao {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.rao-n {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: rgba(232,160,32,.4);
  line-height: 1;
}
.rao-right { display: flex; flex-direction: column; gap: 10px; }
.rao-t {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}
.rao-d {
  font-size: 15px;
  line-height: 1.7;
  color: #666666;
}

/* =========================================================
   QUOTE BAND
   ========================================================= */
.quote-band {
  background: var(--white);
  padding: var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 700;
  line-height: .5;
  color: var(--amber);
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-1);
  max-width: 860px;
  font-style: italic;
}
.quote-author {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

/* =========================================================
   CÀTEDRA
   ========================================================= */
.catedra {
  display: grid;
  grid-template-columns: 640px 1fr;
  background: var(--cream);
  min-height: 520px;
}
.catedra-text {
  padding: var(--pad-section) 80px var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}
.catedra-h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.64vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
}
.catedra-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}
.catedra-logos { display: flex; flex-direction: column; gap: 12px; }
.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 0;
  flex-shrink: 0;
}
.logo-lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.catedra-img {
  background: linear-gradient(135deg, #8A7040 0%, #B09060 40%, #907848 100%);
  min-height: 480px;
  /* Substituir per foto campus universitari càlid */
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--white);
  padding: var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.cta-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.61vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-1);
  max-width: 800px;
}
.cta-sub {
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 640px;
}
.cta-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-outline {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid #CCCCCC;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-primary-dark {
  display: inline-block;
  padding: 14px 36px;
  background: var(--amber);
  color: #1A1000;
  font-size: 15px;
  font-weight: 700;
  border-radius: 3px;
  transition: background .2s;
}
.btn-primary-dark:hover { background: var(--amber-dark); }

/* =========================================================
   FORMULARI D'ADHESIÓ
   ========================================================= */
.form-section {
  background: var(--cream);
  padding: var(--pad-section) var(--pad-x);
  border-top: 1px solid var(--rule);
}
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.form-h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.78vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
  margin-top: 12px;
  margin-bottom: 16px;
}
.form-intro-text {
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row--single {
  grid-template-columns: 1fr;
  max-width: calc(50% - 10px);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-row .form-group { margin-bottom: 0; }
.form-group label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-1);
  background: var(--white);
  border: 1px solid #D9D5CC;
  border-radius: 3px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, .15);
}
.form-group textarea { resize: vertical; min-height: 108px; }
.form-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.form-rgpd input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--amber);
  cursor: pointer;
}
.form-rgpd label {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  cursor: pointer;
}
.form-required { color: var(--amber); }
.form-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  margin-bottom: 28px;
}
button.btn-primary-dark {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
button.btn-primary-dark:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.form-submit { margin-bottom: 20px; }
#form-status {
  font-size: 14px;
  line-height: 1.5;
  min-height: 20px;
}
.form-status--ok { color: #1A6B35; }
.form-status--err { color: #B91C1C; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--navy);
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  padding: 64px var(--pad-x);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}
.footer-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.footer-date {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--amber);
}
.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #5A7A9A;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #3A5A78;
}
.footer-nav a {
  font-size: 14px;
  color: #7A9AB8;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad-x);
  border-top: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span {
  font-size: 11px;
  color: #3A5A78;
}

/* =========================================================
   VALORS
   ========================================================= */
.valors {
  background: var(--cream);
  padding: var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 48px;
  border-top: 1px solid var(--rule);
}
.valors-hdr { display: flex; flex-direction: column; gap: 16px; }
.valors-h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.78vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
  max-width: 640px;
}
.valors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.valor-card {
  background: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.valor-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}
.valor-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* =========================================================
   EVIDÈNCIA CIENTÍFICA
   ========================================================= */
.evidencia {
  background: var(--cream);
  padding: var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.evidencia-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 40px;
}
.evidencia-h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.78vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
}
.evidencia-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}
.evidencia-source {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.evidencia-body { display: flex; flex-direction: column; gap: 48px; }

/* Stats row — 3 iguals */
.ev-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.ev-stat {
  background: var(--white);
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-stat-n {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.ev-stat-l1 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.ev-stat-l2 {
  font-size: 12px;
  color: var(--text-3);
}

/* Text JAMA */
.ev-jama {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  padding-left: 40px;
}

/* Outcomes grid — 4 items en fila */
.ev-outcomes { display: flex; flex-direction: column; gap: 20px; padding-left: 40px; }
.ev-outcomes-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
}
.ev-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent;
}
.ev-outcome-item {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ev-outcome-n {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: rgba(232,160,32,.35);
  line-height: 1;
}
.ev-outcome-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
}

/* PAEL */
.ev-pael {
  padding-left: 40px;
}
.pael-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-3);
}

/* =========================================================
   ODS
   ========================================================= */
.ods {
  background: linear-gradient(to bottom, #F5A500, #E8850A);
  padding: var(--pad-section) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.ods-hdr {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}
.ods-hdr .eyebrow { color: rgba(26,16,0,.4); }
.ods-h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.78vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #1A1000;
}
.ods-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(26,16,0,.73);
}
.ods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.ods-item {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ods-num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
}
.ods-name {
  font-size: 15px;
  font-weight: 600;
  color: #1A1000;
  line-height: 1.4;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .catedra { grid-template-columns: 1fr; }
  .catedra-img { min-height: 320px; order: -1; }
  .catedra-text { padding: var(--pad-section) var(--pad-x); }
  .valors-grid { grid-template-columns: repeat(2, 1fr); }
  .ods-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .que-es { grid-template-columns: 1fr; }
  .que-es-img { min-height: 300px; order: -1; }
  .que-es-text { padding: var(--pad-section) var(--pad-x); }
  .ev-stats-row { grid-template-columns: 1fr; }
  .ev-outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 24px var(--pad-x);
    gap: 20px;
  }
  .hero { height: 560px; }
  .solstici-band { height: auto; padding: 64px var(--pad-x); }
  .solstici-bg-num { display: none; }
  .footer-main { flex-direction: column; gap: 40px; }
  .valors-grid { grid-template-columns: 1fr; }
  .ods-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ev-outcomes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 32px; }
  .cta-btns { flex-direction: column; width: 100%; }
  .btn-primary-dark, .btn-outline { width: 100%; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-row--single { max-width: 100%; }
  .form-submit { width: 100%; text-align: center; }
}
