/* Pàgines de joies (Personalizados i Luxury): el mateix búnquer que la home — paret de formigó amb el
   focus a sobre, Archivo gruixuda en majúscules, Space Grotesk petita, franja tipus «DROP 01», targetes i
   botons quadrats. Luxury només canvia el color d'accent (or en lloc de vermell). */
.joyas { --accent: var(--red); --accent-soft: #ff8a85; --accent-ink: var(--ink); background: #0b0b0c; }
.lux { --accent: #d6b26a; --accent-soft: #e9d3a1; --accent-ink: #0b0b0c; }
.joyas main { pointer-events: auto; }
.lux .lux-btn { background: var(--accent); border-color: var(--accent); color: #0b0b0c; }

/* La paret de formigó de la home (mateixa textura, textures.js) amb el focus que cau sobre la peça. */
.wall {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 58% at 74% 30%, rgba(255, 246, 232, 0.16), rgba(255, 246, 232, 0) 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(8, 8, 8, 0.95), rgba(8, 8, 8, 0) 60%),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.15), rgba(8, 8, 8, 0.6)),
    url(/models/hero/concrete.webp) center / cover;
}
.lux .wall {
  background:
    radial-gradient(42% 58% at 74% 30%, rgba(255, 220, 160, 0.17), rgba(255, 220, 160, 0) 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(8, 8, 8, 0.95), rgba(8, 8, 8, 0) 60%),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.65)),
    url(/models/hero/concrete.webp) center / cover;
}

/* ---------- hero ---------- */
.j-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.jewel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.j-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; pointer-events: none; background: linear-gradient(to top, rgba(11, 11, 12, 0.92), rgba(11, 11, 12, 0)); }
.j-hero-copy { position: relative; z-index: 1; max-width: 1000px; padding: 0 var(--gutter) clamp(36px, 8vh, 80px); }
.joyas .eyebrow { color: var(--accent-soft); }
.j-title { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.6rem, 7vw, 7.2rem); line-height: 0.86; letter-spacing: -0.01em; }
.j-title .accent { color: var(--accent); }
.j-lead { max-width: 46ch; margin: 22px 0 0; text-transform: none; letter-spacing: 0.01em; font-size: 15px; line-height: 1.7; color: #c9c6bf; }
.j-more { max-width: 62ch; margin-top: 14px; }
.j-more summary { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); cursor: pointer; list-style: none; transition: background 0.3s, color 0.3s; }
.j-more summary::-webkit-details-marker { display: none; }
.j-more[open] summary, .j-more summary:hover { background: var(--ink); color: var(--bg); }
.j-more p { margin: 14px 0 0; text-transform: none; letter-spacing: 0.01em; font-size: 14px; line-height: 1.7; color: #c9c6bf; }
.j-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.cta { display: inline-block; padding: 17px 26px; background: var(--ink); color: var(--bg); font-weight: 600; text-align: center; transition: background 0.3s, color 0.3s; }
.cta:hover { background: var(--accent); color: var(--accent-ink); }
.cta-ghost { background: rgba(8, 8, 8, 0.45); color: var(--ink); border: 1px solid rgba(242, 240, 235, 0.35); }
.cta-ghost:hover { background: var(--ink); color: var(--bg); }
.cta:disabled { opacity: 0.5; cursor: wait; }

/* ---------- franja tipus «DROP 01» ---------- */
.band { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); background: rgba(8, 8, 8, 0.82); }
.band-track { display: flex; align-items: center; width: max-content; animation: band 40s linear infinite; }
.band span { padding: 16px 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(1.6rem, 3.6vw, 3.2rem); line-height: 1; color: #e6e2da; white-space: nowrap; }
.band i { flex: none; width: 12px; height: 12px; margin: 0 clamp(18px, 2.6vw, 36px); border-radius: 50%; background: var(--accent); }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- blocs ---------- */
.j-block { position: relative; padding: 14vh var(--gutter); }
.j-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.j-sub { margin: 0; max-width: 16ch; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 0.95; }
.j-text { max-width: 56ch; margin: 0; font-size: 15px; line-height: 1.7; text-transform: none; letter-spacing: 0.01em; color: #c9c6bf; }
.j-kicker { margin: 0 0 28px; color: var(--muted); font-size: 12px; font-weight: 500; }
.j-kicker::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--accent); vertical-align: 1px; }
.j-note { margin: 16px 0 0; color: var(--muted); }
.j-statement { max-width: 22ch; margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 0.98; }

/* Targetes: rejilla de línies fines, com els panells de la paret. */
/* Línies amb vores (i no amb el fons de la graella): les caselles buides d'una fila queden netes. */
.j-grid, .j-steps, .j-links { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.j-grid > li, .j-steps > li, .j-links > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.j-grid, .j-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 28px; padding: 0; list-style: none; }
.j-grid li, .j-steps li { position: relative; display: grid; gap: 10px; align-content: end; min-height: 210px; padding: 54px 24px 24px; background: rgba(11, 11, 12, 0.92); transition: background 0.4s; }
.j-grid li:hover { background: rgba(26, 26, 28, 0.96); }
.j-num { position: absolute; top: 20px; left: 24px; color: var(--muted); }
.j-grid h3, .j-steps h3 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1; }
.j-grid p, .j-steps p { margin: 0; text-transform: none; letter-spacing: 0.01em; font-size: 14px; line-height: 1.6; color: #b8b5ae; }
.j-grid em, .j-tag { font-style: normal; color: var(--accent-soft); }
.j-grid .is-star { grid-row: span 2; background: rgba(200, 40, 45, 0.1); }
.j-grid .is-star h3 { font-size: clamp(1.9rem, 3vw, 3rem); }
.j-grid .is-wide { grid-column: span 2; }
.j-grid-lux li { min-height: 240px; }
@media (min-width: 861px) { .j-grid-lux li:last-child { grid-column: span 2; } }
.j-steps li { min-height: 190px; }
.j-steps .j-num { color: var(--accent-soft); }

/* ---------- formulari d'idea ---------- */
.j-form-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.p-form { display: grid; gap: 18px; }
.p-form select, .p-form textarea, .p-form input[type="text"] {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 0; background: rgba(8, 8, 8, 0.7);
  color: var(--ink); font: 15px/1.6 var(--text); letter-spacing: 0; text-transform: none;
}
.p-form select:focus, .p-form textarea:focus, .p-form input:focus { outline: none; border-color: var(--ink); }
.p-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-drop {
  position: relative; display: grid; place-items: center; min-height: 120px; padding: 18px; border: 1px dashed rgba(242, 240, 235, 0.3);
  background: rgba(8, 8, 8, 0.55); text-align: center; cursor: pointer; transition: background 0.3s, border-color 0.3s;
}
.p-drop.is-over { background: rgba(200, 40, 45, 0.12); border-color: var(--ink); }
.p-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.p-drop-text { text-transform: none; letter-spacing: 0.01em; font-size: 13px; }
.p-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.p-previews figure { position: relative; width: 88px; height: 88px; margin: 0; overflow: hidden; background: #151517; border: 1px solid var(--line); }
.p-previews img, .p-previews video { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-previews button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0, 0, 0, 0.75); font-size: 12px; line-height: 22px; }
.p-form .cta { justify-self: start; border: 0; }
.p-status { margin: 0; min-height: 1.6em; text-transform: none; letter-spacing: 0.01em; font-size: 13px; line-height: 1.5; }

.joyas .seo { z-index: 1; background: linear-gradient(to bottom, rgba(11, 11, 12, 0), #0b0b0c 12%); }
.joyas .seo-links a { color: var(--accent-soft); }
.joyas .site-foot { z-index: 1; background: #0b0b0c; }

/* ---------- guies de /joyas/ ---------- */
.j-hero-guide { min-height: 82vh; min-height: 82svh; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; }
.j-hero-guide .j-hero-copy { padding-top: 120px; }
.j-hero-img { position: relative; z-index: 1; align-self: center; justify-self: center; width: min(100%, 520px); height: auto; margin-right: var(--gutter); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.j-crumbs { display: flex; gap: 10px; margin: 0 0 18px; color: var(--muted); }
.j-crumbs a:hover { color: var(--ink); }
.j-prose { display: grid; gap: 14px; }
.j-more-link { color: var(--accent-soft); }
.j-grid-ideas li { min-height: 170px; }
.j-faq { display: grid; border-top: 1px solid var(--line); }
.j-faq-item { border-bottom: 1px solid var(--line); }
.j-faq-item summary { position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; font-size: 13px; line-height: 1.5; }
.j-faq-item summary::-webkit-details-marker { display: none; }
.j-faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent-soft); font-size: 18px; }
.j-faq-item[open] summary::after { content: '–'; }
.j-faq-item p { margin: 0 0 20px; max-width: 62ch; text-transform: none; letter-spacing: 0.01em; font-size: 14px; line-height: 1.7; color: #c9c6bf; }
.j-cta-block { display: grid; gap: 18px; justify-items: start; border-block: 1px solid var(--line); background: rgba(8, 8, 8, 0.6); }
.j-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 24px; padding: 0; list-style: none; }
.j-links-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.j-links a { display: grid; gap: 8px; align-content: end; min-height: 130px; height: 100%; padding: 22px; background: rgba(11, 11, 12, 0.92); transition: background 0.3s; }
.j-links a:hover { background: rgba(26, 26, 28, 0.96); }
.j-links span { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.05; }
.j-links span::after { content: ' →'; color: var(--accent-soft); }
.j-links small { text-transform: none; letter-spacing: 0.01em; font-size: 13px; line-height: 1.5; color: #b8b5ae; }
.j-note a { color: var(--accent-soft); }

/* ---------- mòbil ---------- */
@media (max-width: 860px) {
  .wall { background-position: 70% center; }
  .j-hero-copy { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .j-hero::after { height: 62%; }
  .j-title { font-size: clamp(2.2rem, 10.4vw, 3.4rem); }
  .j-ctas .cta { flex: 1 1 140px; padding: 16px 12px; }
  .j-block { padding: 10vh var(--gutter); }
  .j-split, .j-form-wrap { grid-template-columns: minmax(0, 1fr); }
  .j-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-grid li { min-height: 150px; padding: 46px 16px 16px; }
  .j-num { top: 16px; left: 16px; }
  .j-grid .is-star { grid-row: auto; grid-column: span 2; min-height: 190px; }
  .j-grid .is-wide { grid-column: span 2; }
  .j-grid-lux, .j-steps { grid-template-columns: minmax(0, 1fr); }
  .j-grid-lux li { min-height: 170px; }
  .j-steps li { min-height: 0; }
  .p-row { grid-template-columns: 1fr; }
  .p-form .cta { justify-self: stretch; }
  .j-hero-guide { grid-template-columns: minmax(0, 1fr); align-content: end; }
  .j-hero-guide .j-hero-copy { padding-top: 0; }
  .j-hero-img { grid-row: 1; width: min(72%, 320px); margin: 90px auto 0; }
  .j-links, .j-links-wide { grid-template-columns: minmax(0, 1fr); }
  .j-links a { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .band-track { animation: none; }
}
