/* Kirk Marketing — página principal */

/* ---------- Encabezado ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem var(--gut); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.top.scrolled { box-shadow: 0 1px 0 var(--ink); }
.top-logo img { width: 104px; height: auto; }
.top-nav { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2rem); font-weight: 700; font-size: .95rem; }
.top-nav a:not(.btn) { text-decoration: none; }
.top-nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 640px) { .top-nav a:not(.btn) { display: none; } .top-logo img { width: 88px; } }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: calc(100svh - 64px); padding: clamp(24px, 5vh, 64px) var(--gut) clamp(40px, 8vh, 96px); overflow: hidden; isolation: isolate; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-h { font-weight: 900; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.045em; line-height: .86; font-size: clamp(2.9rem, 9.2vw, 10.5rem); margin: 0 0 2.2rem; }
.hl { display: block; white-space: nowrap; }
.hl-strike { position: relative; display: inline-block; }
.strike-word { transition: color .5s .9s; }
.ribbon { position: absolute; left: -3%; right: -3%; top: 52%; height: .2em; border-radius: .1em; background: var(--satin), var(--spectrum); transform: translateY(-50%) rotate(-4deg) scaleX(0); transform-origin: left center; animation: strike 4.8s .45s cubic-bezier(.75,0,.15,1) infinite; }
.hero.ready .strike-word, .no-anim .strike-word { color: var(--g2); }
@keyframes strike { 0%, 8%, 100% { transform: translateY(-50%) rotate(-4deg) scaleX(0); } 32%, 82% { transform: translateY(-50%) rotate(-4deg) scaleX(1); } }
.hl-converts { font-size: .76em; line-height: 1.2; }
.hl-brand { display: flex; align-items: baseline; max-width: 68%; }
.brand-live { all: unset; cursor: text; position: relative; display: inline-block; white-space: nowrap; padding-bottom: .06em; }
.brand-live::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .09em; background: var(--satin), var(--spectrum); transform-origin: left; }
.brand-live:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.brand-live.pulse::after { animation: pulse .5s ease; }
@keyframes pulse { 0% { transform: scaleX(.2); } 100% { transform: scaleX(1); } }
.dot { color: var(--ink); }
.hero-try { max-width: 36rem; margin-bottom: 1.6rem; }
.hero-try label { display: block; margin-bottom: .4rem; }
.try-row { display: grid; gap: .35rem; }
#brand-input { font: inherit; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 750; font-stretch: 105%; border: 0; border-bottom: 3px solid var(--ink); padding: .5rem 0; background: transparent; width: 100%; border-radius: 0; }
#brand-input:focus { outline: none; border-image: var(--spectrum) 1; }
#brand-input:focus-visible { outline: none; }
.try-hint { font-size: .85rem; color: var(--g3); }
.hero-sub { max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.8rem; }
.hero-k { position: absolute; z-index: 0; right: var(--gut); bottom: clamp(40px, 9vh, 110px); width: min(30vw, 500px); transform: translateY(var(--ky, 0)) rotate(var(--kr, 0deg)); will-change: transform; }
.hero-k img { width: 100%; height: auto; }
@media (max-width: 820px) {
  .hero { min-height: auto; padding-top: 1.5rem; }
  .hero-k { right: var(--gut); top: 1.2rem; bottom: auto; width: 26vw; }
  .hero .kicker { max-width: 62%; }
  .hl-brand { max-width: 100%; }
  .hero-h { font-size: clamp(2.2rem, 11.2vw, 5.4rem); margin-top: 10vw; }
}

/* ---------- Línea de producción ---------- */
.line { position: relative; border-top: 1px solid var(--g2); scroll-margin-top: 88px; }
.line-head { padding: clamp(48px, 9vh, 120px) var(--gut) 2rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
.line-head .kicker { grid-column: 1 / -1; margin: 0; }
.sec-h { font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.045em; line-height: .94; font-size: clamp(2.6rem, 6vw, 6rem); margin: 0; }
.k-word { display: inline-block; width: .86em; height: .82em; object-fit: contain; vertical-align: -.04em; margin: 0 .03em 0 .04em; }
.line-intro { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 30rem; margin: 0; }
.line-intro .mono { display: block; margin-top: .9rem; color: var(--g3); text-transform: none; letter-spacing: 0; }

.track { list-style: none; margin: 0; padding: 0 var(--gut) 4rem; display: grid; gap: clamp(32px, 6vw, 80px); }
.station figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 1rem 3rem; }
.station:nth-child(even) figure { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.station:nth-child(even) .art { order: 2; }
.art { position: relative; aspect-ratio: 400 / 360; width: 100%; max-width: 560px; justify-self: center; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.layer.blank .shape { fill: #efefef; stroke: #c4c4c4; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.layer.blank .q { fill: #c4c4c4; font-family: var(--font); font-weight: 900; }
.layer.ink .shape { fill: #fff; stroke: #000; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.layer.ink .acc { fill: url(#kspec); }
.layer.ink .acc-stroke { stroke: url(#kspec); stroke-width: 9; fill: none; }
.brand-text { font-family: var(--font); font-weight: 900; font-stretch: 112%; fill: #000; letter-spacing: .01em; }
.brand-text.on-acc { fill: #fff; stroke: #000; stroke-width: 2.4px; paint-order: stroke; }
.station figcaption { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: .4rem .65rem; align-content: start; }
.station .st-n { grid-column: 1; grid-row: 1; padding-top: .3rem; }
.station .st-name, .station .st-line, .station .st-tech { grid-column: 2; }
.st-n { color: var(--g3); font-size: .85rem; }
.st-name { font-weight: 900; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .9; }
.st-line { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.st-tech { color: var(--g3); text-transform: none; letter-spacing: 0; font-size: .8rem; }
.beam, .line-progress { display: none; }

/* Modo animado (JS + movimiento permitido). Sin JS o con movimiento reducido todo queda marcado y estático. */
.js-line .layer.ink { clip-path: inset(0 calc(100% - var(--cut, 0%)) 0 0); }
@media (min-width: 821px) {
  .js-line .line-stage { height: var(--stage-h, 400vh); position: relative; }
  .js-line .stage-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
  .js-line .track { display: flex; gap: 0; padding: 0 0 0 52vw; width: max-content; will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
  .js-line .station { width: clamp(380px, 40vw, 600px); flex: none; padding: 0 2vw; }
  .js-line .station figure, .js-line .station:nth-child(even) figure { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .js-line .station:nth-child(even) .art { order: 0; }
  .js-line .art { max-width: min(100%, 48svh); width: 100%; height: auto; justify-self: center; }
  .js-line .st-name { font-size: clamp(2rem, 3.2vw, 3.2rem); overflow-wrap: anywhere; }
  .js-line .track::after { content: ''; flex: 0 0 46vw; }
  .js-line .beam { display: block; position: absolute; z-index: 2; left: 50%; top: max(13vh, 110px); bottom: 7vh; width: 4px; transform: translateX(-50%); pointer-events: none; }
  .beam-bar { position: absolute; inset: 64px 0 0; border-radius: 6px; background: var(--satin-h), var(--spectrum-v); }
  .beam-k { max-width: none; width: 36px; height: auto; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); }
  .js-line .line-progress { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: 3vh; height: 3px; background: var(--g1); }
  .line-progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
}
@media (max-width: 820px) {
  .station figure, .station:nth-child(even) figure { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .station:nth-child(even) .art { order: 0; }
  .art { max-width: 340px; }
  .track { gap: 2.6rem; padding-bottom: 3rem; }
  .station { padding-bottom: 1.8rem; border-bottom: 1px solid #e8e8e8; }
  .station:last-child { border-bottom: 0; padding-bottom: 0; }
  .st-name { font-size: clamp(2rem, 8vw, 3rem); }
  .st-line { font-size: 1rem; }
  .st-tech { font-size: .72rem; }
  .js-line .layer.ink { clip-path: none; opacity: var(--marked, 0); transition: opacity .22s ease-out; }
  .js-line .beam.on { display: block; position: fixed; z-index: 20; left: var(--gut); right: var(--gut); top: 56vh; height: 2px; pointer-events: none; }
  .js-line .beam.on .beam-bar { position: absolute; display: block; inset: 0; border-radius: 0; background: var(--satin), var(--spectrum); }
  .js-line .beam.on .beam-k { display: none; }
}

/* ---------- Cómo trabajamos ---------- */
.como { padding: clamp(48px, 8vh, 96px) var(--gut); border-top: 1px solid var(--g2); scroll-margin-top: 88px; }
.como .sec-h { margin-bottom: clamp(2rem, 6vh, 4rem); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); position: relative; }
.steps::before { content: ''; position: absolute; left: 0; top: -2px; height: 6px; width: 100%; background: var(--satin), var(--spectrum); transform: scaleX(var(--sp, 0)); transform-origin: left; transition: transform 1.4s cubic-bezier(.7,0,.2,1); }
.como.in .steps::before { --sp: 1; }
.steps li { padding: 1.6rem 1.6rem 0 0; border-right: 1px solid var(--g2); margin-right: 1.6rem; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.step-n { display: block; font-family: var(--mono); font-size: .85rem; line-height: 1; color: var(--g3); margin-bottom: 1.2rem; }
.steps h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 850; font-stretch: 105%; }
.como-note { margin-top: 3rem; font-weight: 700; max-width: 40rem; border-left: 6px solid var(--ink); padding-left: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--g2); padding-bottom: 1.2rem; }
}

/* ---------- Eslogan ---------- */
.statement { position: relative; background: var(--ink); color: #fff; padding: clamp(64px, 10vh, 120px) var(--gut); overflow: hidden; }
.state-big { position: relative; z-index: 1; margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; line-height: .84; font-size: clamp(3rem, 13vw, 14rem); font-stretch: 70%; }
.state-big em { font-style: normal; font-stretch: 125%; display: inline-block; }
.state-ribbon { position: absolute; left: -10%; right: -10%; top: 56%; height: clamp(18px, 3.2vw, 44px); background: var(--satin), var(--spectrum); transform: rotate(-6deg) translateX(var(--rx, 0)); }

/* ---------- Formulario ---------- */
.cotice { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 6rem); padding: clamp(48px, 8vh, 96px) var(--gut); scroll-margin-top: 88px; }
.cotice-head { align-self: start; position: sticky; top: 90px; }
.cotice-head p { max-width: 26rem; }
.cotice-head .sec-h { margin-bottom: 1.6rem; }
.ticket { border: 1px solid var(--g2); padding: clamp(1rem, 3vw, 2.4rem); position: relative; background: #fff; }
.ticket::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--satin), var(--spectrum); }
fieldset { border: 0; margin: 0; padding: 1.4rem 0 1.6rem; border-bottom: 1px solid var(--g2); min-width: 0; }
fieldset:last-of-type { border-bottom: 0; }
legend { font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 1.3rem; padding: 0; margin-bottom: 1rem; float: left; width: 100%; letter-spacing: -.01em; }
legend + * { clear: both; }
legend .mono { display: inline-block; background: var(--ink); color: #fff; padding: .15rem .45rem; margin-right: .5rem; font-size: .75rem; vertical-align: middle; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
.grid3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem 1.4rem; }
.f { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; margin-bottom: .6rem; }
.f-label { font-weight: 700; font-size: .95rem; }
.f input, .f textarea { font: inherit; font-weight: 500; font-size: 1.05rem; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: .55rem 0; background: transparent; width: 100%; color: var(--ink); }
.f textarea { border: 2px solid var(--ink); padding: .7rem .8rem; resize: vertical; min-height: 8rem; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 2px 0 var(--focus); }
.f input[aria-invalid=true], .f textarea[aria-invalid=true] { border-color: #c4003a; }
.hint { font-size: .85rem; color: var(--g3); margin: .2rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--g2); border-radius: 4px; font-weight: 650; font-size: .9rem; transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: inset 0 -5px 0 0 transparent; background-image: linear-gradient(var(--ink), var(--ink)), var(--spectrum); background-size: 100% calc(100% - 5px), 100% 100%; background-repeat: no-repeat; background-position: top, bottom; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip-alt span { border-style: dashed; }
.drop { display: grid; gap: .3rem; place-items: center; text-align: center; padding: 2rem 1rem; border: 2px dashed var(--ink); cursor: pointer; position: relative; transition: background .15s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.over { background: var(--g1); }
.drop-t { font-weight: 800; }
.drop-s { color: var(--g3); text-transform: none; letter-spacing: 0; }
.file-list { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .4rem; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--g2); padding: .35rem 0; font-size: .92rem; }
.file-list li.bad { color: #c4003a; }
.file-list button { all: unset; cursor: pointer; font-family: var(--mono); font-size: .75rem; text-decoration: underline; }
.file-list button:focus-visible { outline: 2px solid var(--focus); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ticket .check { margin: 1.4rem 0; font-size: .92rem; }
.send-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.err { color: #c4003a; }
.done { border: 3px solid var(--ink); padding: clamp(1.4rem, 4vw, 3rem); position: relative; }
.done::before { content: ''; position: absolute; left: -3px; right: -3px; top: -3px; height: 10px; background: var(--satin), var(--spectrum); }
.done-h { font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .95; letter-spacing: -.03em; }
@media (max-width: 900px) {
  .cotice { grid-template-columns: 1fr; }
  .cotice-head { position: static; }
  .line-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .chip span { min-height: 2.75rem; }
}

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: #fff; padding: clamp(48px, 9vh, 96px) var(--gut) 2rem; }
.foot-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 2rem 4rem; align-items: start; }
.foot-logo { width: 200px; height: auto; }
.foot .mono { color: #bdbdbd; }
.foot-contact, .foot-social { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-weight: 700; }
.foot-small { font-size: .85rem; color: #bdbdbd; }
.foot a { color: #fff; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .ribbon { animation: none; transform: translateY(-50%) rotate(-4deg) scaleX(1); }
  .strike-word { transition: none; color: var(--g2); }
  .steps::before { transition: none; transform: scaleX(1); }
  .hero-k { transform: none !important; }
  .state-ribbon { transform: rotate(-6deg) !important; }
  .brand-live.pulse::after { animation: none; }
}

/* La luz, el material y las sombras pertenecen al mismo mockup en ambas capas. */
.realistic .product-print { fill: var(--print-ink, #080808); opacity: 1; font-weight: 950; letter-spacing: -.035em; }
.realistic .layer { overflow: hidden; }
@media (max-width: 820px) {
  .line-head { padding-top: 3rem; padding-bottom: 1.25rem; gap: 1.25rem; }
  .hero { padding-bottom: 3rem; }
  .hero-ctas { gap: .5rem; }
  .hero-h { margin-bottom: 1.8rem; }
}

.realistic .product-decoration { mix-blend-mode: multiply; }
.hl-brand .brand-live { color: #000; text-shadow: .025em .025em 0 #ffd600; }
.hl-brand .brand-live::after { height: .13em; }

.realistic .finish-laser { opacity: .9; }
.realistic .finish-fabric { opacity: .96; }
.realistic .finish-thread .product-print { font-weight: 800; letter-spacing: .015em; }
