/* ============================================================
   CastelWare Industrial — hoja de estilos
   Página estática de catálogo. Sin dependencias externas.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --blue:        #1668e0;
  --blue-dark:   #0f4fb8;
  --blue-light:  #4a90f7;
  --ink:         #0c1015;
  --ink-2:       #141b23;
  --ink-3:       #1d2630;
  --paper:       #ffffff;
  --surface:     #f1f3f5;
  --surface-2:   #e8ebee;
  --line:        #e1e5ea;
  --line-strong: #cfd5dc;
  --text:        #131920;
  --muted:       #6c7681;
  --muted-2:     #9aa3ad;

  --display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell: 1280px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(12, 16, 21, .06);
  --shadow-md: 0 10px 24px rgba(12, 16, 21, .10);
  --shadow-lg: 0 24px 60px rgba(12, 16, 21, .22);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* El atributo hidden debe ganarle a cualquier display del autor */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: .98;
  margin: 0;
  letter-spacing: .005em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 60;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 104, 224, .32);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22, 104, 224, .38); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* WhatsApp: botón claro con verde de la marca, para no competir con el azul. */
.btn--wa {
  background: #eefaf2;
  color: #127a45;
  border-color: #bfe3cd;
}
.btn--wa:hover {
  background: #ddf5e6;
  border-color: #127a45;
  color: #0c5c34;
  transform: translateY(-1px);
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.icon-btn:hover { background: var(--surface); color: var(--blue); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand img {
  height: 54px;
  width: auto;
  border-radius: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-link:hover { color: var(--blue); border-bottom-color: var(--blue); }

.nav-pill {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background-color .18s var(--ease);
}
.nav-pill:hover { background: var(--blue-dark); }

.header-actions { display: flex; align-items: center; gap: 2px; }
.header-actions .divider {
  width: 1px; height: 26px;
  background: var(--line-strong);
  margin: 0 12px;
}

.cart-badge {
  position: absolute;
  top: 2px; right: 0;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  box-shadow: 0 0 0 2px var(--paper);
}

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 11px 10px;
  gap: 4px;
  flex-direction: column;
  justify-content: center;
}
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Fondo industrial: degradado + retícula tipo plano + brillo azul */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(22, 104, 224, .34) 0%, rgba(22, 104, 224, 0) 58%),
    radial-gradient(80% 70% at 12% 100%, rgba(74, 144, 247, .16) 0%, rgba(74, 144, 247, 0) 60%),
    linear-gradient(180deg, #0f151c 0%, #0a0e13 60%, #0c1015 100%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: repeating-linear-gradient(115deg, var(--blue) 0 18px, #0c1015 18px 36px);
  opacity: .85;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  padding-block: 72px 80px;
}

.hero__eyebrow {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(38px, 5.4vw, 74px);
  font-weight: 700;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.hero__title span { display: block; }

.hero__media {
  position: relative;
  margin: 0;
  background: linear-gradient(160deg, #f4f6f8 0%, #dfe4ea 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  padding: 22px 22px 0;
  box-shadow: var(--shadow-lg);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero__media figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 -22px;
  padding: 16px 22px;
  background: var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0 0 5px 5px;
}
.hero__media figcaption strong {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero__media figcaption .code {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted-2);
}

/* ============================================================
   CATÁLOGO
   ============================================================ */
.catalog {
  background: var(--surface);
  padding-block: 54px 72px;
  border-top: 1px solid var(--line);
}

.catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.catalog__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.catalog__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(340px, 74vw);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 104, 224, .14); }
.search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 13px 0;
  outline: none;
  font-size: 15px;
}
.search input::placeholder { color: var(--muted-2); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.select {
  position: relative;
  display: block;
}
.select::after {
  content: "";
  position: absolute;
  right: 15px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 40px 13px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.select select:hover { border-color: var(--muted-2); }
.select select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 104, 224, .14); }

.catalog__count {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

/* ---------- Tarjeta de producto ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .35s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.placeholder {
  color: #b9c0c8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.card__media .placeholder { width: 62%; max-width: 130px; }
.placeholder--sm { width: 32px; }
.placeholder--stage { width: 52%; max-width: 240px; }

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(12, 16, 21, 0) 46%, rgba(12, 16, 21, .82));
  color: #fff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.card:hover .card__overlay,
.card__overlay:focus-visible { opacity: 1; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px 16px;
}
.card__name {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text);
}
.card__code {
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
  text-transform: uppercase;
}
.card__specs {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--blue-dark);
  font-weight: 600;
}

/* Precios en la tarjeta: efectivo/transferencia arriba y más grande,
   tarjeta/tienda abajo en gris. */
.card__precios {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.card__precio {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: .01em;
  color: var(--muted);
}
.card__precio span { white-space: nowrap; }
.card__precio strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.card__precio--tienda strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.card__add {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.card:hover .card__add,
.card__add:focus-visible { opacity: 1; transform: translateY(0); }
.card__add:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.card__add svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.empty {
  margin-top: 40px;
  padding: 44px;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.contact { background: var(--surface); padding-block: 76px; border-top: 1px solid var(--line); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.contact h2 { font-size: clamp(24px, 3vw, 36px); text-transform: uppercase; margin-bottom: 14px; }
.contact__inner > div > p:last-child { color: var(--muted); max-width: 46ch; }

/* Los tres canales de contacto: una tarjeta por red, apiladas. Reemplazaron al
   formulario (no hay backend que reciba consultas). */
.redes { display: grid; gap: 12px; }

.redes__card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              transform .18s var(--ease);
}
.redes__card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.redes__icono {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.redes__icono svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Un color por red, sólo en el círculo del icono: el resto sigue el tema. */
.redes__card--wa .redes__icono { background: #eefaf2; color: #127a45; }
.redes__card--ig .redes__icono { background: #fdeef6; color: #c13584; }
.redes__card--yt .redes__icono { background: #fdeeee; color: #c0392b; }

.redes__nombre {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.redes__detalle { display: block; font-size: 14px; color: var(--muted); }

.redes__flecha {
  width: 20px;
  height: 20px;
  justify-self: end;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .18s var(--ease), transform .18s var(--ease);
}
.redes__card:hover .redes__flecha { stroke: var(--blue); transform: translateX(2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding-top: 46px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.brand--footer img { height: 48px; border-radius: 3px; }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
}
.footer-nav a {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #d5dbe2;
  transition: color .18s var(--ease);
}
.footer-nav a:hover { color: #fff; }

.socials { display: flex; gap: 6px; }
.socials .icon-btn { color: #cfd6de; border: 1px solid rgba(255, 255, 255, .14); }
.socials .icon-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.legal {
  padding: 18px 24px 26px;
  text-align: center;
  font-size: 12.5px;
  color: #6f7986;
}

/* ============================================================
   FICHA DE PRODUCTO (dialog)
   ============================================================ */
.modal {
  width: min(920px, 94vw);
  max-height: 92dvh;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  overflow: hidden;
}
.modal::backdrop { background: rgba(9, 12, 16, .68); backdrop-filter: blur(2px); }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.modal__close:hover { background: var(--ink); color: #fff; }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-height: 92dvh;
}
.modal__media {
  padding: 26px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.modal__stage {
  display: grid;
  place-items: center;
}
.modal__stage img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.thumbs { display: flex; gap: 10px; margin-top: 16px; }
.thumbs button {
  width: 74px; height: 74px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.thumbs button:hover { border-color: var(--muted-2); }
.thumbs button.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(22, 104, 224, .18); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.modal__info { padding: 34px 30px 0; overflow-y: auto; max-height: 92dvh; }
.modal__info .eyebrow { margin-bottom: 10px; }
.modal__info h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Precios en la ficha: dos canales, el directo arriba y más grande. */
.precios {
  margin: 0 0 22px;
  padding: 14px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.precios__fila {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
}
.precios__tipo { font-size: 12.5px; color: var(--muted); }
.precios__valor {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.precios__fila--tienda {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-strong);
}
.precios__fila--tienda .precios__valor {
  font-size: 18px;
  color: var(--muted);
}
.precios__btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}
.precios__pendiente {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}
.precios__nota {
  margin-top: 11px;
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.4;
}

.specs {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 9px 16px;
  margin: 20px 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs dt { color: var(--muted); letter-spacing: .03em; text-transform: uppercase; font-size: 12px; line-height: 1.35; }
.specs dd { margin: 0; font-weight: 600; }

/* ---------- Ficha: pestaña mínima de plegado ---------- */
.pestana { margin: 0 0 24px; }
.pestana h3 {
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pestana p { color: var(--muted); font-size: 13.5px; }

.pestana__tabla {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14px;
}
.pestana__caption {
  caption-side: bottom;
  padding-top: 8px;
  text-align: left;
  font-size: 12px;
  color: var(--muted-2);
}
.pestana__tabla th {
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
}
.pestana__tabla th + th,
.pestana__tabla td + td { text-align: right; }
.pestana__tabla td { padding: 7px 14px; border-top: 1px solid var(--line); }
.pestana__tabla tbody tr:nth-child(even) { background: var(--surface); }
.pestana__tabla tbody tr:hover { background: rgba(22, 104, 224, .09); }
.pestana__tabla tr.is-max {
  background: #e6eefc;
  box-shadow: inset 3px 0 0 var(--blue);
}
.pestana__tabla tr.is-max td { font-weight: 700; color: var(--blue-dark); }
.pestana__max {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.pestana__nota { margin-top: 9px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Ficha: entrega ---------- */
.publish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.publish-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}
.publish-meta svg,
.publish-entrega svg {
  width: 15px; height: 15px;
  flex: none;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.publish-entrega {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Los botones quedan pegados abajo de la columna: la ficha es larga y así el
   "Agregar a cotización" nunca se pierde al scrollear. */
.modal__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 -30px;
  padding: 14px 30px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 18px -12px rgba(12, 16, 21, .35);
}

/* ============================================================
   COTIZACIÓN (drawer)
   ============================================================ */
.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 55;
  width: min(400px, 92vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(101%);
  transition: transform .28s var(--ease);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.drawer__list { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.drawer__list img,
.drawer__thumb {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  object-fit: contain;
  background: var(--surface);
  border-radius: 3px;
  flex: none;
}
.drawer__item { min-width: 0; flex: 1; }
.drawer__item strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.drawer__item span { font-size: 12px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.qty button:hover { border-color: var(--blue); color: var(--blue); }
.qty span { min-width: 18px; text-align: center; font-size: 14px; font-weight: 600; }

.drawer__empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14.5px; }

.drawer__foot {
  display: grid;
  gap: 10px;
  padding: 18px 20px 22px;
  border-top: 1px solid var(--line);
}
.drawer__foot .btn { justify-content: center; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(9, 12, 16, .5);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.scrim.is-open { opacity: 1; }

/* ---------- Aviso flotante ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  transform: translate(-50%, 24px);
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__inner { gap: 40px; }
}

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
  .header-actions { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 56px 64px; }
  .hero__media { max-width: 620px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .modal__body { grid-template-columns: minmax(0, 1fr); max-height: 92dvh; overflow-y: auto; }
  .modal__media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .modal__info { max-height: none; overflow: visible; padding-bottom: 0; }
  .modal__actions {
    position: static;
    margin: 0;
    padding: 4px 0 22px;
    border-top: 0;
  }
  .modal__stage img { aspect-ratio: 4 / 3; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__inner { gap: 24px; }
  .footer-nav { margin-inline: 0; order: 3; width: 100%; }
}

@media (max-width: 640px) {
  .shell { padding-inline: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .brand img { height: 36px; }
  .catalog__head { align-items: stretch; }
  .catalog__tools { width: 100%; }
  .search, .select, .select select { width: 100%; }
  .redes__card { grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 12px; padding: 14px 16px; }
  .redes__icono { width: 44px; height: 44px; }
  .redes__icono svg { width: 22px; height: 22px; }
  .redes__nombre { font-size: 15px; }
  .redes__detalle { font-size: 13px; }
  .modal__media, .modal__info { padding: 22px; }
  .modal__info { padding-bottom: 0; }
  .pestana__tabla { font-size: 13px; }
  .pestana__tabla th { font-size: 10px; letter-spacing: .06em; }
  .pestana__tabla th,
  .pestana__tabla td { padding: 7px 10px; }
  .hero__title { font-size: clamp(32px, 10vw, 46px); }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .thumbs button { width: 60px; height: 60px; }
}

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