/* =========================================================
   Prographix GT — hoja de estilos
   Sistema visual: "El pliego" (lenguaje de imprenta CMYK)
   ========================================================= */

:root {
  /* Tintas de proceso */
  --cyan: #009FE3;
  --magenta: #E6007E;
  --yellow: #FFE500;
  --ink: #141416;

  /* Derivados */
  --magenta-ink: #C0006A;   /* magenta para texto pequeño sobre papel (AA) */
  --cyan-ink: #0076A8;
  --overprint: #2B2A86;     /* cian + magenta sobreimpresos */
  --ink-2: #1E1E22;
  --ink-3: #2A2A30;

  /* Papel */
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --sheet: #FBFAF6;
  --line: #D6D0C2;
  --muted: #66625A;
  --muted-light: #A9A59C;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--magenta); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.lead b { color: var(--ink); }
.link { color: var(--magenta-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Etiqueta de sección con marca de registro */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 22px;
}
.label--light { color: var(--muted-light); }
.reg {
  position: relative; width: 12px; height: 12px; flex: none;
  border: 1.5px solid var(--magenta); border-radius: 50%;
}
.reg::before, .reg::after { content: ""; position: absolute; background: var(--magenta); }
.reg::before { left: -5px; right: -5px; top: 50%; height: 1.5px; transform: translateY(-50%); }
.reg::after { top: -5px; bottom: -5px; left: 50%; width: 1.5px; transform: translateX(-50%); }

.h2 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 20ch;
  text-wrap: balance;
}
.hl { color: var(--yellow); }

/* Texto "fuera de registro": magenta con cian desplazado */
.misreg {
  color: var(--magenta);
  text-shadow: -.045em .03em 0 var(--cyan);
  transition: text-shadow .5s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}
.misreg:hover { text-shadow: 0 0 0 var(--cyan); }

/* ---------- Botones ---------- */
.btn {
  --sh: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.35em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 1rem;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--sh); }
.btn:active { transform: none; box-shadow: none; }
.btn--sm { padding: .6em 1.05em; font-size: .92rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--magenta { background: var(--magenta); color: #fff; --sh: var(--cyan); }
.btn--yellow { background: var(--yellow); color: var(--ink); --sh: var(--magenta); }
.btn--ink { background: var(--ink); color: var(--paper); --sh: var(--magenta); }
.btn--ghost { border-color: rgba(244,241,234,.45); color: var(--paper); --sh: var(--yellow); }
.btn--ghost:hover { border-color: var(--paper); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Marca (logotipo provisional) ---------- */
.brand {
  display: inline-flex; align-items: center;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
  font-size: 1.3rem; letter-spacing: -.01em; line-height: 1;
}
.brand__x { width: .78em; height: .72em; margin-left: .03em; transform: translateY(-.01em); }
.brand__gt {
  font-family: var(--f-mono); font-stretch: 100%; font-weight: 600; font-size: .5em;
  letter-spacing: .06em;
  margin-left: .5em; padding: .22em .4em .18em;
  border: 1.5px solid currentColor; border-radius: 2px;
  align-self: flex-start; transform: translateY(-.15em);
}
.brand--mini { font-size: 1rem; }

/* ---------- Barra superior ---------- */
.topbar { background: #0B0B0C; color: var(--muted-light); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__wa { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.topbar__wa:hover { color: var(--yellow); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.2); }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: rgba(244,241,234,.1); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav a:not(.btn) { position: relative; padding: 6px 0; color: #D8D4CB; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--magenta);
  transition: right .25s ease;
}
.nav a:not(.btn):hover { color: var(--paper); }
.nav a:not(.btn):hover::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--paper); transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px);
}
.hero::before { /* trama de medio tono muy sutil */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,241,234,.07) 1px, transparent 1.2px);
  background-size: 14px 14px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title {
  font-family: var(--f-display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  line-height: .96;
  letter-spacing: -.035em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #C9C5BC; max-width: 46ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__promises {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  padding-top: 24px; border-top: 1px solid rgba(244,241,234,.14);
  font-size: .92rem; color: var(--muted-light);
}
.hero__promises li { display: flex; align-items: center; gap: 10px; }
.hero__promises li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5 6 12.5 14 3.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5 6 12.5 14 3.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero__promises b { color: var(--paper); font-weight: 600; }

.hero__sheet { width: 100%; max-width: 600px; justify-self: end; }
.hero__sheet svg { width: 100%; height: auto; overflow: visible; }
.svg-mono { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; }
.svg-display { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; letter-spacing: -.01em; }

/* animación de entrada de las piezas del pliego */
.hero__sheet .piece, .hero__sheet .note, .hero__sheet .colorbar { animation: drop .9s cubic-bezier(.2,.8,.2,1) both; }
.hero__sheet .p1 { animation-delay: .15s; }
.hero__sheet .p2 { animation-delay: .3s; }
.hero__sheet .p3 { animation-delay: .45s; }
.hero__sheet .p4 { animation-delay: .6s; }
.hero__sheet .note { animation-name: fade; animation-delay: 1.1s; }
.hero__sheet .colorbar { animation-name: fade; animation-delay: .9s; }
@keyframes drop { from { opacity: 0; translate: 0 -24px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cinta ---------- */
.ticker { background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker__track {
  display: flex; align-items: center; gap: 26px; width: max-content;
  padding: 14px 0;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(1rem, 1.6vw, 1.3rem); text-transform: uppercase; letter-spacing: -.01em;
  animation: ticker 55s linear infinite;
}
.ticker__track i { font-style: normal; color: var(--magenta); }
@keyframes ticker { to { transform: translateX(calc(-50% - 13px)); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 64px; align-items: end; }

/* ---------- Servicios ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.cats a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 7px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  transition: background-color .18s, color .18s;
}
.cats a:hover { background: var(--ink); color: var(--paper); }
.cats b {
  display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--k); color: #fff; border-radius: 2px;
  font-family: var(--f-mono); font-size: .8rem;
}
.cats a[href="#diseno"] b { color: var(--ink); }
.cats a[href="#productos"]:hover b { box-shadow: inset 0 0 0 1.5px var(--paper); }

.cat {
  display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 32px clamp(32px, 6vw, 88px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 2px solid var(--ink);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.cat__side { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.cat__chip {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  background: var(--k); color: #fff; border-radius: 2px;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.5rem;
}
#diseno .cat__chip { color: var(--ink); }
.cat__num { color: var(--muted); margin-bottom: 6px; }
.cat__title {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.cat__desc { color: var(--muted); margin-bottom: 18px; }
.cat__for { color: var(--ink); padding-top: 14px; border-top: 1px dashed var(--line); }

.items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: start; }
.items li { border-bottom: 1px solid var(--line); }
.items a {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 16px 6px 16px 0;
  cursor: pointer;
  transition: padding .22s ease;
}
.items a::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 0;
  background: var(--k); transition: width .22s ease;
}
.items__name { font-weight: 650; font-size: 1.06rem; line-height: 1.25; }
.items__det { grid-column: 1; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.items__go {
  grid-column: 2; grid-row: 1 / span 2;
  font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--magenta-ink);
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
}
.items__go::after { content: " →"; }
.items a:hover, .items a:focus-visible { padding-left: 16px; }
.items a:hover::before, .items a:focus-visible::before { width: 5px; }
.items a:hover .items__go, .items a:focus-visible .items__go { opacity: 1; transform: none; }
@media (hover: none) { .items__go { opacity: .9; transform: none; } }

/* ---------- Compromiso ---------- */
.trust { background: var(--ink); color: var(--paper); }
.trust__intro { color: var(--muted-light); font-size: 1.08rem; max-width: 44ch; }
.pledges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; counter-reset: p; }
.pledge { padding: 30px 0 40px; border-top: 1px solid rgba(244,241,234,.18); }
.pledge__n { display: block; color: var(--yellow); margin-bottom: 18px; }
.pledge h3 {
  font-family: var(--f-display); font-stretch: 108%; font-weight: 700;
  font-size: 1.32rem; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 10px;
}
.pledge p { color: var(--muted-light); }

/* ---------- Proceso (orden de trabajo) ---------- */
.ticket { background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.ticket__head, .ticket__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; }
.ticket__head { background: var(--ink); color: var(--paper); letter-spacing: .1em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 32px 26px 30px; border-right: 1px dashed var(--line); display: flex; flex-direction: column; }
.step:last-child { border-right: 0; }
.step__n {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: 4rem; line-height: 1; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.step:nth-child(1) .step__n { -webkit-text-stroke-color: var(--cyan-ink); }
.step:nth-child(2) .step__n { -webkit-text-stroke-color: var(--magenta); }
.step:nth-child(3) .step__n { -webkit-text-stroke-color: #B8A300; }
.step:nth-child(4) .step__n { color: var(--ink); }
.step h3 { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; }
.step__tag { margin-top: auto; padding-top: 22px; color: var(--ink) !important; text-transform: uppercase; letter-spacing: .1em; }
.ticket__foot { border-top: 1.5px solid var(--ink); gap: 20px; justify-content: flex-start; color: var(--muted); }
.ticket__sign { flex: 1; max-width: 320px; height: 26px; border-bottom: 1px solid var(--ink); position: relative; }
.ticket__sign::after {
  content: "✓ Aprobado"; position: absolute; left: 12px; bottom: 2px;
  font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.1rem; color: var(--magenta-ink);
  transform: rotate(-4deg);
}

/* ---------- Sectores ---------- */
.sectors { background: var(--paper-2); }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.sector {
  padding: 30px 28px 34px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  background: var(--paper-2);
  transition: background-color .2s, color .2s;
}
.sector:hover { background: var(--ink); color: var(--paper); }
.sector:hover .sector__ico { color: var(--yellow); }
.sector:hover p { color: var(--muted-light); }
.sector__ico { width: 42px; height: 42px; color: var(--magenta); margin-bottom: 28px; transition: color .2s; }
.sector h3 { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 1.3rem; line-height: 1.15; margin-bottom: 10px; }
.sector p { color: var(--muted); line-height: 1.6; }

/* ---------- Personalizados ---------- */
.custom__in { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.custom .lead { margin: 22px 0 28px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c); border: 1.5px solid var(--ink);
  transition: transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { outline: 2.5px solid var(--magenta); outline-offset: 3px; }
.swatch-name { color: var(--muted); margin-bottom: 32px; }

.products {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
}
.product {
  position: relative; background: var(--sheet); border: 1px solid var(--line);
  padding: 18px 18px 40px; display: grid; place-items: center;
  transition: border-color .2s, transform .2s;
}
.product:hover { border-color: var(--ink); transform: translateY(-3px); }
.product--tee { grid-row: 1 / span 2; }
.product svg { width: 100%; max-width: 220px; height: auto; }
.product figcaption { position: absolute; left: 14px; bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.p-fill { fill: var(--p); transition: fill .35s ease; }
.p-ink { fill: var(--pi); transition: fill .35s ease; }
.p-stroke { stroke: var(--p); transition: stroke .35s ease; }

/* ---------- Cotizador ---------- */
.quote { background: var(--ink); color: var(--paper); }
.quote__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.qform { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.opt { font-family: var(--f-mono); font-size: .7rem; font-weight: 400; color: var(--muted-light); margin-left: 6px; text-transform: uppercase; letter-spacing: .08em; }
.qform input, .qform select, .qform textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--paper);
  background: var(--ink-2); border: 1.5px solid var(--ink-3); border-radius: var(--radius);
  padding: 14px 14px;
  transition: border-color .15s, background-color .15s;
}
.qform select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F4F1EA' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.qform select option, .qform select optgroup { background: var(--ink-2); color: var(--paper); }
.qform input::placeholder, .qform textarea::placeholder { color: #77736B; }
.qform input:hover, .qform select:hover, .qform textarea:hover { border-color: #45454D; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: none; border-color: var(--yellow); background: #222228; }
.qform input[type="date"] { color-scheme: dark; }
.qform .is-invalid { border-color: var(--magenta) !important; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--ink-3); background: var(--ink-2); font-size: .95rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice input:hover + span { border-color: #45454D; }
.choice input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.qform__err { color: #FF7AB8; font-weight: 600; }
.qform__note { color: var(--muted-light); text-align: center; margin-top: -8px; }

.slip { position: sticky; top: calc(var(--header-h) + 28px); }
.slip__paper {
  background: var(--sheet); color: var(--ink);
  padding: 26px 26px 44px;
  transform: rotate(1.4deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 97%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, transparent 97%, #000) 0 0 / 18px 100% repeat-x;
}
.slip__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--ink); letter-spacing: .12em; }
.slip__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.slip__rows dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; flex: none; }
.slip__rows dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.slip__rows dd.is-empty { color: #B9B3A5; font-weight: 400; }
.slip__rows dd.flash { animation: flash .5s ease; }
@keyframes flash { from { background: var(--yellow); } to { background: transparent; } }
.slip__det { color: var(--muted); padding: 14px 0 0; min-height: 1em; white-space: pre-wrap; overflow-wrap: anywhere; }
.slip__det:empty { display: none; }
.slip__bar { display: flex; gap: 4px; margin: 22px 0 12px; }
.slip__bar i { flex: 1; height: 10px; }
.slip__bar i:nth-child(1) { background: var(--cyan); }
.slip__bar i:nth-child(2) { background: var(--magenta); }
.slip__bar i:nth-child(3) { background: var(--yellow); }
.slip__bar i:nth-child(4) { background: var(--ink); }
.slip__foot { color: var(--muted); text-align: center; }

/* ---------- Guía de archivos ---------- */
.files__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.files__diagram { background: var(--paper-2); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.files .lead { margin: 22px 0 32px; }
.checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 22px; height: 22px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%23FFE500' stroke-width='2.2'/%3E%3C/svg%3E") center/14px no-repeat;
  border-radius: 2px;
}
.checks b { display: block; font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 1.08rem; }
.checks span { color: var(--muted); font-size: .96rem; }

/* ---------- Preguntas ---------- */
.faq { background: var(--paper-2); }
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px clamp(36px, 6vw, 88px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 28px); }
.faq__head .lead { margin-top: 22px; }
.qa details { border-top: 1.5px solid var(--ink); }
.qa details:last-child { border-bottom: 1.5px solid var(--ink); }
.qa summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 1.16rem; line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transition: transform .25s ease, background-color .2s;
}
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa details[open] summary::before, .qa details[open] summary::after { background: var(--magenta); }
.qa summary:hover { color: var(--magenta-ink); }
.qa details p { color: var(--muted); padding: 0 48px 24px 0; max-width: 64ch; }

/* ---------- Contacto ---------- */
.contact__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px clamp(36px, 6vw, 80px);
  background: var(--ink); color: var(--paper);
  padding: clamp(36px, 6vw, 76px);
  border-top: 10px solid; border-image: linear-gradient(90deg, var(--cyan) 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, #3A3A40 75% 100%) 1;
}
.contact__title {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: .95; letter-spacing: -.04em;
  margin-bottom: 22px;
}
.contact__lead { color: var(--muted-light); font-size: 1.1rem; max-width: 44ch; margin-bottom: 32px; }
.contact__data { align-self: end; }
.contact__data > div { padding: 16px 0; border-bottom: 1px solid rgba(244,241,234,.14); }
.contact__data > div:first-child { border-top: 1px solid rgba(244,241,234,.14); }
.contact__data dt { color: var(--muted-light); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.contact__data dd { font-size: 1.1rem; }
.contact__data a:hover { color: var(--yellow); }
.contact__social dd { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact__social a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(244,241,234,.35); }

/* ---------- Pie ---------- */
.footer { background: #0B0B0C; color: var(--muted-light); padding: 72px 0 28px; font-size: .95rem; }
.footer__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { color: var(--paper); margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; }
.footer__bar { display: flex; gap: 4px; margin-top: 24px; width: 120px; }
.footer__bar i { flex: 1; height: 6px; }
.footer__bar i:nth-child(1) { background: var(--cyan); }
.footer__bar i:nth-child(2) { background: var(--magenta); }
.footer__bar i:nth-child(3) { background: var(--yellow); }
.footer__bar i:nth-child(4) { background: var(--paper); }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col .mono { color: var(--paper); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.footer__col a:hover { color: var(--paper); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(244,241,234,.1); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px;
  transform: translateY(24px) scale(.9); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
html:not(.js) .wa-float { transform: none; opacity: 1; }
.wa-float__btn {
  position: relative; display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s ease, background-color .2s;
}
.wa-float__btn svg { width: 34px; height: 34px; }
.wa-float__btn::before { /* anillo que late para llamar la atención */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: wa-ping 2.6s cubic-bezier(.2,.8,.2,1) infinite;
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.wa-float:hover .wa-float__btn { transform: scale(1.06); background: #1EBE5A; }
.wa-float__label {
  background: var(--sheet); color: var(--ink);
  padding: 10px 14px; border-radius: 10px;
  font-size: .92rem; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); border: 1px solid rgba(20,20,22,.08);
  position: relative;
}
.wa-float__label b { color: #128C4A; }
.wa-float__label::after { /* piquito hacia el botón */
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px;
  background: var(--sheet); transform: translateY(-50%) rotate(45deg);
  border-right: 1px solid rgba(20,20,22,.08); border-top: 1px solid rgba(20,20,22,.08);
}
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .pledges { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px dashed var(--line); }
  .footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 12px var(--gutter) 32px;
    font-size: 1.3rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid rgba(244,241,234,.1); font-family: var(--f-display); font-stretch: 110%; font-weight: 700; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 24px; padding: 1em; font-size: 1.1rem; }
  .topbar p { display: none; }
  .topbar__in { justify-content: center; }

  .hero__in { grid-template-columns: 1fr; }
  .hero__sheet { justify-self: center; max-width: 520px; margin-top: 8px; }
  .section__head--split { grid-template-columns: 1fr; }
  .cat { grid-template-columns: 1fr; }
  .cat__side { position: static; }
  .custom__in, .files__in, .faq__in, .quote__grid, .contact__card { grid-template-columns: 1fr; }
  .faq__head, .slip { position: static; }
  .slip { max-width: 460px; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .files__diagram { order: 2; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand { font-size: 1.1rem; }
  .items { grid-template-columns: 1fr; }
  .pledges, .steps, .sector-grid { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px dashed var(--line); }
  .step:last-child { border-bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .products { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .product--tee { grid-row: auto; grid-column: 1 / -1; }
  .product svg { max-width: 170px; }
  .footer__in { grid-template-columns: 1fr; }
  .ticket { box-shadow: 6px 6px 0 var(--ink); }
  .ticket__head, .ticket__foot { padding: 12px 16px; }
  .wa-float__label { display: none; }
  .wa-float__btn { width: 58px; height: 58px; }
  .wa-float__btn svg { width: 31px; height: 31px; }
  .qa summary { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Fotografías (imágenes de referencia)
   ========================================================= */
.cat__photo { position: relative; margin-bottom: 24px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.cat__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) contrast(1.03); }
.cat__photo .cat__chip { position: absolute; left: 0; bottom: 0; margin: 0; }
.cat__photo::after { /* marca de corte en la esquina */
  content: ""; position: absolute; right: 10px; top: 10px; width: 16px; height: 16px;
  border-top: 1.5px solid rgba(255,255,255,.85); border-right: 1.5px solid rgba(255,255,255,.85);
}

/* Galería */
.gallery { background: var(--paper); padding-top: 0; }
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-auto-flow: dense; gap: 12px;
}
.tile { position: relative; overflow: hidden; background: var(--ink); display: block; }
.tile.g-big { grid-column: span 2; grid-row: span 2; }
.tile.g-tall { grid-row: span 2; }
.tile.g-wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,12,.78)); pointer-events: none; }
.tile__cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 650; font-size: 1rem; line-height: 1.2;
}
.tile__cap i { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.tile__k { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 2px; }
.tile__k .ico-k { width: 15px; height: 15px; }
.tile__k--C { background: var(--cyan); color: #fff; }
.tile__k--M { background: var(--magenta); color: #fff; }
.tile__k--Y { background: var(--yellow); color: var(--ink); }
.tile__k--K { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(244,241,234,.35); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover .tile__cap i, .tile:focus-visible .tile__cap i { opacity: 1; transform: none; }
@media (hover: none) { .tile__cap i { opacity: 1; transform: none; } }

/* Foto en "Nuestro compromiso" */
.trust__side { display: grid; gap: 20px; }
.trust__photo { aspect-ratio: 16 / 10; overflow: hidden; }
.trust__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 920px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cat__photo { max-width: 560px; }
}
@media (max-width: 640px) {
  .mosaic { grid-auto-rows: 150px; gap: 8px; }
  .tile.g-big { grid-column: span 2; grid-row: span 2; }
  .tile__cap { font-size: .9rem; left: 10px; right: 10px; bottom: 9px; }
  .tile__cap i { display: none; }
}

/* Íconos de línea de servicio (sustituyen las letras C M Y K) */
.ico-k { display: block; width: 16px; height: 16px; }
.cats b .ico-k { width: 15px; height: 15px; }
.cat__chip .ico-k { width: 26px; height: 26px; }
.cats a[href="#productos"] b { color: var(--paper); }

/* =========================================================
   Ajustes responsive (revisión en 320–1920 px)
   ========================================================= */
/* Las columnas de grid no deben crecer por su contenido */
.hero__in > *, .cat > *, .section__head--split > *, .custom__in > *, .files__in > *,
.faq__in > *, .quote__grid > *, .contact__card > *, .footer__in > * { min-width: 0; }

@media (max-width: 1180px) {
  .tile__cap i { display: none; }
}

@media (max-width: 920px) {
  .hero__in, .cat, .section__head--split, .custom__in, .files__in,
  .faq__in, .quote__grid, .contact__card { grid-template-columns: minmax(0, 1fr); }
  .slip__paper { transform: rotate(.8deg); }
}

@media (max-width: 640px) {
  /* Contacto: tarjeta a todo lo ancho y título que cabe */
  .contact .wrap { padding: 0; }
  .contact__card { padding: 44px var(--gutter) 40px; }
  .contact__title { font-size: clamp(2rem, 10.5vw, 3.4rem); font-stretch: 112%; }
  .contact__data a { display: inline-block; padding: 6px 0; }

  /* Cotizador */
  .choices { display: grid; grid-template-columns: 1fr; }
  .choice span { display: block; text-align: center; padding: 12px 16px; }
  .slip__paper { transform: none; padding: 22px 18px 40px; }
  .slip__rows > div { gap: 10px; }

  /* Galería: ícono arriba del texto para que quepan nombres largos */
  .tile__cap { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .86rem; }
  .tile__k { width: 22px; height: 22px; }
  .tile__k .ico-k { width: 13px; height: 13px; }

  /* Áreas táctiles cómodas */
  .footer__col { gap: 2px; }
  .footer__col a, .footer__col span { padding: 9px 0; }
  .brand { padding: 10px 0; }
  .faq__head .link { display: inline-block; padding: 6px 0; }
  .cats a { padding-block: 9px; }
  .hero__title { letter-spacing: -.03em; }

  /* Pie de la orden de trabajo: firma debajo del texto */
  .ticket { overflow: hidden; }
  .ticket__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .ticket__sign { flex: none; max-width: none; width: 100%; height: 34px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2.35rem; }
  .h2 { font-size: 1.85rem; }
  .btn--lg { padding: .95em 1.1em; font-size: 1rem; }
  .cats { gap: 8px; }
  .cats a { font-size: .9rem; }
  .mosaic { grid-auto-rows: 132px; }
}

/* Barra superior: el horario solo cabe en pantallas anchas */
.topbar p, .topbar__wa { white-space: nowrap; }
@media (max-width: 1080px) { .topbar__ship { display: none; } }
.topbar__free { color: var(--yellow); font-weight: 500; }
.qa details p b { color: var(--ink); }

/* Crédito del desarrollador */
.footer__credit { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244,241,234,.35); }
.footer__credit:hover { color: var(--yellow); text-decoration-color: var(--yellow); }
/* Espacio al final para que el botón flotante de WhatsApp no tape el pie */
.footer { padding-bottom: 104px; }
