/* =========================================================
   HILVÁN — SECCIONES
   Cada sección tiene una composición propia. Breakpoints: 760 (tablet) y 1000 (computadora).
   ========================================================= */

.section { position: relative; padding-block: var(--section); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
}
/* El desenfoque va en un pseudo-elemento: si estuviera en .nav, el menú fijo de celular quedaría atrapado dentro */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}
.nav__bar {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-inline: var(--gutter);
}
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 28px; width: auto; transition: transform 0.4s var(--ease); }
.logo:hover .logo__img { transform: translateY(-1px); }
:root[data-theme="light"] .logo__img--on-dark,
:root[data-theme="dark"] .logo__img--on-light { display: none; }

.nav__links { display: none; justify-self: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.5rem 0;
  font-size: 0.93rem;
  font-weight: 560;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav__k { font-family: var(--f-mono); font-size: 0.66rem; color: var(--muted); transition: color 0.2s; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--thread) 0 5px, transparent 5px 8px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: none; }
.nav__links a.is-active .nav__k { color: var(--thread-ink); }

.nav__end { display: flex; align-items: center; gap: 0.6rem; justify-self: end; }
.nav__cta { display: none; }

.nav__menu { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -0.5rem; }
.nav__menu span { position: relative; width: 22px; height: 10px; }
.nav__menu i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav__menu i:first-child { top: 0; }
.nav__menu i:last-child { top: 8px; }
.nav__menu[aria-expanded="true"] i:first-child { top: 4px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] i:last-child { top: 4px; transform: rotate(-45deg); }

/* Selector de tema: claro · sistema · oscuro */
.theme {
  --o: 30px;
  --oh: 28px;
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  padding: 3px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}
.theme__opt { position: relative; z-index: 1; display: grid; place-items: center; width: var(--o); height: var(--oh); color: var(--muted); transition: color 0.3s var(--ease); }
.theme__opt:hover { color: var(--ink); }
.theme__opt[aria-pressed="true"] { color: var(--paper); }
.theme__thumb { position: absolute; top: 3px; left: 3px; width: var(--o); height: var(--oh); background: var(--ink); transition: transform 0.45s var(--ease-out), background-color 0.45s var(--ease); }
:root[data-theme-pref="auto"] .theme__thumb { transform: translateX(var(--o)); }
:root[data-theme-pref="dark"] .theme__thumb { transform: translateX(calc(var(--o) * 2)); }
@media (pointer: coarse) { .theme { --o: 38px; --oh: 36px; } }

/* Cinta métrica de lectura */
.tape {
  position: relative;
  height: 11px;
  border-block: 1px solid var(--rule);
  background:
    repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px 10px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 50px) left bottom / 100% 7px no-repeat,
    var(--paper);
}
.tape__fill {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 3px;
  background: var(--thread);
  transform: scaleX(0);
  transform-origin: left;
}

/* Menú en celular */
.menu {
  position: fixed;
  inset: calc(var(--nav-h) + 11px) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--paper);
  overflow-y: auto;
}
.menu__inner a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--rule-strong);
  font-size: clamp(1.9rem, 8.5vw, 2.8rem);
  font-weight: 760;
  font-variation-settings: 'wdth' 86;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.menu__inner .mono { font-size: 0.85rem; color: var(--thread-ink); }
.menu__foot { display: grid; gap: 0.8rem; }
.menu__hours { color: var(--muted); text-align: center; }

@media (min-width: 760px) { .nav__cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav__links { display: flex; }
  .nav__menu, .menu { display: none !important; }
}

/* =========================================================
   PORTADA — dos piezas unidas por el hilván
   ========================================================= */
.hero__cloth {
  --seam: 45%;
  position: relative;
  display: grid;
  grid-template-columns: var(--seam) 1fr;
  grid-template-rows: auto auto auto auto;
  align-content: center;
  min-height: min(860px, calc(100svh - var(--nav-h) - 11px - 64px));
  padding-block: clamp(4.5rem, 10vh, 7.5rem) clamp(2.5rem, 6vh, 4.5rem);
  background: linear-gradient(90deg, var(--kraft) 0 var(--seam), var(--paper) var(--seam));
  overflow: hidden;
  isolation: isolate;
}
/* Papel de molde cuadriculado en la pieza B */
.hero__cloth::after {
  content: '';
  position: absolute;
  inset: 0 0 0 var(--seam);
  z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
/* Marca de registro de molde */
.hero__cloth::before {
  content: '';
  position: absolute;
  right: var(--gutter);
  bottom: 1.6rem;
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--rule-strong), var(--rule-strong)) center / 1px 140% no-repeat,
    linear-gradient(var(--rule-strong), var(--rule-strong)) center / 140% 1px no-repeat;
}

.hero__piece-label {
  position: absolute;
  top: 1.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__piece-label--a { right: calc(100% - var(--seam) + 1.4rem); }
.hero__piece-label--b { left: calc(var(--seam) + 1.4rem); }

.hero__title {
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  font-size: clamp(3.1rem, 6.1vw, 7.4rem);
  font-weight: 830;
  font-variation-settings: 'wdth' 96;
  line-height: 0.9;
  letter-spacing: -0.048em;
}
.hero__w { display: block; padding-inline: clamp(0.9rem, 1.8vw, 2rem); }
.hero__w--1 { grid-column: 1; grid-row: 1; justify-self: end; }
.hero__w--2 {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 440;
  font-variation-settings: normal;
  letter-spacing: -0.03em;
  padding-top: 0.08em;
}
.hero__w--3 { grid-column: 2; grid-row: 2; justify-self: start; align-self: end; }
.hero__w--4 { grid-column: 2; grid-row: 3; justify-self: start; }
.hero__dot { color: var(--thread); }

.hero__side {
  grid-column: 2;
  grid-row: 4;
  align-self: start;
  max-width: 34rem;
  margin-top: clamp(1.8rem, 4vh, 3rem);
  padding-inline: clamp(0.9rem, 1.8vw, 2rem);
}
.hero__lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }

/* Línea de hilo recto del molde: flecha de doble punta en la pieza A */
.hero__grain {
  grid-column: 1;
  grid-row: 4;
  justify-self: center;
  align-self: stretch;
  position: relative;
  width: 1px;
  min-height: 150px;
  margin-top: 2.5rem;
  background: var(--ink-2);
  opacity: 0.55;
}
.hero__grain::before, .hero__grain::after {
  content: '';
  position: absolute;
  left: -5px;
  border: 5px solid transparent;
}
.hero__grain::before { top: -1px; border-bottom: 9px solid var(--ink-2); border-top: 0; }
.hero__grain::after { bottom: -1px; border-top: 9px solid var(--ink-2); border-bottom: 0; }
.hero__grain .mono {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  color: var(--ink);
}

/* La costura: puntadas que se hilvanan de arriba abajo al cargar */
.seam { position: absolute; top: 0; bottom: 0; left: var(--seam); width: 2px; margin-left: -1px; z-index: 2; pointer-events: none; }
.seam__thread {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, var(--thread) 0 16px, transparent 16px 27px);
}
.seam__needle { position: absolute; left: 50%; top: 100%; width: 10px; height: 54px; margin: -54px 0 0 -5px; color: var(--ink); opacity: 0; }
.anim .seam__thread { clip-path: inset(0 0 100% 0); animation: stitch-down 2.2s 0.35s var(--ease-out) forwards; }
.anim .seam__needle { animation: needle-down 2.2s 0.35s var(--ease-out) forwards; }
@keyframes stitch-down { to { clip-path: inset(0 0 0 0); } }
@keyframes needle-down {
  0% { top: 0; opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.anim .hero__w, .anim .hero__side { animation: rise 1s var(--ease-out) both; }
.anim .hero__w--2 { animation-delay: 0.08s; }
.anim .hero__w--3 { animation-delay: 0.2s; }
.anim .hero__w--4 { animation-delay: 0.28s; }
.anim .hero__side { animation-delay: 0.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } }

/* Orillo */
.selvage { position: relative; background: var(--band-bg); color: var(--band-fg); }
.selvage::before {
  content: '';
  position: absolute;
  inset: 7px 0 auto;
  height: 4px;
  background: radial-gradient(circle, currentColor 1.1px, transparent 1.6px) 0 50% / 13px 4px repeat-x;
  opacity: 0.35;
}
.selvage__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 2rem;
  padding: 1.55rem var(--gutter) 1.15rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--band-muted);
}
.selvage__list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.selvage__list li:not(.selvage__brand)::before { content: ''; width: 7px; height: 7px; background: var(--thread); margin-right: 0.35rem; }
.selvage__list strong { color: var(--band-fg); font-weight: 500; }
.selvage__brand { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--band-fg); }

/* Portada en celular: las piezas se apilan y la costura pasa a ser horizontal.
   El h1 sigue siendo una sola unidad: con subgrid sus palabras se ubican en filas del padre. */
@media (max-width: 759px) {
  .hero__cloth {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto auto auto;
    min-height: 0;
    padding: 0;
    background: var(--paper);
  }
  .hero__cloth::after { inset: 0; }
  .hero__cloth::before { display: none; }
  .hero__piece-label { position: static; grid-column: 1; display: block; padding: 2.2rem var(--gutter) 0.6rem; }
  .hero__piece-label--a { grid-row: 1; background: var(--kraft); }
  .hero__piece-label--b { grid-row: 5; padding-top: 1.3rem; }
  .hero__grain { display: none; }
  .hero__title { grid-column: 1; grid-row: 2 / 8; grid-template-columns: subgrid; font-size: clamp(2.7rem, 14.4vw, 4.6rem); }
  .hero__w { grid-column: 1; justify-self: stretch; padding-inline: var(--gutter); }
  .hero__w--1 { grid-row: 1; background: var(--kraft); }
  .hero__w--2 { grid-row: 2; background: var(--kraft); padding-bottom: 1.5rem; }
  .hero__w--3 { grid-row: 5; align-self: start; }
  .hero__w--4 { grid-row: 6; }
  .seam { position: relative; grid-column: 1; grid-row: 4; inset: auto; width: 100%; height: 2px; margin: 0; }
  .seam__thread { background: repeating-linear-gradient(90deg, var(--thread) 0 14px, transparent 14px 24px); }
  .anim .seam__thread { clip-path: inset(0 100% 0 0); animation: stitch-right 1.4s 0.3s var(--ease-out) forwards; }
  .seam__needle { display: none; }
  .hero__side { grid-column: 1; grid-row: 8; max-width: none; margin-top: 1.3rem; padding: 0 var(--gutter) 2.6rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .selvage__list { gap: 0.5rem 1.2rem; font-size: 0.68rem; }
}
@keyframes stitch-right { to { clip-path: inset(0 0 0 0); } }

/* =========================================================
   A — SERVICIOS
   ========================================================= */
.services__head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.8rem, 5vw, 5rem); }
.services__title { max-width: 18ch; }
@media (min-width: 1000px) {
  .services__head { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; }
  .services__head .piece-tag { grid-column: 1 / 5; justify-self: start; }
  .services__title { grid-column: 1 / 9; grid-row: 2; }
  .services__lead { grid-column: 9 / 13; grid-row: 2; align-self: end; padding-bottom: 0.4rem; }
}

.svc { display: grid; gap: 0; }
.svc__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0 1rem;
  align-items: start;
  width: 100%;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  transition: padding 0.35s var(--ease);
}
.svc__list > .svc__item:last-of-type { border-bottom: 1px solid var(--rule); }
.svc__n {
  font-size: 2.3rem;
  font-weight: 300;
  font-variation-settings: 'wdth' 70;
  line-height: 0.8;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.svc__name {
  display: block;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 720;
  font-variation-settings: 'wdth' 92;
  letter-spacing: -0.025em;
  line-height: 1.1;
  transition: transform 0.35s var(--ease);
}
.svc__line {
  display: block;
  margin-top: 0.45rem;
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.svc__price {
  margin-top: 0.35rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--rule-strong);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc__item::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 1.35rem;
  bottom: 1.35rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--thread) 0 6px, transparent 6px 10px);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.svc__item:hover .svc__name { transform: translateX(4px); }
.svc__item[aria-selected="true"] .svc__n { color: var(--thread); }
.svc__item[aria-selected="true"] .svc__price { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.svc__item[aria-selected="true"]::before { transform: none; }

/* Panel: una lámina de molde */
.svc__panel { padding: 0.4rem 0 2.2rem; }
.plate {
  position: relative;
  aspect-ratio: 5 / 4;
  background-color: var(--sheet);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
}
/* Marcas de corte en las cuatro esquinas */
.plate::after {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) left top / 14px 1px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) left top / 1px 14px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) right top / 14px 1px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) right top / 1px 14px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) right bottom / 1px 14px no-repeat;
  opacity: 0.6;
}
.plate__ref { position: absolute; left: 30px; top: 22px; z-index: 2; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.svc__panel:not([hidden]) .plate { animation: plate-in 0.6s var(--ease-out) both; }
@keyframes plate-in { from { opacity: 0; transform: translateY(10px); } }

/* Lámina 1 — celular con anotaciones */
.phone {
  position: absolute;
  left: 25%;
  top: 13%;
  bottom: -14%;
  width: 38%;
  padding: 9px;
  border-radius: 26px;
  background: #1a1714;
  box-shadow: var(--shadow), 0 0 0 1px var(--rule-strong);
}
.phone__screen { height: 100%; border-radius: 18px; background: #fbf7ef; color: #241f1a; padding: 12% 9% 0; display: flex; flex-direction: column; gap: 0.55rem; overflow: hidden; }
.ph-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; }
.ph-top b { font-weight: 760; letter-spacing: -0.01em; }
.ph-top em { font-family: var(--f-serif); font-weight: 500; }
.ph-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; background: radial-gradient(circle at 70% 30%, #e9b77a 0 18%, transparent 19%), linear-gradient(160deg, #c98a4b, #7a4a24); overflow: hidden; }
.ph-photo i { position: absolute; left: 8%; bottom: 9%; right: 30%; font-family: var(--f-serif); font-size: 0.78rem; line-height: 1.1; color: #fff8ee; }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.55rem; border-radius: 6px; background: #1f8a4c; color: #fff; font-size: 0.66rem; font-weight: 700; }
.ph-row { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.62rem; padding-bottom: 0.4rem; border-bottom: 1px solid #e7dfd0; }
.ph-row b { font-weight: 650; }
.ph-map { flex: 1; min-height: 40px; border-radius: 6px; background: repeating-linear-gradient(32deg, #e6dccb 0 2px, transparent 2px 14px), repeating-linear-gradient(-58deg, #e6dccb 0 2px, transparent 2px 18px), #f1ead9; position: relative; }
.ph-map i { position: absolute; left: 46%; top: 30%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e0491f; }
.note {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  width: 27%;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-2);
}
.note b { font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500; color: var(--thread-ink); }
.note::before { content: ''; position: absolute; top: 0.45rem; height: 1px; width: 2.6rem; background: repeating-linear-gradient(90deg, var(--thread) 0 4px, transparent 4px 7px); }
.note--1 { right: 5%; top: 40%; }
.note--1::before { right: calc(100% + 0.4rem); }
.note--2 { right: 5%; top: 66%; }
.note--2::before { right: calc(100% + 0.4rem); }
.note--3 { left: 4%; top: 22%; width: 17%; text-align: right; }
.note--3::before { left: calc(100% + 0.4rem); }

/* Lámina 2 — etiquetas colgantes y el pedido */
.hangtags { position: absolute; left: 7%; right: 30%; top: 24%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.hangtags::before { content: ''; position: absolute; left: -6%; right: -6%; top: -44px; height: 4px; border-radius: 2px; background: var(--ink-2); }
.hangtag {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1.7rem 0.8rem 0.9rem;
  background:
    linear-gradient(135deg, transparent 14px, var(--kraft) 14px) left top / 51% 100% no-repeat,
    linear-gradient(225deg, transparent 14px, var(--kraft) 14px) right top / 51% 100% no-repeat;
  color: var(--ink);
  transform: rotate(var(--r));
  transform-origin: 50% -40px;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.18));
}
.hangtag::before { content: ''; position: absolute; left: 50%; top: -42px; width: 1px; height: 50px; background: var(--ink-2); }
.hangtag__hole { position: absolute; left: 50%; top: 0.55rem; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.hangtag small { font-size: 0.6rem; color: var(--muted); }
.hangtag b { font-size: 0.92rem; font-weight: 720; line-height: 1.15; }
.hangtag em { font-style: normal; font-size: 0.92rem; font-weight: 650; }
.hangtag__deal { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px dashed var(--rule-strong); font-size: 0.6rem; color: var(--thread-ink); }
.slip {
  position: absolute;
  right: 6%;
  bottom: 9%;
  width: 34%;
  padding: 0.9rem 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  font-size: 0.74rem;
  display: grid;
  gap: 0.4rem;
}
.slip::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 6px; background: radial-gradient(circle at 5px -1px, transparent 4px, var(--paper) 4.5px) 0 0 / 10px 6px repeat-x; }
.slip__head { display: flex; justify-content: space-between; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-bottom: 0.4rem; border-bottom: 1px dashed var(--rule-strong); }
.slip__line { display: flex; justify-content: space-between; gap: 0.4rem; }
.slip__deal { font-size: 0.62rem; color: var(--ok); }
.slip__btn { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 0.2rem; padding: 0.5rem; background: #1f8a4c; color: #fff; font-size: 0.66rem; font-weight: 700; border-radius: 2px; }

/* Lámina 3 — planilla de stock */
.ledger { position: absolute; left: 7%; right: 7%; top: 52%; transform: translateY(-46%); display: grid; align-content: start; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); font-size: 0.8rem; }
.ledger__title { display: flex; justify-content: space-between; align-items: baseline; padding: 0.8rem 1rem; border-bottom: 2px solid var(--ink); }
.ledger__title b { font-size: 1.05rem; font-weight: 760; letter-spacing: -0.01em; }
.ledger__title span { font-size: 0.6rem; color: var(--muted); }
.ledger__row { display: grid; grid-template-columns: 1.6fr 0.5fr 1fr 0.8fr; align-items: center; gap: 0.8rem; padding: 0.55rem 1rem; border-bottom: 1px solid var(--rule); }
.ledger__row--head { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-block: 0.45rem; }
.ledger__row span:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 600; }
.lvl { position: relative; height: 6px; background: var(--rule); }
.lvl::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--ink-2); }
.st { justify-self: start; font-size: 0.66rem; font-weight: 650; color: var(--ok); }
.ledger__row.is-low { background: var(--warn-bg); }
.ledger__row.is-low .lvl::after { background: var(--thread); }
.ledger__row.is-low .st { color: var(--thread-ink); }
.ledger__foot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 1rem; align-items: end; padding: 0.8rem 1rem; }
.ledger__foot span { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ledger__foot b { grid-row: 2; font-size: 1.25rem; font-weight: 780; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.spark { grid-column: 2; grid-row: 1 / 3; width: 100%; height: 34px; }
.spark polyline { fill: none; stroke: var(--thread); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Lámina 4 — el hilo de una automatización */
.knots { position: absolute; left: 12%; right: 10%; top: 17%; display: grid; gap: 1.15rem; }
.knots::before { content: ''; position: absolute; left: 4.15rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: repeating-linear-gradient(180deg, var(--thread) 0 9px, transparent 9px 15px); }
.knots li { position: relative; display: grid; grid-template-columns: 3.4rem 1fr; grid-template-rows: auto auto; column-gap: 1.6rem; }
.knots li::before { content: ''; position: absolute; left: calc(4.15rem - 5px); top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--sheet); box-shadow: inset 0 0 0 2px var(--ink); }
.knots li.is-alert::before { background: var(--thread); box-shadow: none; }
.knots time { grid-row: span 2; font-size: 0.7rem; color: var(--muted); padding-top: 0.15rem; }
.knots b { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.knots em { font-style: normal; font-size: 0.82rem; color: var(--muted); }
.plate__aside { position: absolute; right: 30px; bottom: 22px; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--thread-ink); }

/* Lámina 5 — molde técnico */
.draft { position: absolute; inset: 14% 8% 6%; width: 84%; height: 80%; }
.draft__piece { fill: var(--kraft); stroke: var(--ink); stroke-width: 1.5; }
.draft__seam { fill: none; stroke: var(--thread); stroke-width: 1.5; stroke-dasharray: 8 6; }
.draft__grain, .draft__dim { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.draft__notch { fill: var(--ink); }
.draft__t { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); text-anchor: middle; letter-spacing: 0.08em; text-transform: uppercase; }
.draft__parts { position: absolute; inset: 14% 8% 6%; }
.draft__parts li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 0.35rem 0.6rem;
  background: var(--sheet);
  border: 1px solid var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
}
.draft__parts li::before { content: ''; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--thread); }

.svc__meta { display: grid; gap: 1rem; margin-top: 1.6rem; }
.svc__meta dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.svc__meta dd { font-size: 0.97rem; line-height: 1.5; }
.svc__panel .link-arrow { margin-top: 1.3rem; }

@media (max-width: 999px) {
  .svc__item[aria-selected="true"] { border-bottom: 0; }
  .svc__panel { padding: 0.2rem 0 2rem; }
  .plate { aspect-ratio: 4 / 4.2; }
  .plate--web .phone { left: 7%; width: 50%; }
  .note { width: 33%; font-size: 0.72rem; }
  .note--1, .note--2 { right: 4%; }
  .note--3 { display: none; }
  .hangtags { left: 5%; right: 5%; top: 13%; }
  .slip { left: 22%; right: 22%; width: auto; bottom: 6%; }
  .ledger { inset: 12% 5% 6%; }
  .ledger__row { grid-template-columns: 1.4fr 0.4fr 0.8fr 0.8fr; gap: 0.5rem; padding-inline: 0.7rem; }
  .knots { left: 6%; right: 6%; }
  .draft__parts li { font-size: 0.68rem; }
}
@media (min-width: 760px) and (max-width: 999px) { .plate { aspect-ratio: 16 / 10; } .svc__meta { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 5vw, 6rem); }
  .svc__item { padding: 1.5rem 0; }
  .svc__item[aria-selected="false"] .svc__line { display: none; }
  .svc__panels { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
  .svc__panel { padding: 0; }
  .svc__meta { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
}

/* =========================================================
   B — DEMOS: índice de trabajos con probador
   ========================================================= */
.demos { background: var(--kraft); }
.demos__head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.demos__title {
  font-size: clamp(2.6rem, 1.3rem + 5.4vw, 6.4rem);
  font-weight: 820;
  font-variation-settings: 'wdth' 78;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 14ch;
}
.demos__title em { font-family: var(--f-serif); font-weight: 420; font-style: italic; text-transform: none; letter-spacing: -0.03em; font-variation-settings: normal; color: var(--thread-ink); }
@media (min-width: 1000px) {
  .demos__head { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; align-items: end; }
  .demos__head .piece-tag { grid-column: 1 / -1; justify-self: start; }
  .demos__title { grid-column: 1 / 9; }
  .demos__lead { grid-column: 9 / 13; padding-bottom: 0.6rem; }
}

.work__list { counter-reset: work; }
.work__item { border-top: 1px solid var(--rule-strong); }
.work__item:last-child { border-bottom: 1px solid var(--rule-strong); }
.work__toggle {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.25rem 1rem;
  width: 100%;
  padding: 1.35rem 0 1.2rem;
  text-align: left;
}
.work__n { grid-row: span 2; padding-top: 0.75rem; color: var(--muted); }
.work__name {
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem);
  font-weight: 790;
  font-variation-settings: 'wdth' 84;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.35s var(--ease), transform 0.45s var(--ease);
}
.work__name em { font-family: var(--f-serif); font-style: italic; font-weight: 420; letter-spacing: -0.03em; font-variation-settings: normal; }
.work__kind { color: var(--muted); }
.work__body { padding: 0 0 2rem 4.2rem; }
.work__text { max-width: 46ch; color: var(--ink-2); }
.work__feat { display: grid; gap: 0.15rem; margin-top: 1rem; }
.work__feat li { display: flex; gap: 0.7rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--rule-strong); font-size: 0.94rem; }
.work__feat li::before { content: '+'; font-family: var(--f-mono); color: var(--thread-ink); }
.work__plan { margin-top: 1.1rem; color: var(--muted); }
.work__plan b { color: var(--ink); font-weight: 500; }
.work__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem; margin-top: 1.4rem; }
.work__shot { display: none; }

.stage { display: none; }

@media (min-width: 1000px) {
  .work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 5vw, 6rem); align-items: start; }
  .work__item:not(.is-active) .work__body { display: none; }
  .work__item:not(.is-active) .work__name { color: color-mix(in srgb, var(--ink) 42%, var(--kraft)); }
  .work__item:not(.is-active) .work__toggle:hover .work__name { color: var(--ink); transform: translateX(6px); }
  .work__item.is-active .work__name { color: var(--ink); }
  .work__item.is-active .work__body { animation: plate-in 0.55s var(--ease-out); }
  .work__item.is-active .work__n { color: var(--thread-ink); }

  .stage { display: block; position: sticky; top: calc(var(--nav-h) + 48px); aspect-ratio: 16 / 10; }
  .stage__desk {
    position: absolute;
    inset: 0 13% 13% 0;
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .stage__desk img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  .stage__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 25%;
    aspect-ratio: 440 / 952;
    padding: 5px;
    border-radius: 24px;
    background: #1a1714;
    box-shadow: var(--shadow);
  }
  .stage__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; }
  .stage img { transition: opacity 0.35s var(--ease); }
  .stage.is-swapping img { opacity: 0; }
  /* Alfileres que sujetan la captura al tablero */
  .stage__pin { position: absolute; top: -9px; z-index: 2; width: 16px; height: 16px; border-radius: 50%; background: var(--thread); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); }
  .stage__pin::after { content: ''; position: absolute; left: 7px; top: 12px; width: 2px; height: 16px; background: linear-gradient(var(--ink-2), transparent); }
  .stage__pin--1 { left: 8%; }
  .stage__pin--2 { left: 76%; }
}

/* Celular y tablet: cada trabajo es una ficha que se desliza */
@media (max-width: 999px) {
  .work__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 420px);
    gap: 1rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .work__item, .work__item:last-child { scroll-snap-align: start; border: 1px solid var(--rule-strong); background: var(--paper); display: flex; flex-direction: column; }
  .work__toggle { pointer-events: none; padding: 1.1rem 1.1rem 0.9rem; grid-template-columns: auto 1fr; }
  .work__n { grid-row: 1; padding-top: 0; }
  .work__name { grid-column: 1 / -1; grid-row: 2; font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .work__kind { grid-column: 2; grid-row: 1; justify-self: end; }
  .work__body { display: flex; flex-direction: column; flex: 1; padding: 0 1.1rem 1.2rem; }
  .work__shot { display: block; order: -1; margin: 0 0 1rem; aspect-ratio: 5 / 4; overflow: hidden; background: var(--sheet); border: 1px solid var(--rule); }
  .work__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .work__text { font-size: 0.95rem; }
  .work__feat li { font-size: 0.88rem; }
  .work__actions { margin-top: auto; padding-top: 1.2rem; }
  .work__actions .btn { flex: 1 1 auto; }
}

/* =========================================================
   C — PLANES: lista de precios de sastrería
   ========================================================= */
.pricing__head { display: grid; gap: 1.4rem; margin-bottom: 2.4rem; }
.pricing__title { max-width: 12ch; }
.tabs { display: flex; gap: 1.8rem; border-bottom: 1px solid var(--rule-strong); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: 0.8rem 0; font-weight: 650; color: var(--muted); transition: color 0.25s; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: repeating-linear-gradient(90deg, var(--thread) 0 7px, transparent 7px 11px); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: none; }
@media (min-width: 1000px) {
  .pricing__head { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; align-items: end; }
  /* Planes: el título se recuesta a la derecha y la bajada queda abajo a la izquierda */
  .pricing__head .piece-tag { grid-column: 1 / 5; grid-row: 1; justify-self: start; align-self: start; }
  .pricing__title { grid-column: 6 / 13; grid-row: 1 / 3; justify-self: end; text-align: right; max-width: none; font-size: clamp(3rem, 1.4rem + 4.4vw, 6rem); }
  .pricing__lead { grid-column: 1 / 6; grid-row: 2; align-self: end; }
  .tabs { grid-column: 1 / -1; margin-top: 1rem; }
}
.pricing__summary { margin-bottom: 1.4rem; color: var(--muted); }

/* Lista de precios: una fila por plan, como la pizarra de un taller.
   Nombre ······ precio, y debajo para quién es y qué incluye. El recomendado lleva un sello. */
.plans { counter-reset: plan; border-top: 2px solid var(--ink); }
.plan {
  counter-increment: plan;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  padding: 1.6rem 0 1.8rem;
  border-bottom: 1px solid var(--rule);
}
.plan::before { content: 'C·' counter(plan); display: none; font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); padding-top: 0.55rem; }
.plan__line { display: flex; align-items: baseline; gap: 0.8rem; min-width: 0; }
.plan__name { flex: none; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 780; font-variation-settings: 'wdth' 88; letter-spacing: -0.03em; line-height: 1; }
.plan__leader { flex: 1; min-width: 1.5rem; height: 2px; transform: translateY(-0.2em); background: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.4px) 0 50% / 8px 2px repeat-x; }
.plan__price { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.plan__amount {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3.1rem);
  font-weight: 820;
  font-variation-settings: 'wdth' 76;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.plan__amount small { margin-top: 0.3rem; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; font-variation-settings: normal; }
.plan--custom .plan__amount { font-family: var(--f-serif); font-style: italic; font-weight: 440; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); letter-spacing: -0.02em; font-variation-settings: normal; }
.plan__was { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--thread); }
.plan__for { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.98rem; max-width: 46ch; }
.plan__meta { grid-column: 1 / -1; font-size: 0.7rem; color: var(--muted); }
.plan__features { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; margin-top: 0.4rem; }
.plan__features li { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.93rem; line-height: 1.4; color: var(--ink-2); }
.plan__features li::before { content: ''; flex: none; width: 9px; height: 2px; transform: translateY(-0.25em); background: var(--thread); }
.plan .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.8rem; }
/* Sello de goma, ligeramente torcido */
.plan__stamp {
  position: absolute;
  z-index: 1;
  right: 0.4rem;
  top: -0.9rem;
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--thread);
  outline: 1px solid var(--thread);
  outline-offset: 2px;
  color: var(--thread-ink);
  background: var(--paper);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  pointer-events: none;
}
.plan--pick { background: linear-gradient(90deg, color-mix(in srgb, var(--thread) 7%, transparent), transparent 70%); }
.plan--pick .plan__name { color: var(--ink); }
.plan--pick::after { content: ''; position: absolute; left: -1rem; top: 1.6rem; bottom: 1.8rem; width: 2px; background: repeating-linear-gradient(180deg, var(--thread) 0 7px, transparent 7px 11px); }

@media (min-width: 760px) {
  .plan { grid-template-columns: 3.4rem minmax(0, 1fr) auto; column-gap: 1.6rem; padding: 2rem 0 2.1rem; }
  .plan::before { display: block; grid-row: 1 / span 4; }
  .plan__for, .plan__meta, .plan__features { grid-column: 2 / -1; }
  .plan .btn { grid-column: 2 / -1; }

}
@media (min-width: 1000px) {
  .plan { grid-template-columns: 3.4rem minmax(0, 1fr) 11rem 14rem; column-gap: 2rem; align-items: start; }
  .plan__line { grid-column: 2; grid-row: 1; }
  .plan__price { grid-column: 3; grid-row: 1 / span 2; }
  .plan__for { grid-column: 2; grid-row: 2; }
  .plan__features { grid-column: 2 / 4; grid-row: 3; }
  .plan__meta { grid-column: 3 / 5; grid-row: 4; text-align: right; }
  .plan .btn { grid-column: 4; grid-row: 1 / span 2; justify-self: stretch; align-self: start; margin-top: 0; }
  .plan__stamp { right: auto; left: calc(3.4rem + 2rem + 52%); top: 0.9rem; }
}

/* Debajo de los planes, en orden de lectura:
   1) barra para comparar  2) combos y servicios sueltos lado a lado, con el mismo encabezado  3) cómo se paga */
.compare { margin-top: clamp(2rem, 4vw, 3rem); border: 1.5px solid var(--ink); background: var(--sheet); }
.compare > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.25s var(--ease);
}
.compare > summary:hover { background: color-mix(in srgb, var(--thread) 6%, transparent); }
.compare__label { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.compare__hint { margin-left: auto; white-space: nowrap; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--thread-ink); }
.compare__close, .compare[open] .compare__open { display: none; }
.compare[open] .compare__close { display: inline; }
.compare[open] > summary { border-bottom: 1px solid var(--rule); }
.compare > summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.compare__body { padding: 0.5rem 1.3rem 1.5rem; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.cmp th, .cmp td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); text-align: center; }
.cmp thead th { font-size: 1.05rem; font-weight: 720; border-bottom: 2px solid var(--ink); }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink-2); padding-left: 0; }
.cmp .is-pick { background: color-mix(in srgb, var(--thread) 8%, transparent); }
.cmp .yes { color: var(--thread-ink); font-weight: 700; }
.cmp .no { color: var(--rule-strong); }
.cmp-mobile { display: none; }
@media (max-width: 759px) {
  .compare > summary { padding: 1rem; }
  .compare__label { font-size: 0.98rem; }
  .compare__hint { display: none; }
  .compare .plus { margin-left: auto; }
  .compare__body { padding: 0.8rem 1rem 1.2rem; }
  .cmp-desktop { display: none; }
  .cmp-mobile { display: block; }
  .cmp-mobile__select { display: flex; gap: 0.4rem; margin-bottom: 1rem; overflow-x: auto; }
  .cmp-mobile__select button { flex: none; padding: 0.55rem 0.9rem; border: 1px solid var(--rule-strong); font-weight: 620; font-size: 0.9rem; }
  .cmp-mobile__select button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .cmp-mobile__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px dashed var(--rule); font-size: 0.93rem; }
  .cmp-mobile__list li span:last-child { font-weight: 640; text-align: right; }
}

.addons { display: grid; gap: 3rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.addon__head { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding-bottom: 1.1rem; border-bottom: 2px solid var(--ink); }
.addon__n { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 0.78rem; margin-top: 0.1rem; }
.addon__title { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 760; font-variation-settings: 'wdth' 90; letter-spacing: -0.025em; line-height: 1.1; }
.addon__lead { margin-top: 0.3rem; color: var(--muted); font-size: 0.96rem; }

/* Combos */
.combo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1.5rem; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.combo__name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; font-size: 1.15rem; font-weight: 720; letter-spacing: -0.015em; }
.combo__tag { padding: 0.2rem 0.45rem; background: var(--thread); color: var(--on-thread); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.combo__inc { margin-top: 0.25rem; color: var(--muted); font-size: 0.94rem; }
.combo__for { margin-top: 0.15rem; font-size: 0.9rem; }
.combo__price { display: grid; justify-items: end; gap: 0.1rem; text-align: right; }
.combo__price s { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); text-decoration-color: var(--thread); }
.combo__price strong { font-size: 1.7rem; font-weight: 820; font-variation-settings: 'wdth' 78; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.combo__save { font-size: 0.68rem; color: var(--ok); letter-spacing: 0.04em; }
.combo__cta { grid-column: 1 / -1; justify-self: start; font-size: 0.9rem; padding-block: 0.2rem; }
.combo--pick { position: relative; }
.combo--pick::before { content: ''; position: absolute; left: -1rem; top: 1.3rem; bottom: 1.3rem; width: 2px; background: repeating-linear-gradient(180deg, var(--thread) 0 7px, transparent 7px 11px); }

/* Servicios sueltos: nombre ······ precio */
.extras__list li { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.95rem 0; border-bottom: 1px dashed var(--rule-strong); }
.extra__name { display: grid; gap: 0.1rem; font-size: 0.98rem; font-weight: 620; line-height: 1.35; }
.extra__name small { font-size: 0.86rem; font-weight: 400; color: var(--muted); }
.extra__leader { flex: 1; min-width: 1rem; height: 2px; align-self: center; background: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.4px) 0 50% / 8px 2px repeat-x; }
.extras__list li:has(small) .extra__leader { align-self: flex-start; margin-top: 0.7em; }
.extra__price { font-family: var(--f-mono); font-size: 0.85rem; font-weight: 500; white-space: nowrap; }

/* Cómo se paga */
.paynote {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.2rem 1.3rem;
  border: 1px dashed var(--rule-strong);
}
.paynote__title { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.paynote__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; counter-reset: pay; }
.paynote__steps li { display: flex; align-items: baseline; gap: 0.45rem; font-size: 0.98rem; }
.paynote__steps b { font-size: 1.35rem; font-weight: 820; font-variation-settings: 'wdth' 80; letter-spacing: -0.03em; color: var(--thread-ink); }
.paynote__steps li + li::before { content: ''; align-self: center; width: 2.2rem; height: 2px; margin-right: 0.6rem; background: repeating-linear-gradient(90deg, var(--thread) 0 5px, transparent 5px 9px); }
.paynote__fx { font-size: 0.88rem; color: var(--muted); }

@media (min-width: 1000px) {
  .addons { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; align-items: start; }
  .combo { grid-template-columns: minmax(0, 1fr) auto auto; }
  .combo__cta { grid-column: auto; justify-self: end; }
  .paynote { grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; padding: 1.1rem 1.5rem; }
  .paynote__fx { max-width: 34ch; text-align: right; }
}
@media (max-width: 759px) {
  .combo { grid-template-columns: minmax(0, 1fr) auto; }
  .combo__price strong { font-size: 1.5rem; }
  .paynote__steps { flex-direction: column; align-items: flex-start; }
  .paynote__steps li + li::before { display: none; }
}

/* =========================================================
   A MEDIDA — banda con cinta métrica
   ========================================================= */
.custom { position: relative; overflow: hidden; background: var(--band-bg); color: var(--band-fg); padding-block: 0 clamp(3.8rem, 7vw, 6.5rem); }
.custom__tape {
  height: 38px;
  margin: 0 -2% clamp(3rem, 6vw, 5rem);
  transform: rotate(-1.6deg) translateY(1.4rem);
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 18, 0.85) 0 1.5px, transparent 1.5px 12px) left bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(23, 21, 18, 0.85) 0 1.5px, transparent 1.5px 60px) left bottom / 100% 17px no-repeat,
    var(--thread);
}
.custom__inner { display: grid; gap: 2rem; }
.custom__title {
  font-size: clamp(2.5rem, 1.3rem + 5vw, 6rem);
  font-weight: 820;
  font-variation-settings: 'wdth' 84;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.custom__title em { font-family: var(--f-serif); font-weight: 420; letter-spacing: -0.03em; font-variation-settings: normal; color: var(--thread); }
.custom__side p { color: var(--band-muted); font-size: var(--t-lead); max-width: 40ch; margin-bottom: 1.6rem; }
@media (min-width: 1000px) { .custom__inner { grid-template-columns: 7fr 5fr; align-items: end; gap: 4rem; } }

/* =========================================================
   D — PROCESO: un solo hilo atraviesa los seis pasos
   ========================================================= */
.process {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.process__head { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.process__title { max-width: 16ch; }
@media (min-width: 1000px) {
  .process__head { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; align-items: end; }
  /* Proceso: título a todo el ancho, con la bajada metida debajo como una nota al margen */
  .process__head { align-items: start; }
  .process__head .piece-tag { grid-column: 1 / -1; justify-self: start; }
  .process__title { grid-column: 1 / -1; max-width: 22ch; font-size: clamp(3rem, 1.2rem + 4.6vw, 6.2rem); }
  .process__lead { grid-column: 8 / 13; margin-top: -0.4rem; padding-left: 1.2rem; border-left: 2px solid var(--thread); }
}

.steps { position: relative; display: grid; gap: 2.2rem; padding-left: 3.6rem; }
.steps::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--thread) 0 12px, transparent 12px 20px);
}
.step { position: relative; }
.step__n {
  position: absolute;
  left: -3.6rem;
  top: -0.2rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.25rem;
}
/* Los cuatro agujeros de un botón: el paso clave se "cose" */
.step--key .step__n { background: var(--thread); box-shadow: none; color: var(--on-thread); }
.step__flag { display: inline-block; margin-bottom: 0.4rem; padding: 0.2rem 0.5rem; background: var(--ink); color: var(--paper); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.step h3 { font-size: 1.15rem; font-weight: 720; letter-spacing: -0.015em; line-height: 1.2; }
.step p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 1.6rem; padding: 4rem 0 0; }
  .steps::before { left: 0; right: 0; top: 1.25rem; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 14px, transparent 14px 22px); }
  .step__n { left: 0; top: -4rem; }
  .step:nth-child(even) { padding-top: 2.6rem; }
  .step--key .step__flag { position: absolute; top: -3.75rem; left: 3.2rem; }
}

/* =========================================================
   E — EL TALLER
   ========================================================= */
.atelier__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.atelier__title { max-width: 16ch; margin-top: 1.4rem; }
.atelier__origin { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.atelier__origin-title { font-family: var(--f-serif); font-style: italic; font-weight: 450; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem; }
.atelier__origin p { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.6; }
.principles { display: grid; counter-reset: pr; }
.principles li { counter-increment: pr; display: grid; grid-template-columns: 3.2rem 1fr; align-content: start; gap: 0.35rem 1rem; padding: 1.25rem 0; border-top: 1px dashed var(--rule-strong); }
.principles li::before { content: 'E.' counter(pr); grid-row: span 2; font-family: var(--f-mono); font-size: 0.72rem; color: var(--thread-ink); padding-top: 0.3rem; }
.principles h3 { font-size: 1.2rem; font-weight: 720; letter-spacing: -0.015em; }
.principles p { color: var(--muted); font-size: 0.97rem; max-width: 46ch; }

/* Etiqueta de composición, como la que lleva una prenda */
.care {
  position: relative;
  align-self: start;
  max-width: 330px;
  padding: 2.2rem 1.6rem 1.5rem;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}
.care::before { content: ''; position: absolute; inset: 7px; border: 1px dashed var(--rule-strong); pointer-events: none; }
.care::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: linear-gradient(var(--rule), transparent); opacity: 0.6; }
.care__brand { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.care__list { display: grid; gap: 1rem; padding: 1.2rem 0; }
.care__list li { display: grid; justify-items: center; gap: 0.2rem; }
.care__list svg { color: var(--ink); margin-bottom: 0.2rem; }
.care__list b { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.care__list span { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.care__foot { padding-top: 0.9rem; border-top: 1px solid var(--rule); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 760px) and (max-width: 999px) { .care { max-width: none; } .care__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .atelier__grid { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; row-gap: 4.5rem; }
  .atelier__intro { grid-column: 1 / 8; }
  .atelier__origin { grid-column: 8 / 13; align-self: end; }
  .principles { grid-column: 1 / 8; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .care { grid-column: 9 / 13; justify-self: end; width: 100%; transform: rotate(1.2deg); }
}

/* =========================================================
   F — PREGUNTAS
   ========================================================= */
.faq { border-top: 1px solid var(--rule); }
.faq__grid { display: grid; gap: 2.5rem; }
.faq__head .h2 { margin: 1.4rem 0 1rem; }
.faq__list details { border-top: 1px solid var(--rule-strong); }
.faq__list details:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq summary:hover { color: var(--thread-ink); }
.faq__list { counter-reset: q; }
.faq summary { justify-content: flex-start; gap: 1.1rem; }
.faq summary::before { counter-increment: q; content: counter(q, decimal-leading-zero); flex: none; width: 1.6rem; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::before { color: var(--thread-ink); }
.faq summary .plus { margin-left: auto; }
.faq details p { padding-left: 2.7rem; }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--muted); max-width: 62ch; }
.faq details[open] summary { color: var(--ink); }
@media (min-width: 1000px) {
  .faq__grid { grid-template-columns: 5fr 7fr; gap: 6rem; }
  .faq__head { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
}

/* =========================================================
   G — CONTACTO: orden de trabajo
   ========================================================= */
.contact { background: var(--band-bg); color: var(--band-fg); }
.contact .lead { color: var(--band-muted); }
.contact__grid { display: grid; gap: 3rem; }
.contact__title { margin: 1.4rem 0 1.2rem; max-width: 14ch; }
.contact__title em { color: var(--thread); }
.channels { display: grid; margin-top: 2.2rem; border-top: 1px solid var(--band-rule); }
.channels a { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--band-rule); transition: padding 0.3s var(--ease), color 0.2s; }
.channels a:hover { padding-left: 0.5rem; color: var(--thread); }
.channels svg { flex: none; color: var(--thread); }
.channels span { display: grid; }
.channels b { font-weight: 680; }
.channels em { font-style: normal; font-size: 0.9rem; color: var(--band-muted); }
.contact__hours { margin-top: 1.2rem; color: var(--band-muted); }

.form {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-self: start;
  padding: 2rem clamp(1.3rem, 3vw, 2.6rem) 2.2rem clamp(1.8rem, 3.5vw, 3rem);
  background: var(--sheet);
  color: var(--ink);
}
/* Troquelado: la orden se arranca del talonario */
.form::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 6px;
  background: radial-gradient(circle, var(--band-bg) 2px, transparent 2.5px) 50% 0 / 6px 13px repeat-y;
}
.form__head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.form__head b { color: var(--ink); font-weight: 500; }
.form__row { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.3rem; }
.field > span { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.86rem; font-weight: 620; color: var(--ink-2); }
.field i { font-style: normal; color: var(--thread-ink); font-size: 0.68rem; }
.field abbr { text-decoration: none; color: var(--thread-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.02rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field select {
  appearance: none;
  padding-right: 1.6rem;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 7px) 55% / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink) 50%) calc(100% - 1px) 55% / 6px 6px no-repeat;
  cursor: pointer;
}
.field select option { background: var(--sheet); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--thread); box-shadow: 0 1.5px 0 var(--thread); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1.5px 0 var(--error); }
.form__error { padding: 0.8rem 1rem; background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); font-size: 0.92rem; font-weight: 560; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 0.5rem; }
.form__hint { font-size: 0.86rem; color: var(--muted); }
.form__ok { padding: 0.8rem 1rem; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ink); font-size: 0.92rem; }
.form__ok a { color: var(--thread-ink); font-weight: 650; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 5fr 7fr; gap: 6rem; } }

/* =========================================================
   PIE
   ========================================================= */
.footer { position: relative; background: var(--band-bg); color: var(--band-muted); padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom)); }
.footer__seam { height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 16px, transparent 16px 27px); opacity: 0.9; }
.footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 6vw, 5.5rem) 3rem; }
.footer__logo img { height: clamp(52px, 7vw, 92px); width: auto; }
.footer__brand p { margin-top: 1.3rem; max-width: 34ch; font-size: 0.95rem; }
.footer__col { display: grid; align-content: start; gap: 0.55rem; }
.footer__col .mono { margin-bottom: 0.4rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-fg); opacity: 0.6; }
.footer__col a { width: fit-content; color: var(--band-fg); transition: color 0.2s; }
.footer__col a:hover { color: var(--thread); }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding-top: 1.5rem; font-size: 0.82rem; }
.footer__bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--band-rule); }
.footer__bottom a { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; color: var(--band-fg); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
@media (max-width: 759px) {
  .footer__grid { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Cierre del pie: una frase grande que lleva a WhatsApp */
.footer__big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--band-rule);
  color: var(--band-fg);
  transition: color 0.3s var(--ease);
}
.footer__big-text {
  font-size: clamp(2.6rem, 1rem + 6.4vw, 8rem);
  font-weight: 820;
  font-variation-settings: 'wdth' 82;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.footer__big-text em { font-family: var(--f-serif); font-weight: 420; letter-spacing: -0.03em; font-variation-settings: normal; color: var(--thread); }
.footer__big-cta { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-muted); transition: color 0.3s var(--ease), gap 0.35s var(--ease); }
.footer__big-cta::after { content: ''; width: 2.5rem; height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 6px, transparent 6px 10px); transition: width 0.35s var(--ease); }
.footer__big:hover .footer__big-cta { color: var(--band-fg); }
.footer__big:hover .footer__big-cta::after { width: 4rem; }
