/* RUAV Mobiliario — estilos del sitio */

:root {
  --ink: #141312;
  --ink-2: #1e1c1b;
  --ink-3: #2a2826;
  --paper: #f5f3ef;
  --paper-2: #ece8e2;
  --white: #ffffff;
  --line: #e2ddd6;
  --line-dark: #3a3734;
  --text: #1b1a19;
  --muted: #6c6762;
  --muted-light: #a8a29c;
  --red: #d8141b;
  --red-dark: #b10f15;
  --silver: #c9c7c4;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 19, 18, .06), 0 8px 24px rgba(20, 19, 18, .07);
  --shadow-lg: 0 24px 60px rgba(20, 19, 18, .22);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.mono { font-family: var(--mono); font-size: .85em; letter-spacing: .02em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Encabezado ---------- */
.topbar { background: var(--red); color: var(--white); font-size: 13px; }
.topbar .container { display: flex; justify-content: center; gap: 8px 24px; flex-wrap: wrap; padding-block: 7px; text-align: center; }
.topbar a { font-weight: 700; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.header-main { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
.menu-toggle { display: none; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.main-nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px;
  color: #e9e6e2; text-decoration: none; font-size: 15px; font-weight: 550; background: transparent; border: 0; white-space: nowrap;
}
.main-nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button { background: var(--ink-3); color: var(--white); }
.main-nav > a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: -12px; width: min(720px, 90vw);
  background: var(--white); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-drop.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 8px; border-radius: 10px; text-decoration: none;
}
.mega a:hover { background: var(--paper); }
.mega img { width: 64px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.mega strong { display: block; font-size: 15px; }
.mega small { color: var(--muted); font-size: 13px; }
.mega .mega-all { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 6px; background: var(--paper); font-weight: 650; padding: 12px; }

.header-search { position: relative; flex: 0 1 260px; }
.header-search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line-dark);
  background: var(--ink-2); color: var(--white); font-size: 15px;
}
.header-search input::placeholder { color: var(--muted-light); }
.header-search input:focus { outline: none; border-color: var(--silver); }
.header-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted-light); pointer-events: none; }

.quote-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px;
  border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--white); font-weight: 600; font-size: 15px;
}
.quote-btn:hover { background: var(--ink-3); }
.quote-btn svg { width: 20px; height: 20px; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--white);
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
}
.badge.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 30%; height: 70%;
  background: radial-gradient(closest-side, rgba(216, 20, 27, .28), transparent); pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 750; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); color: #cfcac4; max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
.hero-stats span { color: var(--muted-light); font-size: 14px; }

.hero-art { position: relative; aspect-ratio: 1 / .86; }
.hero-art figure { position: absolute; margin: 0; }
.hero-art img { filter: invert(1); mix-blend-mode: screen; opacity: .92; }
.hero-art figcaption {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-light); letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.hero-art figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero-art .a1 { width: 64%; left: 0; top: 6%; }
.hero-art .a2 { width: 27%; right: 0; top: 0; }
.hero-art .a3 { width: 34%; left: 34%; bottom: 0; }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { display: flex; gap: 14px; align-items: center; padding: 22px 20px; border-left: 1px solid var(--line); }
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust svg { width: 30px; height: 30px; color: var(--red); flex: none; }
.trust strong { display: block; font-size: 15px; }
.trust span { color: var(--muted); font-size: 13.5px; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-white { background: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 0; }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card .cat-img { aspect-ratio: 4 / 3; margin-bottom: 14px; overflow: hidden; }
.cat-card img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card strong { font-size: 16px; line-height: 1.25; }
.cat-card span { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.cat-card::after {
  content: "→"; position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); font-size: 15px; transition: background .2s, color .2s;
}
.cat-card:hover::after { background: var(--red); color: var(--white); }

/* Pestañas */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-size: 14.5px; font-weight: 600; color: var(--muted);
}
.tab:hover { color: var(--text); border-color: var(--muted-light); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Tarjeta de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow); border-color: #cfc8bf; }
.product-card .pc-img {
  position: relative; aspect-ratio: 4 / 3; padding: 22px; background: var(--white); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-card .pc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.product-card:hover .pc-img img { transform: scale(1.04); }
.pc-tag {
  position: absolute; left: 12px; top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper); color: var(--muted); padding: 4px 9px; border-radius: 999px;
}
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.pc-sku { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pc-title { font-size: 16px; font-weight: 650; line-height: 1.3; margin: 0; }
.pc-title a { text-decoration: none; }
.pc-title a::after { content: ""; position: absolute; inset: 0; }
.pc-dims { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 8px; }
.pc-dims div { padding: 6px 8px; border-left: 1px solid var(--line); min-width: 0; }
.pc-dims div:first-child { border-left: 0; }
.pc-dims dt { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pc-dims dd { margin: 0; font-size: 13.5px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text); background: var(--paper);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}
.chip b { font-weight: 600; color: var(--muted); }
.pc-actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; position: relative; z-index: 1; }
.pc-actions .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
.pc-actions .btn-wa { width: 42px; padding: 0; }
.btn-add.added { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Cómo cotizar ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 28px 26px 26px; counter-increment: step;
}
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--mono); font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 18px;
}
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); margin: 0; }

/* Bloque de proyectos */
.split {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--ink); color: var(--white);
}
.split-copy { padding: clamp(32px, 5vw, 64px); }
.split-copy h2 { font-size: clamp(28px, 3.2vw, 40px); }
.split-copy p { color: #cfcac4; }
.split-copy ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.split-copy li { display: flex; gap: 10px; align-items: flex-start; color: #e9e6e2; }
.split-copy li svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 2px; }
.split-art {
  position: relative; background: var(--ink-2);
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px; display: grid; place-items: center; padding: 32px; min-height: 320px;
}
.split-art img { filter: invert(1); mix-blend-mode: screen; width: 90%; }

/* Materiales */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.feature .num { font-family: var(--font-display); font-size: 44px; font-weight: 750; letter-spacing: -.03em; color: var(--red); line-height: 1; margin-bottom: 12px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.contact-list svg { width: 22px; height: 22px; color: var(--red); justify-self: center; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a { font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #cfcac4; padding-top: 64px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-grid h3 { color: var(--white); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted-light); }
.footer-bottom a { color: inherit; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: var(--white); box-shadow: 0 10px 30px rgba(31, 168, 85, .4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Catálogo ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 28px 30px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--muted-light); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 52em; }

.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-block: 32px 80px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-right: 6px; }
.filters-head { display: none; }
.filter-group { border-bottom: 1px solid var(--line); padding-block: 18px; }
.filter-group:first-child { padding-top: 0; }
.filter-group h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; color: var(--muted); font-family: var(--font); }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.filter-list label {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 15px;
}
.filter-list label:hover { background: var(--white); }
.filter-list input { accent-color: var(--red); width: 17px; height: 17px; margin: 0; flex: none; }
.filter-list .count { margin-left: auto; color: var(--muted-light); font-size: 13px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-row label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.field {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 0 12px; font-size: 15px;
}
.field:focus { outline: none; border-color: var(--ink); }
textarea.field { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.filters .btn-clear { margin-top: 18px; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .results { color: var(--muted); font-size: 15px; margin-right: auto; }
.toolbar .results strong { color: var(--text); }
.toolbar .search-inline { position: relative; flex: 1 1 260px; max-width: 360px; }
.toolbar .search-inline svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.toolbar .search-inline .field { padding-left: 38px; }
.toolbar select.field { width: auto; padding-right: 32px; }
.filters-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-size: 13.5px;
}
.active-filters button:hover { border-color: var(--ink); }
.empty { text-align: center; padding: 64px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { font-size: 22px; }
.empty p { color: var(--muted); }
.load-more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- Producto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: 32px 72px; align-items: start; }
.product-media {
  position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  aspect-ratio: 1 / .82; padding: clamp(24px, 5vw, 64px); overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media .pc-tag { left: 18px; top: 18px; }
.product-info h1 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 10px; }
.product-info .pc-sku { font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.copy-btn { border: 1px solid var(--line); background: var(--white); border-radius: 6px; font-size: 12px; padding: 2px 8px; }
.copy-btn:hover { border-color: var(--ink); }
.dims-table { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 24px 0; overflow: hidden; }
.dims-table div { padding: 14px 16px; border-left: 1px solid var(--line); }
.dims-table div:first-child { border-left: 0; }
.dims-table small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.dims-table strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; }
.dims-table strong span { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.variant-block { margin-bottom: 24px; }
.variant-block h2 { font-size: 15px; margin-bottom: 10px; font-family: var(--font); letter-spacing: 0; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variants a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums;
}
.variants a:hover { border-color: var(--ink); }
.variants a[aria-current="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; margin-bottom: 28px; }
.buy-row { display: flex; gap: 12px; align-items: center; }
.buy-row .btn { flex: 1; }
.buy-note { font-size: 13.5px; color: var(--muted); margin: 0; display: flex; gap: 8px; align-items: center; }
.buy-note svg { width: 18px; height: 18px; color: var(--wa); flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 48px; background: var(--white); flex: none; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; font-size: 20px; border-radius: 999px; }
.qty button:hover { background: var(--paper); }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 650; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 36px; }
.qty.sm button { width: 32px; font-size: 17px; }
.qty.sm input { width: 34px; font-size: 14px; }
.spec h2 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font); margin-bottom: 10px; }
.spec p { font-size: 16px; }
.spec ul { padding-left: 18px; margin: 0; display: grid; gap: 6px; }

/* ---------- Panel de cotización ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 19, 18, .5); z-index: 90; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(460px, 100%); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--ink); color: var(--white); }
.drawer-head h2 { font-size: 20px; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: var(--white); display: grid; gap: 12px; }
.quote-items { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.quote-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.quote-item img { width: 72px; height: 60px; object-fit: contain; }
.quote-item a { font-weight: 650; font-size: 14.5px; text-decoration: none; line-height: 1.3; display: block; }
.quote-item a:hover { text-decoration: underline; }
.quote-item .pc-sku { font-size: 11.5px; }
.quote-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 8px; }
.remove-btn { border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 4px; }
.remove-btn:hover { color: var(--red); }
.quote-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.quote-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--muted-light); }
.quote-form { display: grid; gap: 10px; }
.quote-form h3 { font-size: 15px; margin: 4px 0 2px; }
.quote-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.quote-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-total { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.quote-total strong { color: var(--text); }
.privacy-note { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }
.privacy-note a { color: inherit; }

/* Aviso emergente */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); padding: 12px 14px 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; font-size: 14.5px; transition: opacity .25s, translate .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast button { border: 0; background: var(--red); color: var(--white); border-radius: 999px; padding: 6px 14px; font-weight: 650; font-size: 13.5px; }

/* Texto legal */
.prose { max-width: 760px; padding-block: 40px 80px; }
.prose h2 { font-size: 22px; margin-top: 1.8em; }
.prose p, .prose li { color: #3b3835; }
.notice { background: #fff6e5; border: 1px solid #f0d9a8; border-radius: 10px; padding: 12px 16px; font-size: 14px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .header-search { flex-basis: 200px; }
  .main-nav > a, .nav-drop > button { padding: 0 10px; }
  .main-nav .nav-optional { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; margin-left: -8px; }
  .brand img { height: 44px; }
  .header-main { gap: 10px; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 1px) 0 0 0; background: var(--ink); z-index: 60; flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 40px; gap: 2px; overflow: auto; transform: translateX(-100%); transition: transform .28s; margin: 0;
  }
  .main-nav.open { transform: none; }
  .main-nav .nav-optional { display: inline-flex; }
  .main-nav > a, .nav-drop > button { height: 52px; font-size: 17px; border-radius: 10px; justify-content: space-between; width: 100%; }
  .main-nav > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .mega { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; grid-template-columns: 1fr; margin: 4px 0 10px; }
  .nav-drop.open .mega { display: grid; }
  .header-search { order: 5; flex: 1 0 100%; margin-bottom: 12px; }
  .header-main { flex-wrap: wrap; }
  .quote-btn { margin-left: auto; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin-inline: auto; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust li { border-top: 1px solid var(--line); }
  .trust li:nth-child(-n+2) { border-top: 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-art { min-height: 240px; order: -1; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .filters-toggle { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(360px, 88%); max-height: none; background: var(--paper);
    padding: 0 20px 24px; transform: translateX(-100%); transition: transform .3s; box-shadow: var(--shadow-lg);
  }
  .filters.open { transform: none; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--paper); padding: 16px 0; z-index: 1; }
  .filters-head h2 { margin: 0; font-size: 20px; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product-media { position: relative; top: 0; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-body { padding: 12px; }
  .pc-title { font-size: 14.5px; }
  .pc-dims div { padding: 5px 6px; }
  .pc-dims dd { font-size: 12px; }
  .pc-dims dt { font-size: 9.5px; letter-spacing: .04em; }
  .pc-actions { grid-template-columns: 1fr; }
  .pc-actions .btn-wa { width: 100%; }
  .pc-actions .btn-wa::after { content: "WhatsApp"; }
  .product-card .pc-img { padding: 12px; }
  .pc-tag { display: none; }
  .quote-btn .label { display: none; }
  .quote-btn { padding: 0 12px; }
  .toolbar .search-inline { max-width: none; order: -1; flex-basis: 100%; }
  .toolbar .results { flex-basis: 100%; order: 3; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .dims-table strong { font-size: 18px; }
  .quote-form .grid2 { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .topbar .hide-sm { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 12.5px; display: block; line-height: 1.3; }
  .hero-art { aspect-ratio: 1 / .62; }
  .hero-art .a1 { width: 68%; top: 10%; }
  .hero-art .a2 { width: 26%; }
  .hero-art .a3 { display: none; }
}

@media (max-width: 420px) {
  .brand img { height: 38px; }
  .trust ul { grid-template-columns: 1fr; }
  .trust li, .trust li:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trust li:first-child { border-top: 0; }
  .cat-card { padding: 12px; }
  .cat-card::after { display: none; }
  .hero-stats { gap: 20px 28px; }
}

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

@media print {
  .site-header, .topbar, .site-footer, .wa-float, .drawer, .drawer-backdrop, .buy-box { display: none !important; }
}

.crumb-top { margin-top: 24px; margin-bottom: 0; }
