/* FE GOLD Retro Partes — hoja de estilos
   Concepto "vitrina de la tienda": fondo blanco, fotos reales del inventario de FE GOLD (repuestos sin fondo
   sobre un aro dorado) y la franja de seguridad negro/oro del aviso de la fachada. Diseño claro (pedido del cliente). */
/* ===== GENERADO POR build.py (fuentes propias y puntos de la portada): no editar a mano ===== */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 72% 100%; font-display: swap;
  src: url("../fonts/archivo-latin-var.woff2?v=bf4167b9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500.woff2?v=b1c8a895") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-600.woff2?v=5a2ce779") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.spot[data-pick="1"] { left: 15.5%; top: 55.9%; }
.spot[data-pick="2"] { left: 57.0%; top: 17.2%; }
.spot[data-pick="3"] { left: 25.0%; top: 73.8%; }
.spot[data-pick="4"] { left: 68.5%; top: 75.0%; }
.spot[data-pick="5"] { left: 13.5%; top: 71.4%; }
/* ===== FIN DE LO GENERADO ===== */
:root {
  --paper: #ffffff;
  --mist: #f4f3ef;
  --grid: #e7e4dc;
  --line: #e1ddd4;
  --ink: #15130f;
  --steel: #5c584f;
  --gold: #d9a93f;          /* rellenos y botones */
  --gold-soft: #fbf3df;     /* fondos suaves */
  --gold-strong: #a87a1c;   /* texto grande sobre blanco */
  --gold-ink: #8c6414;      /* texto pequeño sobre blanco */
  --night: #121110;
  --night-2: #1d1b17;
  --night-line: #36322b;
  --on-night: #f1ebdf;
  --on-night-muted: #aaa295;
  --wa: #25d366;
  --wa-ink: #062b14;
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px;
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-stretch: 72%;
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: .96;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.7rem); letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.45rem; font-stretch: 80%; font-variation-settings: "wdth" 80; letter-spacing: .01em; line-height: 1.05; }
p { margin: 0; max-width: 62ch; }
.hl { color: var(--gold-strong); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 64px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-weight: 500;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--night); color: var(--on-night-muted); font-size: .86rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between; padding-block: 8px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-night-muted); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar b { color: var(--on-night); font-weight: 600; }
.topbar svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.topbar .tb-right { display: flex; flex-wrap: wrap; gap: 4px 22px; }
@media (max-width: 640px) { .topbar .tb-mail { display: none; } }

/* ---------- Encabezado ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgba(21, 19, 15, .12); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name { white-space: nowrap; }
.brand-name b { font-family: var(--f-display); font-stretch: 72%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: 1.85rem; letter-spacing: .02em; color: var(--ink); }
.brand-name b span { color: var(--gold-strong); }
.brand-name small { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .22em; color: var(--steel); margin-top: 5px; text-transform: uppercase; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 10px 12px; border-radius: 6px; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 700;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu[open] .menu-panel { display: flex; }
.menu-panel {
  display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 240px;
  box-shadow: 0 22px 50px rgba(21, 19, 15, .18);
}
.menu-panel a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--mist); }
@media (max-width: 1080px) { .site-header .nav, .site-header .header-cta { display: none; } .site-header .menu { display: block; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 8px; border: 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 8px 20px rgba(37, 211, 102, .28); }
.btn-wa:hover { color: var(--wa-ink); box-shadow: 0 10px 24px rgba(37, 211, 102, .36); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); background: #e3b44c; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; background: #2a2620; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { color: var(--ink); background: var(--mist); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .94rem; }

/* ---------- Héroe ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero-copy .lead { font-size: 1.15rem; color: var(--steel); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(60px, 8vw, 104px); }
.section-mist { background: var(--mist); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 760px; }
.section-head p { color: var(--steel); font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.flush { margin: 0; }
.section-head.tight { margin-bottom: 24px; }
.more-row { margin-top: 28px; }

/* Proceso (banda negra) */
.process { background: var(--night); color: var(--on-night); }
.process .eyebrow { color: var(--gold); }
.process h2 { color: var(--on-night); }
.process .section-head p { color: var(--on-night-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.step { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--night-line); }
.step .n { font-family: var(--f-display); font-stretch: 72%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: 4.6rem; line-height: .8; color: var(--gold); }
.step h3 { color: var(--on-night); }
.step p { color: var(--on-night-muted); }
.step code { font-family: var(--f-mono); font-size: .86em; color: var(--on-night); background: var(--night-2); padding: 1px 6px; border-radius: 4px; }
.process-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.process .btn-line { color: var(--on-night); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.process .btn-line:hover { background: var(--night-2); color: var(--on-night); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Sede */
.visit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.visit-photo { position: relative; margin: 0; }
.visit-photo img { width: 100%; aspect-ratio: 533 / 465; object-fit: cover; border-radius: 16px; }
.visit-photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(21, 19, 15, .2);
}
.visit-info { display: grid; gap: 20px; }
.addr { font-family: var(--f-display); font-stretch: 78%; font-variation-settings: "wdth" 78; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; text-transform: uppercase; }
.addr small { display: block; font-family: var(--f-body); font-stretch: 100%; font-variation-settings: "wdth" 100; font-weight: 500; font-size: 1rem; text-transform: none; color: var(--steel); margin-top: 6px; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* Lista de datos con iconos */
.facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts .fi { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; }
.facts .fi svg { width: 20px; height: 20px; }
.facts .fl { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.facts .fv { margin: 0; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts .fv a { color: var(--ink); text-decoration: none; }
.facts .fv a:hover { color: var(--gold-ink); text-decoration: underline; }

/* Preguntas frecuentes */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.faq details[open] { border-color: var(--gold); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-ink); font-size: 1.3rem; font-weight: 600; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--steel); max-width: none; }

/* Encabezado de página interior */
.page-hero { padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero .wrap.solo { grid-template-columns: minmax(0, 1fr); }
.page-hero .ph-copy { display: grid; gap: 18px; }
.page-hero .lead { color: var(--steel); font-size: 1.12rem; }
.crumbs { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--steel); }
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--ink); }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* Fichas de servicio */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.svc { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 18px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.svc .ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 12px; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.svc .ico svg { width: 30px; height: 30px; }
.svc h3 { font-size: 1.35rem; align-self: end; }
.svc p { color: var(--steel); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* Bloque dividido */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.ticks li::before { content: ""; width: 12px; height: 12px; margin: 6px 0 0 6px; background: var(--gold); transform: rotate(45deg); }
.ticks b { font-weight: 700; }
.ticks.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .ticks.two-col { grid-template-columns: 1fr; } }

/* Placa de identificación */
.idplate {
  position: relative; border-radius: 10px; padding: 26px 30px; display: grid; gap: 14px;
  background: linear-gradient(135deg, #eeece7 0%, #d3cec4 40%, #f1efea 52%, #c9c3b8 100%);
  border: 1px solid #b6b0a4;
  box-shadow: inset 0 1px 0 #fff, 0 20px 40px -24px rgba(21, 19, 15, .5);
  font-family: var(--f-mono); color: #2c2924;
}
.idplate .rv { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9c968b); box-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.idplate .rv:nth-child(1) { top: 10px; left: 10px; } .idplate .rv:nth-child(2) { top: 10px; right: 10px; }
.idplate .rv:nth-child(3) { bottom: 10px; left: 10px; } .idplate .rv:nth-child(4) { bottom: 10px; right: 10px; }
.idplate .pt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1.5px solid #8f897d; padding-bottom: 8px; }
.idplate dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.idplate dl div { display: grid; gap: 2px; }
.idplate dt { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #5f5a51; }
.idplate dd { margin: 0; border-bottom: 1px dashed #8f897d; min-height: 1.6em; font-size: .9rem; color: #8c6414; }
.plate-note { color: var(--steel); font-size: .92rem; }
.idplate + .plate-note { margin-top: 12px; }

/* Banda de llamado (oro) */
.cta-gold { background: var(--gold); color: var(--ink); }
.cta-gold .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-block: 52px; }
.cta-gold h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta-gold p { margin-top: 10px; color: #3d3110; font-weight: 500; }
.cta-gold .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-gold .btn-line:hover { background: rgba(255, 255, 255, .25); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 22px; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; box-shadow: 0 30px 60px -36px rgba(21, 19, 15, .35); }
.form h2 { font-size: 2rem; }
.form > p { color: var(--steel); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field small { color: var(--steel); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.field input::placeholder, .field textarea::placeholder { color: #8f897d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 169, 63, .22); }
.field .mono { font-family: var(--f-mono); letter-spacing: .03em; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; color: var(--steel); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.form-out { display: grid; gap: 10px; padding: 16px; border-radius: 10px; background: #eafaf0; border: 1px solid #9fe3b8; }
.form-err { color: #b3261e; font-weight: 600; font-size: .95rem; }

/* Texto legal */
.legal { display: grid; gap: 18px; max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 14px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--steel); }
.legal p { color: var(--steel); max-width: none; }
.legal b { color: var(--ink); }

/* ---------- Pie ---------- */
.site-footer { background: var(--night); color: var(--on-night); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-block: 56px 32px; }
.site-footer h2 { font-size: 1.1rem; color: var(--gold); margin-bottom: 14px; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .muted { color: var(--on-night-muted); }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .brand { color: var(--on-night); }
.foot-brand .brand-name b { color: var(--on-night); }
.foot-brand .brand-name b span { color: var(--gold); }
.foot-brand .brand-name small { color: var(--on-night-muted); }
.legalline { border-top: 1px solid var(--night-line); }
.legalline .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-block: 18px; font-size: .8rem; color: var(--on-night-muted); font-family: var(--f-mono); }
.legalline a { color: var(--on-night-muted); }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Botón flotante (escritorio) y barra de acciones (celular) */
.wa-float {
  position: fixed; z-index: 70;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(6, 43, 20, .35);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
.mbar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .mbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(21, 19, 15, .12);
  }
  .mbar .btn { min-height: 52px; padding: 0 12px; }
}

/* 404 */
.notfound { padding-block: 96px; }
.notfound .wrap { display: grid; gap: 18px; }
.notfound .code { font-family: var(--f-display); font-stretch: 72%; font-variation-settings: "wdth" 72; font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; color: var(--gold); line-height: .9; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.posts:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts, .posts:has(> :nth-child(4)) { grid-template-columns: 1fr; } }
.post-card {
  display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--paper); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(21, 19, 15, .4); }
.post-tag { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--gold); border-radius: 999px; padding: 4px 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.post-body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 24px; }
.post-body h3 { font-size: 1.35rem; }
.post-body p { color: var(--steel); font-size: .95rem; }
.post-body .post-date { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.post-body .more { font-weight: 700; color: var(--gold-ink); }
.post-body .more::after { content: " →"; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 18px; }
.prose p, .prose li { color: #35322c; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; }
.prose li::before { content: ""; width: 8px; height: 8px; margin-top: 10px; background: var(--gold); transform: rotate(45deg); }
.prose b { color: var(--ink); }
.aside { display: grid; gap: 18px; position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .aside { position: static; } }
.aside-box { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); }
.aside-box p { color: var(--steel); font-size: .95rem; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related a { font-weight: 700; color: var(--ink); text-decoration: none; }
.related a:hover { color: var(--gold-ink); text-decoration: underline; }


/* ---------- Vitrina del héroe: foto real con puntos por sistema ---------- */
.hero-actions:empty { display: none; }
.trust { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--steel); }
.trust li b { color: var(--ink); font-weight: 700; }
.trust svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); box-shadow: inset 0 0 0 1px #ecd7a6; }

.stage { position: relative; display: grid; gap: 16px; padding-top: 8px; }
.stage > .sun { position: absolute; z-index: 0; width: 62%; aspect-ratio: 1; right: -8%; top: -16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 169, 63, .42), rgba(217, 169, 63, .14) 62%, rgba(217, 169, 63, 0) 100%); pointer-events: none; }
.hazard { position: absolute; z-index: 0; height: 24px; border-radius: 3px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 13px, var(--gold) 13px 26px); transform: skewX(-18deg); }
.stage-frame { position: relative; z-index: 1; margin-bottom: 12px; }
.stage-frame > .hazard { left: 12%; right: -8px; bottom: -14px; }
.stage-photo { position: relative; z-index: 1; margin: 0; border-radius: 18px; overflow: hidden; background: var(--mist);
  box-shadow: 0 36px 60px -34px rgba(21, 19, 15, .6), 0 0 0 1px rgba(21, 19, 15, .06); }
.stage-photo img { width: 100%; height: auto; }
/* Fotos principales en <picture> (AVIF con respaldo WebP): caja de bloque explícita, la forma más compatible
   con Safari/iPhone (no se usa display: contents) */
picture { display: block; }
.cl-main picture { width: 100%; height: 100%; }
.stage-tag { position: absolute; z-index: 4; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .9rem; box-shadow: 0 10px 24px rgba(21, 19, 15, .25); }
.stage-tag span { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 3px 10px;
  font-family: var(--f-mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stage-tag::after { content: "→"; color: var(--gold-ink); }
.stage-tag:hover { color: var(--ink); background: #fff; }
@media (max-width: 640px) { .stage-tag { left: 10px; top: 10px; gap: 6px; padding-right: 10px; } .stage-tag .tg-model { display: none; } }
.spot { position: absolute; z-index: 3; width: 36px; height: 36px; transform: translate(-50%, -50%);
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); }
.spot span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; position: relative;
  background: var(--gold); border: 3px solid #fff; font-family: var(--f-mono); font-weight: 600; font-size: .9rem;
  box-shadow: 0 4px 12px rgba(21, 19, 15, .3); transition: transform .15s ease, background .15s ease, color .15s ease; }
.spot em { position: absolute; left: 50%; bottom: calc(100% + 10px); font-style: normal; font-weight: 700; font-size: .82rem; white-space: nowrap;
  background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translate(-50%, 4px);
  transition: opacity .15s ease, transform .15s ease; pointer-events: none; box-shadow: 0 6px 16px rgba(21, 19, 15, .3); }
.spot:hover span { transform: scale(1.12); }
.spot:hover em, .spot:focus-visible em, .spot[aria-pressed="true"] em { opacity: 1; transform: translate(-50%, 0); }
.spot[aria-pressed="true"] span { background: var(--ink); color: var(--gold); }
.spot[aria-pressed="true"] span::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--gold); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 640px) { .spot { width: 28px; height: 28px; } .spot span { font-size: .78rem; border-width: 2px; } .spot em { display: none; } }

.stage-panel { position: relative; z-index: 2; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -30px rgba(21, 19, 15, .45); }
.sp-photo { aspect-ratio: 16 / 11; border-radius: 10px; overflow: hidden; background: var(--mist); }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-photo.is-cut, .cat-photo.is-cut, .aside-photo.is-cut { background: radial-gradient(closest-side, rgba(217, 169, 63, .4), rgba(217, 169, 63, .08) 70%, rgba(217, 169, 63, 0)), #f6f3ec; }
.sp-photo.is-cut img, .cat-photo.is-cut img, .aside-photo.is-cut img { object-fit: contain; padding: 10px; }
.sp-body { display: grid; gap: 4px; padding-right: 6px; }
.sp-body .num { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--gold-ink); text-transform: uppercase; }
.sp-body .sp-title { font-family: var(--f-display); font-stretch: 72%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: 1.45rem;
  line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.sp-body p { color: var(--steel); font-size: .94rem; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 560px) { .stage-panel { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; } .sp-body .sp-title { font-size: 1.2rem; } .sp-body p { font-size: .88rem; } }
.chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; min-height: 36px; padding: 0 12px 0 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: var(--f-body); font-weight: 600; font-size: .86rem; }
.chips button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-family: var(--f-mono); font-size: .74rem; font-weight: 600; }
.chips button:hover { border-color: var(--gold); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button[aria-pressed="true"] span { background: var(--gold); color: var(--ink); }

/* Marcas atendidas */
.brands { border-block: 1px solid var(--line); background: var(--paper); }
.brands .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; padding-block: 22px; }
.brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 30px; }
.brands li { font-family: var(--f-display); font-stretch: 80%; font-variation-settings: "wdth" 80; font-weight: 800; font-size: 1.55rem;
  letter-spacing: .05em; text-transform: uppercase; color: #6f695e; }
.brands-note { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--steel); }
.brands-note svg { width: 22px; height: 22px; color: var(--gold-ink); flex: none; }
@media (max-width: 760px) { .brands-note { margin-left: 0; } }

/* Categorías con foto */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1060px) { .cats, .cats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats, .cats-3 { grid-template-columns: 1fr; } }
.cat { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; scroll-margin-top: 110px; }
.cat:hover { border-color: var(--gold); box-shadow: 0 22px 44px -28px rgba(21, 19, 15, .45); transform: translateY(-2px); }
.cat-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat:hover .cat-photo img { transform: scale(1.04); }
.cat-photo .no { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--gold); border-radius: 999px; padding: 3px 11px;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em; }
.cat-body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; }
.cat-body h3 { font-size: 1.32rem; }
.cat-body p { color: var(--steel); font-size: .95rem; }
.cat-detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--steel); font-size: .95rem; }
.cat-detail li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; }
.cat-detail li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; background: var(--gold); transform: rotate(45deg); }
.cat-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .92rem; font-weight: 700; }
.cat-links a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.cat-links a:hover { text-decoration: underline; }
.cat-links svg { width: 16px; height: 16px; color: #1aa851; }
.cat-links .cl-mail svg { color: var(--gold-ink); }

/* Productos con precio */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1060px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pcard { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.pcard:hover { border-color: var(--gold); box-shadow: 0 22px 44px -28px rgba(21, 19, 15, .45); transform: translateY(-2px); }
.pc-img { aspect-ratio: 1; overflow: hidden; background: var(--mist); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pc-img img { transform: scale(1.04); }
.pc-img.is-cut { background: radial-gradient(closest-side at 50% 52%, rgba(217, 169, 63, .5), rgba(217, 169, 63, .1) 68%, rgba(217, 169, 63, 0)), #f6f3ec; }
.pc-img.is-cut img { object-fit: contain; padding: 9%; filter: drop-shadow(0 14px 12px rgba(21, 19, 15, .2)); }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; }
.pc-body .price { margin-top: auto; padding-top: 4px; }
.pc-cat { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.pc-body h3 { font-size: 1.12rem; font-stretch: 84%; font-variation-settings: "wdth" 84; line-height: 1.08; }
.pc-compat { color: var(--steel); font-size: .86rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 4px 0 8px; }
.price small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.price b { font-family: var(--f-display); font-stretch: 78%; font-variation-settings: "wdth" 78; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price .ask { font-weight: 700; color: var(--gold-ink); }
.pc-actions { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 6px; }
.pc-actions .btn-wa { width: 100%; padding: 0 10px; }
.btn-mail { padding: 0; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-mail:hover { color: var(--ink); background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn-mail svg { width: 20px; height: 20px; }
@media (max-width: 460px) { .pc-body { padding: 12px 12px 14px; } .pc-body h3 { font-size: 1rem; } .price b { font-size: 1.3rem; } .pc-actions .btn-wa { padding: 0 6px; font-size: .86rem; gap: 6px; } .pc-actions .btn-wa svg { width: 18px; height: 18px; } }
.fineprint { margin-top: 18px; font-size: .86rem; color: var(--steel); max-width: 80ch; }

/* Collage: foto grande real + foto pequeña o recorte sin fondo */
.collage { position: relative; padding-bottom: 16%; }
.collage > .hazard { left: 5%; width: 44%; bottom: 6%; }
.cl-main { position: relative; z-index: 1; margin: 0; width: 86%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--mist);
  box-shadow: 0 34px 60px -34px rgba(21, 19, 15, .58); }
.cl-main img { width: 100%; height: 100%; object-fit: cover; }
.cl-sub { position: absolute; z-index: 2; right: 0; bottom: 0; margin: 0; width: 44%; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  border: 6px solid var(--paper); background: var(--mist); box-shadow: 0 26px 44px -24px rgba(21, 19, 15, .55); }
.cl-sub img { width: 100%; height: 100%; object-fit: cover; }
.cl-sub.is-cut { background: radial-gradient(closest-side at 50% 52%, rgba(217, 169, 63, .55), rgba(217, 169, 63, .12) 68%, rgba(217, 169, 63, 0)), #f6f3ec; }
.cl-sub.is-cut img { object-fit: contain; padding: 9%; filter: drop-shadow(0 12px 10px rgba(21, 19, 15, .25)); }
.ph-photo { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(21, 19, 15, .45); }
.ph-photo img { width: 100%; height: auto; }
.ph-photo.tall img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Maquinaria en venta: foto grande, miniaturas y precio */
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1060px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mgrid { grid-template-columns: 1fr; } }
.mcard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; scroll-margin-top: 110px; }
.mcard:hover { border-color: var(--gold); box-shadow: 0 26px 50px -30px rgba(21, 19, 15, .5); transform: translateY(-2px); }
.mc-media { position: relative; }
.mc-main { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; margin: 0; overflow: hidden;
  background: var(--mist); cursor: zoom-in; }
.mc-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mcard:hover .mc-main img { transform: scale(1.03); }
.mc-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(21, 19, 15, .72); color: #fff; transition: background .15s ease; }
.mc-main:hover .mc-zoom { background: var(--ink); color: var(--gold); }
.mc-zoom svg { width: 18px; height: 18px; }
.mc-badge { position: absolute; left: 12px; top: 12px; z-index: 2; pointer-events: none; background: var(--gold); color: var(--ink); border-radius: 999px;
  padding: 4px 12px; font-family: var(--f-mono); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(21, 19, 15, .25); }
.mc-thumbs { display: flex; gap: 8px; padding: 12px 16px 0; }
.mc-thumbs button { flex: 0 0 auto; width: 68px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--mist); cursor: pointer; opacity: .78; transition: opacity .15s ease, border-color .15s ease; }
.mc-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.mc-thumbs button:hover { opacity: 1; }
.mc-thumbs button[aria-pressed="true"] { border-color: var(--gold); opacity: 1; }
.mc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.mc-body h3 { font-size: 1.5rem; }
.mc-body p { color: var(--steel); font-size: .95rem; }
.mc-body .price { margin-top: auto; padding-top: 2px; }
.mc-body .price b { font-size: 1.75rem; }
.mc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mc-actions .btn { width: 100%; padding: 0 10px; }
.market { margin-top: 10px; display: grid; gap: 8px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; }
.market p { color: var(--ink); }
.market b { font-variant-numeric: tabular-nums; }
.market small { color: var(--steel); font-size: .82rem; }

/* Lista de precios */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ptable { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .96rem; }
.ptable th, .ptable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.ptable thead th { font-family: var(--f-mono); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); background: #faf9f6; }
.ptable tbody th { font-weight: 700; }
.ptable td:first-child { color: var(--gold-ink); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.ptable td:nth-child(3) { color: var(--steel); }
.ptable td.num { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.ptable thead th:last-child { text-align: right; }
.ptable tbody tr:hover { background: #fcfaf4; }

/* Fotos del blog */
.post-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.post-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-photo img { transform: scale(1.04); }
.post-card { grid-template-rows: auto 1fr; }
.aside-photo { margin: 0; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.aside-photo img { width: 100%; height: 100%; object-fit: cover; }

/* En celular la foto de la máquina va justo después del título */
@media (max-width: 920px) {
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-copy .eyebrow { align-self: flex-start; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; }
  .hero-copy h1 { order: 2; }
  .hero .stage { order: 3; }
  .hero-copy .lead { order: 4; }
  .hero-copy .hero-actions { order: 5; }
  .hero-copy .trust { order: 6; }
}

/* Lo más buscado (mosaico) */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tile { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper);
  text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tile:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 20px 40px -26px rgba(21, 19, 15, .45); }
.tile-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--mist); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-img.is-cut { background: radial-gradient(closest-side at 50% 55%, rgba(217, 169, 63, .5), rgba(217, 169, 63, .1) 68%, rgba(217, 169, 63, 0)), #f6f3ec; }
.tile-img.is-cut img { object-fit: contain; padding: 10%; filter: drop-shadow(0 12px 10px rgba(21, 19, 15, .22)); }
.tile-label { display: grid; gap: 2px; padding: 12px 14px 14px; }
.tile-label b { font-family: var(--f-display); font-stretch: 80%; font-variation-settings: "wdth" 80; font-weight: 800; font-size: 1.12rem; line-height: 1.05; text-transform: uppercase; }
.tile-label span { font-size: .82rem; font-weight: 700; color: var(--gold-ink); }
.tile-label span::after { content: " →"; }
.tiles-band { padding-block: clamp(48px, 6vw, 80px); }


/* Enlaces relacionados */
.related-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid .eyebrow { margin-bottom: 14px; }
.chips-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chips-links a:hover { border-color: var(--gold); color: var(--ink); }
.read-next { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink); text-decoration: none; }
.read-next:hover { border-color: var(--gold); color: var(--ink); }
.read-next img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.read-next span { display: grid; gap: 4px; }
.read-next small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.read-next b { font-family: var(--f-display); font-stretch: 84%; font-variation-settings: "wdth" 84; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.read-next em { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--gold-ink); }
@media (max-width: 460px) { .read-next { grid-template-columns: 110px minmax(0, 1fr); } }
.site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.pgrid.n1 { grid-template-columns: minmax(0, 290px); }
.pgrid.n2 { grid-template-columns: repeat(2, minmax(0, 290px)); }
.pgrid.n3 { grid-template-columns: repeat(3, minmax(0, 290px)); }
@media (max-width: 800px) { .pgrid.few { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Encabezado de sección con botón a la derecha */
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; }
.section-head.row > div { display: grid; gap: 14px; max-width: 760px; }
.machines-band { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 55%, var(--mist) 100%); }

/* Formulario: enviar por WhatsApp o por correo */
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { flex: 1 1 220px; }
.form-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Foto ampliada de la maquinaria */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible; color: var(--on-night); }
.lightbox::backdrop { background: rgba(12, 11, 10, .92); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox img { width: auto; height: auto; max-width: min(96vw, 1400px); max-height: 84vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { font-weight: 600; text-align: center; padding-inline: 12px; }
.lb-close { position: fixed; z-index: 2; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font-size: 1.9rem; line-height: 1; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.lb-close:hover { background: var(--gold); }

/* Celular: tarjetas por sistema compactas (foto a la izquierda) */
@media (max-width: 560px) {
  .cats { gap: 12px; }
  .cat:not(.cat-detail) { grid-template-columns: 118px minmax(0, 1fr); grid-template-rows: none; }
  .cat:not(.cat-detail) .cat-photo { aspect-ratio: auto; height: 100%; min-height: 132px; }
  .cat:not(.cat-detail) .cat-photo .no { left: 8px; top: 8px; }
  .cat:not(.cat-detail) .cat-body { gap: 6px; padding: 14px 14px 14px 16px; }
  .cat:not(.cat-detail) .cat-body h3 { font-size: 1.15rem; }
  .cat:not(.cat-detail) .cat-body p { font-size: .88rem; }
  .cat:not(.cat-detail) .cat-links { padding-top: 6px; }
}

/* Tienda en línea */
.pc-actions .btn-gold { flex: 1 1 100%; }
.carrito-col { display: grid; gap: 12px; align-content: start; }
.carrito-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.carrito-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--mist); }
.carrito-item b { display: block; }
.carrito-item .ci-precio { color: var(--steel); font-size: 14px; }
.carrito-item .ci-controles { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.carrito-item input { width: 68px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.carrito-item button { background: none; border: 0; padding: 4px; color: var(--gold-ink); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.carrito-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; }
.carrito-vacio { color: var(--steel); padding: 16px 0; }
@media (max-width: 480px) { .carrito-item { grid-template-columns: 52px 1fr; } .carrito-item > :last-child { grid-column: 2; } .carrito-item img { width: 52px; height: 52px; } }
