/* ==========================================================================
   Trazo Textil: hoja de estilos
   Identidad: rojo trazo #FF000A, negro #0A0A0A, blanco.
   Tipografía: Montserrat (recomendada en el Manual de Marca).
   ========================================================================== */

/* Gendy: tipografía de la identidad de Trazo, usada en títulos.
   LICENCIA: la versión descargada (1001fonts) es SOLO para uso personal; un sitio
   de empresa es uso comercial y requiere licencia (rantaustudio.com).
   Mientras tanto se usa la fuente instalada en el equipo (local) y NO se publica el
   archivo. Con licencia: agregar assets/fonts/gendy.woff2 y descomentar la línea url().
   Sin Gendy, el navegador cae a Montserrat automáticamente. */
@font-face {
  font-family: "Gendy";
  src: local("Gendy"), local("Gendy-Regular")
       /* , url("fonts/gendy.woff2") format("woff2") */;
  font-weight: 100 900; /* una sola fuente: evita negrita sintética */
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #FF000A;
  --red-dark: #D4000A;
  --ink: #0A0A0A;
  --ink-soft: #3D3D3D;
  --muted: #6B6B70;
  --border: #E7E7EA;
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --bg-ink: #0A0A0A;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --shadow: 0 10px 30px -12px rgba(10, 10, 10, 0.18);
  --ff: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-display: "Gendy", var(--ff);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; }

p { color: var(--ink-soft); margin: 0 0 16px; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 17px; }

a { color: inherit; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff);
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(255,0,10,.55); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 10px 24px -8px rgba(255,0,10,.65); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-cta .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  body.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
  }
  body.menu-open .nav-links a { width: 100%; padding: 12px 0; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 40px;
  background:
    radial-gradient(1000px 480px at 88% -10%, rgba(255,0,10,.09), transparent 60%),
    #fff;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); }
.hero h1 .accent { color: var(--red); }
.hero-sub { font-size: 18px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }

/* ---------- Nota del catálogo ---------- */
.catalog-note {
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--muted);
  background: var(--bg-soft);
}

/* ---------- Cómo cotizar ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card { position: relative; padding-top: 8px; }
.step-num {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}
.step-card:nth-child(odd) .step-num { background: var(--red); }
.step-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; }

/* Formulario de cotización */
.quote-panel {
  background: var(--ink);
  border-radius: 22px;
  padding: 44px;
  color: #fff;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}
@media (max-width: 860px) { .quote-panel { grid-template-columns: 1fr; padding: 30px 22px; } }
.quote-panel h3 { color: #fff; font-size: 24px; }
.quote-panel p { color: rgba(255,255,255,.7); }
.quote-side ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.quote-side li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.85); }
.quote-side li svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 1px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.75); }
.field input,
.field select,
.field textarea {
  font-family: var(--ff);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; font-family: var(--ff); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red);
  background: rgba(255,255,255,.1);
}
.field select option { color: #111; }

.form-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 14px; }
.form-status { font-size: 13.5px; margin-top: 12px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #4ADE80; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: var(--ff);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a p { padding: 0 4px 22px; font-size: 14.5px; max-width: 640px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 56px 0 28px;
}
footer h5 {
  color: #fff;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; }
footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  text-decoration: none;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- Utilidades ---------- */
.center { text-align: center; }

/* ==========================================================================
   Catálogo interactivo (datos desde Catalogos/*.pptx)
   ========================================================================== */
.cat-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
}
.cat-tab {
  font-family: var(--ff);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.cat-tab span {
  display: inline-block;
  margin-left: 7px;
  font-size: 11.5px;
  color: var(--muted);
}
.cat-tab:hover { border-color: var(--ink); color: var(--ink); }
.cat-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-tab.active span { color: rgba(255,255,255,.55); }

.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip {
  font-family: var(--ff);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.cat-chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.cat-chip.active { background: rgba(255,0,10,.07); border-color: var(--red); color: var(--red); }
.cat-count { font-size: 12.5px; color: var(--muted); font-weight: 600; flex: none; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.pcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #DADADE; }
.pcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 10px;
}
.pcard-media img { width: 100%; height: 100%; object-fit: contain; }
.cat-code {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 6px;
}
.cat-more {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(10,10,10,.6);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.pcard-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  border-top: 1px solid var(--border);
}
.cat-brand {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
}
.pcard-body h4 { font-size: 14.5px; margin: 0; line-height: 1.25; }
.pcard-body p { font-size: 12.5px; margin: 0; color: var(--muted); }
.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.cat-min { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.cat-add {
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.cat-add:hover { background: var(--ink); color: #fff; }
.cat-add.in { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Modal de detalle ---------- */
.cat-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: catfade .18s ease;
}
@keyframes catfade { from { opacity: 0; } }
.cat-modal-box {
  background: #fff;
  border-radius: 18px;
  width: min(900px, 100%);
  max-height: 88vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
@media (max-width: 760px) { .cat-modal-box { grid-template-columns: 1fr; } }
.cat-modal-x {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.cat-modal-media { padding: 26px; background: var(--bg-soft); }
.cat-modal-media > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}
.cat-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cat-thumb {
  width: 58px; height: 58px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 3px;
  cursor: pointer;
}
.cat-thumb.active { border-color: var(--red); }
.cat-thumb img { width: 100%; height: 100%; object-fit: contain; }

.cat-modal-info { padding: 30px 28px; }
.cat-modal-info h3 { font-size: 22px; margin: 6px 0 4px; }
.cat-code-lg {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.cat-modal-info > p { font-size: 14px; }
.cat-specs {
  margin: 16px 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cat-specs div { display: flex; justify-content: space-between; gap: 14px; background: #fff; padding: 9px 13px; }
.cat-specs dt { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.cat-specs dd { font-size: 13px; margin: 0; text-align: right; font-weight: 600; }
.cat-note { font-size: 12px; color: var(--muted); }
.cat-rule {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  background: rgba(255,0,10,.06);
  padding: 10px 13px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.cat-qty { margin-bottom: 14px; }
.cat-qty label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.cat-qty-row { display: flex; align-items: center; gap: 8px; }
.cat-qty-row button {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}
.cat-qty-row button:hover { border-color: var(--ink); }
.cat-qty-row input {
  font-family: var(--ff);
  width: 86px;
  height: 38px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.cat-qty-unit { font-size: 13px; color: var(--muted); font-weight: 600; }
.cat-remove {
  display: block;
  width: 100%;
  margin-top: 9px;
  background: none;
  border: none;
  font-family: var(--ff);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}
.cat-price { font-size: 11.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ---------- Botón flotante + panel de selección ---------- */
.cat-fab {
  position: fixed;
  bottom: 22px;
  right: 92px;
  z-index: 200;
  display: none;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 20px 0 17px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-family: var(--ff);
  cursor: pointer;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.cat-fab.show { display: flex; }
.cat-fab:hover { transform: scale(1.04); }
.cat-fab svg { width: 22px; height: 22px; }
.cat-fab-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cat-fab-n { font-size: 15px; font-weight: 800; }
.cat-fab-p { font-size: 11px; color: rgba(255,255,255,.6); }
@media (max-width: 560px) {
  .cat-fab { right: 16px; bottom: 90px; }
}

.cat-panel-ov {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,10,10,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
body.cat-panel-open .cat-panel-ov { opacity: 1; pointer-events: auto; }
.cat-panel {
  position: fixed;
  top: 0; right: 0;
  z-index: 310;
  width: min(430px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(103%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
  box-shadow: -14px 0 40px -18px rgba(0,0,0,.4);
}
body.cat-panel-open .cat-panel { transform: none; }
.cat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.cat-panel-head strong { display: block; font-size: 17px; font-weight: 800; }
.cat-panel-head span { font-size: 12.5px; color: var(--muted); }
.cat-panel-head button {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.cat-panel-body { flex: 1; overflow: auto; padding: 18px 22px; }
.cat-empty { font-size: 13.5px; color: var(--muted); }

.cat-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.cat-group.ok { border-color: #7FD8A0; background: #F5FCF7; }
.cat-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cat-group-head strong { font-size: 13.5px; }
.cat-group-state { font-size: 11.5px; font-weight: 700; color: var(--red); }
.cat-group.ok .cat-group-state { color: #17A34A; }
.cat-bar { height: 5px; background: var(--border); border-radius: 3px; margin: 9px 0 6px; overflow: hidden; }
.cat-bar span { display: block; height: 100%; background: var(--red); transition: width .25s ease; }
.cat-group.ok .cat-bar span { background: #17A34A; }
.cat-group-min { font-size: 11px; color: var(--muted); margin-bottom: 10px; }

.cat-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.cat-line img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.cat-line-txt { flex: 1; min-width: 0; }
.cat-line-txt strong { display: block; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-line-txt span { font-size: 10.5px; color: var(--muted); }
.cat-line-qty { display: flex; align-items: center; gap: 3px; flex: none; }
.cat-line-qty button {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.cat-line-qty input {
  font-family: var(--ff);
  width: 46px; height: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.cat-line-x { background: none; border: none; font-size: 17px; color: var(--muted); cursor: pointer; padding: 0 2px; }

.cat-panel-foot { padding: 16px 22px 22px; border-top: 1px solid var(--border); display: grid; gap: 9px; }
.cat-clear {
  background: none;
  border: none;
  font-family: var(--ff);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

/* ==========================================================================
   Maquila y marca propia
   ========================================================================== */
.maq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
@media (max-width: 950px) { .maq-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .maq-grid { grid-template-columns: 1fr; } }
.maq-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: #fff;
}
.maq-card h3 { font-size: 16px; margin-bottom: 7px; }
.maq-card p { font-size: 13.5px; margin: 0; }

.maq-cta {
  background: var(--ink);
  border-radius: 20px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.maq-cta h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.maq-cta p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; max-width: 560px; }

/* ==========================================================================
   Trabajos entregados
   ========================================================================== */
.work-tile {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.work-tile:hover img { transform: scale(1.05); }
.work-foot {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.work-foot span { font-size: 15px; font-weight: 600; color: var(--ink-soft); }

/* La foto del taller es vertical: encuadra en las gorras, no en el centro geométrico */
.work-tile-top img { object-position: center 62%; }

/* Cifras y numeración con la tipografía de la identidad */
.hero-stats div strong, .step-num, .feature-card .num, .tl-dot { font-family: var(--ff-display); }

/* Índice por marcas (uniformes premium) */
.cat-chips { flex-direction: column; align-items: flex-start; gap: 10px; }
.cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-row-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.cat-chip em { font-style: normal; opacity: .55; margin-left: 5px; font-weight: 600; }
.pgroup-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 14px 0 8px;
  border-bottom: 2px solid var(--ink);
  margin-top: 14px;
}
.pgroup-head:first-child { margin-top: 0; }
.pgroup-head h3 { margin: 0; font-size: 22px; }
.pgroup-head h3 span { font-family: var(--ff); font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 8px; }
.pgroup-head p { margin: 0; font-size: 12.5px; color: var(--red); font-weight: 700; }

/* Insignia de género en la tarjeta */
.cat-gender {
  position: absolute;
  top: 10px; right: 10px;
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Logo en la portada y en el encabezado */
.brand img { height: 46px; }
.hero-logo { height: 104px; width: auto; margin-bottom: 26px; }
@media (max-width: 720px) {
  .brand img { height: 40px; }
  .hero-logo { height: 76px; margin-bottom: 20px; }
}

/* El logo nunca se comprime, aunque el encabezado esté apretado (móvil) */
.brand { flex: none; }
.brand img { flex: none; width: auto; max-width: none; }
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 13px; }
}

/* La insignia de género va abajo para no chocar con el código del modelo */
.cat-gender { top: auto; right: auto; bottom: 10px; left: 10px; }

/* Foto horizontal: encuadra la gorra y el bordado del polo */
.work-tile-golf img { object-position: 38% center; }

/* ==========================================================================
   Slideshow de trabajos entregados
   ========================================================================== */
.work-slider { --pv: 3; --gap: 14px; }
@media (max-width: 900px) { .work-slider { --pv: 2; } }
@media (max-width: 560px) { .work-slider { --pv: 1; } }

.work-viewport { overflow: hidden; border-radius: var(--radius); }
.work-track {
  display: flex;
  column-gap: var(--gap);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.work-track .work-tile {
  flex: 0 0 calc((100% - (var(--pv) - 1) * var(--gap)) / var(--pv));
  min-width: 0;
}
@media (prefers-reduced-motion: reduce) { .work-track { transition: none; } }

.work-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.ws-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ws-btn:hover { border-color: var(--ink); }
.ws-pause { font-size: 11px; margin-left: 6px; }
.ws-dots { display: flex; gap: 8px; align-items: center; }
.ws-dot {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: #D2D2D6;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.ws-dot.active { width: 26px; background: var(--red); }

/* ==========================================================================
   Versión minimalista: la portada y el pie son solo lema + acciones
   ========================================================================== */
.hero { padding: 72px 0 56px; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-inner .hero-logo { height: 92px; margin-bottom: 34px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); margin-bottom: 18px; }
.hero-inner .hero-sub { max-width: 520px; margin: 0 auto; }
.hero-inner .hero-actions { justify-content: center; margin: 32px 0 0; }
@media (max-width: 720px) { .hero-inner .hero-logo { height: 70px; margin-bottom: 26px; } }

.section-head h2 { margin-bottom: 10px; }
.section-head { margin-bottom: 40px; }

.catalog-note {
  margin: 30px 0 0;
  padding: 0;
  border: none;
  background: none;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.catalog-note a { color: var(--ink); font-weight: 700; }

@media (min-width: 861px) { .quote-panel { grid-template-columns: .55fr 1.45fr; } }
.maq-card { padding: 22px 20px; }
.maq-card h3 { font-size: 16px; margin-bottom: 4px; }
.maq-cta { justify-content: center; text-align: center; }
.maq-cta h3 { margin: 0; }

footer { padding: 52px 0 26px; text-align: center; }
.footer-min { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-min img { height: 64px; width: auto; background: #fff; padding: 8px 14px; border-radius: 10px; margin-bottom: 14px; }
.footer-lema { color: #fff; font-family: var(--ff-display); font-size: 18px; margin: 0 0 14px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-city { margin: 14px 0 0; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-bottom { justify-content: center; }

.cat-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.cat-more-wrap:empty { margin: 0; }

/* ==========================================================================
   Sobre nosotros (ventana abierta desde el menú)
   ========================================================================== */
.nav-links .nav-about {
  font-family: var(--ff);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.nav-links .nav-about::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}
.nav-links .nav-about:hover::after { right: 0; }
@media (max-width: 900px) {
  body.menu-open .nav-links .nav-about { width: 100%; padding: 12px 0; text-align: left; font-size: 13.5px; }
}

.about-dialog {
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.about-dialog::backdrop { background: rgba(10,10,10,.55); backdrop-filter: blur(3px); }
.about-dialog[open] { animation: catfade .18s ease; }
.about-box { position: relative; padding: 38px 34px 32px; }
@media (max-width: 560px) { .about-box { padding: 32px 22px 26px; } }
.about-x {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.about-box h2 { font-size: 28px; margin-bottom: 14px; }
.about-lead { font-size: 16.5px; color: var(--ink); font-weight: 500; }
.about-box p { font-size: 14.5px; }
.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0 24px;
}
@media (max-width: 480px) { .about-points { grid-template-columns: 1fr; } }
.about-point {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-soft);
}
.about-point strong { display: block; font-family: var(--ff-display); font-size: 15px; margin-bottom: 6px; color: var(--red); }
.about-point span { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.about-values li {
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255,0,10,.07);
  color: var(--red);
}

/* Colores de las gorras en la ventana de detalle */
.cat-thumbs-label { margin-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cat-thumbs-label b { color: var(--red); margin-left: 4px; }
.cat-thumbs { max-height: 176px; overflow-y: auto; padding: 2px; }
.cat-thumbs-note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   WayCap: existencia vs bajo pedido
   ========================================================================== */
.cat-stock {
  position: absolute;
  bottom: 10px; left: 10px;
  background: #EAF8EF;
  color: #17803D;
  border: 1px solid #A8E0BC;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.cat-aviso {
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.cat-aviso b { color: var(--ink); }
.cat-thumb { position: relative; }
.cat-thumb.stock::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #17A34A;
  border: 2px solid #fff;
}
.cat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #17A34A; margin-right: 4px; vertical-align: -1px; }
.cat-color-sel { font-size: 13px; margin: 0 0 10px; color: var(--ink-soft); }
.cat-color-sel b { color: var(--ink); }
.cat-rule.ok { color: #17803D; background: #EAF8EF; }

/* "En existencia" arriba a la derecha: abajo choca con el contador de colores en pantallas angostas */
.cat-stock { top: 10px; right: 10px; bottom: auto; left: auto; }

/* Contactos del pie: teléfonos y correos */
.footer-contact { display: flex; flex-direction: column; gap: 4px; margin: 16px 0 0; font-size: 13px; }
.footer-contact a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-contact span { display: block; }
@media (max-width: 560px) { .footer-contact { font-size: 12.5px; } }
