/* PlexiFoto — full d'estils
   Paleta i tipografia segons el Manual d'Identitat Visual v1.0 (setembre 2026). */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca */
  --negre-optic: #060b13;
  --blau-focus: #008eea;
  --blau-cel: #00a8eb;
  --blanc-llum: #ffffff;
  --gris-fum: #f4f5f7;
  --gris-grafit: #5b6472;

  /* Rols */
  --ink: var(--negre-optic);
  --ink-soft: var(--gris-grafit);
  --paper: var(--blanc-llum);
  --paper-alt: var(--gris-fum);
  --line: #e3e6eb;
  --accent: var(--blau-focus);
  --accent-ink: #0070bb; /* Blau Focus fosquejat per a text petit (AA sobre blanc) */
  --ok: #138a4b;
  --warn: #b25e00;
  --bad: #c0282d;

  --font: 'Montserrat', Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-lg: 0 30px 60px -30px rgba(6, 11, 19, 0.35), 0 12px 24px -12px rgba(6, 11, 19, 0.18);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 12px;
  background: var(--accent);
}
.eyebrow--plain::after { display: none; }

.h-display {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.h-display .accent { color: var(--accent); }
.h-section { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.h-section--light { font-weight: 300; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 36em; }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms, border-color 160ms, color 160ms;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #1b2230; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #007fd3; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---------- Capçalera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(6, 11, 19, 0.06);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-header__logo img { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a:not(.btn) { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.site-nav a:not(.btn):hover { color: var(--accent-ink); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
}
.cart-link:hover { background: var(--paper-alt); }
.cart-link__count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header__logo img { width: 140px; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms;
  }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-nav__cta { margin-top: 16px; }
  .site-header__actions { margin-left: auto; }
  .nav-toggle {
    display: grid;
    align-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.6px; background: var(--ink); transition: transform 180ms var(--ease-out); }
  .nav-open .nav-toggle span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
}

/* ---------- Seccions ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; align-content: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { font-size: 14px; color: var(--ink-soft); }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute;
  top: -18px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  line-height: 1.05;
  transform: rotate(-8deg);
  box-shadow: 0 16px 32px -12px rgba(0, 142, 234, 0.6);
}
.price-badge small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.price-badge strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .price-badge { width: 104px; height: 104px; right: 8px; top: -14px; }
  .price-badge strong { font-size: 28px; }
}

/* Valors */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.value { display: grid; gap: 10px; padding: 32px 24px; background: #fff; }
.value svg { color: var(--accent); }
.value h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.value p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .value { padding: 24px 16px; } }

/* Acabats */
.finishes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.finish-card { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; }
.finish-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .finish-card:hover img { transform: scale(1.03); } }
.finish-card__body { display: grid; gap: 8px; padding: 28px; }
.finish-card__body h3 { font-size: 26px; font-weight: 800; }
.finish-card__body p { color: var(--ink-soft); }
.finish-card--dark { background: var(--ink); color: #fff; }
.finish-card--dark .finish-card__body p { color: #b6bcc6; }
.tag {
  display: inline-block;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--paper-alt);
  color: var(--ink);
}
.finish-card--dark .tag { background: rgba(255, 255, 255, 0.12); color: #fff; }
@media (max-width: 760px) { .finishes { grid-template-columns: 1fr; } }

/* La gamma és el primer que es veu */
#mides { padding-block: clamp(28px, 4vw, 52px) clamp(56px, 7vw, 110px); }
.gamma-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: end;
  gap: 20px 40px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.gamma-head__copy { display: grid; gap: 16px; }
.gamma-head__copy .h-display { font-size: clamp(38px, 5.2vw, 66px); }
.gamma-head__side { display: grid; gap: 12px; justify-items: start; }
.gamma-head__promo { font-size: 14px; color: var(--ink-soft); max-width: 30ch; }
@media (max-width: 860px) {
  .gamma-head { grid-template-columns: 1fr; align-items: start; }
  .gamma-head__copy .h-display { font-size: clamp(34px, 9vw, 48px); }
}

/* Targetes de producte */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: clamp(16px, 1.6vw, 22px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:not(.product-card--soon):hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); }
  .product-card:not(.product-card--soon):hover .product-card__go svg { transform: translateX(3px); }
  .product-card:not(.product-card--soon):hover .product-card__piece { transform: translateY(-2px) rotate(-0.6deg); }
}

/* Escena: cada producte es dibuixa amb el seu gruix i la seva col·locació */
.product-card__scene {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 3;   /* igual que les imatges: així no es retallen */
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(170deg, #eef4f9 0%, #f7fafc 55%, #eaf0f5 100%);
  overflow: hidden;
}
.product-card__scene img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .product-card:not(.product-card--soon):hover .product-card__scene img { transform: scale(1.04); }
}
.product-card__scene:has(img)::after { content: none; }

.product-card__scene::after { /* superfície / terra (només al dibuix de reserva) */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(214, 228, 238, 0.65));
}
.product-card__piece {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: linear-gradient(135deg, #dcecf8, #ffffff 52%, #e6f2fb);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 0 0 1px #c3d9e8;
  transition: transform 240ms var(--ease-out);
}
.product-card__piece::after { /* cantell: com més gruix, més visible */
  content: '';
  position: absolute;
  top: 3px;
  right: calc(var(--t) * -1.1px);
  width: calc(var(--t) * 1.1px);
  height: 100%;
  background: linear-gradient(90deg, #cfe1ee, #eaf3f9);
  border: 1px solid #b3cadb;
  border-left: 0;
  border-radius: 0 2px 2px 0;
  transform: skewY(-14deg);
  transform-origin: left center;
}
.product-card__piece::before { /* peu integrat */
  content: '';
  position: absolute;
  inset: auto -10px -12px -10px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3f9fd, #cfe0ed);
}
/* Alumini: front blanc i cantell fosc */
.product-card--alu .product-card__piece { background: linear-gradient(135deg, #ffffff, #f1f4f7); box-shadow: inset 0 0 0 1px #e1e6ec, 0 0 0 1px #cdd4dc, 0 12px 18px -10px rgba(6, 11, 19, 0.5); }
.product-card--alu .product-card__piece::after { background: linear-gradient(90deg, #3c444f, #6a7481); border-color: #2c333c; }

/* Murals: sense peu i separats de la paret */
.product-card--wall .product-card__piece { margin-bottom: 28px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 0 0 1px #c3d9e8, 0 12px 18px -10px rgba(6, 11, 19, 0.55); }
.product-card--wall .product-card__piece::before { content: none; }
.product-card--wall .product-card__scene::after { height: 0; }

.product-card__body { display: grid; gap: 8px; align-content: start; }
.product-card__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-card__title h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.product-card__badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card__tagline { font-size: clamp(14px, 1.2vw, 16px); color: var(--ink-soft); }
.product-card__specs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.product-card__specs li { display: flex; gap: 8px; align-items: baseline; }
.product-card__specs li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: var(--accent); opacity: 0.55; }
.product-card__specs strong { color: var(--ink); font-weight: 600; white-space: nowrap; }

.product-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-card__price { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.product-card__price small { font-size: 12px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.product-card__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.product-card__go svg { transition: transform 200ms var(--ease-out); }

/* Producte encara no disponible */
.product-card--soon { border-style: dashed; background: transparent; }
.product-card--soon .product-card__scene { filter: grayscale(0.5); opacity: 0.65; }
.product-card--soon .product-card__price--soon { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.sizes-note { margin-top: 36px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; gap: 14px; }
  .product-card { padding: 14px; gap: 12px; }
  .product-card__scene { aspect-ratio: 5 / 3; }
  .product-card__piece { width: 78px; height: 54px; }
  .product-card__title h3 { font-size: 17px; }
  .product-card__tagline, .product-card__specs { font-size: 12px; }
  .product-card__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Com funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blau-cel);
}
.step h3 { font-size: 22px; font-weight: 700; }
.step p { color: #b6bcc6; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.gallery figure:nth-child(1) { grid-column: span 7; }
.gallery figure:nth-child(2) { grid-column: span 5; }
.gallery figure:nth-child(3), .gallery figure:nth-child(4), .gallery figure:nth-child(5) { grid-column: span 4; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:nth-child(n) { grid-column: span 1; }
  .gallery figure:nth-child(1) { grid-column: span 2; }
}

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 300; font-size: 26px; line-height: 1; color: var(--accent); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 46em; }

/* Banda de contacte */
.contact-band { background: var(--blau-cel); color: var(--negre-optic); }
.contact-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.contact-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.contact-band__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Peu */
.site-footer { background: var(--ink); color: #c8cdd5; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 72px 48px; }
.site-footer__brand { display: grid; gap: 20px; align-content: start; max-width: 320px; }
.site-footer__brand img { width: 240px; height: auto; }
.site-footer .eyebrow { color: #fff; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { padding-block: 24px 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #8d94a0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Botó flotant de WhatsApp */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 70, 0.55), 0 4px 10px -4px rgba(6, 11, 19, 0.2);
  animation: wa-in 500ms var(--ease-out) 900ms both;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.wa-fab__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.wa-fab:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(18, 140, 70, 0.6), 0 4px 10px -4px rgba(6, 11, 19, 0.2); }
}
@keyframes wa-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: pf-fade-only 300ms ease 600ms both; }
}
@media (max-width: 600px) {
  .wa-fab { right: 14px; bottom: 14px; padding-left: 18px; font-size: 16px; }
  .wa-fab__icon { width: 44px; height: 44px; }
  /* Mentre hi ha l'avís de cookies (ocupa tota l'amplada) no es mostra */
  .cookie-notice ~ .wa-fab { display: none; }
}
/* Al configurador en mòbil, per sobre del botó de compra fix */
@media (max-width: 900px) {
  body[data-page='crea'] .wa-fab { bottom: 172px; padding: 6px; }
  body[data-page='crea'] .wa-fab__label { display: none; }
}

/* Avís de cookies */
.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  padding: 16px 16px 16px 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  animation: rise 320ms var(--ease-out) both;
}
.cookie-notice p { flex: 1; color: var(--ink-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 480px) { .cookie-notice { flex-direction: column; align-items: stretch; } }

/* ---------- Configurador ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); min-height: calc(100vh - 72px); }
.studio__stage {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(120% 80% at 50% 0%, #ffffff 0%, #eef0f3 60%, #e4e7ec 100%);
  overflow: hidden;
}
.stage__scene {
  --table: clamp(64px, 13vh, 140px);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 24px calc(var(--table) - 10px);
}
.stage__scene::after {
  /* taula */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: var(--table);
  z-index: -1;
  background: linear-gradient(180deg, #e6e9ee, #f3f4f7);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
}
.stage__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 24px 24px;
  font-size: 13px;
  color: var(--ink-soft);
  background: #f3f4f7;
}
.stage__bar label { display: flex; align-items: center; gap: 10px; }
.stage__bar input[type='range'] { width: 160px; accent-color: var(--ink); }
.stage__dims { font-weight: 600; color: var(--ink); letter-spacing: 0.04em; }

/* La peça de metacrilat */
.piece {
  --unit: min(1.9vw, 2.7vh); /* 1 cm en pantalla */
  --w: 18;
  --h: 18;
  position: relative;
  width: calc(var(--w) * var(--unit));
  transition: width 420ms var(--ease-out);
  filter: drop-shadow(0 26px 22px rgba(6, 11, 19, 0.22));
}
.piece__slab {
  position: relative;
  aspect-ratio: var(--w) / var(--h);
  padding: 4.5%;
  border-radius: 3px;
  transition: aspect-ratio 420ms var(--ease-out), background-color 300ms, padding 300ms;
}
.piece__photo { position: relative; width: 100%; height: 100%; overflow: hidden; background: #d9dde3; touch-action: none; cursor: grab; }
.piece__photo:active { cursor: grabbing; }
.piece__photo canvas { width: 100%; height: 100%; }
.piece__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: repeating-linear-gradient(135deg, #eef1f5 0 10px, #e7ebf0 10px 20px);
  cursor: pointer;
}
.piece__empty svg { color: var(--accent); }
.piece--tiny .piece__empty span { display: none; }
.piece--tiny .piece__empty svg { width: 26px; height: 26px; }
.piece__gloss { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.piece__base {
  position: relative;
  width: 108%;
  margin-left: -4%;
  height: max(12px, calc(var(--unit) * 1.3));
  border-radius: 2px;
  transition: background-color 300ms;
}

/* transparent: brillant */
.piece--transparent .piece__slab {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(230, 240, 248, 0.35));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 0 0 3px rgba(190, 210, 225, 0.55),
    inset 6px 6px 18px rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(160, 180, 200, 0.45);
}
.piece--transparent .piece__gloss {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 28%, transparent 42%, transparent 70%, rgba(255, 255, 255, 0.18) 86%, transparent 100%);
  mix-blend-mode: screen;
}
/* mida a mida */
.custom-size { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.custom-size__x { padding-bottom: 14px; color: var(--ink-soft); }
.custom-size__msg { grid-column: 1 / -1; min-height: 18px; font-size: 13px; color: var(--warn); }
.size-choice__free { display: block; width: 26px; height: 20px; border: 1.5px dashed currentColor; border-radius: 2px; }

/* alumini: superfície blanca mate */
.piece--alu .piece__slab {
  padding: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e3e6eb, 0 0 0 1px rgba(150, 160, 175, 0.5);
}
.piece--alu .piece__gloss { background: linear-gradient(115deg, rgba(255, 255, 255, 0.35) 0%, transparent 26%); }

/* acabats mats: menys reflex */
.piece--mate .piece__gloss { opacity: 0.35; }

/* mural: sense peu, separat de la paret */
.piece--wall { filter: drop-shadow(0 18px 26px rgba(6, 11, 19, 0.28)); }
.piece--wall .piece__slab { padding: 0; }
.piece--wall .piece__base { display: none; }

/* negre: mate */
.piece--negre .piece__slab {
  padding: 7%;
  background: linear-gradient(160deg, #1a1f28, #05080d 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 1px 0 0 rgba(255, 255, 255, 0.08), 0 0 0 1px #000;
}
.piece--negre .piece__gloss {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, transparent 22%);
}
.piece--negre .piece__photo canvas { filter: saturate(0.96) contrast(0.98); }

.piece__base--transparent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(210, 225, 238, 0.7));
  box-shadow: inset 0 0 0 1px rgba(170, 190, 210, 0.6), inset 0 -3px 6px rgba(160, 185, 205, 0.35);
}
.piece__base--negre {
  background: linear-gradient(180deg, #242a33, #05080d 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px #000;
}

.studio__panel { padding: clamp(20px, 3vw, 40px) clamp(16px, 3.5vw, 48px) 40px; display: grid; gap: 22px; align-content: start; }
.studio__panel h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; }
.field { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 0;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.field__legend span:first-child { white-space: nowrap; }
.field__legend span:last-child { font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--ink-soft); font-size: 13px; text-align: right; flex: 1 1 auto; min-width: 0; }

.dropzone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1.5px dashed #c3cad4;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: #f2f9fe; }
.dropzone__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--paper-alt); color: var(--accent); overflow: hidden; }
.dropzone__icon img { width: 100%; height: 100%; object-fit: cover; }
.dropzone strong { display: block; font-size: 15px; }
.dropzone small { display: block; font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }

.quality { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.quality::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.quality--good { color: var(--ok); }
.quality--ok { color: var(--warn); }
.quality--bad { color: var(--bad); }

.choices { display: grid; gap: 10px; }
.choices > .choice { min-width: 0; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choices--compact label { padding: 10px 12px; }
.choices--compact .choice__title { font-size: 14px; }
.choices--compact .choice__meta { font-size: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  height: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 140ms, box-shadow 140ms, transform 140ms var(--ease-out);
}
.choice label:hover { border-color: #b9c1cc; }
.choice label:active { transform: scale(0.98); }
.choice input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice__title { font-weight: 700; font-size: 15px; }
.choice__meta { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.choice__meta s { color: #9aa1ac; margin-right: 3px; }
.choice__swatch { display: flex; align-items: center; gap: 10px; min-width: 0; }
.choice__swatch .choice__title { overflow: hidden; text-overflow: ellipsis; }
.swatch { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.swatch--transparent { background: linear-gradient(135deg, #e6f3fc, #fff 50%, #d9ecf9); box-shadow: inset 0 0 0 1.5px #b8cfe0; }
.swatch--negre { background: linear-gradient(135deg, #2b313b, #05080d); }
.swatch--alu { background: linear-gradient(135deg, #f7f8fa, #d9dee5); box-shadow: inset 0 0 0 1.5px #b9c1cc; }
.size-choice label { justify-items: center; text-align: center; padding: 14px 8px 12px; }
.size-choice__icon { display: grid; place-items: end center; height: 30px; }
.size-choice__icon i {
  display: block;
  width: calc(var(--w) * var(--k, 1.25) * 1px);
  height: calc(var(--h) * var(--k, 1.25) * 1px);
  max-width: 100%;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--paper-alt); }
.qty output, .qty input { width: 36px; text-align: center; font-weight: 700; border: 0; background: none; }

.buybox { position: sticky; bottom: 0; z-index: 3; display: grid; gap: 10px; margin-inline: calc(-1 * clamp(16px, 3.5vw, 48px)); padding: 18px clamp(16px, 3.5vw, 48px) 20px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 24px -18px rgba(6, 11, 19, 0.25); }
.buybox__row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.buybox__price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.buybox__price s { font-size: 18px; font-weight: 500; color: #9aa1ac; margin-right: 8px; letter-spacing: 0; }
.buybox__promo { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.buybox__hint { font-size: 13px; color: var(--ink-soft); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: -4px; padding: 0; margin: 0; list-style: none; font-size: 13px; color: var(--ink-soft); }
.specs li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 6px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  animation: rise 280ms var(--ease-out) both;
  max-width: calc(100vw - 32px);
}

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }

  /* La peça es queda enganxada a dalt mentre tries opcions */
  .studio__stage {
    position: sticky;
    top: 72px;
    z-index: 5;
    height: auto;
    box-shadow: 0 10px 20px -18px rgba(6, 11, 19, 0.5);
  }
  .stage__scene { --table: 40px; min-height: 40vh; padding: 14px 16px calc(var(--table) - 8px); transition: min-height 220ms var(--ease-out); }

  /* En baixar, la peça es fa petita i deixa espai per configurar */
  .studio__stage.is-min .stage__scene { --table: 16px; min-height: 108px; padding: 8px 16px 8px; }
  .studio__stage.is-min .stage__bar { padding: 6px 14px 8px; }
  .studio__stage.is-min .stage__bar label,
  .studio__stage.is-min .stage__bar .link-btn { display: none; }
  .studio__stage.is-min .piece__base { height: 6px; }
  .stage__bar { flex-wrap: nowrap; padding: 8px 14px 12px; gap: 10px; font-size: 12px; background: #f3f4f7; }
  .stage__dims { white-space: nowrap; }
  .stage__bar label { flex: 1 1 auto; min-width: 0; }
  .stage__bar input[type='range'] { width: 100%; min-width: 60px; }
  .stage__bar .link-btn { white-space: nowrap; }

  .studio__panel { gap: 18px; padding-top: 22px; }
  .studio__panel h1 { font-size: 24px; }

  /* Etiqueta del pas a dalt i la pista a sota: així no es parteix cap paraula */
  .field__legend { flex-direction: column; align-items: flex-start; gap: 2px; }
  .field__legend span:last-child { text-align: left; font-size: 12px; }

  .choices--compact label { padding: 10px; }
  .choices--compact .choice__meta { white-space: nowrap; font-size: 11px; }

  /* Barra de compra compacta: preu, quantitat i botó */
  .buybox { padding-block: 10px 12px; gap: 8px; }
  .buybox__promo { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybox__hint { display: none; }
  .buybox__price { font-size: 26px; }
  .qty button { width: 38px; height: 38px; }
  .btn--block { min-height: 48px; }

  /* El botó de WhatsApp tapava les opcions */
  body[data-page='crea'] .wa-fab { display: none; }
  body[data-page='crea'] .toast { bottom: 128px; }
  .toast { left: 12px; right: 12px; transform: none; max-width: none; justify-content: space-between; padding-left: 16px; }
  .toast span { font-size: 13px; }
}

@media (max-width: 420px) {
  .choices--3 { grid-template-columns: repeat(3, 1fr); }
  .size-choice label { padding: 12px 4px 10px; }
}

/* ---------- Cistella i checkout ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) 32px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: 96px; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item__thumb { width: 96px; height: 96px; display: grid; place-items: center; background: var(--paper-alt); border-radius: var(--radius-sm); }
.cart-item__thumb img { max-width: 76px; max-height: 76px; box-shadow: 0 6px 12px -6px rgba(6, 11, 19, 0.4); }
.cart-item__thumb--negre img { outline: 5px solid #06090e; }
.cart-item__thumb--transparent img { outline: 4px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 5px #cfdfeb, 0 6px 12px -6px rgba(6, 11, 19, 0.4); }
.cart-item h3 { font-size: 16px; font-weight: 700; }
.cart-item p { font-size: 13px; color: var(--ink-soft); }
.cart-item__side { display: grid; justify-items: end; gap: 10px; }
.cart-item__price { font-weight: 700; }
.link-btn { border: 0; background: none; padding: 0; font-size: 13px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--bad); }
.empty { display: grid; gap: 20px; justify-items: start; padding: 48px 0 96px; }

.summary { position: sticky; top: 96px; display: grid; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--paper-alt); }
.summary h2 { font-size: 20px; font-weight: 800; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; font-size: 14px; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font-size: 20px; font-weight: 800; padding-top: 14px; border-top: 1px solid var(--line); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.input { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.input input, .input select, .input textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 400;
}
.input textarea { min-height: 96px; resize: vertical; }
.input input:focus, .input select:focus, .input textarea:focus { outline: none; border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-error { padding: 12px 16px; border-radius: 10px; background: #fdecec; color: var(--bad); font-size: 14px; }
.checkout h2.block-title { font-size: 20px; font-weight: 800; margin: 48px 0 20px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item__thumb { width: 72px; height: 72px; }
  .cart-item__thumb img { max-width: 56px; max-height: 56px; }
  .cart-item__side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
}

/* Codi promocional */
.coupon { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coupon input {
  min-height: 42px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 0;
}
.coupon input:focus { outline: none; border-color: var(--ink); }
.coupon__msg { grid-column: 1 / -1; margin-top: -2px; font-size: 13px; }
.coupon__msg--ok { color: var(--ok); font-weight: 600; }
.coupon__msg--error { color: var(--bad); }
.summary dd#discount { color: var(--ok); }

/* ---------- Pàgines legals ---------- */
.legal { max-width: 760px; padding-bottom: 96px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; }
.legal p, .legal li { color: #333a45; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .updated { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* Gràcies */
.thanks { display: grid; gap: 24px; justify-items: start; max-width: 640px; padding-block: 96px 128px; }
.thanks__icon { width: 72px; height: 72px; }

/* ---------- Moviment de la portada ----------
   Només s'activa si JS afegeix .pf-motion a <html> (sense JS, o per a Google, tot es veu des del principi)
   i mai en mode edició. Entrades: ease-out; revelat d'imatges: ease-in-out. */

/* Hero: entrada en cascada en carregar (animació CSS, fora del fil principal) */
.pf-motion .hero__copy > * {
  opacity: 0;
  animation: pf-rise 700ms var(--ease-out) forwards;
}
.pf-motion .hero__copy > :nth-child(1) { animation-delay: 60ms; }
.pf-motion .hero__copy > :nth-child(2) { animation-delay: 120ms; }
.pf-motion .hero__copy > :nth-child(3) { animation-delay: 200ms; }
.pf-motion .hero__copy > :nth-child(4) { animation-delay: 260ms; }
.pf-motion .hero__copy > :nth-child(5) { animation-delay: 320ms; }
.pf-motion .hero__media img {
  animation: pf-unveil 1000ms var(--ease-in-out) 100ms both;
}
.pf-motion .price-badge {
  opacity: 0;
  animation: pf-badge 500ms var(--ease-out) 750ms forwards;
}

@keyframes pf-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pf-unveil {
  from { clip-path: inset(6% 6% 6% 6% round 14px); transform: scale(1.04); opacity: 0.4; }
  to { clip-path: inset(0 0 0 0 round 14px); transform: none; opacity: 1; }
}
@keyframes pf-badge {
  from { opacity: 0; transform: rotate(-8deg) scale(0.9); }
  to { opacity: 1; transform: rotate(-8deg) scale(1); }
}

/* Revelat en fer scroll (una sola vegada) */
.pf-motion [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms var(--ease-out) calc(var(--i, 0) * 70ms),
    transform 700ms var(--ease-out) calc(var(--i, 0) * 70ms);
}
.pf-motion [data-reveal='image'] {
  /* el contenidor no es retalla: IntersectionObserver ignora elements amb clip-path total */
  opacity: 1;
  transform: none;
  transition: none;
}
.pf-motion [data-reveal='image'] > img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-in-out) calc(var(--i, 0) * 90ms);
}
.pf-motion [data-reveal][data-visible] {
  opacity: 1;
  transform: none;
}
.pf-motion [data-reveal='image'][data-visible] > img { clip-path: inset(0 0 0 0); }

/* Resposta de les preguntes en obrir-se */
.faq details[open] > p { animation: pf-fade 240ms var(--ease-out); }
@keyframes pf-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Moviment reduït: només fosa d'opacitat, sense desplaçaments ni màscares */
@media (prefers-reduced-motion: reduce) {
  .pf-motion .hero__copy > *,
  .pf-motion .price-badge { animation: pf-fade-only 300ms ease forwards; animation-delay: 0ms; }
  .pf-motion .hero__media img { animation: none; }
  .pf-motion [data-reveal],
  .pf-motion [data-reveal='image'] {
    transform: none;
    transition: opacity 300ms ease;
  }
  .pf-motion [data-reveal='image'] > img { clip-path: none; transition: none; }
  .pf-motion [data-reveal='image'] { opacity: 0; }
  .pf-motion [data-reveal][data-visible] { opacity: 1; }
  .faq details[open] > p { animation: none; }
  .pf-motion .price-badge { transform: rotate(-8deg); }
}
@keyframes pf-fade-only { from { opacity: 0; } to { opacity: 1; } }

/* Pagament segur: cadenat + targetes acceptades */
.pay-note { margin: 12px 0 0; display: grid; gap: 8px; justify-items: center; }
.pay-note p { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--ink-soft); text-align: center; }
.pay-trust { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pay-trust__lock { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.pay-trust__cards { display: inline-flex; align-items: center; gap: 6px; }
.pay-trust__cards img { display: block; height: 26px; width: auto; }
.pay-trust--dark { justify-content: flex-start; }
.pay-trust--dark .pay-trust__lock { color: #c7ccd4; font-weight: 500; }
