/* Tienda de pasto sintético · Viveros Terra
   Dirección: catálogo editorial de materiales. Retícula estricta, datos como diseño. */

:root {
  --paper: #F5F3EC;
  --paper-2: #ECE8DD;
  --card: #FFFFFF;
  --ink: #151A12;
  --ink-2: #333A2E;
  --muted: #5B6255;
  --line: #D8D3C6;
  --line-strong: #B9B3A3;
  --green: #1B5E20;
  --green-deep: #0F3616;
  --green-soft: #E4EBDD;
  --moss: #7A8F45;
  --alert: #8A3B12;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --text-h1: clamp(2.75rem, 1.6rem + 5.2vw, 5.25rem);
  --text-price: clamp(3rem, 2.2rem + 3.6vw, 4.5rem);

  --gutter: 16px;
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --radius: 4px;
  --radius-lg: 10px;

  --duration-fast: 150ms;
  --duration-normal: 260ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-sticky: 30;
  --z-header: 40;
  --z-toast: 50;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.site-header__logo img { height: 36px; width: auto; mix-blend-mode: multiply; }
.site-nav { display: none; gap: 28px; font-size: var(--text-sm); color: var(--ink-2); }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color var(--duration-fast); }
.site-nav a:hover { border-color: var(--ink); }
@media (min-width: 1100px) { .site-nav { display: flex; } }

.quote-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 999px; background: transparent;
  font-size: var(--text-sm); font-weight: 500; cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.quote-btn:hover { background: var(--ink); color: var(--paper); }
.quote-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: var(--text-xs); font-weight: 600;
  display: inline-grid; place-items: center;
}
.quote-btn__count[data-empty="true"] { background: var(--line); color: var(--ink-2); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: var(--text-xs); color: var(--muted); padding: 14px 0; letter-spacing: 0.01em; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Product hero ---------- */
.pdp { display: grid; gap: 28px; padding-bottom: var(--space-section); }
@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .pdp__info { position: sticky; top: 84px; }
}

.gallery { margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 1024px) { .gallery { margin: 0; } }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { scroll-snap-align: start; margin: 0; position: relative; background: var(--paper-2); }
.gallery__slide img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
@media (min-width: 1024px) {
  .gallery__slide img { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
}
.gallery__caption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(21, 26, 18, 0.72); color: #fff;
  font-size: var(--text-xs); padding: 5px 10px; border-radius: 999px; letter-spacing: 0.02em;
}
.gallery__meta { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter) 0; }
@media (min-width: 1024px) { .gallery__meta { padding: 14px 0 0; } }
.gallery__count { font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.08em; }
.gallery__thumbs { display: flex; gap: 8px; }
.gallery__thumb {
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: none; cursor: pointer; opacity: 0.6;
  transition: opacity var(--duration-fast), border-color var(--duration-fast);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.gallery__thumb:hover { opacity: 1; }
@media (min-width: 1024px) { .gallery__thumb { width: 64px; height: 64px; } }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.stock { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 600; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.pdp__kicker { display: block; margin: 0 0 6px; font-size: var(--text-sm); line-height: 1.4; letter-spacing: 0; color: var(--ink-2); font-weight: 500; }
.pdp__title { margin: 18px 0 0; font-size: var(--text-h1); line-height: 0.95; letter-spacing: -0.045em; font-weight: 600; }
.pdp__name { display: flex; align-items: flex-start; gap: 10px; }
.pdp__title sup {
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--ink); border-radius: 999px; padding: 4px 9px; margin-top: 0.6em; line-height: 1;
}
.pdp__lede {
  margin: 16px 0 0; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); line-height: 1.3; color: var(--ink-2); max-width: 34ch;
}

.specstrip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin: 26px 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) { .specstrip { grid-template-columns: repeat(4, 1fr); } }
.specstrip div { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.specstrip div:nth-child(n+3) { border-bottom: 0; }
@media (min-width: 560px) {
  .specstrip div { border-bottom: 0; }
  .specstrip div + div { padding-left: 14px; border-left: 1px solid var(--line); }
}
@media (max-width: 559px) { .specstrip div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); } }
.specstrip dt { font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.04em; order: 2; }
.specstrip dd { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.specstrip dd small { font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-left: 2px; }

/* ---------- Price & quote module ---------- */
.buy {
  margin-top: 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: 0 1px 0 rgba(21, 26, 18, 0.04), 0 18px 40px -28px rgba(21, 26, 18, 0.35);
}
@media (min-width: 560px) { .buy { padding: 26px; } }
.buy__from { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.buy__from-label { font-size: var(--text-sm); color: var(--muted); }
.buy__price { font-size: var(--text-price); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.buy__unit { font-size: var(--text-lg); color: var(--ink-2); }
.buy__terms { margin: 8px 0 0; font-size: var(--text-sm); color: var(--muted); }

.tiers { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: var(--text-sm); }
.tiers caption { text-align: left; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding-bottom: 6px; }
.tiers th, .tiers td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.tiers td { text-align: right; font-weight: 600; }
.tiers th span { display: block; font-size: var(--text-xs); color: var(--muted); }
.tiers tr { transition: background var(--duration-normal); }
.tiers tr[data-active="true"] th, .tiers tr[data-active="true"] td { color: var(--green); }
.tiers tr[data-active="true"] th::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%;
  background: var(--green); vertical-align: middle;
}

.calc { margin-top: 20px; display: grid; gap: 16px; }
@media (min-width: 560px) { .calc { grid-template-columns: 1fr 1fr; } }
.field label, .field .field__label { display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.stepper { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.stepper button {
  width: 48px; min-height: 48px; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem;
  transition: background var(--duration-fast);
}
.stepper button:hover { background: var(--paper); }
.stepper input {
  flex: 1; min-width: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font-size: 1.125rem; font-weight: 600; background: transparent; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chips { display: flex; gap: 6px; margin-top: 8px; }
.chip {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: border-color var(--duration-fast), background var(--duration-fast);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.select {
  width: 100%; min-height: 50px; padding: 0 40px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23151A12' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none; font-size: var(--text-base); cursor: pointer;
}

.quote { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.quote__row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--text-sm); color: var(--ink-2); padding: 3px 0; }
.quote__row strong { color: var(--ink); font-weight: 600; }
.quote__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.quote__total span { font-size: var(--text-sm); font-weight: 600; }
.quote__total strong { font-size: 1.75rem; letter-spacing: -0.03em; font-weight: 600; }
.quote__landed { margin: 6px 0 0; font-size: var(--text-sm); color: var(--green); font-weight: 600; text-align: right; }
.quote__hint { margin: 10px 0 0; font-size: var(--text-sm); color: var(--ink-2); background: var(--green-soft); padding: 10px 12px; border-radius: var(--radius); }
.quote__hint:empty { display: none; }
.quote__error { margin: 10px 0 0; font-size: var(--text-sm); color: var(--alert); }
.quote__error:empty { display: none; }

.actions { display: grid; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: var(--radius);
  font-size: var(--text-base); font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-deep); color: #fff; }
.btn--primary:hover { background: var(--green); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--green-deep); }
.btn--light:hover { background: #fff; }
.actions__note { margin: 4px 0 0; font-size: var(--text-xs); color: var(--muted); text-align: center; }
.actions__note a { color: var(--ink-2); }

.assurances { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.assurances li { display: flex; gap: 10px; font-size: var(--text-sm); line-height: 1.35; color: var(--ink-2); }
.assurances .icon { color: var(--green); margin-top: 1px; }
.assurances strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.section__grid { display: grid; gap: 22px; }
.section__grid > *, .pdp > *, .hub-hero__grid > *, .hub-quote > * { min-width: 0; }
@media (min-width: 1024px) { .section__grid { grid-template-columns: 3fr 9fr; gap: 56px; } }
.section__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.section__label b { display: block; font-size: 0.8125rem; color: var(--ink); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 4px; }
.section h2 { margin: 0 0 18px; font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; max-width: 22ch; }
.section h2 em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.prose p { margin: 0 0 14px; font-size: var(--text-lg); color: var(--ink-2); max-width: 64ch; }
.prose strong { color: var(--ink); }

.summary {
  margin: 0; padding: 20px 22px; background: var(--card); border-left: 3px solid var(--green);
  font-size: var(--text-lg); line-height: 1.55; max-width: 70ch;
}
.fit { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; max-width: 70ch; }
@media (min-width: 640px) { .fit { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.fit li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--text-base); }
.fit li::before { content: ""; flex: none; width: 14px; height: 8px; margin-top: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.fit li.no::before { width: 12px; height: 2px; margin-top: 11px; border: 0; background: var(--muted); transform: none; }
.fit li.no { color: var(--muted); }

/* Ficha técnica */
.spec-sheet { display: grid; gap: 28px; }
@media (min-width: 760px) { .spec-sheet { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.spec-group h3 { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.spec-group dl { margin: 0; }
.spec-group div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.spec-group dt { color: var(--ink-2); }
.spec-group dt small { display: block; color: var(--muted); font-size: 0.6875rem; letter-spacing: 0.02em; }
.spec-group dd { margin: 0; font-weight: 600; text-align: right; }
.spec-note { margin: 22px 0 0; font-size: var(--text-xs); color: var(--muted); max-width: 70ch; }

.glossary { margin-top: 36px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .glossary { grid-template-columns: repeat(4, 1fr); } }
.glossary div { background: var(--paper); padding: 16px; }
.glossary dt { font-weight: 600; font-size: var(--text-sm); }
.glossary dd { margin: 4px 0 0; font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; }

/* Instalado */
.installed { display: grid; gap: 12px; }
@media (min-width: 760px) { .installed { grid-template-columns: 2fr 1fr; } }
.installed figure { margin: 0; }
.installed img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.installed figcaption { margin-top: 8px; font-size: var(--text-xs); color: var(--muted); }
.installed__main img { aspect-ratio: 4 / 3; }
.installed__side img { aspect-ratio: 3 / 4; }
@media (max-width: 759px) { .installed__side { display: none; } }

/* Comparativa */
.compare { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.compare__card {
  scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; display: flex; flex-direction: column; text-decoration: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-normal);
}
a.compare__card:hover { border-color: var(--ink); box-shadow: 0 16px 30px -24px rgba(21,26,18,.5); }
.compare__card[aria-current="page"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.compare__card img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.compare__tag { margin-top: 12px; font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.compare__name { margin: 2px 0 10px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.compare__card dl { margin: 0 0 12px; font-size: var(--text-sm); }
.compare__card dl div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.compare__card dt { color: var(--muted); }
.compare__card dd { margin: 0; font-weight: 600; }
.compare__price { margin-top: auto; font-size: var(--text-sm); color: var(--ink-2); }
.compare__price strong { font-size: 1.375rem; color: var(--ink); letter-spacing: -0.02em; }
.compare__more { display: inline-block; margin-top: 18px; font-weight: 600; text-underline-offset: 4px; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 18px 18px 18px 0; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .steps li + li { padding-left: 18px; border-left: 1px solid var(--line); } }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-serif); font-size: 2.25rem; line-height: 1; color: var(--green); margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: var(--text-base); font-weight: 600; }
.steps p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 56px; padding: 14px 0; cursor: pointer; font-weight: 600; font-size: var(--text-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform var(--duration-normal) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 68ch; }

/* Cierre */
.closing { background: var(--green-deep); color: #EAF0E4; padding: var(--space-section) 0; }
.closing h2 { color: #fff; margin: 0 0 12px; font-size: var(--text-h2); letter-spacing: -0.035em; line-height: 1.05; font-weight: 600; max-width: 20ch; }
.closing h2 em { font-family: var(--font-serif); font-weight: 400; }
.closing p { margin: 0 0 24px; max-width: 56ch; color: #CBD6C3; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.closing .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.closing .btn--ghost:hover { background: #fff; color: var(--green-deep); }

/* Footer */
.site-footer { background: var(--ink); color: #B8BDB1; font-size: var(--text-sm); padding: 48px 0 110px; }
@media (min-width: 1024px) { .site-footer { padding-bottom: 48px; } }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.site-footer h3 { margin: 0 0 10px; color: #fff; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p a { text-decoration: underline; text-underline-offset: 3px; }
.showroom__data dd a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--text-xs); color: #8C9287; }

/* ---------- Sticky buy bar (mobile) ---------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -20px rgba(21,26,18,.45);
  transform: translateY(110%); transition: transform var(--duration-normal) var(--ease-out);
}
.buybar[data-visible="true"] { transform: translateY(0); }
.buybar__info { flex: 1; min-width: 0; line-height: 1.2; }
.buybar__name { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.buybar .btn { min-height: 48px; padding: 0 18px; font-size: var(--text-sm); }
@media (min-width: 1024px) { .buybar { display: none; } }

/* ---------- Quote drawer ---------- */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); max-width: 100%;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
}
.drawer::backdrop { background: rgba(21, 26, 18, 0.45); }
.drawer[open] { animation: drawer-in var(--duration-normal) var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.drawer__close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.5rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.drawer__empty { color: var(--muted); padding: 24px 0; }
.drawer__empty a { color: var(--ink); font-weight: 600; }
.cot-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cot-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.cot-item__name { font-weight: 600; }
.cot-item__meta { font-size: var(--text-xs); color: var(--muted); }
.cot-item__m2 { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cot-item__m2 input { width: 76px; min-height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); text-align: center; background: #fff; }
.cot-item__remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: var(--text-xs); text-decoration: underline; min-height: 44px; }
.drawer__foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); display: grid; gap: 12px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total strong { font-size: 1.5rem; letter-spacing: -0.02em; }
.drawer__foot small { color: var(--muted); font-size: var(--text-xs); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: var(--z-toast);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px;
  background: var(--ink); color: var(--paper); border-radius: 999px; font-size: var(--text-sm);
  transition: opacity var(--duration-normal), transform var(--duration-normal) var(--ease-out);
}
.toast[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: var(--paper); color: var(--ink); border-radius: 999px; min-height: 36px; padding: 0 14px; font-weight: 600; cursor: pointer; }

/* =================== Hub (catálogo) =================== */
.section__intro { margin: -4px 0 22px; font-size: var(--text-lg); color: var(--ink-2); max-width: 62ch; }

.hub-hero { padding: 8px 0 var(--space-section); }
.hub-hero__grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 1024px) { .hub-hero__grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.hub-hero__title {
  margin: 18px 0 0; font-size: var(--text-h1); line-height: 0.95; letter-spacing: -0.045em; font-weight: 600; max-width: 14ch;
}
.hub-hero__title em { display: block; font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; color: var(--green); }
.hub-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hub-hero__actions .btn { flex: 1 1 180px; }
.hub-hero__media { margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 1024px) { .hub-hero__media { margin: 0; } }
.hub-hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 62%; }
@media (min-width: 1024px) { .hub-hero__media img { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); } }
.hub-hero__media figcaption { padding: 8px var(--gutter) 0; font-size: var(--text-xs); color: var(--muted); }
@media (min-width: 1024px) { .hub-hero__media figcaption { padding: 8px 0 0; } }
.hub-hero .specstrip dd small:first-child { margin: 0 4px 0 0; }

/* Filtros */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .filters { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }
.filters .chip { min-height: 44px; padding: 0 16px; font-size: var(--text-sm); white-space: nowrap; flex: none; }
.filters__count { margin: 14px 0 10px; font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* Catálogo: muestrario */
.catalog { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 700px) { .catalog { grid-template-columns: repeat(2, 1fr); gap: 20px; border-top: 0; } }
@media (min-width: 1100px) { .catalog { grid-template-columns: repeat(3, 1fr); } }
.spec-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) {
  .spec-card {
    grid-template-columns: 1fr; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--card); overflow: hidden; transition: border-color var(--duration-fast), box-shadow var(--duration-normal);
  }
  .spec-card:hover { border-color: var(--ink); box-shadow: 0 20px 36px -28px rgba(21, 26, 18, 0.55); }
}
.spec-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.spec-card__media img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (min-width: 700px) {
  .spec-card__media { border-radius: 0; }
  .spec-card__media img { aspect-ratio: 4 / 3; }
  .spec-card:hover .spec-card__media img { transform: scale(1.03); }
}
.spec-card__n {
  position: absolute; left: 8px; top: 8px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em;
  background: rgba(245, 243, 236, 0.92); color: var(--ink); padding: 3px 7px; border-radius: 999px;
}
.spec-card__body { display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 700px) { .spec-card__body { padding: 16px 18px 18px; } }
.spec-card__tag { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.spec-card__stock { color: var(--green); font-weight: 600; }
.spec-card__name { margin: 2px 0 8px; font-size: 1.375rem; letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.spec-card__name a { text-decoration: none; }
.spec-card__name a::after { content: " →"; opacity: 0; transition: opacity var(--duration-fast); }
.spec-card__name a:hover::after { opacity: 1; }
.spec-card__specs { margin: 0 0 10px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 16px; font-size: var(--text-xs); }
.spec-card__specs div { display: flex; flex-direction: column-reverse; }
.spec-card__specs dt { color: var(--muted); }
.spec-card__specs dd { margin: 0; font-weight: 600; font-size: var(--text-sm); white-space: nowrap; }
.spec-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spec-card__price { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.spec-card__price strong { font-size: 1.375rem; color: var(--ink); letter-spacing: -0.03em; }
.spec-card__add {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.spec-card__add .icon { width: 16px; height: 16px; }
.spec-card__add:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 380px) { .spec-card__add span { display: none; } .spec-card__add { padding: 0 12px; } }

/* Selector */
.quiz { display: grid; gap: 22px; }
@media (min-width: 900px) { .quiz { grid-template-columns: repeat(3, 1fr); column-gap: 28px; } .quiz > .section__intro, .quiz__result { grid-column: 1 / -1; } }
.quiz__group { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--ink); }
.quiz__group legend { float: left; width: 100%; padding: 12px 0 10px; font-weight: 600; }
.quiz__group legend + * { clear: both; }
.quiz__opt { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: var(--text-base); }
.quiz__opt input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--ink-2); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.quiz__opt input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); transform: scale(0); transition: transform var(--duration-fast); }
.quiz__opt input:checked { border-color: var(--green); }
.quiz__opt input:checked::after { transform: scale(1); }
.quiz__opt:has(input:checked) { color: var(--green-deep); font-weight: 600; }
.quiz__result { display: grid; gap: 12px; }
@media (min-width: 760px) { .quiz__result { grid-template-columns: 1.3fr 1fr; } }
.quiz__pick { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quiz__pick--main { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.quiz__pick img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); }
.quiz__label { margin: 0; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.quiz__pick--main .quiz__label { color: var(--green); font-weight: 600; }
.quiz__name { display: inline-block; margin: 2px 0 2px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.quiz__meta { margin: 0 0 10px; font-size: var(--text-sm); color: var(--ink-2); }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__actions .btn { min-height: 44px; padding: 0 16px; font-size: var(--text-sm); }

/* Tabla comparativa */
.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--text-sm); }
.compare-table th, .compare-table td { padding: 12px 14px 12px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.compare-table tbody th { position: sticky; left: 0; background: var(--paper); font-weight: 600; min-width: 150px; }
.compare-table tbody th a { text-decoration: none; }
.compare-table tbody th a:hover { text-decoration: underline; }
.compare-table tbody th span { display: block; font-size: var(--text-xs); color: var(--muted); font-weight: 400; }
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td { background: var(--green-soft); }

/* Cotizador del hub */
.hub-quote { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .hub-quote { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; } }
.hub-quote .buy { margin-top: 0; }
.hub-quote__aside h3 { margin: 0 0 4px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; }
.hub-quote__aside .fit { grid-template-columns: 1fr; }
@media (min-width: 560px) { .field--wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .hub-quote .calc { grid-template-columns: 1fr; } }
.calc + .tiers { margin-top: 20px; }

/* Obras */
.obras { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
.obras::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .obras { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .obras__item:first-child { grid-column: span 2; }
}
.obras__item { margin: 0; scroll-snap-align: start; }
.obras__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .obras__item img { aspect-ratio: 4 / 3; } .obras__item:first-child img { aspect-ratio: 27 / 10; } }
.obras__item figcaption { margin-top: 8px; font-size: var(--text-xs); color: var(--muted); }

@media (min-width: 900px) { .steps--five { grid-template-columns: repeat(5, 1fr); } }

/* =================== Página local Tampico =================== */
.summary--hero { margin-top: 18px; padding: 14px 16px; font-size: var(--text-base); background: var(--card); }
.options { display: grid; gap: 16px; }
@media (min-width: 760px) { .options { grid-template-columns: 1fr 1fr; } }
.option { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.option--main { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.option__label { margin: 0; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.option h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 600; }
.option__price { margin: 0 0 6px; color: var(--ink-2); font-size: var(--text-sm); }
.option__price strong { font-size: 2rem; color: var(--ink); letter-spacing: -0.04em; }
.option .fit { grid-template-columns: 1fr; margin: 0 0 14px; }
.option__price span { display: block; font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.02em; }
.option__note { margin: -4px 0 16px; padding: 10px 12px; font-size: var(--text-sm); line-height: 1.5; color: var(--ink-2); background: var(--paper); border-radius: var(--radius); }
.option .btn { margin-top: auto; }
.compare-table--compact { min-width: 0; }
.compare-table--compact th, .compare-table--compact td { padding-right: 10px; }
.compare-table--compact td { white-space: nowrap; }
.compare-table--compact tbody th .tag-stock, .compare-table--compact tbody th .tag-order { margin-top: 6px; }
.section--tint .compare-table tbody th { background: var(--paper-2); }
.tag-stock, .tag-order { display: inline-block; font-size: var(--text-xs); font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-stock { background: var(--green-soft); color: var(--green-deep); }
.tag-order { background: var(--paper-2); color: var(--ink-2); }
.quote-card { margin: 28px 0 0; padding: 22px 24px; background: var(--card); border-left: 3px solid var(--green); max-width: 70ch; }
.quote-card p { margin: 0 0 10px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); line-height: 1.35; }
.quote-card footer { font-size: var(--text-sm); color: var(--muted); }
.aside-gap { margin-top: 28px !important; }
.showroom { display: grid; gap: 22px; }
@media (min-width: 900px) { .showroom { grid-template-columns: 2fr 1fr; align-items: end; } }
.showroom__data { margin: 0; border-top: 1px solid var(--ink); }
.showroom__data div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .showroom__data div { grid-template-columns: 180px 1fr; } }
.showroom__data dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.showroom__data dd { margin: 0; font-weight: 500; }
.showroom__actions { display: grid; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Lista de precios (/precios) */
.compare-table--prices { min-width: 0; }
.compare-table--prices tbody th { position: static; min-width: 0; padding-right: 20px; }
.compare-table--prices tbody th span { margin-top: 4px; line-height: 1.45; max-width: 56ch; }
.compare-table--prices td { text-align: right; white-space: nowrap; padding-right: 0; }
.compare-table--prices thead th:last-child { text-align: right; padding-right: 0; }
.compare-table--prices td strong { font-size: 1.0625rem; letter-spacing: -0.01em; }
a.quote-btn { text-decoration: none; }
.compare-table--envio td { white-space: normal; min-width: 180px; line-height: 1.5; }
.compare-table--envio td:nth-child(3), .compare-table--envio td:nth-child(4) { white-space: nowrap; min-width: 0; }
