/* Slow Kung Fu — granat, daurat i crema */
:root {
  --burgundy: #691120;
  --burgundy-deep: #4E0C17;
  --burgundy-soft: rgba(105, 17, 32, .08);
  --gold: #EFC034;
  --gold-soft: rgba(239, 192, 52, .22);
  --gold-text: #8C6407;
  --cream: #F8F6F1;
  --white: #FFFFFF;
  --sand: #E6D8CA;
  --beige: #ECE8DF;
  --ink: #2D2725;
  --muted: #6F6863;
  --bronze: #A6653E;
  --bronze-dark: #8C5232;
  --line: #E7E0D6;

  /* accents (colors del logo i de la posta de sol) */
  --gold-main: #EFC034;  --gold-ink: #8C6407;  --gold-tint: #FDF3D3;
  --rose-main: #D2557A;  --rose-ink: #A3304F;  --rose-tint: #FBE6EC;
  --terra-main: #DB6B40; --terra-ink: #A9431D; --terra-tint: #FCE8DD;
  --sage-main: #7FA36B;  --sage-ink: #4C6E3B;  --sage-tint: #EAF2E4;
  --wine-main: #8E1F33;  --wine-ink: #691120;  --wine-tint: #F5E3E6;
  --amber-main: #F0963A; --amber-ink: #A35810; --amber-tint: #FDEBD6;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 5vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 24px;
  --shadow: 0 18px 48px -22px rgba(45, 39, 37, .32);
  --shadow-sm: 0 6px 20px -10px rgba(45, 39, 37, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--burgundy); text-underline-offset: .2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
.flag svg, .flag svg *, .flag-btn svg, .flag-btn svg * { stroke: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.is-sand { background: linear-gradient(180deg, #FFF7E2 0%, #FCEBDD 100%); }
.is-beige { background: linear-gradient(180deg, #FDF3D3 0%, #FBE6EC 100%); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--burgundy); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Capçaleres de secció */
.sec-head { margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head.is-center { text-align: center; max-width: 40rem; margin-inline: auto; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .9em; }
.sec-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.rule { display: block; width: 72px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-main), var(--terra-main), var(--rose-main), var(--burgundy)); margin: 22px 0 0; }
.is-center .rule { margin-inline: auto; }
.sec-intro { margin: 24px auto 0; color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.sec-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--burgundy); margin-bottom: 16px; box-shadow: 0 10px 24px -10px rgba(239, 192, 52, .9); }
.sec-icon svg { width: 32px; height: 32px; stroke-width: 1.8; }
.icon-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gold-soft); color: var(--burgundy); flex: none; }
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge.is-red { background: var(--burgundy-soft); }
.photo-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.mini-title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 20px 0 10px; }

/* Llistes */
.dots-list { display: grid; gap: 8px; font-size: .95rem; color: var(--muted); }
.dots-list li { position: relative; padding-left: 20px; }
.dots-list li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.dots-list strong { color: var(--ink); font-weight: 600; }
.dots-list.small { font-size: .9rem; }
.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--gold-text); stroke-width: 2.2; }
.checks.two { grid-template-columns: 1fr; font-size: .95rem; }
@media (min-width: 480px) { .checks.two { grid-template-columns: 1fr 1fr; column-gap: 20px; } }

/* Botons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-primary { background: var(--burgundy); color: var(--white); box-shadow: 0 8px 20px -10px rgba(105, 17, 32, .6); }
.btn-primary:hover { background: var(--burgundy-deep); color: var(--white); }
.btn-outline { border-color: var(--burgundy); color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--white); }
.btn-bronze { background: var(--bronze); color: var(--white); }
.btn-bronze:hover { background: var(--bronze-dark); }
.btn-wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.round { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; cursor: pointer; transition: background-color .2s, color .2s; }
.round svg { width: 22px; height: 22px; }

/* ---------- Pantalla d'idioma ---------- */
.splash-page { background: var(--burgundy-deep); }
.splash {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 20px; text-align: center; color: var(--white);
  background: radial-gradient(ellipse at 50% 55%, #84352A 0%, #6A1A20 45%, #4E0C17 100%);
}
.splash > * { animation: rise 1s var(--ease) both; }
.splash > :nth-child(2) { animation-delay: .1s; }
.splash > :nth-child(3) { animation-delay: .2s; }
.splash > :nth-child(4) { animation-delay: .3s; }
.splash-logo { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 16px 40px -12px rgba(0, 0, 0, .5); margin-bottom: 28px; }
.splash-title { color: var(--white); font-size: clamp(2.4rem, 9vw, 3.6rem); letter-spacing: .08em; margin-bottom: 12px; }
.splash-q { color: rgba(255, 255, 255, .62); margin-bottom: 44px; }
.splash-langs { display: grid; gap: 20px; width: min(100%, 300px); }
.lang-card {
  display: grid; justify-items: center; gap: 18px; padding: 32px 24px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.lang-card:hover { background: rgba(255, 255, 255, .12); border-color: rgba(239, 192, 52, .6); transform: translateY(-3px); color: var(--white); }
.lang-card .flag svg { width: 84px; height: 56px; border-radius: 8px; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .45); }
.splash.leaving > * { animation: leave .4s var(--ease) forwards; }
@media (min-width: 640px) { .splash-langs { grid-template-columns: 1fr 1fr; width: min(100%, 580px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes leave { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Capçalera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled { background: rgba(248, 246, 241, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(45, 39, 37, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.scrolled .brand { color: var(--burgundy); }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav ul a { position: relative; padding-block: 6px; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover::after { transform: scaleX(1); }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1.5px solid currentColor; border-radius: 999px; font-size: .9rem; }
.lang-switch .flag svg { width: 22px; height: 15px; border-radius: 3px; }
.menu-btn { display: none; }
@media (max-width: 959px) {
  .menu-btn { display: inline-grid; align-content: center; gap: 5px; width: 48px; height: 48px; margin-right: -10px; padding: 12px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2; }
  .menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px; color: var(--white);
    background: radial-gradient(ellipse at 30% 40%, #7A2A26 0%, var(--burgundy-deep) 75%);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .menu-open { overflow: hidden; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .brand { color: var(--white); }
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); text-align: center; isolation: isolate; overflow: hidden; background: #3a1f17; }
.hero-media, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -1; }
.hero-img { object-fit: cover; animation: drift 26s var(--ease) both; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(30, 14, 10, .55) 0%, rgba(30, 14, 10, .35) 45%, rgba(30, 14, 10, .6) 100%); }
.hero-inner { padding-block: calc(var(--header-h) + 48px) 96px; display: flex; flex-direction: column; align-items: center; }
.hero-title {
  color: var(--white); font-size: clamp(2.7rem, 9.5vw, 6.6rem); line-height: 1.05; text-transform: uppercase;
  letter-spacing: .28em; margin: 0 -.28em 0 0; text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .28em; animation: rise 1.4s var(--ease) both;
}
.hero-title span { display: inline-block; }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1rem + 1.2vw, 1.75rem); color: var(--gold); margin: 26px 0 32px; animation: rise 1.4s .35s var(--ease) both; }
.hero-text { max-width: 40em; animation: rise 1.4s .7s var(--ease) both; }
.hero-text p { color: rgba(255, 255, 255, .9); font-size: clamp(.98rem, .94rem + .2vw, 1.08rem); }
.hero-cta { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); color: var(--white); animation: rise 1.4s 1.1s var(--ease) both, bob 2.6s 2.6s ease-in-out infinite; }
.hero-cta svg { width: 22px; height: 22px; }
.hero-cta:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Objectius ---------- */
.goal-list { display: grid; gap: 20px; }
.goal { background: var(--cream); border-radius: var(--radius); padding: 36px 28px; text-align: center; box-shadow: var(--shadow-sm); }
.goal .icon-badge { margin-bottom: 20px; }
.goal h3 { font-size: 1.35rem; margin-bottom: 12px; }
.goal p { color: var(--muted); margin: 0; }
@media (min-width: 860px) { .goal-list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- Benvinguts ---------- */
.welcome-grid { display: grid; gap: 40px; align-items: center; }
.welcome-media { aspect-ratio: 4 / 3; }
.welcome-text .sec-head { margin-bottom: 28px; }
.welcome-text > p { color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.welcome-line { font-family: var(--font-display); font-style: italic; font-size: 1.2rem !important; color: var(--burgundy) !important; border-left: 2px solid var(--gold); padding-left: 18px; }
@media (min-width: 960px) {
  .welcome-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .welcome-media { aspect-ratio: 5 / 4; }
}

/* ---------- Novetats ---------- */
.news { background: linear-gradient(135deg, #FCE3C2 0%, #F8CBA9 45%, #F1B2A6 100%); }
.carousel { max-width: 1100px; margin-inline: auto; }
.news-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 28px; margin-bottom: -28px;
}
.news-track::-webkit-scrollbar { display: none; }
.news-card { scroll-snap-align: start; display: grid; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-media { background: var(--beige); }
.news-media img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; margin-inline: auto; }
.news-media.is-wide img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 50%; max-height: none; }
@media (min-width: 700px) { .news-media.is-wide img { aspect-ratio: 1345 / 440; } }
.news-body { padding: clamp(24px, 4vw, 44px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--bronze-dark); font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.chip svg { width: 16px; height: 16px; }
.news-body h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); color: var(--ink); margin-bottom: 14px; }
.news-lead { color: var(--muted); font-size: 1.05rem; }
.reveal > summary { list-style: none; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal[open] > summary svg { transform: rotate(180deg); }
.reveal-body { padding-top: 24px; animation: rise .4s var(--ease); }
.reveal-body > p { color: var(--muted); margin-top: 18px; }
.prices { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 14px; }
.prices th, .prices td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.prices thead th { font-weight: 600; font-size: .8rem; color: var(--muted); border-top: 0; }
.prices tbody th { font-weight: 600; }
.prices tbody th small { display: block; font-weight: 400; color: var(--muted); }
.prices td { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--burgundy); white-space: nowrap; }
@media (max-width: 599px) {
  .prices thead { display: none; }
  .prices tr { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; column-gap: 8px; border-top: 1px solid var(--line); padding: 12px 0; }
  .prices tbody th { grid-column: 1 / -1; border: 0; padding: 0 0 8px; }
  .prices td { border: 0; padding: 0; }
  .prices td::before { content: attr(data-label); display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; line-height: 1.3; color: var(--muted); white-space: normal; margin-bottom: 2px; }
}
.carousel-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--burgundy); }
.carousel-ctrl .round:hover:not(:disabled) { background: var(--burgundy); color: var(--white); }
.carousel-ctrl .round:disabled { opacity: .3; cursor: default; }
.dots { display: flex; gap: 2px; }
.dot { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 99px; background: var(--burgundy); opacity: .25; transition: width .3s var(--ease), margin .3s var(--ease), opacity .3s; }
.dot[aria-current="true"]::before { width: 22px; margin-left: -11px; opacity: 1; }
.news-media { background: linear-gradient(135deg, #FDF3D3, #FBE6EC); }
@media (min-width: 900px) {
  .news-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
  .news-head h3 { margin-bottom: 0; }
}

/* ---------- Experiències ---------- */
.svc-grid { display: grid; gap: 28px; align-items: stretch; }
.svc-grid:not(:has(details[open])) { grid-auto-rows: 1fr; }
.svc-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.svc-media { position: relative; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.03); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 14, 12, 0) 45%, rgba(30, 14, 12, .72) 100%); }
.svc-media h3 { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; color: var(--white); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.svc-body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 28px; border-top: 5px solid var(--a, var(--gold)); background: linear-gradient(180deg, var(--tint, #fff) 0%, #fff 160px); }
.svc-body .link-cta { margin-top: auto; align-self: flex-start; }
.svc-body .kicker { margin-bottom: .6em; }
.svc-short { color: var(--muted); }
.svc-body .dots-list { margin-top: 18px; }
.more { margin: 20px 0 22px; }
.more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-style: italic; font-size: .92rem; color: var(--gold-text); font-weight: 500; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.more > p { color: var(--ink); font-size: 1.02rem; margin-top: 10px; animation: rise .4s var(--ease); }
.more .mini-title { border-top: 1px solid var(--line); padding-top: 18px; }
.link-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--burgundy); text-decoration: none; }
.link-cta svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-cta:hover svg { transform: translateX(4px); }
@media (min-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .svc-body { padding: 28px 32px 32px; } }

/* ---------- Galeria ---------- */
.gallery { background: var(--burgundy); color: var(--white); padding-block: clamp(64px, 9vw, 104px); overflow: hidden; text-align: center; }
.gallery-title { color: var(--white); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); margin-bottom: 10px; }
.gallery-hint { color: rgba(255, 255, 255, .6); font-size: .92rem; margin-bottom: 40px; }
.marquee { --h: clamp(200px, 30vw, 320px); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur, 110s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.g-item { display: block; padding: 0; border: 0; background: rgba(255, 255, 255, .06); cursor: zoom-in; border-radius: 16px; overflow: hidden; height: var(--h); }
.g-item img { height: 100%; width: auto; transition: transform .6s var(--ease), filter .3s; }
.g-item:hover img { transform: scale(1.05); }
.marquee:hover .g-item:not(:hover) img { filter: brightness(.65); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(30, 10, 14, .95); color: var(--white); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; animation: rise .3s var(--ease); }
.lightbox::backdrop { background: rgba(30, 10, 14, .6); }
.lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.lightbox .round { color: var(--white); margin: 12px; background: rgba(0, 0, 0, .3); }
.lightbox .round:hover { background: var(--white); color: var(--burgundy); }
.lb-close { position: absolute; top: max(8px, env(safe-area-inset-top)); right: 8px; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { grid-column: 1; padding-inline: 8px; }
  .lb-prev, .lb-next { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ---------- Sobre mi ---------- */
.story-grid { display: grid; gap: 40px; align-items: start; }
.story-media { aspect-ratio: 4 / 5; max-width: 480px; width: 100%; margin-inline: auto; }
.h-icon { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.7rem); margin-bottom: 18px; }
.h-icon svg { width: 26px; height: 26px; color: var(--burgundy); flex: none; }
.story-text > p { color: var(--muted); }
.aims-card { margin-top: 32px; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.aims-card .h-icon { font-size: 1.3rem; }
.xp-title { justify-content: center; margin: clamp(64px, 9vw, 104px) 0 36px; }
.timeline { position: relative; display: grid; gap: 18px; max-width: 900px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--burgundy), var(--gold)); opacity: .35; }
.timeline li { position: relative; padding-left: 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--burgundy); box-shadow: 0 0 0 4px var(--cream); }
.timeline li:last-child::before { background: var(--gold); }
.tl-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-sm); }
.tl-card .year { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--gold-text); margin-bottom: 4px; }
.tl-card p { margin: 0; color: var(--ink); font-size: .96rem; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 5fr 6fr; gap: 64px; }
  .story-media { position: sticky; top: calc(var(--header-h) + 28px); }
  .timeline::before { left: 50%; margin-left: -1px; }
  .timeline li { width: 50%; padding: 0 44px 0 0; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 0 44px; }
  .timeline li::before { left: auto; right: -8px; }
  .timeline li:nth-child(even)::before { left: -8px; right: auto; }
  .timeline li:nth-child(odd) .tl-card { text-align: right; }
  .timeline li + li { margin-top: -36px; }
}

/* ---------- Contacte ---------- */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--cream); border-radius: 20px; padding: 24px 12px; box-shadow: var(--shadow-sm); min-width: 0; }
.info-card .icon-badge { width: 52px; height: 52px; margin-bottom: 8px; }
.info-card .icon-badge svg { width: 22px; height: 22px; }
.info-label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-value { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; font-size: .95rem; }
.info-value.is-email { overflow-wrap: normal; font-size: .88rem; }
a.info-value:hover { color: var(--burgundy); text-decoration: underline; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--burgundy-soft); color: var(--burgundy); font-size: .8rem; font-weight: 600; cursor: pointer; }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { background: rgba(105, 17, 32, .14); }
.contact-grid { display: grid; gap: 28px; margin-top: 28px; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.6rem; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; }
.field label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23691120' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(105, 17, 32, .12); }
.field .invalid { border-color: var(--burgundy); background: #FBF1F2; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--burgundy); }
.check.invalid span { color: var(--burgundy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: #2F6B3A; }
.form-status.err { color: var(--burgundy); }
.map { min-height: 360px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .info-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } .info-card { padding: 28px 16px; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 32px; } }

/* ---------- Peu ---------- */
.site-footer { background: var(--burgundy); color: rgba(255, 255, 255, .78); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 12px; }
.footer-logo img { border-radius: 50%; }
.footer-brand p { margin: 0; font-family: var(--font-display); font-style: italic; color: #F7E3A6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--gold); text-decoration: underline; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .2s, color .2s; }
.footer-social a:hover { background: var(--gold); color: var(--burgundy); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-bottom p { margin: 0; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.3fr 2fr auto; align-items: center; } }

/* ---------- Colors per element ---------- */
.acc-gold  { --a: var(--gold-main);  --ink-a: var(--gold-ink);  --tint: var(--gold-tint); }
.acc-rose  { --a: var(--rose-main);  --ink-a: var(--rose-ink);  --tint: var(--rose-tint); }
.acc-terra { --a: var(--terra-main); --ink-a: var(--terra-ink); --tint: var(--terra-tint); }
.acc-sage  { --a: var(--sage-main);  --ink-a: var(--sage-ink);  --tint: var(--sage-tint); }
.acc-wine  { --a: var(--wine-main);  --ink-a: var(--wine-ink);  --tint: var(--wine-tint); }
.acc-amber { --a: var(--amber-main); --ink-a: var(--amber-ink); --tint: var(--amber-tint); }
[class*="acc-"] .kicker, [class*="acc-"] .more > summary, [class*="acc-"] .link-cta, [class*="acc-"] .checks svg { color: var(--ink-a); }
[class*="acc-"] .dots-list li::before { background: var(--a); }
.goal[class*="acc-"] { background: var(--tint); border-top: 5px solid var(--a); }
.goal[class*="acc-"] h3 { color: var(--ink-a); }
[class*="acc-"] > .icon-badge { background: var(--a); color: var(--white); box-shadow: 0 10px 22px -10px var(--a); }
.info-card[class*="acc-"] { background: var(--white); border-bottom: 4px solid var(--a); }
.aims-card { background: linear-gradient(135deg, var(--gold-tint), var(--rose-tint)); }
.aims-card .checks svg { color: var(--rose-ink); }
.timeline li:nth-child(6n+1) { --a: var(--gold-main); --ink-a: var(--gold-ink); }
.timeline li:nth-child(6n+2) { --a: var(--terra-main); --ink-a: var(--terra-ink); }
.timeline li:nth-child(6n+3) { --a: var(--rose-main); --ink-a: var(--rose-ink); }
.timeline li:nth-child(6n+4) { --a: var(--sage-main); --ink-a: var(--sage-ink); }
.timeline li:nth-child(6n+5) { --a: var(--amber-main); --ink-a: var(--amber-ink); }
.timeline li:nth-child(6n+6) { --a: var(--wine-main); --ink-a: var(--wine-ink); }
.timeline li::before, .timeline li:last-child::before { background: var(--a); }
.timeline::before { background: linear-gradient(var(--gold-main), var(--terra-main), var(--rose-main), var(--burgundy)); opacity: .6; }
.tl-card { border-left: 4px solid var(--a); }
.tl-card .year { color: var(--ink-a); }
@media (min-width: 960px) { .timeline li:nth-child(odd) .tl-card { border-left: 1px solid var(--line); border-right: 4px solid var(--a); } }
.gallery { background: linear-gradient(120deg, #5A0E1B 0%, #8A1E2B 45%, #C0503A 100%); }
.gallery-hint { color: rgba(255, 236, 190, .85); }
.site-footer { background: linear-gradient(160deg, #691120 0%, #4E0C17 100%); }
.welcome-line { border-left-width: 4px; }
.btn-bronze { background: var(--terra-main); }
.btn-bronze:hover { background: var(--terra-ink); }
.chip { background: var(--gold); color: var(--ink); }

/* Mapa */
.map { position: relative; }
.map-canvas { width: 100%; height: 100%; min-height: 360px; background: var(--beige); }
.map-link { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--burgundy); font-weight: 600; font-size: .85rem; text-decoration: none; box-shadow: var(--shadow-sm); }
.map-link svg { width: 16px; height: 16px; }
.map-label { background: var(--burgundy); color: var(--white); border: 0; border-radius: 999px; padding: 6px 14px; font: 600 .85rem var(--font-body); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.map-label::before { display: none; }

/* Moviment reduït */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; padding-inline: var(--gutter); }
}

/* ---------- v4: banderes, novetat visual, mapa sota demanda, pàgines legals ---------- */
.lang-flags { display: inline-flex; align-items: center; gap: 8px; }
.flag-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; opacity: .8; transition: opacity .2s, border-color .2s, transform .2s; }
.flag-btn svg { width: 30px; height: 20px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.flag-btn:hover { opacity: 1; transform: translateY(-1px); }
.flag-btn.is-current { opacity: 1; border-color: var(--gold); }
@media (max-width: 959px) { .lang-flags { gap: 14px; } .flag-btn { width: 56px; height: 56px; } .flag-btn svg { width: 38px; height: 26px; } }

.btn-lg { min-height: 54px; padding: .85em 1.8em; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(239, 192, 52, .9); }
.btn-gold:hover { background: #F5CD55; color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--burgundy); }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; animation: rise 1.4s 1s var(--ease) both; }
.hero-actions .hero-cta { animation: bob 2.6s 2.6s ease-in-out infinite; }

.news-list { max-width: 1100px; margin-inline: auto; display: grid; gap: 40px; }
.news-card { scroll-snap-align: none; }
.news-body { display: block !important; }
.news-body h3 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.news-lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink); max-width: 46em; }
.features { display: grid; gap: 12px; margin-bottom: 28px; }
.feature { display: flex; align-items: center; gap: 14px; background: var(--tint); border-radius: 16px; padding: 14px 16px; font-weight: 500; }
.feature .icon-badge { width: 46px; height: 46px; }
.feature .icon-badge svg { width: 22px; height: 22px; }
.news-invite { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--burgundy); border-left: 4px solid var(--gold); padding-left: 18px; max-width: 46em; margin: 8px 0 32px; }
.price-grid { display: grid; gap: 16px; margin-bottom: 14px; }
.price-card { border-radius: 20px; padding: 22px 22px 18px; background: var(--cream); border: 1.5px solid var(--line); }
.price-card.is-featured { background: linear-gradient(135deg, #FFF6DA, #FDE7D6); border-color: var(--gold); box-shadow: 0 14px 30px -18px rgba(166, 101, 62, .6); }
.price-when { margin: 0; font-weight: 600; font-size: 1.05rem; }
.price-tag { margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
.price-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.price-main span { color: var(--muted); font-size: .9rem; }
.price-main strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--burgundy); }
.price-card dl { margin: 0; display: grid; gap: 6px; }
.price-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.price-card dt { color: var(--muted); }
.price-card dd { margin: 0; font-weight: 700; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.price-notes { margin-bottom: 28px; }
.cta-box { border-radius: 22px; padding: clamp(22px, 4vw, 34px); background: linear-gradient(120deg, #5A0E1B 0%, #8A1E2B 55%, #C0503A 100%); color: var(--white); text-align: center; }
.cta-box p { margin: 0 0 4px; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
.cta-box .actions { justify-content: center; margin-top: 18px; }
.cta-box .btn-primary { background: var(--gold); color: var(--ink); box-shadow: none; }
.cta-box .btn-primary:hover { background: #F5CD55; color: var(--ink); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } .price-grid { grid-template-columns: 1fr 1fr; } }

.health-note { margin: 36px auto 0; max-width: 46em; text-align: center; font-size: .9rem; color: var(--muted); }

.map-canvas { position: relative; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(239, 192, 52, .35) 0 22%, transparent 23%), radial-gradient(circle at 50% 45%, rgba(105, 17, 32, .08) 0 34%, transparent 35%), linear-gradient(135deg, #FDF3D3, #FBE6EC); }
.map-placeholder .icon-badge { background: var(--burgundy); color: var(--white); }
.map-place { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.map-note { margin: 0; max-width: 28em; font-size: .8rem; color: var(--muted); }
.map-canvas.is-loaded .map-placeholder { display: none; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check label { font-size: .9rem; color: var(--muted); cursor: pointer; }
.check a { color: var(--burgundy); font-weight: 600; }
.check input.invalid + label { color: var(--burgundy); }

.footer-bottom { align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: rgba(255, 255, 255, .8); }

.legal-page { background: var(--cream); }
.site-header.is-solid { position: sticky; }
.legal { padding: clamp(40px, 7vw, 80px) 0 var(--section); }
.legal-wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 8px; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; color: var(--burgundy); }
.legal p, .legal li { color: var(--ink); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 1em; }
.legal code { background: var(--beige); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.legal .btn { margin-top: 24px; }

.splash-404 { font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--gold); margin: 0 0 8px; }
.splash-title.is-small { font-size: clamp(1.8rem, 6vw, 2.6rem); letter-spacing: .02em; }
