/* Toni Tamajon — prototip web. Dues propostes: fosca (index) i clara (clara.html) */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --gold-grad: linear-gradient(100deg, #F6DFA9 0%, #D6A968 36%, #9C6B37 66%, #EACB8E 100%);
  --bronze-grad: linear-gradient(100deg, #C39457 0%, #8A5B2C 48%, #6B4420 70%, #B8864B 100%);
  --btn-gold: linear-gradient(105deg, #F1D69E 0%, #CFA062 55%, #A87840 100%);
  --display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --body: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 6vw, 96px);
}

body[data-theme="dark"] {
  --bg: #0A0907;
  --bg-2: #0E0C09;
  --bg-3: #14110D;
  --ink: #F3ECE0;
  --text: #A9A091;
  --soft: #CFC6B7;
  --muted: #8F8676;
  --line: rgba(214,169,104,.16);
  --line-strong: rgba(214,169,104,.4);
  --accent: #C9A063;
  --accent-soft: #E2C184;
}

body[data-theme="light"] {
  --bg: #FBF9F5;
  --bg-2: #FFFFFF;
  --bg-3: #F3EEE5;
  --ink: #17130E;
  --text: #5A5145;
  --soft: #3B342B;
  --muted: #7A7063;
  --line: rgba(23,19,14,.12);
  --line-strong: rgba(23,19,14,.25);
  --accent: #94652F;
  --accent-soft: #8A5B2C;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { filter: brightness(1.15); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.display { font-family: var(--display); font-weight: 500; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bronze-text { background: var(--bronze-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografia ---------- */
.h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 6.4vw, 92px); line-height: 1.04; color: var(--ink); text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.1; color: var(--ink); text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--ink); }
.lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; color: var(--text); text-wrap: pretty; }
.body { font-size: 15px; line-height: 1.65; color: var(--text); text-wrap: pretty; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(10px, 1vw, 12px); font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: clamp(28px, 4vw, 48px); height: 1px; background: currentColor; flex: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: clamp(28px, 4vw, 48px); height: 1px; background: currentColor; flex: none; }

.diamond { width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); flex: none; }

/* ---------- botons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 30px; font-size: 15px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--btn-gold); color: #140F08; }
body[data-theme="light"] .btn-primary { background: #17130E; color: #F1D69E; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); filter: none; }
.btn-block { width: 100%; }

/* ---------- capçalera ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad); background: #17130E;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.topbar span.left { color: #A89C88; }
.topbar a { display: flex; align-items: center; gap: 10px; color: #E6C689; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .24em; line-height: 1; }
body[data-theme="light"] .brand-name { color: var(--ink); }
.brand-sub { font-size: 9px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
body[data-theme="light"] .brand-sub { color: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); font-size: 14px; font-weight: 600; }
.nav a { color: var(--soft); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.hero-bg, .hero-grid, .grain { position: absolute; inset: 0; pointer-events: none; }
.hero-bg { background: radial-gradient(ellipse 60% 70% at 78% 42%, rgba(201,152,88,.16) 0%, rgba(201,152,88,0) 62%); }
.hero-grid {
  background-image: linear-gradient(rgba(214,169,104,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(214,169,104,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.grain { opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 38px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.emblem { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(320px, 42vw, 620px); }
.emblem .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(214,169,104,.22); }
.emblem .ring.r1 { width: min(92%, 560px); aspect-ratio: 1; }
.emblem .ring.r2 { width: min(72%, 440px); aspect-ratio: 1; border-style: dashed; }
.emblem .disc { position: absolute; width: min(60%, 360px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #16120C 0%, #0A0907 72%); box-shadow: 0 0 120px rgba(201,152,88,.18), inset 0 0 0 1px rgba(214,169,104,.35); }
.emblem-mark { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.emblem-mark svg { width: clamp(120px, 15vw, 220px); height: auto; }
.emblem-word { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.8vw, 28px); letter-spacing: .26em; padding-left: .26em; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(16,14,11,.9); border: 1px solid rgba(214,169,104,.28); font-size: 12px; font-weight: 600; color: #E6DDCE; }
.chip.c1 { top: 6%; right: 0; }
.chip.c2 { bottom: 12%; left: 0; }

/* ---------- cinta ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--bg-2); }
.marquee .track { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); width: max-content; animation: slide 42s linear infinite; font-family: var(--display); font-size: clamp(17px, 2.2vw, 30px); font-weight: 500; letter-spacing: .2em; color: #D9B97F; }
.marquee .track .diamond { width: 8px; height: 8px; background: #8A5B2C; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- seccions ---------- */
.section { padding: clamp(56px, 8vw, 140px) 0; }
.section.tight { padding-top: 0; }
.section.surface { background: var(--bg-2); }
.section.alt { background: var(--bg-3); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4.5vw, 64px); }
.section-head .col { display: flex; flex-direction: column; gap: 20px; }
.section-head.center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head.split { align-items: flex-end; }

/* ---------- targetes de servei (proposta fosca) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.4vw, 40px) clamp(20px, 2vw, 32px); background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%); border: 1px solid var(--line); transition: border-color .2s ease; }
.card:hover { border-color: var(--line-strong); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.icon-circle { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-soft); }
.card-num { font-family: var(--display); font-size: 14px; letter-spacing: .2em; color: var(--muted); }
.card-list { display: flex; flex-direction: column; gap: 11px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.card-list span { display: flex; align-items: center; gap: 12px; }
.card-list span::before { content: ""; width: 14px; height: 1px; background: var(--accent); flex: none; }

/* ---------- índex de serveis (proposta clara) ---------- */
.index-list { border-top: 1px solid var(--ink); }
.index-row { display: grid; grid-template-columns: 120px minmax(0, 5fr) minmax(0, 4fr) 64px; gap: clamp(16px, 2.4vw, 40px); align-items: center; padding: clamp(24px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.index-num { font-family: var(--display); font-size: clamp(28px, 4vw, 64px); font-weight: 500; line-height: 1; }
.index-title { font-family: var(--display); font-size: clamp(22px, 2.8vw, 38px); font-weight: 600; color: var(--ink); }
.index-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: 14px; font-weight: 500; color: var(--soft); }
.index-tags span { display: flex; align-items: center; gap: 10px; }
.index-arrow { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: .2s ease; }
.index-row:hover .index-arrow { background: #17130E; color: #F1D69E; border-color: #17130E; }

/* ---------- fotos ---------- */
.ph { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 20px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, rgba(201,160,99,.06) 0 1px, transparent 1px 16px), linear-gradient(160deg, #1B1813 0%, #0F0E0B 100%); }
body[data-theme="light"] .ph { border-color: transparent; background: repeating-linear-gradient(135deg, rgba(138,91,44,.07) 0 1px, transparent 1px 16px), linear-gradient(160deg, #EFE9DF 0%, #E4DCCF 100%); }
.ph-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #A88A5E; }
body[data-theme="light"] .ph-label { color: #8A7456; }
.ph-num { position: absolute; top: 12px; right: 20px; font-family: var(--display); font-size: clamp(34px, 4vw, 64px); color: rgba(214,169,104,.28); }

/* ---------- àmbits ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.ambit { display: flex; flex-direction: column; gap: 20px; }
.ambit .ph { height: clamp(220px, 26vw, 380px); }
.ambit-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 48px) clamp(20px, 2.4vw, 40px); background: var(--bg-2); }
.ambit-badge { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #17130E; color: #E2C184; }
.ambit-top { display: flex; align-items: center; justify-content: space-between; }
.ambit-num { font-family: var(--display); font-size: 38px; color: rgba(148,101,47,.35); }

/* ---------- avantatges ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.fact { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 32px); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact svg { color: var(--accent); }
.fact strong { font-family: var(--display); font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; color: var(--ink); }
.fact span { font-size: 14px; color: var(--text); }

.facts.inline { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts.inline .fact { flex-direction: row; align-items: center; gap: 16px; }
.facts.inline .fact div { display: flex; flex-direction: column; gap: 3px; }

/* ---------- campanya clima ---------- */
.promo { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: #0E0C09; overflow: hidden; }
.promo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 10% 20%, rgba(201,152,88,.16) 0%, rgba(201,152,88,0) 70%); }
.promo-copy { position: relative; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); padding: clamp(36px, 5vw, 88px) clamp(24px, 4vw, 72px); }
.promo-copy .h2 { color: #F3ECE0; }
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.promo-grid div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(214,169,104,.3); }
.promo-grid strong { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #EDE6DA; }
.promo-grid span { font-size: 14px; color: #A39A8B; }
.promo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.promo-phone { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.promo .ph { min-height: clamp(240px, 32vw, 640px); background: repeating-linear-gradient(135deg, rgba(201,160,99,.06) 0 1px, transparent 1px 16px), linear-gradient(160deg, #1D1A15 0%, #12100C 100%); border: 0; }
.promo .ph-label { color: #A88A5E; }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 20vw, 300px); gap: 16px; }
.gallery .ph.big { grid-column: span 2; grid-row: span 2; }
.gallery .ph.tall { grid-row: span 2; }
.gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 19vw, 280px); }
.gallery.three .ph.wide { grid-column: span 2; }

/* ---------- contacte ---------- */
.cta { position: relative; overflow: hidden; text-align: center; background: var(--bg-2); border-top: 1px solid var(--line-strong); }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 2.4vw, 34px); }
.cta .ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(214,169,104,.12); transform: translate(-50%, -50%); }
.cta .ring.r1 { width: min(140%, 900px); aspect-ratio: 1; }
.cta .ring.r2 { width: min(100%, 660px); aspect-ratio: 1; }
.phone-xl { font-family: var(--display); font-size: clamp(38px, 9vw, 132px); font-weight: 600; line-height: 1; letter-spacing: .01em; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.contact-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(40px, 6vw, 96px); border-top: 1px solid var(--ink); }
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; font-size: 16px; font-weight: 700; }

/* ---------- peu ---------- */
.site-footer { padding: clamp(48px, 6vw, 80px) 0 32px; background: #080705; color: #8F8676; }
body[data-theme="light"] .site-footer { background: #0E0C09; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.footer-col { display: flex; flex-direction: column; gap: 13px; font-size: 15px; }
.footer-col a { color: #CFC6B7; }
.footer-col .title { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #C9A063; padding-bottom: 5px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(32px, 4vw, 64px); padding-top: 26px; border-top: 1px solid rgba(214,169,104,.12); font-size: 13px; color: #6E6558; }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a { color: #6E6558; }

/* ---------- selector de proposta ---------- */
.switcher {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(10,9,7,.92); border: 1px solid rgba(214,169,104,.4);
  backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.switcher .label { padding: 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8F8676; }
.switcher a { padding: 10px 16px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #CFC6B7; }
.switcher a.on { background: var(--btn-gold); color: #140F08; }
.switcher a:hover { filter: brightness(1.1); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .index-row { grid-template-columns: 90px minmax(0, 1fr) 56px; }
  .index-tags { grid-column: 2 / 4; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-arrow { width: 56px; height: 56px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .emblem { order: -1; min-height: 300px; }
  .chip { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo .ph { min-height: 240px; }
  .cols-3 { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .ph.big { grid-column: span 2; grid-row: span 1; }
  .gallery .ph.tall { grid-row: span 1; }
  .gallery.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery.three .ph.wide { grid-column: span 2; }
}

@media (max-width: 620px) {
  .topbar { font-size: 9px; letter-spacing: .14em; gap: 10px; }
  .topbar span.left { display: none; }
  .topbar a { width: 100%; justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .index-row { grid-template-columns: 1fr; gap: 12px; }
  .index-num { font-size: 26px; }
  .index-tags { grid-column: auto; }
  .index-arrow { display: none; }
  .promo-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery, .gallery.three { grid-template-columns: 1fr; }
  .gallery .ph.big, .gallery .ph.wide { grid-column: span 1; }
  .contact-links a { padding: 18px 20px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .switcher { width: calc(100% - 32px); justify-content: center; }
}

/* menú mòbil obert */
@media (max-width: 900px) {
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--pad) 20px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav.open a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav.open a:last-child { border-bottom: 0; }
}

/* segell del logo sobre la foto (proposta clara) */
.seal {
  position: absolute; left: clamp(-90px, -6vw, -20px); top: 50%; transform: translateY(-50%);
  width: clamp(120px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #0E0C09; box-shadow: 0 24px 50px rgba(23,19,14,.28), 0 0 0 9px var(--bg-2);
}
.seal svg { width: 48%; height: auto; }
.seal-word { font-family: var(--display); font-weight: 600; font-size: clamp(8px, .95vw, 13px); letter-spacing: .22em; padding-left: .22em; }
@media (max-width: 900px) {
  .seal { left: 16px; top: auto; bottom: -40px; transform: none; }
  .hero .hero-inner > div:last-child { margin-bottom: 56px; }
  body[data-theme="light"] .emblem { order: 0; }
}

/* espai perquè el selector flotant no tapi el peu */
body { padding-bottom: 88px; }

/* ---------- fotos reals ---------- */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ph.zoom { cursor: zoom-in; }
.ph.zoom:hover img { transform: scale(1.05); }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,7,0) 45%, rgba(10,9,7,.55) 100%); opacity: 0; transition: opacity .3s ease; }
.ph.zoom:hover::after { opacity: 1; }
.emblem-logo { position: relative; width: min(64%, 330px); mix-blend-mode: screen; }

/* ---------- ressenyes ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.review { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 40px); background: var(--bg-2); border: 1px solid var(--line); }
body[data-theme="light"] .review { border-color: transparent; box-shadow: 0 10px 30px rgba(23,19,14,.06); }
.stars { display: flex; gap: 5px; color: var(--accent); }
.review-text { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.review-author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.review-avatar { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--accent); }
.review-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.review-meta strong { color: var(--ink); font-weight: 700; }
.review-meta span { color: var(--muted); font-size: 13px; }
.reviews-note { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- efectes ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

.progress { position: fixed; top: 0; left: 0; z-index: 70; height: 2px; width: 0; background: var(--btn-gold); }
.site-header { transition: padding .25s ease, box-shadow .25s ease; }
.site-header.scrolled { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.marquee:hover .track { animation-play-state: paused; }
.emblem-mark, .emblem-logo { transition: transform .4s cubic-bezier(.2,.7,.2,1); will-change: transform; }

.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(8,7,5,.94); backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button { position: absolute; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(214,169,104,.35); color: #F1D69E; cursor: pointer; }
.lightbox .close { top: 20px; right: 20px; }
.lightbox .prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox .next { right: 20px; top: 50%; margin-top: -26px; }

.fab { position: fixed; right: 18px; bottom: 100px; z-index: 55; display: none; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--btn-gold); color: #140F08; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.fab.show { display: flex; }

@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ph img, .emblem-mark, .emblem-logo { transition: none; }
  html { scroll-behavior: auto; }
}

/* telèfon de contacte: mai partit en dues línies */
.phone-xl { white-space: nowrap; }
.phone-xl.compact { font-size: clamp(30px, 5.2vw, 76px); }

/* escalonat de l'aparició dins d'una mateixa fila */
.cards [data-reveal]:nth-child(2), .cols-3 [data-reveal]:nth-child(2), .reviews [data-reveal]:nth-child(2), .facts [data-reveal]:nth-child(2) { transition-delay: .07s; }
.cards [data-reveal]:nth-child(3), .cols-3 [data-reveal]:nth-child(3), .reviews [data-reveal]:nth-child(3), .facts [data-reveal]:nth-child(3) { transition-delay: .14s; }
.cards [data-reveal]:nth-child(4), .facts [data-reveal]:nth-child(4) { transition-delay: .21s; }
.index-list [data-reveal]:nth-child(2) { transition-delay: .06s; }
.index-list [data-reveal]:nth-child(3) { transition-delay: .12s; }
.index-list [data-reveal]:nth-child(4) { transition-delay: .18s; }

/* ---------- slider de fotos ---------- */
.slider { overflow: hidden; }
.slider .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.1s ease, transform 7s linear; }
.slider .slide.is-on { opacity: 1; transform: scale(1.09); z-index: 1; }
.slider:hover .slide.is-on { transform: scale(1.09); }
.slider-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 26px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: background .25s ease, width .25s ease; }
.slider-dots button.on { background: #F1D69E; width: 38px; }
@media (prefers-reduced-motion: reduce) { .slider .slide { transition: opacity .3s ease; transform: none; } .slider .slide.is-on { transform: none; } }

/* telèfon: mida raonable, no titular */
.phone-xl { font-size: clamp(30px, 4.4vw, 62px); letter-spacing: .01em; }
.phone-xl.compact { font-size: clamp(28px, 3.6vw, 48px); }

/* cinquena targeta de serveis, a tota l'amplada */
.card.wide { grid-column: 1 / -1; }
.card.wide .card-wide-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; }
.card.wide .card-wide-copy { display: flex; flex-direction: column; gap: 14px; }
.card.wide .card-list { margin-top: 0; padding-top: 0; border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
@media (max-width: 900px) { .card.wide .card-wide-body { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .card.wide .card-list { grid-template-columns: 1fr; } }

/* el segell del logo sempre per davant de la foto */
.seal { z-index: 5; }
.ph, .slider { z-index: 0; }
.ph.zoom { cursor: default; }

/* ---------- ajustos de tema creuat ---------- */
/* proposta A sobre fons clar */
body[data-theme="light"] .marquee { background: var(--bg-3); }
body[data-theme="light"] .marquee .track { color: #8A5B2C; }
body[data-theme="light"] .marquee .track .diamond { background: #C39457; }
body[data-theme="light"] .hero-bg { background: radial-gradient(ellipse 60% 70% at 78% 42%, rgba(201,152,88,.14) 0%, rgba(201,152,88,0) 62%); }
body[data-theme="light"] .hero-grid { background-image: linear-gradient(rgba(138,91,44,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(138,91,44,.06) 1px, transparent 1px); }
body[data-theme="light"] .grain { mix-blend-mode: multiply; opacity: .05; }
body[data-theme="light"] .emblem .ring { border-color: rgba(138,91,44,.28); }
body[data-theme="light"] .cta { background: var(--bg-3); }
body[data-theme="light"] .cta .ring { border-color: rgba(138,91,44,.16); }
body[data-theme="light"] .card { background: var(--bg-2); box-shadow: 0 10px 30px rgba(23,19,14,.05); }

/* proposta B sobre fons fosc */
body[data-theme="dark"] .topbar { border-bottom: 1px solid var(--line); }
body[data-theme="dark"] .ambit-card { border: 1px solid var(--line); }
body[data-theme="dark"] .ambit-badge { background: var(--bg-3); border: 1px solid var(--line-strong); }
body[data-theme="dark"] .ambit-num { color: rgba(214,169,104,.32); }
body[data-theme="dark"] .promo { border: 1px solid var(--line); }
body[data-theme="dark"] .index-row:hover .index-arrow { background: var(--btn-gold); color: #140F08; border-color: transparent; }
body[data-theme="dark"] .review { background: var(--bg-3); }
body[data-theme="dark"] .seal { box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 9px var(--bg-2), inset 0 0 0 1px rgba(214,169,104,.3); }

/* selector amb quatre propostes */
.switcher { flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); }
.switcher a { padding: 9px 13px; font-size: 12px; }

/* selector d'idioma */
.langs { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); }
.langs button { padding: 8px 11px; background: none; border: 0; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); cursor: pointer; transition: .2s ease; }
.langs button:hover { color: var(--ink); }
.langs button.on { background: var(--btn-gold); color: #140F08; }
body[data-theme="light"] .langs button.on { background: #17130E; color: #F1D69E; }

/* WhatsApp sempre visible */
.fab { display: flex; }
@media (max-width: 620px) { .fab { bottom: 92px; right: 14px; width: 52px; height: 52px; } }
