/* Estilo de plano dibujado a mano por un ingeniero: plancha de corte de fondo (grilla, ángulos, reglas y plantillas,
   en img/plancha.svg), contenedores de un solo trazo fino que se pasa de las esquinas, rotulado en mayúsculas a mano
   y cotas con flechas. Los colores salen del logo de Norik: azul petróleo sobre un fondo claro y frío, con el
   amarillo de acento como filete arriba de cada tarjeta. */
:root {
  color-scheme: light;
  --bg: #F2F6F8;
  --surface: #FFFFFF;
  --tile: #F6F9FA;
  --ink: #1E2A2E;
  --sub: #4F6066;
  --text: #3D4A4F;
  --primary: #2A6679;
  --primary-dark: #1D4D5B;
  --gold: #F4B015;
  --gold-ink: #23210F;
  --foot: #1D4D5B;
  --foot-ink: #FFFFFF;
  --foot-sub: #D5E3E6;
  --foot-mute: #A9C3C9;
  --stamp: #4F595C;
  /* Trazo: la línea de los contenedores, la suave de las divisiones y la de las cotas */
  --line: rgba(30, 42, 46, .8);
  --line-soft: rgba(30, 42, 46, .34);
  --cota: #7FA0AC;
  --head: "Patrick Hand SC", "Patrick Hand", "Segoe Print", cursive;
  --body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Cuánto se pasa la línea de cada esquina: distinto en cada lado, como con regla y lápiz */
  --oL: -11px; --oR: -7px; --oT: -8px; --oB: -12px;
  --grid: rgba(42, 102, 121, .095);
  --grid-fine: rgba(42, 102, 121, .045);
  --arrow-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath d='M0 3L8 .5V5.5Z' fill='%235F8794'/%3E%3C/svg%3E");
  --arrow-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath d='M8 3L0 .5V5.5Z' fill='%235F8794'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.locked { overflow: hidden; }
/* La grilla queda alineada con la plancha y la regla: hay una línea en el centro exacto de la página */
body {
  margin: 0; color: var(--ink); font-family: var(--body); min-height: 100vh; overflow-x: clip;
  background-color: var(--bg);
  background-image: url(img/plancha.svg),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 1440px 8000px, 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  background-position: center top, calc(50% + 30px) 0, calc(50% + 30px) 0, calc(50% + 30px) 0, calc(50% + 30px) 0;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px dashed var(--primary); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 8px; }
@keyframes nkIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Contenedor de plano: dos pseudo-elementos dibujan las líneas, las horizontales y las verticales, y cada una se
   pasa un poco de la esquina. Los botones secundarios usan lo mismo con menos sobrante. */
.card, .pp, .pp-block, .hero-tilewrap, .ftr-rotulo, .cta-ghost, .buy.ask, .modal-buy.ask, .hero-cats a, .share-btn { position: relative; }
.card::before, .pp::before, .pp-block::before, .hero-tilewrap::before, .ftr-rotulo::before,
.cta-ghost::before, .buy.ask::before, .modal-buy.ask::before, .hero-cats a::before, .share-btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--oL); right: var(--oR); pointer-events: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.card::after, .pp::after, .pp-block::after, .hero-tilewrap::after, .ftr-rotulo::after,
.cta-ghost::after, .buy.ask::after, .modal-buy.ask::after, .hero-cats a::after, .share-btn::after {
  content: ""; position: absolute; top: var(--oT); bottom: var(--oB); left: 0; right: 0; pointer-events: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.cta-ghost, .buy.ask, .modal-buy.ask, .hero-cats a, .share-btn { --oL: -5px; --oR: -4px; --oT: -4px; --oB: -6px; }
.hero-cats a { --line: var(--line-soft); }
.card-bar { position: absolute; top: 0; left: 0; z-index: 2; width: 48px; height: 3px; background: var(--gold); }
.hl { color: var(--primary); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 5px; text-underline-offset: 8px; text-decoration-skip-ink: none; }

/* Encabezado, con la regla abajo */
.hdr {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap;
  padding: 10px 22px 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-ruler { flex: 0 0 calc(100% + 44px); height: 22px; margin: 4px -22px 0; border-top: 1px solid #D6E1E6; background: url(img/regla.svg) center top / 2400px 22px no-repeat; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand .mark { height: 40px; width: auto; flex: 0 0 auto; }
.brand .word { height: 17px; width: auto; flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.nav a b { font-weight: 400; color: var(--primary); margin-right: 6px; }
.nav a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a.nav-wa { min-height: 42px; color: #fff; background: var(--primary); padding: 0 16px; border-radius: 2px; }
.nav a.nav-wa:hover { background: var(--primary-dark); text-decoration: none; }

/* Botones: llenos para comprar, de contorno pasado para lo secundario. Todo rotulado a mano en mayúsculas. */
.cta, .buy, .modal-buy, .ftr-btn, .cta-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; border: 0; border-radius: 2px;
  transition: background .15s, color .15s;
}
.cta, .buy, .modal-buy { background: var(--primary); color: #fff; }
.cta:hover, .buy:hover, .modal-buy:hover { background: var(--primary-dark); color: #fff; }
.cta { min-height: 50px; padding: 0 26px; font-size: 19px; }
.cta-ghost { min-height: 50px; padding: 0 22px; font-size: 19px; background: var(--surface); color: var(--ink); }
.cta-ghost:hover { background: var(--tile); color: var(--primary); }

/* Portada */
.hero { position: relative; }
.hero-in {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 76px 22px 92px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  background: url(img/rosa.svg) no-repeat calc(50% + 36px) calc(100% - 40px) / 150px 150px;
}
.hero-text { min-width: 0; order: 1; }
.hero-media { position: relative; min-width: 0; order: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--head); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 36px; border-top: 1px solid currentColor; }
.hero h1 { margin: 0 0 24px; font-family: var(--head); font-weight: 400; font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: .03em; text-transform: uppercase; text-wrap: balance; }
.hero-sub { margin: 0 0 30px; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.hero-cats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-cats a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 0; text-decoration: none;
  font-family: var(--head); font-size: 16px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); background: rgba(255, 255, 255, .75); transition: background .2s;
}
.hero-cats a b { display: inline-flex; align-items: center; justify-content: center; width: 34px; align-self: stretch; font-weight: 400; color: var(--primary); border-right: 1px solid var(--line-soft); }
.hero-cats a:hover { background: #fff; color: var(--primary); }
.hero-tilewrap { width: 100%; max-width: 460px; margin-left: auto; background: var(--surface); }
.hero-sheet {
  position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px;
  font-family: var(--head); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub);
}
.hero-sheet::after, .card-ref::after { content: ""; position: absolute; left: -7px; right: -7px; bottom: 0; border-bottom: 1px solid var(--line-soft); }
.hero-tile {
  position: relative; display: flex; align-items: center; justify-content: center; width: auto; height: 360px; margin: 18px 18px 0;
  background: #fff; overflow: hidden; cursor: pointer; text-decoration: none;
}
.hero-tile img, .hero-tile .ph { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: opacity .28s ease; }
.hero-tile.fade img, .hero-tile.fade .ph { opacity: 0; }
.hero-tag { position: absolute; top: 0; left: 0; padding: 2px 9px; font-family: var(--head); font-size: 15px; color: var(--primary); background: var(--surface); border: 1px solid var(--line-soft); z-index: 2; }
.hero-tilewrap > .cota { margin: 12px 18px 0; }
.hero-badge {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px;
  color: var(--ink); font-family: var(--head); font-size: 21px; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.hero-badge::before { content: ""; position: absolute; left: -7px; right: -7px; top: 0; border-top: 1px solid var(--line-soft); }
.hero-badge::after { content: "Ver →"; margin-left: auto; padding-left: 10px; font-size: 16px; color: var(--primary); white-space: nowrap; }
.hero-badge:hover { color: var(--primary); }
.hero-dots { display: flex; justify-content: center; gap: 6px; width: 100%; max-width: 460px; margin-top: 24px; margin-left: auto; }
.hero-dots button {
  width: 44px; height: 44px; padding: 0; border-radius: 2px; cursor: pointer; font-family: var(--head); font-size: 15px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-soft); transition: background .2s, color .2s;
}
.hero-dots button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Cota: líneas de referencia a los costados, flechas llenas y la medida a mano en el medio */
.cota { display: flex; align-items: center; height: 18px; color: var(--primary); font-family: var(--head); font-size: 15px; line-height: 1; border-left: 1px solid var(--cota); border-right: 1px solid var(--cota); }
.cota::before, .cota::after { content: ""; flex: 1; min-width: 14px; height: 6px; background: var(--arrow-l) left center / 8px 6px no-repeat, linear-gradient(var(--cota), var(--cota)) center / 100% 1px no-repeat; }
.cota::after { background: var(--arrow-r) right center / 8px 6px no-repeat, linear-gradient(var(--cota), var(--cota)) center / 100% 1px no-repeat; }
.cota span { padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Secciones: llamada en círculo con letra y hoja, y una línea guía hasta la cantidad de productos */
main { max-width: 1180px; margin: 0 auto; padding: 8px 22px 40px; }
.sec { scroll-margin-top: 104px; padding: 64px 0 24px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 22px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head::after {
  content: ""; order: 1; flex: 1 1 80px; min-width: 60px; height: 7px; margin-bottom: 10px;
  background: radial-gradient(circle at calc(100% - 3.5px) 50%, transparent 2.5px, var(--line) 2.6px 3.5px, transparent 3.6px) right center / 7px 7px no-repeat,
    linear-gradient(var(--line-soft), var(--line-soft)) left center / calc(100% - 7px) 1px no-repeat;
}
.sec-head > :last-child:not(.sec-title) { order: 2; }
.sec-title { display: flex; align-items: center; gap: 22px; min-width: 0; }
.sec-n {
  position: relative; display: flex; flex-direction: column; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%;
  font-family: var(--head); background: var(--surface); border: 1px solid var(--line);
}
.sec-n::before { content: ""; position: absolute; top: 50%; left: -11px; right: -11px; border-top: 1px solid var(--line); }
.sec-n b { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; font-weight: 400; font-size: 23px; line-height: 1; }
.sec-n i { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; font-style: normal; font-size: 13px; line-height: 1; color: var(--sub); }
.sec-kicker { display: block; font-family: var(--head); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.sec-pill { display: inline-block; padding: 3px 10px; font-family: var(--head); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--sec); border: 1px solid var(--sec); margin-bottom: 10px; }
.sec h2 { margin: 2px 0 4px; font-family: var(--head); font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; }
.sec-blurb { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--sub); max-width: 560px; }
.sec-count { font-family: var(--head); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); white-space: nowrap; margin-bottom: 2px; }
/* Piezas dibujadas en el hueco que dejan los rubros de dos productos (solo se ven con tres columnas) */
@media (min-width: 1100px) {
  #sec-aire .grid { background: url(img/brida.svg) no-repeat calc(100% - 4px) 40px / 420px 460px; }
  #sec-taller .grid { background: url(img/tuerca.svg) no-repeat calc(100% + 6px) 70px / 360px 350px; }
  #sec-mayor .sec-cta { background: url(img/escala.svg) no-repeat right center / 404px 44px; }
}

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 32px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.card-ref {
  position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px;
  font-family: var(--head); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub);
}
.card-img {
  position: relative; height: 236px; padding: 14px 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #fff;
}
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .35s ease; }
.card-img:hover img { transform: scale(1.04); }
.stock-badge {
  position: absolute; top: 14px; left: 14px; padding: 3px 9px; font-family: var(--head); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--stamp); background: #fff; border: 1px solid var(--stamp); transform: rotate(-4deg); z-index: 2;
}
.card.out .card-img img { filter: grayscale(.35); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-head { cursor: pointer; }
.name { margin: 0; font-family: var(--head); font-weight: 400; font-size: 23px; line-height: 1.12; letter-spacing: .03em; text-transform: uppercase; }
.name a:hover { color: var(--primary); }
.sublabel { display: inline-block; margin-top: 4px; font-family: var(--head); font-size: 15px; color: var(--sub); }
.desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desc.full { display: block; overflow: visible; }

.optrows { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.optlabel { font-family: var(--head); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 11px; cursor: pointer; font-family: var(--head); font-size: 15px; text-transform: uppercase;
  white-space: nowrap; transition: background .15s, color .15s; color: var(--ink); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 2px;
}
.chip:hover { background: var(--tile); border-color: var(--line); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { color: #fff; background: var(--primary); border-color: var(--primary); }

/* Características numeradas como referencias de plano */
.feats { position: relative; display: flex; flex-direction: column; gap: 7px; margin-top: 2px; padding-top: 12px; counter-reset: ref; }
.feats::before { content: ""; position: absolute; top: 0; left: -6px; right: -6px; border-top: 1px dashed var(--line-soft); }
.feat { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text); counter-increment: ref; }
.feat::before {
  content: counter(ref); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 20px; height: 20px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--primary); font-family: var(--head); font-size: 12px; line-height: 1;
}
.card-actions { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 6px; }
.buy { flex: 1; min-height: 44px; padding: 0 14px; font-size: 17px; text-align: center; }
.buy.ask, .modal-buy.ask { background: var(--surface); color: var(--ink); }
.buy.ask:hover, .modal-buy.ask:hover { background: var(--tile); color: var(--primary); }
.detail { display: inline-flex; align-items: center; min-height: 44px; background: transparent; border: 0; cursor: pointer; color: var(--primary); font-family: var(--head); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; padding: 0 2px; }
.detail::after { content: " →"; white-space: pre; }
.detail:hover { text-decoration: underline; text-underline-offset: 5px; }
.ph { display: grid; place-items: center; text-align: center; padding: 10px; color: var(--sub); font-family: var(--head); font-size: 15px; }

/* Por mayor: los pasos como recuadros de un diagrama, con su flecha */
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 32px; }
.card.step .card-bar { display: none; }
.card.step:last-child { background: #FFFBF0; }
.card.step:last-child .card-bar { display: block; width: 100%; }
.step .card-body { padding: 20px 22px 24px; gap: 8px; }
.step-n { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--head); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.step-n::after { content: ""; flex: 1; height: 6px; background: var(--arrow-r) right center / 8px 6px no-repeat, linear-gradient(#9DB5BE, #9DB5BE) left center / 100% 1px no-repeat; }
.step .name { font-size: 23px; }
.step .desc { font-size: 15px; }
.sec-cta { margin: 34px 0 0; }

/* Pie: azul petróleo, con el rótulo del plano abajo */
.ftr {
  position: relative; margin-top: 56px; color: var(--foot-ink);
  background-color: var(--foot); background-image: linear-gradient(rgba(213, 227, 230, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(213, 227, 230, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ftr-in { position: relative; max-width: 1180px; margin: 0 auto; padding: 44px 22px calc(36px + var(--bar-space, 0px)); }
.ftr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; }
.ftr .brand .mark { height: 42px; }
.ftr .brand .word { height: 18px; }
.ftr .brand img { filter: brightness(0) invert(1); }
.ftr-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.ftr-list a.lnk { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--foot-sub); font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; transition: color .15s; }
.ftr-list a.lnk:hover { color: var(--gold); }
.ftr-btn { min-height: 44px; padding: 0 18px; font-size: 17px; background: var(--gold); color: var(--gold-ink); }
.ftr-btn:hover { background: #fff; }
.ftr-btn.ghost { background: transparent; color: var(--foot-ink); border: 1px solid rgba(213, 227, 230, .5); }
.ftr-btn.ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.ftr-rotulo { --line: rgba(213, 227, 230, .55); display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 36px; font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.ftr-rotulo > div { padding: 10px 14px; border-right: 1px solid rgba(213, 227, 230, .3); }
.ftr-rotulo > div:last-child { border-right: 0; }
.ftr-rotulo .wide { grid-column: span 2; }
.ftr-rotulo small { display: block; margin-bottom: 2px; font-size: 14px; letter-spacing: .14em; color: var(--foot-mute); }

/* Ventana de detalle */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(29, 77, 91, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { position: relative; display: flex; flex-direction: row; width: 100%; max-width: 1000px; max-height: 86vh; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 24px 60px rgba(14, 38, 46, .28); animation: nkIn .22s ease; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700;
}
.modal-imgcol { flex: 0 0 auto; width: 430px; background: #fff; border-right: 1px solid var(--line-soft); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-img { width: 100%; height: min(54vh, 430px); max-height: 430px; padding: 10px; background: #fff; border: 1px solid var(--line-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.modal-img img, .modal-img .ph { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs button { width: 58px; height: 58px; flex: 0 0 auto; padding: 4px; cursor: pointer; background: #fff; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 2px; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--primary); }
.thumbs img, .thumbs .ph { width: 100%; height: 100%; object-fit: contain; font-size: 0; padding: 0; }
.modal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 30px 32px; overflow-y: auto; max-height: 86vh; }
.modal-pill { display: inline-block; align-self: flex-start; padding: 2px 10px; font-family: var(--head); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); border: 1px solid var(--primary); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-pill.out { color: var(--stamp); border-color: var(--stamp); transform: rotate(-3deg); }
.modal-title { margin: 0; font-family: var(--head); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; padding-right: 44px; }
.modal-desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.modal-label { font-family: var(--head); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 9px; }
.modal-info .chips { gap: 8px; }
.modal-info .optrows { gap: 16px; margin: 0; }
.modal-info .optlabel { margin-bottom: 9px; }
.modal-info .chip { min-height: 44px; padding: 0 14px; font-size: 17px; }
.modal-info .feats { gap: 10px; margin: 0; padding-top: 0; }
.modal-info .feats::before { display: none; }
.modal-info .feat { gap: 12px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { display: inline-block; padding: 2px 10px; font-family: var(--head); font-size: 14px; color: var(--sub); border: 1px dashed var(--line-soft); border-radius: 2px; }
.modal-actions { display: flex; align-items: stretch; gap: 14px; margin-top: 4px; }
.modal-buy { flex: 1; min-width: 0; min-height: 52px; padding: 10px 14px; font-size: 18px; text-align: center; }
.share-wrap { position: relative; flex: 0 0 auto; display: flex; align-items: stretch; }
.share-btn { width: 52px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; border-radius: 0; background: var(--surface); color: var(--primary); transition: background .2s; }
.share-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.share-pop { position: absolute; bottom: calc(100% + 14px); right: 0; z-index: 7; min-width: 232px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 14px 34px rgba(14, 38, 46, .2); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.share-pop::after { content: ""; position: absolute; bottom: -7px; right: 20px; width: 12px; height: 12px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.share-pop button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 2px; background: transparent; cursor: pointer; text-align: left; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: background .15s; }
.share-pop button:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.share-pop .ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid var(--line-soft); font-family: var(--body); font-weight: 800; font-size: 13px; }
.share-pop .ico.wa { border-color: #25D366; background: #25D366; color: #fff; }
.share-pop .ico.dark { background: #111; border-color: #111; color: #fff; }
.share-pop .ico.fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-pop .ico.ok { border-color: transparent; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.mayor { position: relative; padding-top: 18px; margin-top: 2px; }
.mayor::before { content: ""; position: absolute; top: 0; left: -6px; right: -6px; border-top: 1px dashed var(--line-soft); }
.mayor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.qty { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-family: var(--head); font-size: 22px; color: var(--ink); }
.qty button:hover { background: var(--tile); }
.qty input { width: 56px; height: 44px; border: 0; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); border-radius: 0; text-align: center; font: 400 19px var(--head); background: transparent; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mayor .cta-ghost { min-height: 46px; padding: 0 18px; font-size: 17px; }
.mayor-note { margin: 12px 0 0; font-size: 14px; color: var(--sub); }
.mayor-note a { color: var(--primary); font-weight: 700; }

/* Pedido por mayor */
.cartbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; background: var(--ink); color: #fff;
  border-radius: 2px; border-top: 3px solid var(--gold); padding: 10px 10px 10px 18px; box-shadow: 0 14px 34px rgba(14, 38, 46, .3);
}
.cartbar p { margin: 0; font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.cartbar button, .cartbar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding: 0 16px; border-radius: 2px; font-family: var(--head); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; transition: all .2s; }
.cartbar button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.cartbar button:hover { border-color: #fff; }
.cartbar a { background: var(--gold); color: var(--gold-ink); border: 1px solid var(--gold); }
.cartbar a:hover { background: #fff; border-color: #fff; }
.modal.cart { flex-direction: column; max-width: 560px; overflow: auto; padding: 28px 28px 24px; gap: 16px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed var(--line-soft); }
.cart-thumb { width: 54px; height: 54px; border: 1px solid var(--line-soft); border-radius: 2px; overflow: hidden; background: #fff; grid-row: span 2; }
.cart-thumb img, .cart-thumb .ph { width: 100%; height: 100%; object-fit: contain; padding: 4px; font-size: 0; }
.cart-name { font-family: var(--head); font-size: 18px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.cart-rm { grid-column: 2; justify-self: start; }
.cart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 759px) {
  .hdr { padding: 8px 14px 0; gap: 2px; }
  .hdr-ruler { flex-basis: calc(100% + 28px); margin: 2px -14px 0; }
  .brand .mark { height: 36px; }
  .brand .word { height: 16px; }
  .nav { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 18px; overflow-x: auto; }
  .nav a { font-size: 17px; }
  .nav a.nav-wa { margin-left: auto; padding: 0 12px; }
  .sec { scroll-margin-top: 128px; padding-top: 44px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head::after { display: none; }
  .sec-title { gap: 18px; }
  .sec-n { width: 52px; height: 52px; }
  .sec-n b { font-size: 20px; }
  .sec-n i { font-size: 12px; }
  .sec h2 { font-size: 32px; }
  .grid { gap: 36px; }
  .ftr-in { padding-top: 34px; }
  .ftr-rotulo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-rotulo > div { border-bottom: 1px solid rgba(213, 227, 230, .3); }
  .hero-in { grid-template-columns: 1fr; gap: 44px; padding: 40px 16px 56px; background: none; }
  .hero-media { order: 0; }
  .hero-tilewrap, .hero-dots { max-width: 380px; margin-right: auto; }
  .hero-tile { height: min(66vw, 280px); }
  .hero-badge { font-size: 19px; }
  .hero-dots button { width: 40px; height: 40px; }
  .card-img { height: min(62vw, 236px); }
  .overlay { padding: 12px; }
  .modal { flex-direction: column; max-width: 520px; max-height: 92vh; overflow: auto; }
  .modal-imgcol { width: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .modal-img { height: min(72vw, 360px); max-height: 360px; }
  .modal-info { padding: 22px; overflow-y: visible; max-height: none; }
  .modal-title { font-size: 28px; }
  .modal.cart { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal { animation: none !important; }
  .card-img img, .cta, .buy, .modal-buy { transition: none; }
}

/* Página de producto: el mismo detalle de la ventana, puesto en la página como una lámina */
.name a { color: inherit; text-decoration: none; }
a.chip { text-decoration: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 26px 0 24px; font-family: var(--head); font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }
.crumbs a { color: var(--primary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs b { color: var(--ink); font-weight: 400; }
.pp { background: var(--surface); }
.pp-main { display: flex; flex-direction: row; }
.pp .modal-imgcol { width: 46%; max-width: 520px; padding: 30px 24px 24px; background: transparent; }
.pp .modal-img { height: min(60vh, 470px); max-height: 470px; }
.pp .modal-info { max-height: none; overflow: visible; padding: 34px 34px 30px; }
.pp .modal-title { font-size: clamp(32px, 3.8vw, 48px); padding-right: 0; }
.notfound { padding-top: 56px; }
.notfound h1 { margin: 0 0 8px; font-family: var(--head); font-weight: 400; font-size: clamp(36px, 4.8vw, 54px); line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; }
@media (max-width: 759px) {
  .crumbs { padding: 16px 0 20px; font-size: 15px; }
  .pp-main { flex-direction: column; }
  .pp .modal-imgcol { width: auto; max-width: none; padding: 22px 18px 18px; }
  .pp .modal-img { height: min(78vw, 380px); }
  .pp .modal-info { padding: 22px; }
}
.pp-more { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px 32px; margin-top: 40px; align-items: start; }
.pp-block { background: var(--surface); padding: 26px 28px; }
.pp-block h2 { margin: 0 0 16px; font-family: var(--head); font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; }
.pp-text p, .qa p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.pp-text p:last-child, .qa:last-child p { margin-bottom: 0; }
.pp-faq { grid-column: 1 / -1; counter-reset: qa; }
.qa { counter-increment: qa; }
.qa h3 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 6px; font-family: var(--head); font-weight: 400; font-size: 20px; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.qa h3::before {
  content: counter(qa); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--primary); font-size: 14px; line-height: 1;
}
.qa p { padding-left: 38px; }
.qa + .qa { border-top: 1px dashed var(--line-soft); padding-top: 16px; margin-top: 4px; }
/* Ficha técnica como el rótulo de un plano: celdas con el dato a la izquierda */
.specs { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.6fr); border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.specs div:last-child { border-bottom: 0; }
.specs dt { padding: 10px 14px; border-right: 1px solid var(--line-soft); font-family: var(--head); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.specs dd { margin: 0; padding: 10px 14px; font-weight: 700; }
@media (max-width: 759px) {
  .pp-more { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
  .pp-block { padding: 20px; }
}
