/* Yunque landing v2 — design layer (SOF-4).
   Tokens come from /brand/palette.css; fonts from /fonts/fonts.css.
   Display: Bricolage Grotesque (tight, heavy). Body: Space Grotesk. Meta: system mono. */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--hueso);
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
::selection { background: var(--brasa); color: var(--carbon); }

/* QA SOF-10: el atributo hidden tiene que ganarle a cualquier display
   declarado acá abajo (lightbox, panel de Yunqui, form de lead). */
[hidden] { display: none !important; }

html { color-scheme: dark; }

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-variation-settings: 'opsz' 96;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.mono {
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.muted { color: var(--humo); }
.brasa { color: var(--brasa); }
.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--hueso);
  color: var(--carbon);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--brasa-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------- buttons ---------------- */

.btn {
  --h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
}
.btn span[aria-hidden] { transition: transform 0.2s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--brasa);
  color: #160700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(255, 90, 31, 0.6), 0 8px 24px -10px var(--glow);
}
.btn-primary:hover {
  background: #ff6a33;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 0 0 1px rgba(255, 138, 76, 0.9), 0 10px 32px -8px rgba(255, 90, 31, 0.55);
}

.btn-ghost {
  background: rgba(242, 238, 230, 0.04);
  border-color: var(--line-strong);
  color: var(--hueso);
}
.btn-ghost:hover {
  background: rgba(242, 238, 230, 0.08);
  border-color: rgba(242, 238, 230, 0.55);
}

.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
}
.brand { display: inline-flex; color: var(--hueso); text-decoration: none; }
.brand-logo { height: 28px; width: auto; }
.brand-logo .spark { transform-box: fill-box; transform-origin: center; transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover .spark-a { transform: rotate(45deg) scale(1.15); }
.brand:hover .spark-b { transform: rotate(-45deg) scale(1.3); }

.nav-links {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ceniza);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--hueso); background: rgba(242, 238, 230, 0.05); }
.nav .btn { margin-left: auto; }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  margin-top: -64px;
  padding-top: 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 90, 31, 0.20), transparent 70%),
    radial-gradient(30% 30% at 50% 8%, rgba(255, 138, 76, 0.16), transparent 70%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 80%);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.7);
  color: var(--ceniza);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill:hover { color: var(--hueso); border-color: rgba(255, 90, 31, 0.85); }
.pill-arrow { color: var(--humo); transition: transform 0.2s ease, color 0.2s ease; }
.pill:hover .pill-arrow { transform: translateX(2px); color: var(--brasa); }
.pill-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brasa);
  box-shadow: 0 0 10px var(--brasa);
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(44px, 11vw, 92px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 0.96;
  max-width: 14ch;
}
.hero-title-sub {
  display: block;
  margin-top: 0.08em;
  background: linear-gradient(180deg, var(--brasa-hi) 0%, var(--brasa) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
  font-size: 0.56em;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 0.28em;
}
.hero-lede {
  margin-top: 24px;
  max-width: 560px;
  color: var(--ceniza);
  font-size: 17px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--humo);
  font-size: 13px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--brasa);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* console */
.console {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 56px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.9), rgba(17, 17, 19, 0.95));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 -20px 80px -40px var(--glow);
  text-align: left;
  overflow: hidden;
}
.console::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brasa-hi), transparent);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--humo);
}
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--carbon-2); border: 1px solid var(--line-strong); }
.console-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-tag {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.console-body { display: grid; gap: 0; }
.console-brief { padding: 20px; border-bottom: 1px solid var(--line); }
.label { color: var(--humo); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.console-quote { margin-top: 10px; color: var(--hueso); font-size: 15px; line-height: 1.55; }

.pipeline { margin: 0; padding: 12px; list-style: none; }
.pipeline li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--humo);
  font-size: 14px;
  transition: color 0.4s ease, background-color 0.4s ease;
}
.pl-day { color: var(--humo); }
.pl-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px dashed rgba(242, 238, 230, 0.22);
  transition: all 0.4s ease;
}
.pipeline li.is-done { color: var(--hueso); }
.pipeline li.is-done .pl-icon {
  border: 0;
  background: rgba(255, 90, 31, 0.16);
}
.pipeline li.is-done .pl-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brasa);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pipeline li.is-active { color: var(--hueso); background: rgba(255, 90, 31, 0.06); }
.pipeline li.is-active .pl-day { color: var(--brasa); }
.pipeline li.is-active .pl-icon {
  border: 2px solid rgba(255, 90, 31, 0.25);
  border-top-color: var(--brasa);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- sections ---------------- */

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 7vw, 56px); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brasa);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.section-sub { margin-top: 16px; color: var(--ceniza); font-size: 17px; }

/* card with mouse-follow spotlight border */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--carbon-1);
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 120, 60, 0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; }

/* steps */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { padding: 28px 24px 28px; }
.step-num { position: absolute; top: 24px; right: 24px; color: var(--humo); }
.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  fill: none;
  stroke: var(--hueso);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-icon .spark-line { stroke: var(--brasa); fill: var(--brasa); }
.step h3 { font-size: 24px; letter-spacing: -0.03em; }
.step p { margin-top: 10px; color: var(--ceniza); font-size: 15px; }

/* qué hacemos */
.offer { display: grid; gap: 16px; }
.offer-card { padding: 28px 24px; }
.offer-card h3 { font-size: 26px; letter-spacing: -0.03em; }
.offer-card > p { margin-top: 8px; color: var(--ceniza); font-size: 15px; }
.offer-ai {
  border-color: rgba(255, 90, 31, 0.35);
  background: radial-gradient(100% 70% at 100% 0%, rgba(255, 90, 31, 0.10), transparent 60%), var(--carbon-1);
}
.offer-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; color: var(--ceniza); }
.offer-list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; line-height: 1.5; }
.offer-list li::before { content: ''; width: 6px; height: 6px; margin: 8px 0 0 3px; border-radius: 1px; background: var(--brasa); transform: rotate(45deg); }
.offer-list strong { color: var(--hueso); font-weight: 600; }
.outcomes { display: grid; gap: 1px; margin: 16px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.outcomes li { display: grid; gap: 4px; padding: 20px 24px; background: var(--carbon); }
.outcome-k { font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif; font-variation-settings: 'opsz' 96; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--hueso); }
.outcome-v { color: var(--ceniza); font-size: 14px; }

/* pricing */
.ars-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 90, 31, 0.35);
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.08);
  color: var(--hueso);
  font-size: 14px;
  text-align: left;
}
.ars-badge strong { font-weight: 600; color: var(--brasa-hi); }
.ars-badge svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--brasa); stroke-width: 1.5; }

.plans { display: grid; gap: 16px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}
.plan-name { font-size: 22px; letter-spacing: -0.025em; }
.plan-desc { margin-top: 6px; color: var(--ceniza); font-size: 14px; }
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-variation-settings: 'opsz' 96;
  font-weight: 720;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price .cur { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--humo); font-family: 'Space Grotesk', sans-serif; }
.plan-price .per { font-size: 18px; color: var(--ceniza); letter-spacing: -0.01em; }
.plan-unit { margin-top: 10px; color: var(--humo); font-size: 13px; }
.plan-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
  color: var(--hueso);
}
.plan-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.plan-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--ceniza);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan .btn { margin-top: auto; }

.plan-featured {
  border-color: rgba(255, 90, 31, 0.45);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 90, 31, 0.12), transparent 60%),
    var(--carbon-1);
  box-shadow: 0 30px 60px -30px rgba(255, 90, 31, 0.35);
}
.plan-featured .plan-list li::before { background: var(--brasa); }
.plan-flag {
  position: absolute;
  top: 26px;
  right: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brasa);
  color: #160700;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.pilot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 16px;
  padding: 28px 24px;
  border-style: dashed;
  border-color: rgba(255, 90, 31, 0.4);
  background:
    repeating-linear-gradient(135deg, rgba(255, 90, 31, 0.035) 0 10px, transparent 10px 20px),
    var(--carbon-1);
}
.pilot .kicker { margin-bottom: 12px; }
.pilot h3 { font-size: clamp(24px, 4.5vw, 32px); letter-spacing: -0.03em; max-width: 22ch; }
.pilot p { margin-top: 10px; max-width: 560px; color: var(--ceniza); font-size: 15px; }

/* faq */
.faq-wrap { display: grid; gap: 8px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ceniza);
  font-size: 16px;
  transition: transform 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq summary:hover { color: var(--brasa-hi); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brasa); border-color: rgba(255, 90, 31, 0.85); }
.faq details p { padding: 0 40px 22px 0; color: var(--ceniza); font-size: 15px; }

/* cta / waitlist */
.cta {
  display: grid;
  gap: 32px;
  padding: 32px 24px;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(255, 90, 31, 0.12), transparent 60%),
    var(--carbon-1);
}
.cta-copy h2 { font-size: clamp(32px, 6vw, 48px); }
.cta-copy > p:not(.kicker) { margin-top: 16px; color: var(--ceniza); font-size: 16px; max-width: 440px; }
.cta-points { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--hueso); }
.cta-points li { display: flex; align-items: center; gap: 10px; }
.cta-points li::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--brasa); transform: rotate(45deg); }

.field-row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ceniza); }
.opt { color: var(--humo); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--carbon);
  color: var(--hueso);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23A19D96' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field ::placeholder { color: var(--humo); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(242, 238, 230, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brasa);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.16);
}
.field [aria-invalid='true'] { border-color: #ff6b6b; }
.field select.is-picked { animation: pick 0.8s ease; }
@keyframes pick { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } }

.form-status { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--ceniza); }
.form-status[data-state='error'] { color: #ff8a80; }

.success { padding: 12px 0; outline: none; }
.success-mark { width: 56px; height: 56px; margin-bottom: 12px; animation: twinkle 2.4s ease-in-out infinite; transform-origin: center; }
.success h3 { font-size: 30px; }
.success p { margin: 10px 0 22px; color: var(--ceniza); }
@keyframes twinkle { 50% { transform: rotate(45deg) scale(0.9); opacity: 0.8; } }

/* footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 14px; }
.footer-tag { color: var(--ceniza); font-size: 14px; }
.footer-legal { color: var(--humo); }

/* ---------------- reveal ---------------- */

.reveal-init { opacity: 0; transform: translateY(14px); filter: blur(4px); }
.reveal-init.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
  transition-delay: var(--d, 0ms);
}

/* hero entrance: pure CSS, never depends on JS to become visible */
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ---------------- responsive ---------------- */

@media (min-width: 640px) {
  .wrap, .nav-inner { padding: 0 32px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .console-body { grid-template-columns: 0.9fr 1.1fr; }
  .console-brief { border-bottom: 0; border-right: 1px solid var(--line); padding: 24px; }
  .pipeline { padding: 14px; }
}

@media (min-width: 768px) {
  .hero { padding-top: 150px; padding-bottom: 96px; }
  .offer { grid-template-columns: 1fr 1fr; }
  .outcomes { grid-template-columns: repeat(3, 1fr); }
  .pilot { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; }
  .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
  .section { padding: 112px 0; }
  .cta { padding: 40px; }
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 8px; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan-featured { transform: translateY(-12px); }
  .cta { grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child { grid-column: 1 / -1; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { grid-column: 1 / -1; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   TRABAJOS — portfolio interactivo (SOF-10)
   Fichas técnicas con preview en vivo; lightbox = mesa de inspección.
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.folio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.folio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ceniza);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.folio-chip:hover { color: var(--hueso); border-color: rgba(242, 238, 230, 0.4); }
.folio-chip .folio-count { color: var(--humo); }
.folio-chip.is-active {
  color: var(--hueso);
  border-color: rgba(255, 90, 31, 0.55);
  background: rgba(255, 90, 31, 0.09);
}
.folio-chip.is-active .folio-count { color: var(--brasa-hi); }

.folio { display: grid; gap: 16px; }
.folio-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.folio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 31, 0.4);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}
.folio-card:focus-visible { outline-offset: -2px; }

.folio-preview { position: relative; border-bottom: 1px solid var(--line); }
.folio-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  background: var(--carbon-2);
  border-bottom: 1px solid var(--line);
  color: var(--humo);
}
.folio-dots { display: inline-flex; gap: 5px; }
.folio-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--carbon); border: 1px solid var(--line-strong); }
.folio-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.folio-frame { position: relative; height: 200px; background: var(--carbon); overflow: hidden; }
.folio-frame iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.folio-badge {
  position: absolute;
  top: 46px;
  right: 12px;
  z-index: 2;
  padding: 3px 9px;
  border: 1px solid rgba(255, 90, 31, 0.45);
  border-radius: 6px;
  background: rgba(10, 10, 11, 0.82);
  color: var(--brasa-hi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* chat preview mock (rendered by JS) */
.folio-frame .mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px;
  height: 100%;
}
.mock-bubble {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.mock-bubble.bot { align-self: flex-start; background: var(--carbon-2); color: var(--ceniza); border-bottom-left-radius: 4px; }
.mock-bubble.user { align-self: flex-end; background: rgba(255, 90, 31, 0.14); color: var(--hueso); border-bottom-right-radius: 4px; }
.mock-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 11px 12px; }
.mock-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--humo);
  animation: mock-blink 1.2s infinite;
}
.mock-typing i:nth-child(2) { animation-delay: 0.15s; }
.mock-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes mock-blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.folio-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.folio-body h3 { font-size: 24px; letter-spacing: -0.03em; }
.folio-tag { margin-top: 8px; color: var(--ceniza); font-size: 15px; line-height: 1.5; }
.folio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--humo);
  font-size: 12px;
}
.folio-meta li strong { color: var(--hueso); font-weight: 500; }
.folio-open {
  margin-top: auto;
  padding-top: 16px;
  color: var(--brasa-hi);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.folio-card:hover .folio-open { color: var(--brasa); }
.folio-card.is-hidden { display: none; }

.folio-empty { margin-top: 12px; color: var(--ceniza); font-size: 15px; }
.folio-empty a { color: var(--brasa-hi); }

@media (min-width: 900px) {
  .folio { grid-template-columns: repeat(2, 1fr); }
  .folio-card.is-featured { grid-column: 1 / -1; }
  .folio-card.is-featured .folio-frame { height: 280px; }
  .folio-card.is-featured .folio-body { flex-direction: row; align-items: flex-end; gap: 24px; }
  .folio-card.is-featured .folio-body > div { flex: 1; }
  .folio-card.is-featured .folio-meta { margin: 0; padding: 0; border-top: 0; align-self: flex-end; }
}

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lb-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lb-body {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(88vh, 88dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lb-in 0.2s ease;
}
@keyframes lb-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
.lb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.lb-title { font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.lb-badge {
  padding: 3px 9px;
  border: 1px solid rgba(255, 90, 31, 0.45);
  border-radius: 6px;
  color: var(--brasa-hi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.lb-close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ceniza);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.lb-close:hover { color: var(--hueso); border-color: rgba(242, 238, 230, 0.45); background: var(--carbon-2); }
.lb-close svg { width: 14px; height: 14px; }

.lb-main {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow: auto;
}
.lb-stage { position: relative; min-height: 420px; background: var(--carbon); }
.lb-stage .lb-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  background: var(--carbon-2);
  border-bottom: 1px solid var(--line);
  color: var(--humo);
}
.lb-stage iframe { width: 100%; height: calc(100% - 36px); border: 0; display: block; }
.lb-stage.is-iframe { height: 62vh; }
.lb-spec {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
}
.lb-spec .label { margin-top: 20px; }
.lb-spec .label:first-of-type { margin-top: 0; }
.lb-tagline { color: var(--ceniza); font-size: 15px; line-height: 1.55; }
.lb-facts { display: grid; gap: 12px; margin: 18px 0 0; }
.lb-facts > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: baseline;
  gap: 12px;
}
.lb-facts dt { color: var(--humo); font-size: 12px; }
.lb-facts dd { margin: 0; color: var(--hueso); font-size: 13px; }
.lb-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.lb-stack li {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ceniza);
  font-size: 11px;
}
.lb-points { display: grid; gap: 9px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ceniza); }
.lb-points li { display: grid; grid-template-columns: 14px 1fr; gap: 9px; line-height: 1.45; }
.lb-points li::before {
  content: '';
  width: 6px; height: 6px;
  margin: 7px 0 0 3px;
  border-radius: 1px;
  background: var(--brasa);
  transform: rotate(45deg);
}
.lb-spec .btn { margin-top: 22px; }

@media (min-width: 920px) {
  .lb-main { grid-template-columns: 1.55fr 340px; overflow: hidden; }
  .lb-stage { height: 64vh; min-height: 460px; }
  .lb-stage.is-iframe { height: 64vh; }
  .lb-spec { border-top: 0; border-left: 1px solid var(--line); overflow: auto; }
}

/* En móvil el sheet scrollea; el CTA queda pegado abajo como affordance. */
@media (max-width: 919px) {
  .lb-spec { padding-bottom: 10px; }
  .lb-spec .btn {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 18px;
    margin-bottom: -4px;
    box-shadow: 0 -12px 18px -12px rgba(0, 0, 0, 0.9);
  }
}

/* ==========================================================================
   YUNQUI — chatbot de ventas (SOF-10). Chispa en la esquina, no un circo.
   Compartido entre el widget flotante y la demo embebida del lightbox.
   ========================================================================== */

.chat-skin { display: flex; flex-direction: column; min-height: 0; }

.yunqui { position: fixed; right: 18px; bottom: 18px; z-index: 80; }

.yunqui-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 138, 76, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6a33, var(--brasa));
  color: #160700;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px -8px var(--glow), 0 0 0 0 rgba(255, 90, 31, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fab-breathe 3.2s ease-in-out infinite;
}
@keyframes fab-breathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px -8px var(--glow), 0 0 0 0 rgba(255, 90, 31, 0.4); }
  55% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px -8px var(--glow), 0 0 0 9px rgba(255, 90, 31, 0); }
}
.yunqui-fab:hover { transform: translateY(-2px); }
.yunqui-fab:active { transform: translateY(0) scale(0.98); }
.yunqui-fab svg { width: 21px; height: 21px; }
.yunqui-fab .yunqui-spark { transform-box: fill-box; transform-origin: center; animation: yq-spark 2.6s ease-in-out infinite; }
@keyframes yq-spark { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(18deg) scale(1.25); } }
.yunqui-fab-tag { display: none; }

.yunqui-fab-open, .yunqui-fab-close { display: grid; place-items: center; }
.yunqui-fab[aria-expanded='true'] .yunqui-fab-open { display: none; }
.yunqui-fab[aria-expanded='false'] .yunqui-fab-close { display: none; }
.yunqui-fab[aria-expanded='true'] { width: 56px; padding: 0; justify-content: center; animation: none; }
.yunqui-fab[aria-expanded='true'] .yunqui-fab-tag { display: none; }

.yunqui-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(384px, calc(100vw - 24px));
  height: min(600px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: var(--line-strong);
  background: var(--carbon-1);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.85);
  animation: yq-in 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  transform-origin: bottom right;
}
@keyframes yq-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

.yunqui-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 120% at 0% 0%, rgba(255, 90, 31, 0.12), transparent 60%), var(--carbon-1);
}
.yunqui-avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 90, 31, 0.45);
  border-radius: 10px;
  background: rgba(255, 90, 31, 0.1);
}
.yunqui-avatar svg { width: 22px; height: 22px; }
.yunqui-id { display: grid; line-height: 1.25; }
.yunqui-id strong { font-size: 15px; letter-spacing: -0.01em; }
.yunqui-id small { color: var(--ceniza); font-size: 12px; }
.yunqui-id small::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 5px 0 0;
  border-radius: 50%;
  background: #7fd6a4;
  box-shadow: 0 0 8px rgba(127, 214, 164, 0.8);
}
.yunqui-close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ceniza);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.yunqui-close:hover { color: var(--hueso); border-color: rgba(242, 238, 230, 0.45); }
.yunqui-close svg { width: 13px; height: 13px; }

/* --- chat body compartido --- */

.ychat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--carbon-2) transparent;
}
.ymsg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  animation: ymsg-in 0.2s ease;
}
@keyframes ymsg-in { from { opacity: 0; transform: translateY(4px); } }
.ymsg.bot {
  align-self: flex-start;
  background: var(--carbon-2);
  color: var(--hueso);
  border-bottom-left-radius: 4px;
}
.ymsg.user {
  align-self: flex-end;
  background: rgba(255, 90, 31, 0.13);
  border: 1px solid rgba(255, 90, 31, 0.3);
  color: var(--hueso);
  border-bottom-right-radius: 4px;
}
.ymsg.sys {
  align-self: center;
  max-width: 100%;
  padding: 2px 0;
  color: var(--humo);
  font-size: 11.5px;
  background: none;
  animation: none;
}
.ymsg.typing { display: inline-flex; gap: 4px; padding: 12px; }
.ymsg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--humo); animation: yq-dots 1.1s infinite; }
.ymsg.typing i:nth-child(2) { animation-delay: 0.15s; }
.ymsg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes yq-dots { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ychat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.ychip {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ceniza);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.ychip:hover { color: var(--hueso); border-color: rgba(255, 90, 31, 0.55); background: rgba(255, 90, 31, 0.07); }

.ychat-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.ychat-input input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--carbon);
  color: var(--hueso);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ychat-input input::placeholder { color: var(--humo); }
.ychat-input input:focus {
  outline: none;
  border-color: var(--brasa);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}
.ychat-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--brasa);
  color: #160700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ychat-send:hover { background: #ff6a33; }
.ychat-send:active { transform: scale(0.96); }
.ychat-send:disabled { opacity: 0.55; cursor: default; }
.ychat-send svg { width: 17px; height: 17px; }

/* --- lead form --- */

.yunqui-lead { display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--carbon-1); }
.yunqui-lead-title { font-size: 13px; font-weight: 600; }
.yunqui-lead input {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--carbon);
  color: var(--hueso);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.yunqui-lead input:focus { outline: none; border-color: var(--brasa); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15); }
.yunqui-lead input[aria-invalid='true'] { border-color: #ff6b6b; }
.yunqui-lead-actions { display: flex; gap: 8px; }
.yunqui-lead-status { min-height: 16px; color: var(--humo); font-size: 11px; }
.yunqui-lead-status[data-state='error'] { color: #ff8a80; }
.yunqui-lead-status[data-state='ok'] { color: #7fd6a4; }

.yunqui-lead-link {
  display: block;
  padding: 8px 0 12px;
  border: 0;
  background: none;
  color: var(--humo);
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.yunqui-lead-link:hover { color: var(--brasa-hi); }

/* --- demo embebida en el lightbox --- */

.lb-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: inherit;
}
.lb-chat .ychat-log { padding: 18px 16px; }
.lb-chat .ymsg { max-width: 80%; font-size: 14.5px; }

@media (max-width: 639px) {
  .yunqui { right: 12px; bottom: 12px; }
  .yunqui-fab { height: 52px; padding: 0 15px; font-size: 13.5px; }
  .yunqui-panel {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 76px;
    width: auto;
    height: min(600px, calc(100dvh - 100px));
  }
  .lb { padding: 10px; }
  .lb-body { max-height: calc(100dvh - 20px); }
  .lb-stage { min-height: 340px; }
  .lb-stage.is-iframe { height: 48vh; min-height: 340px; }
}

@media (min-width: 768px) {
  .yunqui-fab-tag { display: inline; }
}

/* fix: atributo hidden nunca pisado por display de clases */
[hidden]{display:none !important}

/* folio-live — link "Ver demo en vivo" en las cards del portfolio
   (reemplaza una regla corrupta que dejó un run anterior) */
.folio-live{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(255,90,31,.12);
  color:var(--brasa-hi);
  border:1px solid rgba(255,90,31,.45);
  padding:8px 14px;
  border-radius:8px;
  font-weight:700;
  font-size:13px;
  margin-bottom:8px;
  text-decoration:none;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.folio-live:hover{background:rgba(255,90,31,.22);border-color:var(--brasa);color:var(--hueso)}

/* ---------- agent-ui en tema forja (SOF-12) ----------
   Tokens del kit compartido dentro del panel de Yunqui y del chat del
   lightbox: mismas clases .aui-*, identidad carbon/brasa. */
.yunqui-panel,
.lb-chat {
  --aui-accent: var(--brasa);
  --aui-accent-ink: #160700;
  --aui-ink: var(--hueso);
  --aui-ink-2: var(--ceniza);
  --aui-card-bg: var(--carbon-2);
  --aui-card-border: var(--line-strong);
  --aui-input-bg: #0d0d0f;
  --aui-danger: #ff8a80;
  --aui-ok: #7fd6a4;
  --aui-focus: rgba(255, 90, 31, 0.2);
}

.yunqui-panel .aui-block,
.lb-chat .aui-block {
  max-width: min(400px, 88%);
}

.yunqui-panel .aui-chip,
.lb-chat .aui-chip {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ceniza);
}
.yunqui-panel .aui-chip:hover,
.lb-chat .aui-chip:hover {
  color: var(--hueso);
  border-color: rgba(255, 90, 31, 0.55);
  background: rgba(255, 90, 31, 0.07);
}

.yunqui-panel .aui-btn.ghost,
.lb-chat .aui-btn.ghost {
  color: var(--hueso);
}
.yunqui-panel .aui-btn.ghost:hover,
.lb-chat .aui-btn.ghost:hover {
  border-color: var(--brasa);
  color: var(--brasa-hi);
}

.yunqui-panel .aui-form input::placeholder,
.yunqui-panel .aui-form textarea::placeholder,
.lb-chat .aui-form input::placeholder,
.lb-chat .aui-form textarea::placeholder {
  color: var(--humo);
}

.yunqui-panel .aui-map-frame,
.lb-chat .aui-map-frame {
  background: var(--carbon);
}
