/* YeidiSoft home. Banknote paper, ink and the brand's wine and violet.
   One memorable thing: the sale that converts as you scroll. */
:root {
  --paper: #edf0ea;
  --paper-2: #e2e7df;
  --line: #c6cfc1;
  --ink: #1a211d;
  --ink-2: #4b554f;
  --wine: #4a1a26;
  --violet: #6b48c8;
  --ok: #1f7a55;
  --white: #fbfcfa;
  --logo-cut: var(--paper);
  --gutter: clamp(20px, 5vw, 72px);
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--violet); color: var(--white); }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 68px;
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  transition: background-color .3s, box-shadow .3s;
}
.bar.is-solid { background: rgba(237, 240, 234, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wine); }
.logo svg { width: 26px; height: 26px; }
.logo span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.bar nav { display: flex; gap: 28px; margin-left: auto; }
.bar nav a, .quiet { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.bar nav a:hover, .quiet:hover { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 20px; }
.pill { text-decoration: none; font-size: 15px; font-weight: 600; background: var(--ink); color: var(--white); padding: 9px 16px; border-radius: 999px; }
.pill:hover { background: var(--wine); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--wine); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-paper { background: var(--white); color: var(--ink); }
.btn-paper:hover { background: var(--paper-2); }

/* Hero stage */
.stage { position: relative; height: 340vh; }
.stage-pin {
  position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  padding: 96px var(--gutter) 56px;
}
.guilloche { position: absolute; width: min(120vh, 110vw); aspect-ratio: 1; right: -18vh; top: 50%; translate: 0 -50%; pointer-events: none; }
.guilloche path { fill: none; stroke: var(--line); stroke-width: .6; transition: stroke .6s; }
.stage.is-paid .guilloche path { stroke: #a9cdb8; }

.stage-copy { position: relative; grid-column: 1; grid-row: 1; align-self: end; max-width: 30rem; }
.kinetic { font-size: clamp(42px, 5.4vw, 80px); line-height: .96; letter-spacing: -0.035em; font-variation-settings: 'wdth' 88, 'opsz' 96; }
.kinetic .w { display: inline-block; font-variation-settings: 'wdth' var(--wd, 88), 'opsz' 96; }
.stage-copy > p:not(.fine) { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 27em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

.ticker-wrap { position: relative; grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
.ticker-cap { display: grid; font-size: 17px; color: var(--ink-2); }
.cap { grid-area: 1 / 1; justify-self: end; white-space: nowrap; opacity: 0; transition: opacity .35s; }
.cap.is-on { opacity: 1; }
.ticker {
  display: grid; overflow: hidden; padding-bottom: .16em; margin-bottom: -.12em;
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(64px, 12vw, 200px); line-height: 1.02; letter-spacing: -0.045em;
}
.amt { grid-area: 1 / 1; justify-self: end; white-space: nowrap; font-variation-settings: 'wdth' var(--w, 100), 'opsz' 96; }
.amt .ch { display: inline-block; will-change: transform; }
.amt.ok { color: var(--ok); }
.amt:not(:first-child) { visibility: hidden; }
.is-live .amt { visibility: visible; }
.steps-mini { list-style: none; padding: 0; margin: 18px 0 0; display: flex; justify-content: flex-end; gap: 22px; font-size: 14px; color: var(--ink-2); }
.steps-mini li { position: relative; padding-top: 12px; }
.steps-mini li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.steps-mini li::after { content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--ink); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.steps-mini li.is-on::after { width: 100%; }
.steps-mini li.is-on { color: var(--ink); }
.steps-mini li:last-child.is-on { color: var(--ok); }
.steps-mini li:last-child::after { background: var(--ok); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; font-size: 13px; color: var(--ink-2); }
.scroll-hint::after { content: ''; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(var(--ink-2), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Statement */
.statement { padding: clamp(96px, 16vh, 180px) var(--gutter); }
.reveal-words {
  max-width: 22em; font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -0.03em; font-variation-settings: 'wdth' 92;
}
.reveal-words .w { opacity: .16; }

/* Modules: horizontal track */
.modules { position: relative; }
.modules-pin { height: 100vh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 88px 0 40px; }
.modules-title { padding: 0 var(--gutter); font-size: 15px; font-family: var(--text); font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 20px; }
.track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; }
.panel {
  width: min(78vw, 980px); min-height: min(68vh, 560px); border-radius: 28px; padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr auto; gap: 24px 48px;
  background: var(--white);
}
.panel-head { align-self: start; }
.panel-name { font-size: clamp(56px, 8.4vw, 132px); line-height: .9; letter-spacing: -0.045em; font-variation-settings: 'wdth' var(--pw, 100), 'opsz' 96; font-weight: 700; }
.panel-what { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 22em; }
.panel-facts { list-style: none; padding: 0; margin: 0; align-self: start; display: grid; gap: 20px; }
.panel-facts li { color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--line); }
.panel-facts b { display: block; color: var(--ink); font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.panel-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.price { color: var(--ink-2); }
.price b { font-family: var(--display); font-size: 30px; color: var(--ink); letter-spacing: -0.02em; }
.p-pos { background: var(--white); }
.p-ver { background: #dcebe2; }
.p-ver .panel-name { color: var(--ok); }
.p-res { background: var(--wine); color: var(--white); }
.p-res .panel-name, .p-res .panel-facts b, .p-res .price b { color: var(--white); }
.p-res .panel-what, .p-res .panel-facts li, .p-res .price { color: rgba(251, 252, 250, .72); }
.p-res .panel-facts li { border-color: rgba(251, 252, 250, .2); }
.p-soon { background: transparent; border: 1.5px dashed var(--line); }
.p-soon .panel-name { color: var(--violet); }

/* Shared */
.shared { padding: clamp(96px, 14vh, 160px) var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.shared h2, .biz h2, .faq h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.03em; font-variation-settings: 'wdth' 85; }
.shared dl { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.shared dt { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; }
.shared dd { margin-top: 8px; color: var(--ink-2); max-width: 26em; }

/* Businesses */
.biz { padding: 0 var(--gutter) clamp(96px, 14vh, 160px); }
.biz ul { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--ink); }
.biz li { border-bottom: 1px solid var(--line); }
.biz a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; text-decoration: none; }
.biz-name {
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6vw, 92px); line-height: 1; letter-spacing: -0.04em;
  font-variation-settings: 'wdth' 75, 'opsz' 96; transition: font-variation-settings .5s cubic-bezier(.2, .8, .2, 1), color .3s;
}
.biz-plan { color: var(--ink-2); text-align: right; flex: none; }
.biz a:hover .biz-name, .biz a:focus-visible .biz-name { font-variation-settings: 'wdth' 100, 'opsz' 96; color: var(--violet); }

/* Prices ledger */
.prices { padding: clamp(96px, 14vh, 160px) var(--gutter); background: var(--white); }
.prices-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.prices-head h2 { font-size: clamp(36px, 4.8vw, 72px); line-height: .98; letter-spacing: -0.035em; font-variation-settings: 'wdth' 85; }
.prices-head p { color: var(--ink-2); max-width: 30em; }
.ledger { margin-top: 56px; border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 3fr 2fr 5fr auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row-name h3 { font-size: 30px; letter-spacing: -0.02em; }
.row-name p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.row-price b { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5vw, 72px); letter-spacing: -0.045em; line-height: 1; font-variation-settings: 'wdth' 80; }
.row-price span { display: block; color: var(--ink-2); font-size: 14px; }
.row-what { color: var(--ink-2); max-width: 30em; }
.row .btn { justify-self: end; }
.row-pro { background: var(--wine); color: var(--white); border-radius: 24px; border: 0; padding: 32px 28px; margin: 12px -28px 0; }
.row-pro .row-name p, .row-pro .row-price span, .row-pro .row-what { color: rgba(251, 252, 250, .72); }
.prices-notes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; color: var(--ink-2); font-size: 15px; }
.prices-notes b { color: var(--ink); }

/* FAQ */
.faq { padding: clamp(96px, 14vh, 160px) var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; translate: 0 -50%; background:
  linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 40em; }
.faq details a { color: var(--violet); }
.faq-more { grid-column: 2; color: var(--ink-2); }
.faq-more a { color: var(--violet); font-weight: 600; }

/* Finale */
.finale { padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(96px, 16vh, 180px); text-align: center; }
.finale-word {
  font-size: clamp(64px, 15vw, 260px); line-height: .86; letter-spacing: -0.05em; font-weight: 700; color: var(--wine);
  font-variation-settings: 'wdth' var(--fw, 100), 'opsz' 96; white-space: nowrap;
}
.finale p { margin: 28px auto 0; color: var(--ink-2); max-width: 26em; font-size: 18px; }
.finale .btn { margin-top: 28px; }

/* Footer */
.foot { background: var(--ink); color: rgba(251, 252, 250, .7); padding: 72px var(--gutter) 40px; --logo-cut: var(--ink); font-size: 15px; }
.foot .logo { color: #c9b8ff; }
.foot .logo span { color: var(--white); }
.foot-cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; }
.foot-brand p { margin-top: 14px; max-width: 18em; }
.foot h4 { color: var(--white); font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(251, 252, 250, .14); font-size: 13px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #128c4a; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 8px 24px rgba(18, 140, 74, .35); }
.wa-float svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }

/* Without motion (or before the script runs) the page still reads in order */
.no-motion .stage { height: auto; }
.no-motion .stage-pin { position: relative; height: auto; min-height: 0; padding-top: 120px; }
.no-motion .scroll-hint { display: none; }
.no-motion .reveal-words .w { opacity: 1; }
.no-motion .modules-pin { height: auto; overflow: visible; }

/* Tablet and phone */
@media (max-width: 1000px) {
  .bar nav { display: none; }
  .bar-actions { margin-left: auto; }
  .stage-pin { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; row-gap: clamp(40px, 8vh, 88px); padding-top: 88px; }
  .ticker-wrap { grid-column: 1; grid-row: 1; justify-self: stretch; text-align: left; }
  .cap, .amt { justify-self: start; }
  .steps-mini { justify-content: flex-start; }
  .stage-copy { grid-row: 2; align-self: start; }
  .guilloche { right: -40vw; top: 30%; }
  .panel { grid-template-columns: 1fr; width: 86vw; }
  .shared, .faq, .prices-head { grid-template-columns: 1fr; }
  .faq-more { grid-column: 1; }
  .row { grid-template-columns: 1fr auto; gap: 8px 24px; }
  .row-what { grid-column: 1 / -1; }
  .row .btn { grid-column: 1 / -1; justify-self: start; }
  .row-price { grid-row: 1; grid-column: 2; text-align: right; }
  .prices-notes { grid-template-columns: 1fr; gap: 10px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .quiet { display: none; }
  .ticker { font-size: 19vw; }
  .steps-mini { gap: 12px; font-size: 12px; }
  .stage-copy > p:not(.fine) { font-size: 16px; }
  .scroll-hint { display: none; }
  /* Modules stack on phones instead of scrolling sideways */
  .modules-pin { height: auto; overflow: visible; padding: 40px 0; }
  .track { flex-direction: column; width: auto; }
  .panel { width: auto; min-height: 0; padding: 28px 22px; border-radius: 22px; }
  .shared dl { grid-template-columns: 1fr; gap: 28px; }
  .biz a { flex-direction: column; gap: 4px; }
  .biz-plan { text-align: left; }
  .row-pro { margin: 12px -16px 0; padding: 26px 16px; }
  .wa-float span { display: none; }
  .wa-float { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint::after { animation: none; }
  .biz-name { transition: none; }
}

/* Servicios web: el panel del recorrido de módulos */
.p-web { background: var(--violet); color: var(--white); }
.p-web .panel-name { color: var(--white); font-size: clamp(44px, 6.4vw, 100px); }
.p-web .panel-facts b, .p-web .price b { color: var(--white); }
.p-web .panel-what, .p-web .panel-facts li, .p-web .price { color: rgba(251, 252, 250, .78); }
.p-web .panel-facts li { border-color: rgba(251, 252, 250, .24); }

.clients { padding: clamp(40px, 7vh, 72px) var(--gutter); border-top: 1px solid var(--line); }
.clients h2 { font-family: var(--text); font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.clients-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; margin-top: 28px; }
.clients-row a { display: block; }
.clients-row img { height: 96px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.clients-row a:hover img, .clients-row a:focus-visible img { filter: none; opacity: 1; }
