/* ============================================================
   catalogo.css — Catálogo técnico de direcciones (taller / ingeniería)
   Paleta: grafito #1e2330 · azul hidráulico #1a6fc4 · naranja eléctrico #e8820c
   Tipografía técnica: referencias y códigos en monoespaciada.
   ============================================================ */

.ct-wrap { --hid: #1a6fc4; --ele: #e8820c; --ink: #1e2330; --ink2: #4a5568; --line: #dde3ec; --paper: #f4f6f9;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace; }

/* ── Cabecera tipo plano técnico ───────────────────────────── */
.ct-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(900px 340px at 85% -20%, rgba(26,111,196,.55), transparent 60%),
    radial-gradient(700px 300px at 5% 120%, rgba(232,130,12,.35), transparent 60%),
    #151a26;
  padding: 56px 0 44px;
}
.ct-hero::after { /* franja de seguridad de taller */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, #e8820c 0 14px, #151a26 14px 28px);
}
.ct-hero--slim { padding: 34px 0 30px; }
.ct-eyebrow { font: 600 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8fb8e6; margin: 0 0 14px; }
.ct-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; max-width: 18em; }
.ct-hero h1 em { font-style: normal; color: #ffb35c; }
.ct-hero p.ct-lead { max-width: 46em; color: #c3ccdb; font-size: 1.05rem; margin: 0 0 26px; }
.ct-hero--slim h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.ct-hero--slim p.ct-lead { margin-bottom: 0; font-size: .98rem; }

/* ── Buscador ──────────────────────────────────────────────── */
.ct-search { display: flex; max-width: 760px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); border: 2px solid transparent; }
.ct-search:focus-within { border-color: #ffb35c; }
.ct-search input { flex: 1; min-width: 0; border: 0; padding: 17px 20px; font: 500 1.05rem var(--font, inherit); color: #1e2330; background: transparent; outline: none; }
.ct-search button { border: 0; background: #e8820c; color: #fff; font-weight: 700; padding: 0 26px; cursor: pointer; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.ct-search button:hover { background: #c46d0a; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.ct-chips > span { font-size: .82rem; color: #9aa7bd; }
.ct-chip { font: 500 .8rem var(--mono); color: #dbe5f5; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  padding: 5px 11px; border-radius: 999px; text-decoration: none; transition: .15s; }
.ct-chip:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── Bloques de la portada ─────────────────────────────────── */
.ct-section { padding: 44px 0; }
.ct-section--paper { background: var(--paper, #f4f6f9); }
.ct-h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; color: #1e2330; letter-spacing: -.01em; }
.ct-sub { color: #4a5568; margin: 0 0 26px; }

.ct-systems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ct-system { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #dde3ec;
  border-top: 6px solid var(--c); border-radius: 14px; padding: 28px; text-decoration: none; color: inherit;
  box-shadow: 0 2px 16px rgba(30,35,48,.07); transition: transform .2s, box-shadow .2s; }
.ct-system:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(30,35,48,.16); }
.ct-system--hidraulica { --c: #1a6fc4; } .ct-system--electrica { --c: #e8820c; }
.ct-system__ico { width: 64px; height: 64px; color: var(--c); margin-bottom: 14px; }
.ct-system h3 { margin: 0 0 8px; font-size: 1.35rem; color: #1e2330; }
.ct-system p { margin: 0 0 20px; color: #4a5568; }
.ct-stats { display: flex; gap: 28px; margin-top: auto; padding-top: 18px; border-top: 1px dashed #dde3ec; }
.ct-stat b { display: block; font: 800 1.9rem/1 var(--mono); color: var(--c); }
.ct-stat span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.ct-system__go { position: absolute; right: 24px; top: 26px; font-weight: 700; color: var(--c); font-size: .9rem; }

.ct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.ct-step { background: #fff; border: 1px solid #dde3ec; border-radius: 12px; padding: 22px 22px 22px 70px; position: relative; }
.ct-step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px;
  border-radius: 8px; background: #1e2330; color: #ffb35c; font: 800 1.05rem/34px var(--mono); text-align: center; }
.ct-step b { display: block; margin-bottom: 4px; }
.ct-step span { color: #4a5568; font-size: .92rem; }

.ct-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ct-brand { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid #dde3ec;
  border-left: 4px solid var(--c, #1a6fc4); border-radius: 8px; padding: 12px 14px; text-decoration: none; color: #1e2330; font-weight: 600; font-size: .92rem; transition: .15s; }
.ct-brand:hover { background: #1e2330; color: #fff; border-color: #1e2330; }
.ct-brand small { font: 700 .75rem var(--mono); background: #eef2f8; color: #1e2330; border-radius: 6px; padding: 3px 7px; }
.ct-brand:hover small { background: rgba(255,255,255,.18); color: #fff; }

.ct-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ct-trust div { padding: 18px 20px; border-left: 3px solid #e8820c; background: #fff; border-radius: 0 10px 10px 0; }
.ct-trust b { display: block; font-size: 1.05rem; color: #1e2330; }
.ct-trust span { color: #4a5568; font-size: .88rem; }

/* ── Listado ───────────────────────────────────────────────── */
.ct-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; padding: 28px 0 56px; }
.ct-filters { position: sticky; top: 90px; background: #fff; border: 1px solid #dde3ec; border-radius: 12px; padding: 18px; max-height: calc(100vh - 110px); overflow: auto; }
.ct-filters h4 { margin: 18px 0 8px; font: 700 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #64748b; }
.ct-filters h4:first-child { margin-top: 0; }
.ct-filters input[type=search], .ct-filters select { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
.ct-flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ct-flist a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 7px; text-decoration: none; color: #1e2330; font-size: .9rem; }
.ct-flist a:hover { background: #eef2f8; }
.ct-flist a.is-on { background: #1e2330; color: #fff; font-weight: 700; }
.ct-flist small { font: 600 .74rem var(--mono); opacity: .7; }
.ct-flist--scroll { max-height: 300px; overflow: auto; padding-right: 4px; }
.ct-clear { display: inline-block; margin-top: 14px; font-size: .85rem; color: #c2410c; font-weight: 600; }

.ct-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ct-count { color: #4a5568; } .ct-count b { color: #1e2330; font-family: var(--mono); }
.ct-bar__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ct-bar select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; font-size: .9rem; }
.ct-view { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.ct-view a { padding: 8px 12px; font-size: .85rem; font-weight: 600; text-decoration: none; color: #4a5568; background: #fff; }
.ct-view a.is-on { background: #1e2330; color: #fff; }
.ct-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ct-active a { display: inline-flex; gap: 8px; align-items: center; background: #fff3e0; border: 1px solid #fcd9a8; color: #7c3a00; padding: 4px 10px; border-radius: 999px; font-size: .82rem; text-decoration: none; }

.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ct-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #dde3ec; border-radius: 12px; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.ct-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(30,35,48,.15); border-color: #b7c3d6; }
.ct-card__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background:
  linear-gradient(#eef2f8 1px, transparent 1px) 0 0 / 100% 18px, #f7f9fc; border-bottom: 1px solid #e5eaf2; padding: 10px; }
.ct-card__media img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ct-card__icon { width: 74px; height: 74px; color: #aab6c8; }
.ct-card--hidraulica .ct-card__icon { color: #9dbfe6; } .ct-card--electrica .ct-card__icon { color: #f0c18a; }
.ct-ribbon { position: absolute; top: 10px; left: 0; background: #16a34a; color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 0 999px 999px 0; text-transform: uppercase; letter-spacing: .04em; }
.ct-card__body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ct-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ct-ref { font: 800 .98rem var(--mono); background: #1e2330; color: #ffb35c; padding: 3px 9px; border-radius: 6px; letter-spacing: .02em; text-decoration: none; display: inline-block; }
a.ct-ref:hover { background: #e8820c; color: #1e2330; }
.ct-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.ct-tag--hidraulica { background: #e4effb; color: #0f4c8a; } .ct-tag--electrica { background: #fdeed9; color: #8a4a05; }
.ct-card__title { margin: 2px 0 0; font-size: 1.02rem; line-height: 1.3; }
.ct-card__title a { color: #1e2330; text-decoration: none; } .ct-card__title a:hover { color: #1a6fc4; }
.ct-card__apps { margin: 0; font-size: .84rem; color: #4a5568; }
.ct-card__oem { margin: 0; font: .78rem/1.4 var(--mono); color: #334155; } .ct-card__oem span { font-weight: 800; color: #94a3b8; margin-right: 4px; }
.ct-card__oem b, .ct-card__apps b { color: #1a6fc4; }
.ct-card__foot { margin-top: auto; padding: 10px 0 4px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ct-stock { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: #4a5568; }
.ct-stock i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; } .ct-stock--ok i { background: #16a34a; }
.ct-price { font: 800 1.05rem var(--mono); color: #1e2330; }
.ct-card__cta { display: block; text-align: center; padding: 11px; background: #f1f4f9; border-top: 1px solid #e5eaf2; text-decoration: none; font-weight: 700; font-size: .86rem; color: #1e2330; }
.ct-card__cta:hover { background: #1e2330; color: #fff; }

.ct-table-wrap { overflow-x: auto; border: 1px solid #dde3ec; border-radius: 12px; background: #fff; }
.ct-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ct-table th { background: #1e2330; color: #cfd8e6; text-align: left; font: 700 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 12px 14px; white-space: nowrap; }
.ct-table td { padding: 11px 14px; border-top: 1px solid #edf0f5; vertical-align: top; }
.ct-table tr:hover td { background: #fafbfd; }
.ct-td-model small { display: block; color: #64748b; font-size: .78rem; margin-top: 2px; }
.ct-mono { font: .8rem/1.45 var(--mono); color: #334155; } .ct-num { font: 700 .9rem var(--mono); text-align: right; }
.ct-btn { display: inline-flex; align-items: center; gap: 8px; background: #1a6fc4; color: #fff; padding: 11px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: .95rem; transition: .15s; }
.ct-btn:hover { background: #145aa0; color: #fff; } .ct-btn--sm { padding: 6px 12px; font-size: .8rem; }
.ct-btn--accent { background: #e8820c; } .ct-btn--accent:hover { background: #c46d0a; }
.ct-btn--ghost { background: #fff; color: #1e2330; border: 1px solid #cbd5e1; } .ct-btn--ghost:hover { background: #1e2330; color: #fff; }
.ct-btn--wa { background: #1faa59; } .ct-btn--wa:hover { background: #168a47; }

.ct-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.ct-page { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; text-decoration: none; color: #1e2330; font: 700 .88rem var(--mono); }
a.ct-page:hover { background: #eef2f8; } .ct-page.is-on { background: #1e2330; color: #ffb35c; border-color: #1e2330; } .ct-page--gap { border: 0; background: none; }
.ct-empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 12px; color: #4a5568; }
.ct-empty b { display: block; font-size: 1.1rem; color: #1e2330; margin-bottom: 6px; }

/* ── Ficha de producto ─────────────────────────────────────── */
.ct-crumbs { font-size: .85rem; color: #94a3b8; margin: 0 0 8px; }
.ct-crumbs a { color: #cbd5e1; text-decoration: none; } .ct-crumbs a:hover { color: #fff; }
.ct-ficha { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; padding: 32px 0 20px; align-items: start; }
.ct-photo { position: sticky; top: 90px; display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 24px; border-radius: 14px; border: 1px solid #dde3ec;
  background: linear-gradient(#eef2f8 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, #eef2f8 1px, transparent 1px) 0 0 / 22px 100%, #fff; }
.ct-photo img { max-width: 100%; max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }
.ct-photo .ct-card__icon { width: 140px; height: 140px; }
.ct-ficha h1 { margin: 6px 0 4px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; color: #1e2330; }
.ct-ficha .ct-ref { font-size: 1.25rem; padding: 5px 14px; }
.ct-box { background: #fff; border: 1px solid #dde3ec; border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.ct-box > h2 { margin: 0; padding: 11px 18px; background: #f1f4f9; border-bottom: 1px solid #e5eaf2; font: 700 .74rem var(--mono); letter-spacing: .13em; text-transform: uppercase; color: #475569; }
.ct-box__in { padding: 16px 18px; }
.ct-spec { width: 100%; border-collapse: collapse; }
.ct-spec th { width: 38%; text-align: left; font-weight: 600; color: #64748b; font-size: .86rem; padding: 9px 18px; vertical-align: top; }
.ct-spec td { padding: 9px 18px; color: #1e2330; font-weight: 600; font-size: .92rem; }
.ct-spec tr + tr > * { border-top: 1px solid #edf0f5; }
.ct-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-code { display: inline-flex; align-items: center; gap: 8px; font: 600 .84rem var(--mono); background: #f1f4f9; border: 1px solid #dbe3ee; border-radius: 6px; padding: 5px 6px 5px 10px; color: #1e2330; }
.ct-code button { border: 0; background: #1e2330; color: #cbd5e1; font: 700 .65rem var(--mono); padding: 3px 6px; border-radius: 4px; cursor: pointer; text-transform: uppercase; }
.ct-code button:hover { background: #e8820c; color: #1e2330; } .ct-code button.ok { background: #16a34a; color: #fff; }
.ct-apps { list-style: none; margin: 0; padding: 0; }
.ct-apps li { padding: 8px 0; border-top: 1px solid #edf0f5; font-size: .94rem; } .ct-apps li:first-child { border-top: 0; }
.ct-apps small { display: block; font: 700 .7rem var(--mono); letter-spacing: .1em; color: #94a3b8; text-transform: uppercase; margin-bottom: 2px; }
.ct-note { background: #fff8eb; border: 1px solid #fcd9a8; border-radius: 10px; padding: 12px 16px; font-size: .88rem; color: #7c3a00; margin-bottom: 16px; }
.ct-cta { background: #151a26; color: #fff; border-radius: 14px; padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.ct-cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(-45deg, #e8820c 0 12px, #151a26 12px 24px); }
.ct-cta h3 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; } .ct-cta p { margin: 0 0 16px; color: #aebbd0; font-size: .92rem; }
.ct-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 6px; }
.ct-cta__price { display: flex; gap: 26px; margin-bottom: 16px; }
.ct-cta__price b { display: block; font: 800 1.7rem var(--mono); color: #ffb35c; } .ct-cta__price span { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: #8d9bb3; }
.ct-related { padding: 8px 0 56px; }


/* ── Tarjetas uniformes: misma altura de foto, texto y pie en todas ── */
.ct-grid { align-items: stretch; }
.ct-card__media { height: 200px; aspect-ratio: auto; padding: 0; overflow: hidden; flex: 0 0 200px; }
.ct-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; padding: 12px; box-sizing: border-box; }
.ct-card__top { flex-wrap: nowrap; min-width: 0; }
.ct-tag { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ct-card__title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ct-card__apps { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ct-card__oem { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.ct-card__foot { min-height: 2.2em; }

/* ── Impresión (catálogo en papel / PDF) ───────────────────── */
.ct-print-head { display: none; }
@media print {
  header, footer, .ct-hero, .ct-filters, .ct-bar, .ct-pager, .ct-cta, .ct-no-print, #astra-widget, .wa-widget, .page-hero, .breadcrumb, #nt-bar { display: none !important; }
  body { background: #fff !important; }
  .ct-print-head { display: flex !important; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #e8820c; padding-bottom: 10px; margin-bottom: 14px; }
  .ct-print-head h1 { margin: 0; font-size: 18pt; } .ct-print-head span { font-size: 9pt; color: #555; text-align: right; }
  .ct-table-wrap { border: 0; } .ct-table { font-size: 8.5pt; } .ct-table th { background: #222 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ct-table tr { page-break-inside: avoid; } .ct-ref { background: none !important; color: #000 !important; padding: 0; }
  .ct-photo { position: static; } .ct-ficha { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ct-layout { grid-template-columns: 1fr; } .ct-filters { position: static; max-height: none; }
  .ct-systems, .ct-steps { grid-template-columns: 1fr; } .ct-trust { grid-template-columns: 1fr 1fr; }
  .ct-ficha { grid-template-columns: 1fr; } .ct-photo { position: static; min-height: 220px; }
}
@media (max-width: 560px) {
  .ct-trust { grid-template-columns: 1fr; } .ct-search button span { display: none; } .ct-hero { padding: 40px 0 34px; }
  .ct-grid { grid-template-columns: 1fr; }
}
