/* Mármol Italiano · design system prototype, v3 (2026-09-29)
   Palette: bianco, nero, grigio, vino, vino scuro, plus white cards and a neutral stone grey. No pink tints.
   Type: Archivo + Pinyon Script (one word, brand moments only).
   Shapes: photos have straight edges; controls 10 px; floating containers 24 px; the header is a capsule;
   arches frame the finish samples and category tiles. */

:root {
  --bianco: #F9F7F4;
  --card: #FFFFFF;
  --pietra: #EEEAE5;
  --nero: #231516;
  --grigio: #65524F;
  --vino: #6B1B2A;
  --vino-hover: #561522;
  --vino-scuro: #3A0710;
  --wa: #188741;        /* WhatsApp buttons: the logo's hue, dark enough for white text (4.6:1) */
  --wa-hover: #157539;
  --wa-logo: #25D366;   /* the floating WhatsApp circle on phones and tablets */
  --linea: #E4DED8;
  --campo: #8F8480;
  --on-dark-soft: #C8BFBB;
  --on-dark-line: rgba(249, 247, 244, .14);
  --on-dark-script: #D9BFBA;

  --r-control: 10px;
  --r-float: 24px;
  --r-chip: 8px;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --container: 1200px;
  --wide: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
  --section: clamp(72px, 8.5vw, 132px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-float: 0 30px 70px -30px rgba(35, 21, 22, .32), 0 2px 8px rgba(35, 21, 22, .04);
}
@media (min-width: 1024px) { :root { --header-h: 78px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--bianco); color: var(--nero);
  font-family: var(--sans); font-size: clamp(17px, 1.25vw, 18px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--vino); outline-offset: 3px; border-radius: 4px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: var(--r-control); }
.proto-bar { background: var(--pietra); color: var(--grigio); font-size: 13px; line-height: 1.4; text-align: center; padding: 7px var(--gutter); }

/* ---------- Type ---------- */
.h1 { font-size: clamp(42px, 5.4vw, 80px); font-weight: 300; line-height: 1; letter-spacing: -.025em; text-transform: uppercase; }
.h2 { font-size: clamp(30px, 3.8vw, 50px); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; text-transform: uppercase; }
/* Pinyon's ascenders (d, l, t) reach .78em above the baseline and a p's tail .35em below it.
   The word is an inline-block that reserves that height, so the line it sits on grows instead of the
   strokes cutting into the lines above and below, at every width. Measured 2026-10-05. */
.script { display: inline-block; font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.45em; line-height: .8; padding-top: .16em; color: var(--vino); margin: 0 .12em 0 .04em; }
.script--tail { padding-bottom: .26em; } /* words with a hanging letter (p, g, j, q, y, f, z): build.py adds the class */
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; }
.section-intro { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--grigio); max-width: 560px; margin-top: 18px; }
.note { margin-top: 28px; font-size: 14px; color: var(--grigio); }

/* ---------- Buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: var(--r-control);
  background: var(--vino); color: #fff; font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .15s var(--ease);
}
.btn:hover { background: var(--vino-hover); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--secondary { background: transparent; color: var(--nero); box-shadow: inset 0 0 0 1px var(--campo); }
.btn--secondary:hover { background: var(--card); }
.btn--light { background: var(--bianco); color: var(--vino-scuro); }
.btn--light:hover { background: #fff; }
/* Every WhatsApp button is green, so it reads as "write us on WhatsApp", not as an alarm (Lorenzo, 2026-10-13) */
.btn[href*="wa.me"]:not(.btn--secondary):not(.btn--ghost-light), .btn[data-qv-wa] { background: var(--wa); color: #fff; }
.btn[href*="wa.me"]:not(.btn--secondary):not(.btn--ghost-light):hover, .btn[data-qv-wa]:hover { background: var(--wa-hover); }
.btn--secondary[href*="wa.me"] svg { color: var(--wa); }
.btn--ghost-light[href*="wa.me"] svg { color: var(--wa-logo); }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--campo); color: var(--grigio); font-size: 12px; line-height: 1.5; vertical-align: 1px; white-space: nowrap; font-weight: 400; }

/* ---------- Arches ---------- */
.arch { display: block; position: relative; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--pietra); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--linea); pointer-events: none; }
.arch.is-empty img { display: none; }
.arch.is-empty::after { content: "Foto en camino"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--grigio); font-size: 14px; }

/* ---------- Header: a floating capsule ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 10px 12px 0; pointer-events: none; }
.site-header .bar, .site-header .nav, .site-header .panel, .site-header .header-actions { pointer-events: auto; }
.bar { position: relative; }
.logo { display: flex; align-items: baseline; font-weight: 300; font-size: 14px; letter-spacing: .2em; white-space: nowrap; }
.logo-script { font-family: var(--script); font-size: 1.85em; letter-spacing: 0; line-height: 0; color: var(--vino); margin-left: .28em; }
.lang { font-size: 14px; color: var(--grigio); white-space: nowrap; }
.lang a:hover { color: var(--vino); }
.lang a[aria-current] { color: var(--nero); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 6px 0 10px; font-size: 15px; }
.menu-icon { position: relative; width: 22px; height: 12px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s var(--ease), top .2s var(--ease); }
.menu-icon::before { top: 2px; }
.menu-icon::after { top: 9px; }
.menu-open .menu-icon::before { top: 5.5px; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 5.5px; transform: rotate(-45deg); }
.stone-text { display: flex; flex-direction: column; }
.stone-name { font-size: 17px; line-height: 1.3; }
.stone-meta { font-size: 14px; line-height: 1.4; color: var(--grigio); }
.mm-guides { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.mm-guides a:hover, .mm-source:hover { color: var(--vino); }
.mm-source { font-size: 15px; }
.mm-source span { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.bl-name { display: block; }
.bl-desc { display: block; font-size: 14px; line-height: 1.45; color: var(--grigio); }
.panel-all, .mm-more, .mm-all a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; font-size: 15px; }
.nav-extra { display: none; }

/* Desktop with a mouse: capsule with the logo in the middle, panels float below it */
html.is-hover .site-header { padding-top: 14px; }
html.is-hover .bar { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
html.is-hover .logo--bar, html.is-hover .menu-toggle { display: none; }
html.is-hover .nav {
  grid-column: 2; display: flex; align-items: center; gap: 30px;
  height: 58px; padding: 0 30px; background: var(--card); border: 1px solid var(--linea); border-radius: 999px;
  transition: box-shadow .25s var(--ease);
}
html.is-hover .site-header.is-scrolled .nav, html.is-hover .site-header.has-open .nav { box-shadow: 0 12px 30px -18px rgba(35, 21, 22, .35); }
html.is-hover .logo--nav { font-size: 15px; padding: 0 6px; }
html.is-hover .nav-list { display: flex; gap: 28px; }
html.is-hover .header-actions { grid-column: 3; justify-self: end; }
html.is-hover .nav-trigger { display: inline-flex; align-items: center; gap: 8px; height: 56px; font-size: 15px; transition: color .15s; }
html.is-hover .nav-trigger::after { content: ""; width: 6px; height: 6px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
html.is-hover .nav-trigger:hover, html.is-hover .nav-item.is-open .nav-trigger { color: var(--vino); }
html.is-hover .nav-item.is-open .nav-trigger::after { transform: translateY(1px) rotate(225deg); }
html.is-hover .panel {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(100vw - 2 * var(--gutter), 1200px);
  background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-float); box-shadow: var(--shadow-float);
  visibility: hidden; opacity: 0; transform: translate(-50%, -6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
html.is-hover .nav-item.is-open > .panel { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition-delay: 0s; }
html.is-hover .panel-inner { padding: 44px 48px 36px; }
html.is-hover .site-header.has-open::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(35, 21, 22, .16); pointer-events: none; }
html.is-hover .mm { display: grid; grid-template-columns: 210px minmax(0, 1fr) 230px; gap: 56px; }
html.is-hover .mm-type { display: flex; justify-content: space-between; width: 100%; padding: 8px 0; font-size: 18px; font-weight: 300; text-align: left; transition: color .15s; }
html.is-hover .mm-type:hover, html.is-hover .mm-type.is-active { color: var(--vino); }
html.is-hover .mm-type.is-active::after { content: "›"; }
html.is-hover .mm-all { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--linea); }
html.is-hover .mm-list { columns: 2; column-gap: 40px; }
html.is-hover .mm-list li { break-inside: avoid; }
html.is-hover .stone { display: block; padding: 8px 0; }
html.is-hover .stone-thumb, html.is-hover .stone-meta { display: none; }
html.is-hover .stone-name { font-size: 18px; font-weight: 300; transition: color .15s; }
html.is-hover .stone:hover .stone-name, html.is-hover .stone:focus-visible .stone-name { color: var(--vino); }
html.is-hover .mm-more { display: inline-block; margin-top: 20px; }
html.is-hover .mm-preview { display: block; }
html.is-hover .mm-preview .arch { aspect-ratio: 3 / 4; }
.mm-name { display: block; margin-top: 18px; font-size: 20px; line-height: 1.3; }
.mm-meta { display: block; font-size: 15px; color: var(--grigio); }
html.is-hover .mm-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--linea); }
html.is-hover .big-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 56px; }
html.is-hover .bl-name { font-size: 24px; font-weight: 300; line-height: 1.25; margin-bottom: 6px; transition: color .15s; }
html.is-hover .big-links a:hover .bl-name { color: var(--vino); }
html.is-hover .panel-all { display: inline-block; margin-top: 36px; }

/* Touch screens and narrow windows: the capsule holds logo + menu button, the menu drops as a floating sheet */
html:not(.is-hover) .bar {
  display: flex; align-items: center; height: 54px; padding: 0 6px 0 20px;
  background: var(--card); border: 1px solid var(--linea); border-radius: 999px; transition: box-shadow .25s var(--ease);
}
html:not(.is-hover) .site-header.is-scrolled .bar, html.menu-open:not(.is-hover) .bar { box-shadow: 0 12px 30px -18px rgba(35, 21, 22, .35); }
html:not(.is-hover) .logo--bar { margin-right: auto; }
html:not(.is-hover) .logo--nav, html:not(.is-hover) .header-actions .lang { display: none; }
/* "Contacto" (Lorenzo, 2026-10-13): from 1100px it is the header button, outside the menu bar;
   on phones and tablets it moves inside the menu (.nav-contact) and the header keeps only logo and menu.
   WhatsApp is the round button in the corner on every screen (.wa-fab). */
.header-cta { background: var(--nero); }
.header-cta:hover { background: var(--vino-scuro); }
@media (max-width: 1099px) { .header-cta { display: none; } }
.nav-contact { display: none; }
@media (max-width: 1099px) {
  html:not(.is-hover) .nav-contact { display: flex; width: 100%; margin-top: 24px; background: var(--nero); }
  html:not(.is-hover) .nav-contact:hover { background: var(--vino-scuro); }
}
html:not(.is-hover) .nav {
  position: fixed; left: 12px; right: 12px; bottom: 12px; top: calc(var(--sheet-top, var(--header-h)) + 8px);
  background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-float); box-shadow: var(--shadow-float);
  overflow-y: auto; overscroll-behavior: contain; padding: 6px clamp(18px, 4vw, 40px) calc(32px + env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
html.menu-open:not(.is-hover) .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
/* Lock the page on <html> only: hiding overflow on <body> too makes it a scroll box and the sticky header jumps away */
html.menu-open:not(.is-hover) { overflow: hidden; }
html:not(.is-hover) .nav-list, html:not(.is-hover) .nav-extra { width: min(100%, 760px); margin-inline: auto; }
html:not(.is-hover) .nav-item { border-bottom: 1px solid var(--linea); }
html:not(.is-hover) .nav-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 19px 0; font-size: 23px; font-weight: 300; text-align: left; }
html:not(.is-hover) .nav-trigger::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: background-size .2s var(--ease);
}
html:not(.is-hover) .nav-item.is-open .nav-trigger { color: var(--vino); }
html:not(.is-hover) .nav-item.is-open .nav-trigger::after { background-size: 14px 1.5px, 1.5px 0; }
html:not(.is-hover) .panel { display: none; padding: 0 0 26px; }
html:not(.is-hover) .nav-item.is-open > .panel { display: block; }
html:not(.is-hover) .mm-types { display: flex; flex-wrap: wrap; gap: 8px; }
html:not(.is-hover) .mm-type { height: 38px; padding: 0 14px; border-radius: var(--r-chip); border: 1px solid var(--linea); font-size: 15px; }
html:not(.is-hover) .mm-type.is-active { background: var(--vino); border-color: var(--vino); color: #fff; }
html:not(.is-hover) .mm-all { flex-basis: 100%; margin-top: 8px; }
html:not(.is-hover) .mm-lists { margin-top: 18px; }
html:not(.is-hover) .mm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
@media (min-width: 640px) { html:not(.is-hover) .mm-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html:not(.is-hover) .stone { display: flex; flex-direction: column; gap: 8px; }
html:not(.is-hover) .stone-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--pietra); border: 1px solid var(--linea); }
html:not(.is-hover) .stone-name { font-size: 16px; }
html:not(.is-hover) .stone-meta { font-size: 13px; }
html:not(.is-hover) .mm-more { display: inline-block; margin-top: 16px; }
html:not(.is-hover) .mm-preview { display: none; }
html:not(.is-hover) .mm-foot { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linea); }
html:not(.is-hover) .big-links { display: grid; gap: 2px; }
@media (min-width: 640px) { html:not(.is-hover) .big-links { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
html:not(.is-hover) .big-links a { display: block; padding: 10px 0; }
html:not(.is-hover) .bl-name { font-size: 18px; }
html:not(.is-hover) .panel-all { display: inline-block; margin-top: 12px; }
html:not(.is-hover) .nav-extra { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 15px; color: var(--grigio); }
html:not(.is-hover) .nav-extra .lang { font-size: 15px; }
html:not(.is-hover) .nav-extra a[href^="tel:"], html:not(.is-hover) .nav-extra a[href^="mailto:"] { color: var(--nero); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { padding-top: clamp(18px, 2.6vw, 34px); font-size: 15px; color: var(--grigio); }
.breadcrumb ol { display: flex; flex-wrap: wrap; row-gap: 4px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin: 0 10px; color: #B5ACA7; }
.breadcrumb a:hover { color: var(--vino); }
.breadcrumb [aria-current] { color: var(--nero); }

/* ---------- Stone hero: big gallery + info ---------- */
.stone-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; padding-block: clamp(20px, 2.6vw, 36px) var(--section); }
.gallery { min-width: 0; }
.g-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pietra); }
.g-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.g-slide.is-active { opacity: 1; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(249, 247, 244, .92); color: var(--nero); font-size: 13px; line-height: 1.2; }
.g-tag--real { background: var(--nero); color: var(--bianco); }
.g-bar-row { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 14px; }
.g-bars { flex: 1; display: flex; gap: 6px; }
.g-bar { flex: 1; height: 22px; display: flex; align-items: center; }
.g-bar span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .45); overflow: hidden; box-shadow: 0 0 0 .5px rgba(35, 21, 22, .12); }
.g-bar span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.g-bar.is-done span::after { transform: scaleX(1); }
.g-toggle { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(249, 247, 244, .92); color: var(--nero); }
.g-toggle .ic { width: 16px; height: 16px; stroke-width: 2; }
.g-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.g-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; opacity: .62; transition: opacity .2s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--linea); transition: box-shadow .2s; }
.g-thumb:hover { opacity: .9; }
.g-thumb.is-active { opacity: 1; }
.g-thumb.is-active::after { box-shadow: inset 0 0 0 2px var(--vino); }

.sh-info { padding-top: clamp(4px, 1vw, 16px); }
.data-line { margin-top: 18px; font-size: 16px; color: var(--grigio); }
.sh-info .lead { margin-top: 26px; max-width: 470px; }
.variants-mini { display: grid; gap: 10px; margin-top: 28px; }
.variants-mini li { display: flex; align-items: center; gap: 14px; }
.variants-mini img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--linea); }
.variants-mini span { display: flex; flex-direction: column; font-size: 15px; line-height: 1.35; color: var(--grigio); }
.variants-mini b { color: var(--nero); font-weight: 500; font-size: 16px; }
.facts { margin-top: 28px; border-top: 1px solid var(--linea); }
.facts li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.facts .ic { margin-top: 2px; color: var(--vino); }
.facts span { font-size: 15px; line-height: 1.45; color: var(--grigio); }
.facts b { display: block; color: var(--nero); font-weight: 500; font-size: 15px; }
.facts a, .avail a, .perf-tip a, .faq a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.avail { margin-top: 22px; font-size: 15px; color: var(--grigio); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--line { border-top: 1px solid var(--linea); }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* Dark panel: where it works, hardness, resistance */
.section--dark { background: var(--nero); color: var(--bianco); }
.section--dark .h2 { color: var(--bianco); }
.perf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.suit li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ic name dots" "ic note note"; column-gap: 16px; row-gap: 2px; padding: 16px 0; border-top: 1px solid var(--on-dark-line); }
.suit li:last-child { border-bottom: 1px solid var(--on-dark-line); }
.suit .ic { grid-area: ic; width: 26px; height: 26px; color: var(--on-dark-soft); margin-top: 1px; }
.suit-name { grid-area: name; font-size: 18px; }
.suit-note { grid-area: note; font-size: 14px; color: var(--on-dark-soft); }
.dots { grid-area: dots; display: flex; gap: 6px; align-items: center; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(249, 247, 244, .18); }
.dots i.on { background: var(--bianco); }
.mohs figcaption { font-size: 15px; color: var(--on-dark-soft); margin-bottom: 6px; }
.mohs svg { width: 100%; height: auto; overflow: visible; }
.m-track { stroke: rgba(249, 247, 244, .22); stroke-width: 2; }
.m-fill { stroke: var(--bianco); stroke-width: 3; }
.m-ticks line { stroke: rgba(249, 247, 244, .3); stroke-width: 1; }
.m-nums text { fill: var(--on-dark-soft); font-size: 16px; text-anchor: middle; font-family: var(--sans); }
.m-dot { fill: var(--nero); stroke: var(--on-dark-soft); stroke-width: 2; }
.m-dot--main { fill: var(--bianco); stroke: var(--bianco); }
.m-label { fill: var(--on-dark-soft); font-size: 17px; font-family: var(--sans); }
.m-label--main { fill: var(--bianco); font-size: 19px; text-anchor: middle; }
.res { margin-top: 34px; }
.res li { display: grid; grid-template-columns: 90px minmax(0, 1fr) 140px; align-items: center; gap: 16px; padding: 12px 0; font-size: 15px; }
.res .meter { height: 4px; border-radius: 4px; background: rgba(249, 247, 244, .16); overflow: hidden; }
.res .meter i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--bianco); border-radius: 4px; }
.res-level { color: var(--on-dark-soft); font-size: 14px; }
.perf-tip { margin-top: 28px; font-size: 15px; color: var(--on-dark-soft); }
.section--dark .perf-tip a { color: var(--bianco); }

/* Finishes */
.finishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 4.5vw, 56px); }
.finishes .arch { aspect-ratio: 4 / 5; margin-bottom: 18px; }
.finishes b { display: block; font-size: 20px; font-weight: 400; }
.finishes li > span:not(.arch) { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--grigio); }
.finishes em { display: inline-block; margin-top: 12px; font-style: normal; font-size: 13px; padding: 2px 10px; border: 1px solid var(--linea); border-radius: 999px; color: var(--grigio); }

/* Technical sheet + thickness drawing */
.spec-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.thick { margin-top: 36px; background: var(--card); border: 1px solid var(--linea); padding: clamp(18px, 2.4vw, 30px); }
.thick svg { width: 100%; height: auto; }
.t-slab { stroke: var(--nero); stroke-width: 1; }
.t-label { fill: var(--nero); font-size: 15px; font-family: var(--sans); }
.t-num { fill: var(--vino); font-size: 15px; font-family: var(--sans); font-weight: 500; }
.t-dim { stroke: var(--vino); stroke-width: 1.2; }
.thick figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--grigio); }
.spec { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec tr { border-bottom: 1px solid var(--linea); }
.spec th { width: 32%; padding: 17px 20px 17px 0; text-align: left; vertical-align: top; font-weight: 400; font-size: 15px; color: var(--grigio); }
.spec td { padding: 16px 0; font-size: 16px; line-height: 1.5; }

/* Price */
.price { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.factors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.factors li { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 13px 0 10px; background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-control); font-size: 15px; }
.factors .ic { color: var(--vino); width: 20px; height: 20px; }
.checklist { background: var(--card); border: 1px solid var(--linea); padding: clamp(26px, 3vw, 38px); }
.checklist h3 { font-size: 19px; font-weight: 500; }
.checklist ul { margin-top: 10px; }
.checklist li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--linea); font-size: 16px; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px; border-left: 1.5px solid var(--vino); border-bottom: 1.5px solid var(--vino); transform: rotate(-45deg); }

/* Use-case carousel: bleeds to the right edge, two cards per view on phones */
.car-nav { display: flex; gap: 10px; flex: none; }
.car-btn { width: 48px; height: 48px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--card); border: 1px solid var(--linea); transition: border-color .15s, opacity .15s; }
.car-btn:hover { border-color: var(--campo); }
.car-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.car-btn--prev .ic { transform: rotate(180deg); }
.carousel { margin-top: clamp(32px, 4vw, 52px); }
.car-track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge); scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-card { flex: 0 0 clamp(250px, 25vw, 340px); scroll-snap-align: start; }
.car-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--pietra); margin-bottom: 14px; }
.car-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car-card a:hover .car-img img { transform: scale(1.03); }
.car-card b { display: block; font-size: 19px; font-weight: 400; }
.car-card a > span:not(.car-img) { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--grigio); }
.car-img .g-tag { top: 12px; left: 12px; font-size: 12px; padding: 5px 10px; }

/* Similar stones: straight edges, a thin border so white stones stand off the page */
.similar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(32px, 4vw, 52px); }
.sm-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--linea); margin-bottom: 14px; background: var(--card); }
.sm-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.similar a:hover .sm-img img { transform: scale(1.03); }
.sm-name { display: block; font-size: 18px; }
.sm-meta { display: block; font-size: 14px; color: var(--grigio); }
.sm-desc { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--linea); }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary { position: relative; padding: 22px 44px 22px 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: background-size .2s var(--ease);
}
.faq details[open] summary::after { background-size: 14px 1.5px, 1.5px 0; }
.faq summary:hover { color: var(--vino); }
.faq details p { max-width: 640px; padding-bottom: 24px; font-size: 16px; }

.placeholder { padding-top: clamp(40px, 6vw, 80px); }
.placeholder .h1 { max-width: 900px; }

/* ---------- Closing band and footer ---------- */
.band { background: var(--vino-scuro); color: var(--bianco); text-align: center; padding-block: var(--section); }
.band .script { color: var(--on-dark-script); }
.band .btn { margin-top: clamp(32px, 4vw, 52px); }
.site-footer { background: var(--vino-scuro); color: var(--bianco); padding-bottom: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; padding-block: clamp(52px, 6.5vw, 90px); border-top: 1px solid var(--on-dark-line); }
.footer-cols .footer-h { margin-bottom: 20px; font-size: 15px; font-weight: 500; color: var(--bianco); }
.footer-cols li { margin-bottom: 14px; font-size: 15px; line-height: 1.4; color: var(--on-dark-soft); }
.footer-cols a:hover, .footer-legal a:hover { color: var(--bianco); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 26px; border-top: 1px solid var(--on-dark-line); font-size: 14px; color: var(--on-dark-soft); }
/* WhatsApp: a round button in the bottom-right corner on every screen (Lorenzo, 2026-10-13) */
.wa-fab {
  display: flex; align-items: center; justify-content: center; position: fixed; z-index: 40;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa-logo); color: #fff; box-shadow: 0 10px 24px -8px rgba(35, 21, 22, .45); transition: transform .15s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }
.wa-fab:focus-visible { outline: 2px solid var(--nero); outline-offset: 3px; }
html.menu-open .wa-fab { display: none; }
.site-footer { padding-bottom: calc(40px + 72px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) { .wa-fab { right: 24px; bottom: 24px; width: 60px; height: 60px; } .wa-fab svg { width: 32px; height: 32px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .stone-hero { grid-template-columns: 1fr; }
  .sh-info { max-width: 720px; }
  .perf, .spec-wrap, .price, .faq-wrap { grid-template-columns: 1fr; }
  .finishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .stone-hero { padding-top: 14px; }
  .g-thumbs { gap: 6px; margin-top: 6px; }
  .g-tag { top: 12px; left: 12px; font-size: 12px; }
  .g-bar-row { left: 12px; right: 12px; bottom: 10px; }
  .sec-head--row { align-items: flex-start; flex-direction: column; }
  .car-nav { display: none; }
  .car-card { flex-basis: calc((100vw - 2 * var(--gutter) - 12px) / 2); }
  .car-card b { font-size: 16px; }
  .similar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .res li { grid-template-columns: 80px minmax(0, 1fr); }
  .res-level { grid-column: 2; margin-top: -6px; }
  .spec th { width: 38%; }
}
@media (max-width: 639px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-contact { grid-column: 1 / -1; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Materiales hub: arches, filterable catalog, comparison
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hub-hero { padding-block: clamp(22px, 3vw, 40px) clamp(56px, 6vw, 88px); }
.hub-intro { max-width: 820px; }
.hub-intro .lead { margin-top: 22px; max-width: 560px; color: var(--grigio); }
.families { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.families a { display: block; }
.families .arch { aspect-ratio: 3 / 4; margin-bottom: 14px; }
.families .arch img { transition: transform .6s var(--ease); }
.families a:hover .arch img { transform: scale(1.04); }
.families b { display: block; font-size: 19px; font-weight: 400; }
.families span:not(.arch) { font-size: 14px; color: var(--grigio); }
.families a[aria-current] b { color: var(--vino); }

.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; padding-bottom: var(--section); border-top: 1px solid var(--linea); padding-top: clamp(32px, 4vw, 52px); }
.catalog-bar { display: none; }
/* The column scrolls on its own, which clips anything outside its box: 6px of room on every side (taken back with a
   negative margin) keeps the focus rings of the search box and the checkboxes whole */
.catalog-side { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto; padding: 6px 12px 6px 6px; margin: -6px -6px -6px -6px; scrollbar-width: thin; }
.filters-head, .filters-apply { display: none; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--card); border: 1px solid var(--campo); border-radius: var(--r-control); }
.search .ic { width: 18px; height: 18px; color: var(--grigio); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--nero); outline: none; }
.search:focus-within { outline: 2px solid var(--vino); outline-offset: 2px; }
.filters fieldset { border: 0; margin: 26px 0 0; padding: 0; }
.filters legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--nero); }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; font-size: 15px; }
.check input, .swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 18px; height: 18px; flex: none; border: 1px solid var(--campo); border-radius: 5px; background: var(--card); display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.check-box::after { content: ""; width: 9px; height: 5px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked + .check-box { background: var(--vino); border-color: var(--vino); }
.check input:checked + .check-box::after { opacity: 1; }
.check input:focus-visible + .check-box, .swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--vino); outline-offset: 3px; }
.check-label { flex: 1; }
.check-count { font-size: 13px; color: var(--grigio); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--grigio); text-align: center; }
.swatch-dot { width: 40px; height: 40px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1px var(--linea); transition: box-shadow .15s; }
.swatch:hover .swatch-dot { box-shadow: 0 0 0 1px var(--campo); }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 2px var(--bianco), 0 0 0 4px var(--vino); }
.swatch input:checked ~ .swatch-label { color: var(--nero); }
.filters-clear { margin-top: 24px; font-size: 14px; color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }

.catalog-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; }
.result { font-size: 15px; color: var(--grigio); }
.result span { color: var(--nero); font-weight: 500; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grigio); }
.sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--linea); border-radius: var(--r-control); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23231516' stroke-width='1.3' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font: inherit; font-size: 14px; color: var(--nero); cursor: pointer; }
.chips-active { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips-active:empty { display: none; }
.chips-active button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--linea); border-radius: 999px; background: var(--card); font-size: 14px; }
.chips-active button::after { content: "×"; font-size: 17px; line-height: 1; color: var(--grigio); }
.chips-active button:hover { border-color: var(--campo); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 34px) clamp(14px, 1.6vw, 22px); margin-top: 22px; }
.card[hidden] { display: none; }
.card-link { display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.card-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--linea); background: var(--pietra); margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-link:hover .card-img img { transform: scale(1.04); }
.card-name { display: block; font-size: 17px; line-height: 1.3; }
.card-meta { display: block; margin-top: 2px; font-size: 14px; color: var(--grigio); }
.card-link:hover .card-name { color: var(--vino); }
.empty { margin-top: 28px; padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--linea); }
.empty p { font-size: 17px; }
.empty .ctas { margin-top: 18px; }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 52px); }
.more-wrap[hidden] { display: none; }
.on-request-block { margin-top: clamp(48px, 5vw, 72px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--linea); }
.on-request-block h3 { font-size: 22px; font-weight: 400; }
.on-request-block p { margin-top: 6px; font-size: 15px; color: var(--grigio); }
.on-request { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.on-request a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--linea); border-radius: var(--r-control); background: var(--card); transition: border-color .15s; }
.on-request a:hover { border-color: var(--campo); }
.on-request b { font-weight: 400; font-size: 15px; }
.on-request span { font-size: 13px; color: var(--grigio); }

.section-intro--dark { color: var(--on-dark-soft); }
.link-light { flex: none; font-size: 15px; color: var(--bianco); text-decoration: underline; text-underline-offset: .2em; }
.compare { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 4.5vw, 56px); }
.compare a { display: block; height: 100%; padding: 26px 22px 22px; border: 1px solid var(--on-dark-line); border-radius: var(--r-control); transition: border-color .2s, background-color .2s; }
.compare a:hover { border-color: rgba(249, 247, 244, .35); background: rgba(249, 247, 244, .03); }
.compare b { display: block; font-size: 22px; font-weight: 300; text-transform: uppercase; letter-spacing: -.01em; }
.c-look { display: block; min-height: 44px; margin: 8px 0 14px; font-size: 14px; line-height: 1.45; color: var(--on-dark-soft); }
.c-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--on-dark-line); font-size: 14px; }
.c-row > span:first-child { color: var(--on-dark-soft); }
.c-row strong { font-weight: 500; font-size: 15px; }
.compare .dots i { width: 8px; height: 8px; }
.compare-note { margin-top: 22px; font-size: 13px; color: var(--on-dark-soft); max-width: 640px; }

.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.guides a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px 24px; background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-control); transition: border-color .15s; }
.guides a:hover { border-color: var(--campo); }
.guides .ic { color: var(--vino); margin-bottom: 14px; }
.guides b { font-size: 19px; font-weight: 400; }
.guides span { font-size: 15px; color: var(--grigio); }

.quick { width: min(920px, 100vw - 32px); max-height: min(640px, 100vh - 32px); padding: 0; border: 0; border-radius: var(--r-float); background: var(--card); color: var(--nero); box-shadow: var(--shadow-float); overflow: hidden; }
.quick::backdrop { background: rgba(35, 21, 22, .45); }
.quick-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; }
.quick-img { background: var(--pietra); min-height: 0; }
.quick-img img { width: 100%; height: 100%; object-fit: cover; }
.quick-body { position: relative; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; overflow-y: auto; }
.quick-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea); }
.quick-close span, .filters-close span { position: relative; display: block; width: 14px; height: 14px; margin: auto; }
.quick-close span::before, .quick-close span::after, .filters-close span::before, .filters-close span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.quick-close span::before, .filters-close span::before { transform: rotate(45deg); }
.quick-close span::after, .filters-close span::after { transform: rotate(-45deg); }
.quick-meta { font-size: 14px; color: var(--grigio); margin-top: 10px; }
.quick-name { margin-top: 8px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 300; line-height: 1.05; text-transform: uppercase; letter-spacing: -.015em; }
.quick-facts { width: 100%; margin: 28px 0 30px; border-top: 1px solid var(--linea); }
.quick-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.quick-facts dt { color: var(--grigio); }
.quick-facts dd { margin: 0; text-align: right; }
.quick-note { margin-top: 16px; font-size: 14px; color: var(--grigio); }

@media (max-width: 1299px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1099px) {
  .catalog { grid-template-columns: 1fr; gap: 0; }
  .catalog-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; margin-bottom: 8px; padding: 8px 0;
    background: var(--bianco);
  }
  .filters-open { height: 44px; padding: 0 18px; gap: 10px; }
  .filters-open .ic { width: 18px; height: 18px; }
  .filters-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--vino); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
  .filters-badge[hidden] { display: none; }
  .sort--desktop { display: none; }
  /* Phones and tablets: the bar holds the search box and "Filtrar"; no sort control (Lorenzo, 2026-10-13) */
  .catalog-bar .sort { display: none; }
  .catalog-bar .search { flex: 1; min-width: 0; height: 44px; }
  .catalog-bar .search input { font-size: 16px; }
  .catalog-bar .filters-open { flex: none; }
  /* Once it sticks, the bar paints a solid band up to the top of the screen, so no cards show around the header */
  .catalog-bar.is-stuck::before {
    content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%);
    top: calc(-1 * (var(--header-h) + 8px)); bottom: 0; background: var(--bianco); border-bottom: 1px solid var(--linea);
  }
  .catalog-side {
    position: fixed; inset: 0; z-index: 60; max-height: none; padding: 0; margin: 0; background: var(--card);
    visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  html.filters-on .catalog-side { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html.filters-on { overflow: hidden; }
  .filters { min-height: 100%; padding: 0 var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; height: 64px; background: var(--card); border-bottom: 1px solid var(--linea); margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); }
  .filters-title { font-size: 20px; }
  .filters-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea); }
  .filters-apply { display: flex; position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 420px; }
  .families { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .families::-webkit-scrollbar { display: none; }
  .families li { flex: 0 0 clamp(150px, 28vw, 220px); scroll-snap-align: start; }
  .compare { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .compare::-webkit-scrollbar { display: none; }
  .compare li { flex: 0 0 clamp(230px, 40vw, 300px); scroll-snap-align: start; }
  .guides { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 14px; }
  .card-name { font-size: 15px; }
  .card-meta { font-size: 13px; }
  .families li { flex-basis: 42%; }
  .compare li { flex-basis: 78%; }
  .quick-inner { grid-template-columns: 1fr; grid-template-rows: 42vh auto; }
  .quick { max-height: calc(100vh - 24px); }
}


/* =========================================================
   Family pages (/materiales/marmol): hero, grid split by color,
   care, finishes as a gloss scale, quarry map, origins
   ========================================================= */
.cat-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "title figure" "stats figure" "ctas figure"; grid-template-rows: auto auto 1fr;
  column-gap: clamp(40px, 6vw, 96px); align-items: start;
  padding-block: clamp(22px, 3vw, 40px) clamp(64px, 7vw, 104px);
}
.cat-title { grid-area: title; padding-top: clamp(8px, 3.4vw, 56px); }
.cat-title .h1 { font-size: clamp(40px, 4.6vw, 68px); }
.cat-title .lead { margin-top: 22px; max-width: 520px; color: var(--grigio); }
.cat-figure { grid-area: figure; }
.cat-img { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--pietra); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--grigio); }
.cat-figure figcaption a { color: var(--nero); text-decoration: underline; text-underline-offset: .2em; }
.cat-figure figcaption a:hover { color: var(--vino); }
.stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--linea); }
.stats li { padding: 20px 16px 0 0; }
.stats b { display: block; font-size: clamp(40px, 4.2vw, 62px); font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.stats span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; color: var(--grigio); }
.cat-hero .ctas { grid-area: ctas; margin-top: clamp(32px, 3.5vw, 44px); }

.cat-head { padding-bottom: clamp(32px, 3.5vw, 48px); }
.color-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.color-index a { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px 0 8px; background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-control); transition: border-color .15s; }
.color-index a:hover { border-color: var(--campo); }
.color-index .swatch-dot { width: 40px; height: 40px; }
.color-index b { font-size: 16px; font-weight: 400; }
.color-index a > span:last-child { font-size: 13px; color: var(--grigio); }

.c-group { margin-top: clamp(44px, 5vw, 72px); scroll-margin-top: calc(var(--header-h) + 24px); }
.catalog-main > .c-group:first-of-type { margin-top: 20px; }
.c-group[hidden] { display: none; }
.c-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 32px; padding-top: 18px; border-top: 1px solid var(--linea); }
.c-group-head h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -.01em; }
.c-group-head p { max-width: 460px; font-size: 15px; line-height: 1.5; color: var(--grigio); }
.c-also { margin-top: 20px; font-size: 15px; color: var(--grigio); }
.c-also a { color: var(--nero); text-decoration: underline; text-underline-offset: .2em; }
.c-also a:hover { color: var(--vino); }

.scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(14px, 2vw, 28px); margin-top: clamp(36px, 4.5vw, 56px); }
.scene-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pietra); margin-bottom: 14px; }
.scene-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scene-grid a:hover .scene-img img { transform: scale(1.02); }
.scene-grid b { display: block; font-size: clamp(17px, 1.7vw, 22px); font-weight: 400; line-height: 1.25; }
.scene-grid a > span:not(.scene-img) { display: block; margin-top: 5px; font-size: 14px; color: var(--grigio); }
.scene-img .g-tag { top: 12px; left: 12px; }

.perf-h { font-size: 15px; font-weight: 500; color: var(--bianco); }
.perf-side .res { margin-top: 8px; }
.perf-side .perf-h ~ .perf-h { margin-top: 36px; }
.care { margin-top: 10px; }
.care li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--on-dark-line); font-size: 15px; }
.care li:last-child { border-bottom: 1px solid var(--on-dark-line); }
.care .ic { color: var(--on-dark-soft); }

.gloss { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.6vw, 36px); margin-top: clamp(40px, 5vw, 64px); }
.gloss li { display: flex; flex-direction: column; align-items: flex-start; padding-top: 26px; border-top: 1px solid var(--nero); }
.gloss-meter { display: flex; align-items: flex-end; gap: 4px; height: 22px; margin-bottom: 22px; }
.gloss-meter i { width: 6px; border-radius: 2px; background: var(--linea); }
.gloss-meter i:nth-child(1) { height: 7px; }
.gloss-meter i:nth-child(2) { height: 12px; }
.gloss-meter i:nth-child(3) { height: 17px; }
.gloss-meter i:nth-child(4) { height: 22px; }
.gloss-meter i.on { background: var(--nero); }
.gloss b { font-size: clamp(22px, 2vw, 26px); font-weight: 400; line-height: 1.2; }
.gloss-level { margin-top: 2px; font-size: 14px; color: var(--grigio); }
.gloss p { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.gloss-uses { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; font-size: 14px; color: var(--grigio); }
.gloss-uses span { display: inline-flex; align-items: center; gap: 6px; }
.gloss-uses .ic { width: 18px; height: 18px; }
.gloss-n { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--linea); width: 100%; font-size: 13px; color: var(--grigio); }

.quarry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.q-list { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--linea); }
.q-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.q-num { width: 26px; height: 26px; border-radius: 50%; background: var(--nero); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; display: grid; place-items: center; margin-top: 1px; }
.q-list b { display: block; font-size: 18px; font-weight: 400; line-height: 1.3; }
.q-region { display: block; font-size: 14px; color: var(--grigio); }
.q-list p { margin-top: 8px; font-size: 15px; line-height: 1.5; }
.q-list a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.quarry-map { justify-self: center; width: min(100%, 440px); }
.q-map { display: block; width: 100%; height: auto; }
.q-land { fill: var(--pietra); stroke: var(--campo); stroke-width: .8; stroke-linejoin: round; }
.q-mark circle { fill: var(--nero); }
.q-mark text { fill: #fff; font: 600 11px var(--sans); text-anchor: middle; }

.origin { margin-top: clamp(56px, 6vw, 88px); }
.origin-h { font-size: 18px; font-weight: 400; }
.origin-bar { display: flex; gap: 2px; height: 12px; margin-top: 16px; }
.origin-bar i { flex: var(--n) 1 0; }
.origin-bar i:first-child { border-radius: 3px 0 0 3px; }
.origin-bar i:last-child { border-radius: 0 3px 3px 0; }
.origin-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 14px; color: var(--grigio); }
.origin-legend li { display: inline-flex; align-items: center; gap: 8px; }
.origin-legend i { width: 10px; height: 10px; border-radius: 2px; }
.origin-legend b { color: var(--nero); font-weight: 500; }
.origin-bar i:nth-child(1), .origin-legend li:nth-child(1) i { background: var(--nero); }
.origin-bar i:nth-child(2), .origin-legend li:nth-child(2) i { background: #8F8480; }
.origin-bar i:nth-child(3), .origin-legend li:nth-child(3) i { background: #A69C97; }
.origin-bar i:nth-child(4), .origin-legend li:nth-child(4) i { background: #BAB1AC; }
.origin-bar i:nth-child(5), .origin-legend li:nth-child(5) i { background: #CBC3BE; }
.origin-bar i:nth-child(6), .origin-legend li:nth-child(6) i { background: #D8D1CC; }
.origin-bar i:nth-child(7), .origin-legend li:nth-child(7) i { background: #E4DED8; }

@media (max-width: 1099px) {
  .cat-hero { grid-template-columns: 1fr; grid-template-areas: "title" "figure" "stats" "ctas"; grid-template-rows: auto; }
  .cat-title { padding-top: 0; }
  .cat-figure { margin-top: clamp(28px, 4vw, 40px); }
  .color-index { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .color-index::-webkit-scrollbar { display: none; }
  .color-index li { flex: none; scroll-snap-align: start; }
  .gloss { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .quarry { grid-template-columns: 1fr; }
  .quarry-map { width: min(100%, 380px); }
}
@media (max-width: 719px) {
  .stats b { font-size: 40px; }
  .stats span { font-size: 13px; }
  .cat-hero .ctas .btn { flex: 1 1 100%; }
  .color-index a { height: 50px; gap: 10px; padding-right: 14px; }
  .color-index .swatch-dot { width: 34px; height: 34px; }
  .gloss { column-gap: 16px; }
  .gloss p { font-size: 14px; }
  .gloss-uses { font-size: 13px; gap: 6px 10px; }
  .scene-grid { gap: 24px 12px; }
  .scene-grid b { font-size: 15px; }
  .scene-grid a > span:not(.scene-img) { font-size: 13px; }
}
.q-dot { width: 8px; height: 8px; margin: 9px 9px 0; border-radius: 50%; background: var(--nero); }
.quarry--list { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.gallery--empty .g-stage--empty { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--pietra); padding: 32px; text-align: center; color: var(--grigio); font-size: 16px; }

/* Prototype index (/indice) */
.ix { padding-block: clamp(24px, 3vw, 40px) var(--section); }
.ix code { font-size: 14px; background: var(--pietra); padding: 1px 6px; border-radius: 4px; }
.ix-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--linea); }
.ix-stats li { padding: 16px 12px 0 0; }
.ix-stats b { display: block; font-size: clamp(26px, 3vw, 40px); font-weight: 200; letter-spacing: -.02em; }
.ix-stats span { font-size: 14px; color: var(--grigio); }
.ix-h { margin-top: 56px; font-size: 22px; font-weight: 400; }
.ix-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
.ix-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--grigio); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--nero); }
.ix-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.ix-table tr[hidden] { display: none; }
.ix-table a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.ix-sub { display: block; font-size: 12px; color: var(--grigio); }
.ix-url { font-size: 13px; color: var(--grigio); }
.ix-num { text-align: right; font-variant-numeric: tabular-nums; }
.ix-tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--linea); color: var(--campo); font-size: 13px; }
.ix-tick.is-on { background: var(--nero); border-color: var(--nero); color: #fff; }
.ix-check { list-style: none; margin: 0 0 56px; padding: 0; max-width: 860px; }
.ix-check li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--linea); font-size: 15px; line-height: 1.45; }
.ix-check li span:last-child { overflow-wrap: anywhere; }
.ix-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.ix-filters .search { width: 260px; }
.ix-filters select { height: 46px; padding: 0 12px; border: 1px solid var(--linea); border-radius: var(--r-control); background: var(--card); font: inherit; font-size: 14px; }
.ix-count { font-size: 14px; color: var(--grigio); }
@media (max-width: 719px) { .ix-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ix-url { display: none; } .ix-table { font-size: 14px; } }

/* =========================================================
   Company pages: Nosotros, Calidad, Contacto
   ========================================================= */
.cat-img--wide { aspect-ratio: 3 / 2; }
.route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 4.5vw, 56px); counter-reset: r; }
.route li { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid var(--nero); }
.route-n { position: absolute; top: -13px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--nero); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.route .ic { width: 26px; height: 26px; color: var(--grigio); margin-top: 8px; }
.route b { font-size: 19px; font-weight: 400; }
.route li > span:last-child { font-size: 15px; line-height: 1.5; color: var(--grigio); }

.guar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.guar-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.guar-list li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--on-dark-line); }
.guar-list .ic { width: 24px; height: 24px; color: var(--on-dark-soft); margin-top: 2px; }
.guar-list b { display: block; font-size: 17px; font-weight: 400; }
.guar-list span { font-size: 14px; line-height: 1.5; color: var(--on-dark-soft); }
.guar-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pietra); }
.guar-img img { width: 100%; height: 100%; object-fit: cover; }
.guar-fig figcaption { margin-top: 12px; font-size: 14px; color: var(--on-dark-soft); }

.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.story-text p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 640px; }
.story-text p + p { margin-top: 18px; }
.story-todo { padding: 18px 20px; background: var(--card); border: 1px dashed var(--campo); font-size: 16px !important; color: var(--grigio); }
.story-sign { font-size: 15px !important; color: var(--grigio); }

.q-hero { padding-block: clamp(22px, 3vw, 40px) clamp(56px, 6vw, 88px); }
.q-intro { max-width: 860px; }
.q-intro .lead { margin-top: 22px; max-width: 600px; color: var(--grigio); }
.q-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 4.5vw, 56px); }
.q-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--pietra); }
.q-img img { width: 100%; height: 100%; object-fit: cover; }
.q-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--nero); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(249, 247, 244, .85); }
.q-card figcaption { margin-top: 14px; }
.q-card b { display: block; font-size: 20px; font-weight: 400; }
.q-card figcaption > span { font-size: 15px; color: var(--grigio); }
.q-defects { margin-top: 6px; counter-reset: d; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.q-defects li { counter-increment: d; font-size: 15px; color: var(--grigio); }
.q-defects li::before { content: counter(d); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--nero); color: #fff; font-size: 11px; font-weight: 600; }

.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin-top: clamp(36px, 4.5vw, 56px); }
.checks li { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-top: 1px solid var(--linea); }
.checks .ic { color: var(--grigio); margin-bottom: 6px; }
.checks b { font-size: 18px; font-weight: 400; }
.checks span { font-size: 15px; line-height: 1.5; color: var(--grigio); }

.tests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 4.5vw, 56px); }
.tests li { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; border: 1px solid var(--on-dark-line); border-radius: var(--r-control); }
.t-code { font-size: 13px; letter-spacing: .04em; color: var(--on-dark-soft); }
.tests b { font-size: 21px; font-weight: 300; text-transform: uppercase; }
.tests li > span:last-child { font-size: 15px; line-height: 1.5; color: var(--on-dark-soft); }
.tag--dark { border-color: var(--on-dark-soft); color: var(--on-dark-soft); }

.trace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

.ct-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: end; padding-block: clamp(22px, 3vw, 40px) clamp(56px, 6vw, 88px); }
.ct-hero .lead { margin-top: 22px; max-width: 560px; color: var(--grigio); }
.ct-data div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--linea); }
.ct-data div:last-child { border-bottom: 1px solid var(--linea); }
.ct-data dt { font-size: 13px; color: var(--grigio); }
.ct-data dd { margin: 0; font-size: 17px; }
.ct-data a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.ct-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.ct-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 2.6vw, 32px); background: var(--card); border: 1px solid var(--linea); }
.ct-card .guar-img { width: 100%; margin-bottom: 6px; }
.ct-card h3 { font-size: 24px; font-weight: 400; }
.ct-card p { font-size: 16px; color: var(--grigio); max-width: 520px; }
.ct-card .btn { margin-top: 6px; }
.ct-card--dark { background: var(--nero); border-color: var(--nero); color: var(--bianco); justify-content: flex-end; }
.ct-card--dark p { color: var(--on-dark-soft); }
.ct-big { width: 48px; height: 48px; color: var(--on-dark-soft); margin-bottom: auto; }
.btn--ghost-light { background: transparent; color: var(--bianco); box-shadow: inset 0 0 0 1px var(--on-dark-soft); }
.btn--ghost-light:hover { background: rgba(249, 247, 244, .08); }

@media (max-width: 1099px) {
  .route { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .guar, .story, .trace, .ct-hero { grid-template-columns: 1fr; }
  .checks, .tests { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  .guar-list { grid-template-columns: 1fr; }
  .q-pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .q-pin { width: 22px; height: 22px; font-size: 11px; }
  .q-defects { grid-template-columns: 1fr; }
  .tests, .ct-split { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .checks span, .route li > span:last-child { font-size: 14px; }
}

.ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.ages li { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid var(--on-dark-soft); }
.age-year { font-size: clamp(30px, 3.2vw, 46px); font-weight: 200; letter-spacing: -.02em; line-height: 1; }
.ages b { font-size: 18px; font-weight: 400; margin-top: 8px; }
.ages li > span:not(.age-year) { font-size: 15px; line-height: 1.5; color: var(--on-dark-soft); }
.ages em { font-style: normal; font-size: 13px; color: var(--on-dark-soft); margin-top: auto; padding-top: 10px; }
.invest { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.invest-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 15px; }
.invest-legend li { display: inline-flex; align-items: center; gap: 10px; }
.invest-legend i { width: 22px; height: 3px; }
.invest-legend .is-cheap, .iv-dot-cheap { background: var(--campo); fill: var(--campo); }
.invest-legend .is-good { background: var(--nero); }
.invest-fig svg { width: 100%; height: auto; }
.iv-grid line { stroke: var(--linea); stroke-width: 1; }
.iv-x text, .iv-y { fill: var(--grigio); font: 13px var(--sans); text-anchor: middle; }
.iv-cheap { fill: none; stroke: var(--campo); stroke-width: 3; stroke-dasharray: 7 5; }
.iv-good { fill: none; stroke: var(--nero); stroke-width: 3; }
.iv-note { fill: var(--grigio); font: 12px var(--sans); }
.invest-fig figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--grigio); }
.science { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.source { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--grigio); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin-top: clamp(36px, 4.5vw, 56px); }
.pillars li { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid var(--nero); }
.pillar-n { font-size: 13px; letter-spacing: .06em; color: var(--grigio); }
.pillars b { font-size: 22px; font-weight: 400; }
.pillars li > span:last-child { font-size: 16px; line-height: 1.5; color: var(--grigio); }
.pillars-link { margin-top: 28px; }
.pillars-link a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 1099px) { .ages { grid-template-columns: 1fr 1fr; row-gap: 36px; } .invest, .science { grid-template-columns: 1fr; } .pillars { grid-template-columns: 1fr; row-gap: 28px; } }
.age-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 18px; background: #2e2223; }
.age-img img { width: 100%; height: 100%; object-fit: cover; }
.ages li { border-top: 0; padding-top: 0; }
.credits { margin-top: 10px; font-size: 12px; color: var(--on-dark-soft); }
.credits a { color: inherit; text-decoration: underline; }
.invest-text { position: relative; }
.col-art { display: block; width: 54px; height: auto; margin-bottom: 28px; color: var(--campo); }
.guar-img--43 { aspect-ratio: 4 / 3; }
.sci-fig { margin: 26px 0 0; }
.route-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 26px; background: var(--pietra); }
.route-img img { width: 100%; height: 100%; object-fit: cover; }
.route li { border-top: 0; padding-top: 0; }
.route-n { position: static; margin-bottom: 4px; }

/* =========================================================
   Home
   ========================================================= */
.hh { position: relative; min-height: min(86vh, 860px); display: flex; align-items: center; overflow: hidden; margin-top: -8px; }
.hh-media { position: absolute; inset: 0; background: var(--pietra); }
.hh-poster, .hh-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hh-video { opacity: 0; transition: opacity 1s var(--ease); }
.hh-video.is-on { opacity: 1; }
.hh-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(249, 247, 244, .94) 0%, rgba(249, 247, 244, .82) 32%, rgba(249, 247, 244, 0) 62%); }
.hh-inner { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 120px); }
.hh-title { max-width: 720px; }
.hh-lead { margin-top: 22px; max-width: 520px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--grigio); }
.hh-search { display: flex; align-items: center; gap: 10px; width: min(100%, 560px); height: 60px; margin-top: 36px; padding: 0 6px 0 18px; background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-control); box-shadow: var(--shadow-float); }
.hh-search .ic { width: 20px; height: 20px; color: var(--grigio); flex: none; }
.hh-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--nero); outline: none; }
.hh-search:focus-within { outline: 2px solid var(--vino); outline-offset: 2px; }
.hh-search .btn { height: 48px; }
.hh-cat { display: flex; width: fit-content; margin-top: 14px; background: var(--card); }
.hh-cat:hover { background: var(--bianco); }
.hh-alt { margin-top: 16px; font-size: 15px; color: var(--grigio); }
.hh-alt a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.hh-tag { position: absolute; top: auto; left: auto; right: var(--gutter); bottom: 20px; z-index: 1; }
.link-dark { flex: none; font-size: 15px; color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 3.5vw, 44px); }
.route--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-invest { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.home-invest-fig figcaption { margin-top: 10px; font-size: 12px; color: var(--on-dark-soft); }
.home-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 34px; max-width: 520px; }
.home-stats li { padding-top: 16px; border-top: 1px solid var(--on-dark-line); }
.home-stats b { display: block; font-size: clamp(38px, 4vw, 56px); font-weight: 200; letter-spacing: -.02em; line-height: 1; }
.home-stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--on-dark-soft); }
@media (prefers-reduced-motion: reduce) { .hh-video { display: none; } }
@media (max-width: 1099px) {
  .home-invest { grid-template-columns: 1fr; }
  .home-invest-fig { max-width: 420px; }
  .route--3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 719px) {
  .hh { min-height: auto; align-items: flex-end; }
  .hh-media { position: relative; height: 56vw; }
  .hh-media::after { background: linear-gradient(180deg, rgba(249, 247, 244, 0) 55%, rgba(249, 247, 244, 1) 100%); }
  .hh { flex-direction: column; align-items: stretch; }
  .hh-inner { padding-block: 8px 48px; }
  .hh-tag { top: 12px; bottom: auto; right: 12px; }
  .hh-search { height: 54px; }
  .hh-search .btn { display: none; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route--3 { grid-template-columns: 1fr; row-gap: 32px; }
  .home-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Servicio + Envíos ---------- */
.exo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.exo .section-intro { margin-bottom: clamp(28px, 3vw, 40px); }
.exo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.exo-grid a { display: block; }
.exo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--grigio); transition: opacity .2s; }
.exo-grid a:hover img { opacity: .86; }
.exo-grid span { display: block; margin-top: 10px; font-size: 15px; color: var(--on-dark-soft); }
.exo-grid a:hover span { color: var(--bianco); }
.pa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 4.5vw, 56px); }
.pa-grid li { display: flex; flex-direction: column; gap: 6px; }
.pa-grid .guar-img { margin-bottom: 14px; }
.pa-grid b { font-size: 20px; font-weight: 400; }
.pa-grid li > span:last-child { font-size: 15px; line-height: 1.5; color: var(--grigio); }
.rating { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--grigio); white-space: nowrap; }
.rating b { font-size: clamp(40px, 4vw, 56px); font-weight: 200; line-height: 1; letter-spacing: -.02em; color: var(--nero); }
.stars { color: var(--vino); letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 4.5vw, 56px); }
.reviews li { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--nero); }
.reviews blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.reviews cite { font-style: normal; font-size: 14px; color: var(--grigio); }
.leg { display: flex; gap: 6px; margin-top: clamp(36px, 4.5vw, 56px); }
.leg li { flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 6px solid var(--nero); }
.leg li:nth-child(2) { border-color: var(--grigio); }
.leg li:nth-child(3) { border-color: var(--vino); }
.leg li:nth-child(4) { border-color: var(--campo); }
.leg b { font-size: 18px; font-weight: 400; }
.leg span { font-size: 14px; line-height: 1.45; color: var(--grigio); }
.leg-note { margin-top: 18px; font-size: 13px; color: var(--campo); }
@media (max-width: 1099px) {
  .exo { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 719px) {
  .exo-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .pa-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .reviews { grid-template-columns: 1fr; row-gap: 28px; }
  .leg { flex-direction: column; gap: 0; }
  .leg li { flex: none; padding: 14px 0 16px; border-top-width: 4px; }
}
.faq-aside { margin-top: 20px; font-size: 16px; color: var(--grigio); max-width: 340px; }
.faq-aside a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Audit fixes 2026-10-04 ---------- */
/* Focus must stay visible on the dark sections (Vino on Vino scuro is 1.5:1) */
.band :focus-visible, .site-footer :focus-visible, .section--dark :focus-visible, .ct-card--dark :focus-visible { outline-color: var(--bianco); }
.footer-h a:hover { color: var(--bianco); }
.leg-note { color: var(--grigio); }
/* Product hub cards: the whole card is the link, title above the description */
.pa-grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.pa-grid a > span:last-child { font-size: 15px; line-height: 1.5; color: var(--grigio); }
.pa-grid a:hover b { color: var(--vino); }
/* Stat rows never run into each other */
.stats li { min-width: 0; }
.stats b { overflow-wrap: anywhere; }
@media (hover: none) { .footer-cols li { margin-bottom: 4px; } .footer-cols a { display: inline-block; padding: 10px 0; } }
@media (max-width: 719px) { .pa-grid { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 28px; } .pa-grid b { font-size: 17px; } .pa-grid a > span:last-child { font-size: 14px; } }
.hh-pause { position: absolute; z-index: 2; right: var(--gutter); bottom: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(249, 247, 244, .86); color: var(--nero); }
.hh-pause:hover { background: var(--bianco); }
.hh-pause .ic { width: 18px; height: 18px; }
@media (min-width: 720px) { .hh-tag { right: calc(var(--gutter) + 52px); } }
@media (max-width: 719px) { .hh-pause { top: 12px; bottom: auto; right: auto; left: 12px; } }

/* ---------- Families + hub (2026-10-04) ---------- */
/* Materiales menu: stones without a photo are a text line, never an empty gray thumbnail */
.mm-also { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--grigio); }
.mm-also a { color: var(--nero); text-decoration: underline; text-underline-offset: .2em; }
.mm-also a:hover { color: var(--vino); }
html.is-hover .mm-also { max-width: 520px; }
/* Phone menu type chips: the links (Mármol, Granito...) get the same 38px chip as the "Los más buscados" button */
html:not(.is-hover) a.mm-type { display: inline-flex; align-items: center; }
/* Hub "¿Mármol, granito o cuarcita?": the cards scroll sideways below 1100px, so say so */
.compare-hint { display: none; }
@media (max-width: 1099px) {
  .compare-hint { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--on-dark-soft); }
  .compare-hint::after { content: "→"; font-size: 16px; line-height: 1; }
  .compare { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
}
/* Family pages: country-level origin, extra H2 sections, merged color groups */
.origin-text .section-intro { max-width: 720px; }
.origin-names { max-width: 760px; margin-top: 18px; font-size: 16px; line-height: 1.65; }
.origin-names a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.c-anchor { display: block; scroll-margin-top: calc(var(--header-h) + 24px); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: clamp(28px, 3vw, 44px); }
.feature-list li { padding: 20px 0; border-top: 1px solid var(--linea); }
.feature-list b { display: block; font-size: 18px; font-weight: 400; line-height: 1.3; }
.feature-list p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--grigio); }
.feature-list a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Company pages + guides (2026-10-04) ---------- */
/* Home hero on phones: short H1, search above the fold */
@media (min-width: 720px) { .hh-title { max-width: 820px; } }
@media (max-width: 719px) {
  .hh-more { display: none; }
  .hh-title { font-size: 38px; }
  .hh-media { height: 48vw; }
  .hh-inner { display: flex; flex-direction: column; }
  .hh-search { order: 2; margin-top: 22px; }
  .hh-cat { order: 2; width: 100%; margin-top: 12px; }
  .hh-lead { order: 3; margin-top: 18px; font-size: 16px; }
  .hh-alt { order: 4; }
}
/* Photo step strips: 2 per row on phones */
@media (max-width: 719px) {
  .route--photo { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 28px; }
  .route--photo .route-img { margin-bottom: 14px; }
  .route--photo b { font-size: 16px; }
}
/* Selección, envío e instalación: room before the cards; route graphic in the dark card */
.sec-head + .ct-split { margin-top: clamp(40px, 4.5vw, 56px); }
.ct-card.ct-card--dark { justify-content: flex-start; }
.ct-globe { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; margin-bottom: 6px; }
.cg-grid { fill: none; stroke: rgba(249, 247, 244, .16); stroke-width: 1; }
.cg-grid .cg-edge { stroke: rgba(249, 247, 244, .32); }
.cg-routes { fill: none; stroke: var(--bianco); stroke-width: 1.4; stroke-dasharray: 4 5; stroke-linecap: round; opacity: .75; }
.cg-dest circle { fill: var(--bianco); }
.cg-ring { fill: none; stroke: var(--bianco); stroke-width: 1.2; opacity: .45; }
.cg-pin { fill: var(--bianco); }
/* Home: primera selección image, Google rating with its link */
.age-img--square { aspect-ratio: 1 / 1; }
.intro-link { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.rating-box { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 719px) { .rating-box { align-items: flex-start; } }
/* Nosotros: one "Quiénes somos" section with an image */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-text > p:not(.pillars-link) { margin-top: 22px; max-width: 600px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.pillars.pillars--2 { grid-template-columns: 1fr 1fr; margin-top: 36px; }
.about-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin-top: 34px; }
@media (max-width: 1099px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 719px) { .pillars.pillars--2 { grid-template-columns: 1fr; row-gap: 26px; } }
/* Envíos: duties formula, three blocks */
.duty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: clamp(36px, 4.5vw, 56px); }
.duty li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-control); }
.duty li + li::before { content: ""; position: absolute; left: -30px; top: 50%; width: 14px; height: 14px; border-top: 1.5px solid var(--nero); border-right: 1.5px solid var(--nero); transform: translateY(-50%) rotate(45deg); }
.duty b { font-size: 20px; font-weight: 400; }
.duty li > span { font-size: 15px; line-height: 1.5; color: var(--grigio); }
.duty li.duty-end { background: var(--nero); border-color: var(--nero); color: var(--bianco); }
.duty li.duty-end > span { color: var(--on-dark-soft); }
@media (max-width: 719px) {
  .duty { grid-template-columns: 1fr; gap: 34px; }
  .duty li + li::before { left: 50%; top: -25px; transform: translateX(-50%) rotate(135deg); }
}
/* Calidad: qualitative comparison instead of a cost chart */
.qcomp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qcomp-col { padding: clamp(24px, 3vw, 34px); background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-control); }
.qcomp b { display: block; font-size: 21px; font-weight: 300; text-transform: uppercase; }
.qcomp ul { margin-top: 14px; }
.qcomp li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--linea); font-size: 16px; line-height: 1.45; color: var(--grigio); }
.qcomp li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 11px; height: 1.5px; background: var(--campo); }
.qcomp-col--good { background: var(--nero); border-color: var(--nero); color: var(--bianco); }
.qcomp-col--good li { border-color: var(--on-dark-line); color: var(--bianco); }
.qcomp-col--good li::before { top: 19px; width: 11px; height: 6px; background: none; border-left: 1.5px solid var(--bianco); border-bottom: 1.5px solid var(--bianco); transform: rotate(-45deg); }
@media (max-width: 719px) { .qcomp { grid-template-columns: 1fr; } }
/* Guías: 2-column checks with links, step timeline */
.checks.checks--2 { grid-template-columns: 1fr 1fr; }
.checks a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 719px) { .checks.checks--2 { grid-template-columns: 1fr; } }
.tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 4.5vw, 56px); }
.tl li { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 54px; }
.tl li::before { content: ""; position: absolute; top: 17px; left: 0; right: calc(-1 * clamp(16px, 2.4vw, 32px)); height: 1.5px; background: var(--nero); }
.tl li:last-child::before { right: auto; width: 36px; }
.tl-n { position: absolute; top: 0; left: 0; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--nero); color: #fff; font-size: 14px; font-weight: 600; }
.tl b { font-size: 19px; font-weight: 400; }
.tl li > span:last-child { font-size: 15px; line-height: 1.5; color: var(--grigio); }
.tl + .ctas { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 1099px) {
  .tl { grid-template-columns: 1fr; }
  .tl li { padding: 4px 0 30px 58px; }
  .tl li::before { top: 0; bottom: 0; left: 17px; right: auto; width: 1.5px; height: auto; }
  .tl li:last-child::before { display: none; }
}
/* Guía mármol o granito: swatches on the use cards, the quartzite section */
.tests--sw .sw-row { display: flex; gap: 6px; margin-bottom: 8px; }
.tests--sw .sw-row img { width: 44px; height: 58px; object-fit: cover; outline: 1px solid var(--on-dark-line); outline-offset: -1px; }
.mg-note a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.mg-quartz { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.mg-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-swatches img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; outline: 1px solid var(--linea); outline-offset: -1px; }
.mg-swatches span { display: block; margin-top: 10px; font-size: 15px; }
.mg-swatches a:hover span { color: var(--vino); }
@media (max-width: 1099px) { .mg-quartz { grid-template-columns: 1fr; } .mg-swatches { max-width: 420px; } }

/* ---------- Product pages (2026-10-04): image-led template ---------- */
.spec-row { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin-top: clamp(32px, 3.5vw, 48px); padding-top: 22px; border-top: 1px solid var(--linea); }
.spec-row li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-row .ic { width: 26px; height: 26px; color: var(--vino); margin-bottom: 6px; }
.spec-row b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.spec-row span { font-size: 14px; line-height: 1.4; color: var(--grigio); }
.uses { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); margin-top: clamp(32px, 4vw, 52px); }
.uses figure { margin: 0; }
.uses .guar-img { aspect-ratio: 4 / 3; }
.uses figcaption { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--grigio); }
.uses figcaption b { display: block; font-size: 17px; font-weight: 400; color: var(--nero); }
.uses figcaption a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(32px, 4vw, 52px); }
.pick { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px); background: var(--card); border: 1px solid var(--linea); }
.pick-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: calc(-1 * clamp(18px, 2vw, 26px)) calc(-1 * clamp(18px, 2vw, 26px)) 8px; }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick h3 { font-size: 22px; font-weight: 400; }
.pick p { font-size: 15px; line-height: 1.55; color: var(--grigio); }
.pick dl { display: grid; gap: 8px; margin: 4px 0 0; font-size: 15px; }
.pick dt { font-size: 13px; color: var(--grigio); }
.pick dd { margin: 0 0 6px; line-height: 1.45; }
.pick a { margin-top: auto; padding-top: 6px; font-size: 15px; color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.diagram { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(32px, 4vw, 52px); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram svg text { font-family: var(--sans); font-size: 13px; fill: var(--grigio); }
.diagram svg .lbl { fill: var(--nero); font-size: 14px; }
.diagram ol { counter-reset: d; display: grid; gap: 0; }
.diagram ol li { counter-increment: d; position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--linea); font-size: 15px; line-height: 1.5; color: var(--grigio); }
.diagram ol li::before { content: counter(d); position: absolute; left: 0; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--vino); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.diagram ol b { display: block; color: var(--nero); font-weight: 500; font-size: 16px; }
.honest { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.honest .guar-img { aspect-ratio: 4 / 3; }
.honest p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--grigio); max-width: 560px; }
.honest p strong { color: var(--nero); font-weight: 500; }
.words { margin-top: 18px; font-size: 15px; color: var(--grigio); }
.countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(36px, 4.5vw, 56px); }
.countries h3 { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 12px; border-bottom: 1px solid var(--linea); }
.countries ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 16px; }
@media (max-width: 719px) { .countries { grid-template-columns: 1fr; } }
.words b { color: var(--nero); font-weight: 500; }
@media (max-width: 1099px) {
  .diagram, .honest { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .spec-row { gap: 0 12px; }
  .spec-row b { font-size: 14px; }
  .spec-row span { font-size: 13px; }
  .uses { column-gap: 12px; row-gap: 24px; }
  .uses figcaption { font-size: 13px; }
  .uses figcaption b { font-size: 15px; }
}
.diagram svg text { font-size: 15px; }
.diagram svg .lbl { font-size: 16px; }
@media (max-width: 719px) {
  .pick-img { aspect-ratio: 5 / 2; }
  .uses[style*="--n: 3"] figure:first-child { grid-column: span 2; }
}
/* Home hero on phones: frame the bookmatched wall, not the soft left side meant for desktop text */
@media (max-width: 719px) {
  .hh-media { height: 96vw; max-height: 460px; }
  .hh-poster, .hh-video { object-position: 80% 40%; }
}
@media (max-width: 719px) { .diagram svg { width: calc(100% + 2 * var(--gutter) - 16px); margin-inline: calc(8px - var(--gutter)); max-width: none; } }
.guides .guar-img { margin: -26px -24px 16px; aspect-ratio: 3 / 2; border-radius: var(--r-control) var(--r-control) 0 0; }
.guides a { overflow: hidden; }
.checks .q-thumb { width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--linea); margin-bottom: 10px; }

/* ---------- Nav: the section name is a link, the arrow opens the panel (2026-10-05) ---------- */
.nav-head { display: flex; align-items: center; }
html.is-hover .nav-head { height: 56px; }
html.is-hover .nav-link { display: inline-flex; align-items: center; height: 56px; font-size: 15px; transition: color .15s; }
html.is-hover .nav-link:hover, html.is-hover .nav-item.is-open .nav-link { color: var(--vino); }
html.is-hover .nav-trigger { width: 22px; justify-content: center; gap: 0; padding-left: 4px; }
html:not(.is-hover) .nav-head { justify-content: space-between; }
html:not(.is-hover) .nav-link { flex: 1; padding: 19px 0; font-size: 23px; font-weight: 300; }
html:not(.is-hover) .nav-item.is-open .nav-link { color: var(--vino); }
html:not(.is-hover) .nav-trigger { width: 52px; height: 52px; flex: none; justify-content: center; padding: 0; margin-right: -14px; }

/* ---------- Page index /indice (2026-10-05) ---------- */
.proto-bar a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.ix-g { margin: 40px 0 14px; font-size: 15px; font-weight: 500; color: var(--grigio); }
.ix-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ix-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding-bottom: 14px; background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-control); overflow: hidden; transition: border-color .15s; }
.ix-card a:hover { border-color: var(--vino); }
.ix-card a > :not(.ix-thumb) { padding-inline: 14px; }
.ix-card.is-off { opacity: .5; }
.ix-thumb { display: block; aspect-ratio: 16 / 9; background: var(--pietra); margin-bottom: 6px; overflow: hidden; }
.ix-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ix-card b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.ix-desc { font-size: 13px; line-height: 1.45; color: var(--grigio); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ix-date { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--grigio); }
.ix-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 8px; }
.ix-recent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--linea); font-size: 15px; }
.ix-recent li span { grid-column: 1; font-size: 12px; color: var(--grigio); }
.ix-recent time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--grigio); white-space: nowrap; }
.ix-recent a:hover, .ix-open a:hover { color: var(--vino); }
.ix-open li { padding: 10px 0; border-top: 1px solid var(--linea); font-size: 14px; line-height: 1.45; }
@media (max-width: 1099px) { .ix-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ix-two { grid-template-columns: 1fr; } }
@media (max-width: 719px) { .ix-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ix-desc { display: none; } }
.ix-sub, .ix code, .ix-open li { overflow-wrap: anywhere; }
@media (max-width: 719px) { .ix-mat { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* Small phones (320 to 400px): one long uppercase word ("IMPORTADORES", "CONSEGUIMOS") must fit the line.
   Headings scale with the screen there, and a word that still doesn't fit wraps instead of overflowing. */
.h1, .h2, h3 { overflow-wrap: break-word; }
@media (max-width: 400px) {
  .h1, .cat-title .h1, .hh-title { font-size: min(40px, 11vw); }
  .h2 { font-size: min(30px, 8.6vw); }
}

/* ---------- Catalog review page /revision (internal, 2026-10-05) ---------- */
.rv-list { display: grid; gap: 12px; margin-top: 14px; }
.rv-row, .rv-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--linea); border-radius: var(--r-control); }
.rv-chip { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; align-items: center; min-width: 240px; flex: 1 1 260px; }
.rv-chip img, .rv-nophoto { grid-row: span 3; width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--linea); }
.rv-nophoto { display: grid; place-items: center; font-size: 11px; color: var(--grigio); background: var(--pietra); }
.rv-chip b { font-size: 15px; font-weight: 500; }
.rv-chip span, .rv-al { font-size: 13px; color: var(--grigio); }
.rv-al { display: block; }
.rv-vs { flex: none; padding: 4px 10px; border-radius: 6px; background: var(--pietra); font-size: 13px; color: var(--vino); }
.rv-fams > li { margin-top: 18px; }
.rv-h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rv-table img { width: 48px; height: 48px; object-fit: cover; display: block; }
.rv-table td { vertical-align: middle; }
@media (max-width: 719px) { .rv-table { display: block; overflow-x: auto; } .rv-vs { width: 100%; text-align: center; } }

/* ---------- Material template v2 (piedra2) ---------- */
.aka { margin-top: 14px; max-width: 470px; font-size: 15px; color: var(--grigio); }
.aka b { font-weight: 600; color: var(--nero); }
.look { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.look-text { margin-top: 22px; max-width: 540px; font-size: 17px; line-height: 1.6; color: var(--nero); }
.look-facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; max-width: 540px; }
.look-facts li { border-top: 1px solid var(--linea); padding-top: 12px; font-size: 15px; color: var(--grigio); }
.look-facts b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nero); margin-bottom: 4px; }
.look-img { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pietra); }
.look-img img { width: 100%; height: 100%; object-fit: cover; }
.similar--sel .sel-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--linea); margin-bottom: 12px; background: var(--pietra); }
.similar--sel .sel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.similar--sel a:hover .sel-img img { transform: scale(1.03); }
.similar--sel { row-gap: clamp(24px, 3vw, 40px); }
/* Desktop only: on phones and tablets the title sits above the table (this selector would beat the 1fr rule) */
@media (min-width: 1100px) { .spec-wrap:not(:has(.thick)) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
@media (max-width: 900px) {
  .look { grid-template-columns: 1fr; }
  .look-img { order: -1; }
}
@media (max-width: 560px) {
  .look-facts { gap: 14px 18px; }
}
.similar--notes .sm-desc { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--grigio); }
.table-scroll { overflow-x: auto; margin-top: clamp(28px, 3vw, 44px); }
.spec--compare { min-width: 640px; }
.spec--compare thead th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nero); padding-bottom: 12px; }
.spec--compare th[scope="row"] a { color: var(--nero); font-weight: 600; }
/* Stone hero: the H1 sits in a narrow column, so it scales with that column (long names like Michelangelo fit) */
.sh-info .h1 { font-size: clamp(36px, 3.7vw, 60px); }
@media (max-width: 480px) { .cat-title .h1 { font-size: min(40px, 9.6vw); } }
@media (max-width: 899px) { .sh-info .h1 { font-size: clamp(34px, 8vw, 56px); } }
.ix-warn { color: var(--vino); }
/* Long material names: no grid track may grow past the screen (CTA labels wrap, tables and tags stay inside) */
.stone-hero > *, .spec-wrap > *, .look > * { min-width: 0; }
.sh-info .ctas .btn { white-space: normal; text-align: center; }
.g-tag { max-width: calc(100% - 32px); }
@media (max-width: 420px) { .spec { table-layout: fixed; } .spec th { padding-right: 12px; } .spec td { overflow-wrap: anywhere; } }
@media (max-width: 1099px) {
  .stone-hero, .perf, .spec-wrap, .price, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .price > *, .perf > *, .faq-wrap > * { min-width: 0; }
}
/* 320 px phones: buttons wrap instead of pushing the page sideways; grid tracks never grow past the screen */
@media (max-width: 480px) {
  .btn { white-space: normal; height: auto; min-height: 48px; padding-block: 12px; line-height: 1.25; text-align: center; }
  .btn--lg { min-height: 54px; }
}
@media (max-width: 1099px) {
  .home-invest, .catalog { grid-template-columns: minmax(0, 1fr); }
  .catalog-main, .catalog-side { min-width: 0; }
  .sort select { min-width: 0; max-width: 100%; }
}
.gloss b { overflow-wrap: anywhere; }
@media (max-width: 400px) { .catalog-bar .sort > span { display: none; } .gloss b { font-size: 20px; } }

/* Cookie notice (site.js): a small card, never a wall */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 340px;
  display: grid; gap: 10px; padding: 14px 14px 12px; border: 1px solid var(--linea); border-radius: 12px;
  background: var(--card); color: var(--nero); box-shadow: var(--shadow-float); font-size: 14px; line-height: 1.4;
}
.cookie p { margin: 0; color: var(--grigio); }
.cookie a { color: var(--nero); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-btn {
  height: 34px; padding: 0 14px; border: 1px solid var(--linea); border-radius: 8px; background: transparent;
  color: var(--nero); font: 500 14px/1 var(--sans); cursor: pointer;
}
.cookie-btn:hover { border-color: var(--campo); }
.cookie-btn--yes { background: var(--vino); border-color: var(--vino); color: var(--bianco); }
.cookie-btn--yes:hover { background: var(--vino-hover); border-color: var(--vino-hover); }
.cookie-btn:focus-visible, .cookie a:focus-visible { outline: 2px solid var(--vino); outline-offset: 2px; }
html.menu-open .cookie { display: none; }
@media (max-width: 639px) {
  .cookie { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: none; grid-template-columns: 1fr auto; align-items: center; padding: 10px 10px 10px 12px; font-size: 13px; }
  .cookie { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .cookie-btn { height: 32px; padding: 0 10px; font-size: 13px; }
}
.cookie-again { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.c-more { display: inline-block; margin-left: 4px; color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.color-page .c-group-head h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -.01em; }
.stats--text b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; letter-spacing: -.01em; line-height: 1.15; }

/* Logo (2026-10-12): M of three tricolore pillars with marble veins + MÁRMOL / ITALIANO, see design/logo-2026 */
.logo { align-items: center; }
.logo-img { display: block; height: 32px; width: auto; }
@media (max-width: 719px) { .logo-img { height: 24px; } }
/* Generated slab images (no real photo yet): labelled on the card and explained under the gallery */
.card-img .g-tag { top: 10px; left: 10px; font-size: 11px; padding: 4px 9px; }
.g-note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--grigio); }

/* ---------- Every clickable card says so (Lorenzo, 2026-10-13) ----------
   A "Ver más →" line under each card that opens a page; stone cards say "Ver piedra →".
   The second content line gives screen readers the words without the arrow (browsers that don't know it keep the first). */
.pa-grid a::after, .car-card a::after, .scene-grid a::after, .guides a::after, .similar a::after,
.families a::after, .exo-grid a::after, .mg-swatches a::after, .card-link::after {
  content: "Ver más \2192"; content: "Ver más \2192" / "Ver más";
  display: block; width: fit-content; margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--vino);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
}
.card-link::after, .similar--sel a::after { content: "Ver piedra \2192"; content: "Ver piedra \2192" / "Ver piedra"; }
:is(.pa-grid, .car-card, .scene-grid, .guides, .similar, .families, .exo-grid, .mg-swatches) a:hover::after, .card-link:hover::after { text-decoration-thickness: 2px; }
.guides a::after { margin-top: auto; padding-top: 10px; }
html[lang^="en"] :is(.pa-grid, .car-card, .scene-grid, .guides, .similar, .families, .exo-grid, .mg-swatches) a::after { content: "See more \2192"; content: "See more \2192" / "See more"; }
html[lang^="en"] :is(.card-link, .similar--sel a)::after { content: "See stone \2192"; content: "See stone \2192" / "See stone"; }
html[lang^="pt"] :is(.pa-grid, .car-card, .scene-grid, .guides, .similar, .families, .exo-grid, .mg-swatches) a::after { content: "Ver mais \2192"; content: "Ver mais \2192" / "Ver mais"; }
html[lang^="pt"] :is(.card-link, .similar--sel a)::after { content: "Ver pedra \2192"; content: "Ver pedra \2192" / "Ver pedra"; }

/* Phones: cards with a description scroll sideways, one card and the edge of the next (no cramped 2-up, no long stack) */
@media (max-width: 719px) {
  .pa-grid, .scene-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .pa-grid::-webkit-scrollbar, .scene-grid::-webkit-scrollbar { display: none; }
  .pa-grid > li, .scene-grid > li { flex: 0 0 78%; scroll-snap-align: start; }
  .car-card { flex-basis: 78%; }
  .pa-grid b, .scene-grid b, .car-card b { font-size: 18px; }
  .pa-grid a > span:last-child, .scene-grid a > span:not(.scene-img), .car-card a > span:not(.car-img) { font-size: 14px; }
}

/* Track under rows that scroll sideways (site.js adds it; hidden when the row fits) */
.hscroll { position: relative; width: min(220px, 50%); height: 3px; margin-top: 18px; border-radius: 2px; background: var(--linea); cursor: pointer; }
.hscroll::before { content: ""; position: absolute; inset: -10px 0; }  /* bigger tap area */
.hscroll[hidden] { display: none; }
.hscroll span { display: block; height: 100%; border-radius: 2px; background: var(--nero); transition: transform .12s linear; }
.car-track + .hscroll { margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.section--dark .hscroll { background: var(--on-dark-line); }
.section--dark .hscroll span { background: var(--bianco); }
@media (prefers-reduced-motion: reduce) { .hscroll span { transition: none; } }

/* Country pages: the ports of that country, each with its own note */
.ports { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin-top: clamp(28px, 3.5vw, 44px); }
.ports li { padding: 18px 0; border-top: 1px solid var(--linea); }
.ports b { display: block; font-size: 18px; font-weight: 400; }
.ports span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--grigio); }
.ports-more { margin-top: 24px; font-size: 15px; color: var(--grigio); }
.ports-more a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }

/* On dark backgrounds the wine accent is unreadable (1.5:1): cues and small text links turn off-white (Lorenzo, 2026-10-18) */
:is(.section--dark, .band, .site-footer, .ct-card--dark) :is(.pa-grid, .car-card, .scene-grid, .guides, .similar, .families, .exo-grid, .mg-swatches) a::after,
:is(.section--dark, .band, .site-footer, .ct-card--dark) .card-link::after {
  color: var(--bianco); text-decoration-color: rgba(249, 247, 244, .55);
}
:is(.section--dark, .band, .ct-card--dark) :is(.link-dark, .c-more, .c-also a, .ports-more a) { color: var(--bianco); }
