/* =========================================================
   Flexiu.com — sistema visual (prototipo multipágina)
   Tokens, base, componentes y utilidades.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-soft-2: #f1f2f8;
  --dark: #0a0f1f;
  --dark-2: #111834;
  --ink: #0c1226;
  --ink-soft: #343c56;
  --muted: #626b82;
  --muted-2: #667085;
  --line: #e6e8f0;
  --line-strong: #d2d7e4;

  --violet: #6030e8;
  --violet-ink: #4e22c9;
  --violet-soft: #f2eeff;
  --violet-line: #dcd3ff;
  --mint: #00b8c4;
  --mint-soft: #e6fbfd;
  --amber: #a86a12;
  --amber-soft: #fdf3e2;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(12, 18, 38, .04), 0 18px 40px -24px rgba(12, 18, 38, .25);
  --shadow-lg: 0 2px 4px rgba(12, 18, 38, .05), 0 40px 80px -40px rgba(12, 18, 38, .35);

  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex: 0 0 auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--violet); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.03; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.35; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.55; }
.tiny { font-size: .78rem; line-height: 1.5; letter-spacing: .01em; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow--mint { color: var(--mint); }
.eyebrow--light { color: #b9b2ff; }
.kicker {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.strong { font-weight: 600; }
.balance { text-wrap: balance; }
.measure { max-width: 62ch; }
.container.measure { max-width: 760px; }
.measure-sm { max-width: 46ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--soft { background: var(--bg-soft); }
.section--top-line { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 16px; }
.stack > .btn { justify-self: start; }
.stack-lg { display: grid; gap: 28px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.center { text-align: center; }
.section-head { display: grid; gap: 14px; max-width: 720px; }
.section-head--wide { max-width: 860px; }

.grid { display: grid; gap: 20px; }
.grid > *, .split > *, .hero-copy, .cta-inner > *, .between > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--wide { grid-template-columns: 1.15fr .85fr; }

/* ---------- Idioma ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: 5px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--muted); font-family: var(--font-display); }
.lang-switch a:hover { color: var(--ink); background: var(--bg-soft-2); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (max-width: 1120px) { .lang-switch { display: none; } }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(12, 18, 38, .45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { --btn-bg: var(--violet); --btn-bd: var(--violet); }
.btn--primary:hover { --btn-bg: var(--violet-ink); --btn-bd: var(--violet-ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--onDark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }
.btn--onDark:hover { --btn-bd: #fff; }
.btn--sm { padding: 10px 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-weight: 700; font-size: .92rem; color: var(--violet);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--violet);
}
.go svg { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.card:hover .go svg { transform: translateX(3px); }
.card > .link-arrow { margin-top: auto; padding-top: 8px; }
.product-mark svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.04em; }
.logo img { display: block; width: auto; height: 31px; }
.logo:hover { opacity: .82; }
.logo--footer img { filter: brightness(0) invert(1); opacity: .96; }
@media (max-width: 700px) { .logo img { height: 27px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav-mobile-cta, .nav-mobile-contact, .nav-lang { display: none; }
.nav .btn--primary { color: #fff; background: var(--violet); border-color: var(--violet); padding: 14px 20px; border-radius: 999px; justify-content: center; font-size: .95rem; }
.nav .btn--primary:hover { background: var(--violet-ink); border-color: var(--violet-ink); color: #fff; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 999px; border: 0; background: transparent;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); cursor: pointer;
}
.nav a:hover, .nav button:hover, .nav [aria-expanded="true"] { background: var(--bg-soft-2); color: var(--ink); }
.nav .caret { width: 10px; height: 10px; opacity: .55; transition: transform .18s; }
.nav [aria-expanded="true"] .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; width: min(620px, 80vw);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s var(--ease);
}
.dropdown--right { left: auto; right: 0; width: min(460px, 80vw); grid-template-columns: 1fr; }
.dropdown--solutions { width: min(840px, calc(100vw - 190px)); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dropdown--products { width: min(570px, calc(100vw - 220px)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dropdown--company { width: min(640px, calc(100vw - 200px)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dropdown--access { width: min(330px, calc(100vw - 32px)); grid-template-columns: 1fr; }
.dropdown-col { display: grid; align-content: start; gap: 2px; min-width: 0; }
.dropdown-label {
  display: block; padding: 8px 12px 6px; font-family: var(--font-display);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2);
}
.dropdown-footer {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
}
.dropdown-footer a { flex: 1 1 220px; background: var(--bg-soft); }
.dropdown-footer a:hover { background: var(--violet-soft); }
.dropdown-cta { background: var(--violet-soft); border: 1px solid var(--violet-line); }
.dropdown-cta:hover { background: #fff; border-color: var(--violet); }
.dropdown-cta b { color: var(--violet-ink); }
.dropdown-help { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px !important; font-size: .76rem !important; color: var(--muted) !important; }
.dropdown-help:hover { background: transparent !important; color: var(--ink) !important; }
.nav [aria-expanded="true"] + .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.dropdown a small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.dropdown a:hover { background: var(--violet-soft); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(91, 71, 222, .09), transparent 62%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 72px); align-items: center; position: relative; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Caja de requerimiento */
.request {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow); max-width: 600px;
}
.request textarea {
  width: 100%; min-height: 86px; resize: vertical; border: 0; background: transparent;
  padding: 12px 14px; font-size: 1rem; line-height: 1.5; outline: none;
}
.request textarea::placeholder { color: var(--muted-2); }
.request--brief { max-width: none; }
.request-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px; border-top: 1px solid var(--line);
}
.request-hint { flex: 1 1 180px; font-size: .76rem; line-height: 1.4; color: var(--muted-2); }
.request-foot .btn { flex: 0 0 auto; min-width: 232px; padding: 14px 24px; }
@media (max-width: 1024px) {
  .request-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .request-hint { flex: 0 0 auto; }
  .request-foot .btn { width: 100%; min-width: 0; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-soft);
  padding: 7px 12px; border-radius: 999px; font-size: .8rem; cursor: pointer;
  transition: .15s var(--ease);
}
.chip:hover { border-color: var(--violet-line); background: var(--violet-soft); color: var(--violet-ink); }
.microcopy { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); }
.microcopy span { display: inline-flex; align-items: center; gap: 6px; }
.microcopy svg { width: 13px; height: 13px; color: var(--mint); }

/* Panel del hero: encargo */
.hero-panel {
  position: relative; background: var(--dark); color: #fff; border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow-lg); overflow: hidden; min-height: 420px;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-panel::before {
  content: ""; position: absolute; inset: -40% 30% auto -20%; height: 420px;
  background: radial-gradient(circle, rgba(91, 71, 222, .55), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.hero-panel::after {
  content: ""; position: absolute; inset: auto -20% -50% 40%; height: 360px;
  background: radial-gradient(circle, rgba(15, 181, 160, .22), transparent 65%);
  pointer-events: none;
}
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); display: block; }
.panel-dots i:first-child { background: rgba(255,255,255,.55); }
.panel-id { font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.panel-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.35; position: relative; z-index: 1; }
.panel-flow { display: grid; gap: 10px; margin-top: auto; position: relative; z-index: 1; }
.flow-item {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); opacity: .5; transition: .35s var(--ease);
}
.flow-item.is-done { opacity: 1; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.flow-item.is-active { opacity: 1; border-color: rgba(185,178,255,.65); background: rgba(91,71,222,.18); }
.flow-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #cfc9ff; }
.flow-ico svg { width: 16px; height: 16px; }
.flow-it b { display: block; font-family: var(--font-display); font-size: .84rem; font-weight: 700; }
.flow-it small { display: block; font-size: .72rem; color: rgba(255,255,255,.55); }
.flow-state { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.is-active .flow-state { color: #a99dff; }
.is-done .flow-state { color: #5fe0c9; }
.panel-note { position: relative; z-index: 1; font-size: .68rem; color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }

/* ---------- Franja de hechos ---------- */
.facts { border-block: 1px solid var(--line); background: var(--bg-soft); }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fact { padding: 18px 24px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; }
.fact span { font-size: .78rem; color: var(--muted); }

/* ---------- Tarjetas ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--violet-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { letter-spacing: -.015em; }
.card .tag-row { margin-top: auto; padding-top: 8px; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card--dark { background: var(--dark); color: #fff; border-color: rgba(255,255,255,.1); }
.card--dark .muted { color: rgba(255,255,255,.6); }
.card--agent {
  background: linear-gradient(145deg, var(--ink) 0%, #1b1745 100%);
  color: #fff; border-color: rgba(96, 48, 232, .55);
  box-shadow: 0 18px 50px -24px rgba(96, 48, 232, .55);
}
.card--agent h3 { color: #fff; }
.card--agent p { color: rgba(255,255,255,.72); }
.card--agent .tiny.muted { color: rgba(255,255,255,.58); }
.card--agent .offer-num { color: var(--mint); }
.layer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.layer-plus {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 184, 196, .12); color: #0b8e7a; border: 1px solid rgba(0, 184, 196, .20);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.layer-plus svg { width: 15px; height: 15px; }
.card--integration {
  background: linear-gradient(145deg, rgba(0, 184, 196, .10), #fff 72%);
  border-color: rgba(0, 184, 196, .25);
}
.card--integration .offer-num { color: #0b8e7a; }
.card--integration:hover { border-color: rgba(0, 184, 196, .52); box-shadow: 0 18px 40px -26px rgba(0, 184, 196, .45); }
.card--integration:hover .layer-plus { transform: rotate(90deg); background: rgba(0, 184, 196, .22); }
.card--soft { background: var(--bg-soft); border-color: transparent; }

.offer-card { position: relative; padding-top: 20px; }
.offer-num { font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: var(--violet); }
.offer-card h3 { font-size: 1.18rem; }
.offer-card p { font-size: .93rem; color: var(--muted); }
.offer-list { display: grid; gap: 6px; margin-top: 4px; }
.offer-list li { font-size: .84rem; color: var(--ink-soft); display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: start; }
.offer-list li::before { content: ""; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--violet); }

.line-card { display: grid; gap: 10px; align-content: start; min-height: 176px; }
.line-card .line-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-card .n { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--muted-2); }
.line-card h3 { font-size: 1.08rem; }
.line-card p { font-size: .86rem; color: var(--muted); }
.line-card .go { margin-top: auto; color: var(--violet); display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: .82rem; }
.line-card .go svg { width: 14px; height: 14px; transition: transform .18s; }
.line-card:hover .go svg { transform: translateX(3px); }

.product-card { display: grid; gap: 10px; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet-ink); font-family: var(--font-display); font-weight: 800;
}
.product-card p { font-size: .88rem; color: var(--muted); }

.partner-card { padding: 22px; }
.partner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.partner-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.partner-meta { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.partner-card dl { display: grid; gap: 10px; margin: 4px 0 0; }
.partner-card dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 2px; }
.partner-card dd { margin: 0; font-size: .86rem; color: var(--ink-soft); }

/* ---------- Pills / estados ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  background: var(--bg-soft-2); color: var(--ink-soft); border: 1px solid transparent;
}
.pill--violet { background: var(--violet-soft); color: var(--violet-ink); }
.pill--mint { background: var(--mint-soft); color: #0a7b6d; }
.pill--amber { background: var(--amber-soft); color: var(--amber); }
.pill--line { background: #fff; border-color: var(--line); color: var(--muted); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }

/* ---------- Escena ---------- */
.scene { background: var(--bg-soft); border-block: 1px solid var(--line); }
.scene-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.scene-steps { display: grid; position: relative; padding-left: 28px; border-left: 1px solid var(--line); }
.scene-step { position: relative; min-height: 34vh; padding-block: 18px; display: grid; gap: 12px; align-content: center; }
.scene-step::before {
  content: ""; position: absolute; left: -33px; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong); transform: translateY(-50%);
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.scene-step.is-active::before { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.scene-step:first-child { border-top: 0; }
.scene-step .step-n { font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; color: var(--muted-2); font-weight: 700; }
.scene-step h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.scene-step p { color: var(--muted); max-width: 42ch; font-size: .95rem; }
.scene-step.is-active h3 { color: var(--violet-ink); }
.scene-step .step-note { display: none; }
.scene-stage[hidden] { display: none; }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.scene-stage.stage-in { animation: stage-in .42s var(--ease) both; }
.scene-media { position: sticky; top: calc(var(--header-h) + 32px); }
.scene-card {
  background: var(--dark); color: #fff; border-radius: 22px; padding: 22px; min-height: 430px;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
}
.scene-card::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(91,71,222,.38), transparent 65%); pointer-events: none;
}
.scene-head { display: flex; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.scene-head .tiny { color: rgba(255,255,255,.68); }
.scene-stage { margin-top: auto; position: relative; z-index: 1; display: grid; gap: 10px; }
.scene-stage h4 { font-size: 1.15rem; }
.scene-stage p { color: rgba(255,255,255,.66); font-size: .86rem; }
.scene-list { display: grid; gap: 8px; }
.scene-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 9px 12px;
  font-size: .8rem; color: rgba(255,255,255,.8); background: rgba(255,255,255,.03);
}
.scene-line b { font-weight: 600; color: #fff; }
.scene-badge {
  position: absolute; top: 72px; right: 22px; z-index: 1;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.22); padding: 4px 8px; border-radius: 999px;
}

/* ---------- Listas de contenido ---------- */
.check-list { display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .92rem; color: var(--ink-soft); }
.check-list svg { width: 16px; height: 16px; margin-top: 3px; color: var(--mint); }
.cross-list li { color: var(--muted); }
.cross-list svg { color: var(--muted-2); }
.num-list { display: grid; gap: 14px; counter-reset: n; }
.num-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.num-list li::before {
  counter-increment: n; content: counter(n, decimal-leading-zero);
  font-family: var(--font-display); font-size: .74rem; font-weight: 700; color: var(--violet);
  padding-top: 3px; letter-spacing: .06em;
}
.num-list b { display: block; font-family: var(--font-display); font-size: .98rem; }
.num-list span { font-size: .88rem; color: var(--muted); }

/* ---------- Tabla ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .88rem; }
th { font-family: var(--font-display); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--bg-soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td b { font-weight: 600; }
td .muted { font-size: .82rem; }

/* ---------- Acordeón ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; list-style: none; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; flex: 0 0 auto; }
.accordion summary .plus::before, .accordion summary .plus::after {
  content: ""; position: absolute; inset: 50% 5px auto 5px; height: 1.5px; background: var(--ink); transform: translateY(-50%);
}
.accordion summary .plus::after { transform: translateY(-50%) rotate(90deg); transition: .2s; }
.accordion details[open] summary .plus::after { transform: translateY(-50%) rotate(0); }
.accordion .acc-body { padding: 0 0 20px; color: var(--muted); font-size: .92rem; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta-band { background: var(--dark); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: -60% 40% auto -10%; height: 480px;
  background: radial-gradient(circle, rgba(91,71,222,.45), transparent 62%); pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; inset: auto -10% -60% 50%; height: 420px;
  background: radial-gradient(circle, rgba(15,181,160,.16), transparent 62%); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: end; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.68); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Migas y navegación de línea ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--muted); padding-block: 18px; }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb span { color: var(--muted-2); }
.page-hero { padding-block: clamp(28px, 4vw, 52px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 58ch; margin-top: 16px; }
.page-hero .hero-actions { margin-top: 26px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Brief ---------- */
.brief-shell { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.brief-card { background: #fff; border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.brief-progress { height: 4px; background: var(--bg-soft-2); }
.brief-progress i { display: block; height: 100%; background: var(--violet); width: 25%; transition: width .3s var(--ease); }
.brief-body { padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.brief-step { display: grid; gap: 16px; }
.brief-step[hidden] { display: none; }
.brief-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.brief-step-head .small { color: var(--muted); }
.field { display: grid; gap: 7px; }
.field > label, .field-label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; border-radius: 10px;
  padding: 11px 13px; font-size: .95rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91,71,222,.14); }
.field .hint { font-size: .76rem; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice {
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; display: flex; gap: 10px; align-items: flex-start;
  font-size: .88rem; cursor: pointer; transition: .15s var(--ease);
}
.choice:hover { border-color: var(--violet-line); background: var(--violet-soft); }
.choice input { margin-top: 3px; accent-color: var(--violet); }
.choice b { display: block; font-size: .88rem; }
.choice small { display: block; color: var(--muted); font-size: .76rem; }
.brief-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; align-items: center; }
.field .request textarea {
  border: 0; background: transparent; border-radius: 0; box-shadow: none;
  padding: 12px 14px;
}
.field .request textarea:focus {
  border-color: transparent; box-shadow: none;
}
.brief-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.aside-card h3 { font-size: .9rem; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: var(--muted); }
.summary-row b { text-align: right; font-weight: 600; }
.result { display: grid; gap: 14px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-code { font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.result-note { background: var(--amber-soft); color: #6d4608; border-radius: 10px; padding: 10px 12px; font-size: .8rem; }
.notice { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; font-size: .82rem; color: var(--muted); }
.notice--warn { background: var(--amber-soft); border-color: #f2dfbd; color: #6d4608; }
.notice--mint { background: var(--mint-soft); border-color: #c8ece5; color: #0a6b5f; }


/* ---------- Formulario en pasos ---------- */
.form-title { font-size: 1.35rem; }
.form-progress { height: 4px; background: var(--bg-soft-2); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.form-progress i { display: block; height: 100%; width: 50%; background: var(--violet); border-radius: 99px; transition: width .25s var(--ease); }
.form-step-label { margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; color: var(--violet-ink); }
.form-step-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; }
.form-step-nav .btn:only-child { margin-left: auto; }
.form-step[hidden] { display: none; }

/* ---------- Confirmación de envío ---------- */
.success-panel {
  background: linear-gradient(180deg, #f2fbf8 0%, #ffffff 70%);
  border: 1px solid #c9ece4; border-radius: 18px; padding: clamp(20px, 3vw, 30px);
  display: grid; gap: 14px; outline: none; animation: success-in .45s var(--ease) both;
}
@keyframes success-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.success-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--mint); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 800;
}
.success-badge { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #0a7b6d; }
.success-panel h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.success-panel p { color: var(--muted); font-size: .95rem; }
.success-panel p b { color: var(--ink); font-family: var(--font-display); letter-spacing: .02em; }
.success-steps { display: grid; gap: 10px; margin-top: 2px; }
.success-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: .86rem; color: var(--muted); }
.success-steps li::before {
  content: counter(step, decimal-leading-zero); counter-increment: step;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700; color: var(--violet);
  padding-top: 2px;
}
.success-steps { counter-reset: step; }
.success-steps b { display: block; font-family: var(--font-display); color: var(--ink); font-size: .9rem; }
.success-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.success-note { background: #fff; border: 1px dashed #c9ece4; border-radius: 10px; padding: 10px 12px; font-size: .8rem; color: var(--muted); }

/* ---------- Ofertas públicas ---------- */
.public-empty { border: 1px dashed var(--line-strong); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; text-align: center; justify-items: center; background: var(--bg-soft); }
.public-empty .icon-badge { width: 52px; height: 52px; border-radius: 14px; }
.public-empty h2 { font-size: 1.35rem; }
.public-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.public-filters .chip { cursor: default; }

/* ---------- Portal / experto ---------- */
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.portal-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; display: grid; gap: 12px; }
.portal-card--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.portal-card--dark p { color: rgba(255,255,255,.8); }
.portal-card--soft { background: var(--bg-soft); }
.portal-card h2 { font-size: 1.2rem; }
.portal-card p { color: var(--muted); font-size: .9rem; }
.portal-card.portal-card--dark p { color: rgba(255,255,255,.82); }
@media (max-width: 720px) { .portal-grid { grid-template-columns: 1fr; } }
/* ---------- Herramientas ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool-chip {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px;
  cursor: pointer; transition: .18s var(--ease);
}
.tool-chip:hover { border-color: var(--violet-line); box-shadow: var(--shadow); transform: translateY(-1px); }
.tool-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); color: var(--violet-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .72rem;
  flex: 0 0 auto; letter-spacing: .02em;
}
.tool-text b { display: block; font-size: .88rem; font-family: var(--font-display); }
.tool-text small { display: block; color: var(--muted); font-size: .72rem; }
.tool-dialog { border: 0; border-radius: 20px; padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.tool-dialog::backdrop { background: rgba(10, 15, 31, .55); backdrop-filter: blur(3px); }
.tool-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; }
.tool-dialog-body { padding: 28px; display: grid; gap: 12px; position: relative; background: #fff; }
.tool-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.tool-close:hover { color: var(--ink); }

/* ---------- Consentimiento ---------- */
.consent-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg-soft); display: grid; gap: 12px; }
.consent-head { display: flex; gap: 12px; align-items: flex-start; }
.consent-head .icon-badge { width: 38px; height: 38px; border-radius: 10px; background: #fff; }
.consent-head b { display: block; font-family: var(--font-display); font-size: .96rem; line-height: 1.35; }
.consent-head small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.consent-list { display: grid; gap: 6px; }
.consent-list li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: .8rem; color: var(--ink-soft); }
.consent-list svg { width: 14px; height: 14px; color: var(--mint); margin-top: 2px; }
.consent-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: .76rem; color: var(--muted); }
.consent-links a { text-decoration: underline; text-underline-offset: 2px; color: var(--violet-ink); }
.consent-links a:hover { color: var(--violet); }
.choice--consent { background: #fff; align-items: flex-start; }
.choice--consent b { font-size: .86rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding-block: 56px 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4, .78fr); gap: 32px; }
.footer-brand p { color: rgba(255,255,255,.68); font-size: .86rem; max-width: 34ch; margin-top: 12px; }
.footer-contact a { color: rgba(255,255,255,.78); }
.footer-col h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65); margin-bottom: 14px; font-family: var(--font-display); }
.footer-col a { display: block; padding: 4px 0; font-size: .86rem; color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; font-size: .76rem; color: rgba(255,255,255,.62); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in, .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.hr { height: 1px; background: var(--line); border: 0; margin-block: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[id], h1, h2, h3 { scroll-margin-top: calc(var(--header-h) + 24px); }


/* ---------- Marquee de partners ---------- */
.logo-marquee { border-block: 1px solid var(--line); padding-block: 18px 20px; background: #fff; overflow: hidden; position: relative; }
.marquee-label { display: block; text-align: center; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.logo-marquee::before, .logo-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 60px; padding-right: 60px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-marquee .logo-item { border: 0; height: auto; padding: 0; width: 140px; background: transparent; box-shadow: none; }
.logo-marquee .logo-item img { max-height: 30px; max-width: 140px; filter: grayscale(1); opacity: .68; }
.logo-marquee .logo-item:hover img { filter: none; opacity: 1; }
.logo-marquee .logo-item--dark { background: var(--dark); border-radius: 8px; padding: 6px 10px; width: 132px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.home-shot-head { max-width: 760px; margin: 30px auto 0; text-align: center; display: grid; gap: 6px; }

/* ---------- Iconos, logos y piezas visuales ---------- */
.icon-badge {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center;
  background: var(--violet-soft); color: var(--violet-ink); flex: 0 0 auto;
}
.icon-badge svg { width: 20px; height: 20px; }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.offer-top .icon-badge { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); color: var(--violet); }
.offer-top .icon-badge svg { width: 17px; height: 17px; }

.logo-band { padding-block: 26px; border-block: 1px solid var(--line); background: #fff; }
.logo-band-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.logo-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.logo-item {
  height: 66px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 12px 18px; transition: .2s var(--ease);
}
.logo-item img { max-height: 26px; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: .2s var(--ease); }
.logo-item:hover { border-color: var(--violet-line); box-shadow: var(--shadow); }
.logo-item:hover img { filter: none; opacity: 1; }
.logo-item--dark { background: var(--dark); border-color: var(--dark); }
.logo-item--dark img { filter: none; opacity: .9; max-height: 22px; }
.logo-item--dark:hover img { opacity: 1; }
.logo-item--word { width: auto; min-width: 96px; padding: 0 6px; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: #6b7385; white-space: nowrap; }
.logo-item--word:hover .logo-word { color: var(--ink); }

.partner-logo-box { height: 54px; display: flex; align-items: center; margin-bottom: 4px; }
.partner-logo-box img { max-height: 32px; max-width: 150px; object-fit: contain; }
.partner-logo-box--dark { background: var(--dark); padding: 8px 14px; border-radius: 10px; width: fit-content; min-width: 130px; justify-content: center; }
.partner-logo-box--dark img { max-height: 24px; }
.partner-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.partner-card--cta { justify-content: center; background: var(--violet-soft); border-color: var(--violet-line); }
.partner-card--cta .icon-badge { background: #fff; }
.partner-inline { display: flex; align-items: center; gap: 10px; }
.partner-inline img { width: 28px; height: 28px; object-fit: contain; }

.page-hero-inner { position: relative; }
.page-hero-mark {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--violet-soft); pointer-events: none; display: none;
}
.page-hero-mark svg { width: 190px; height: 190px; stroke-width: .9; }
@media (min-width: 1080px) { .page-hero-mark { display: block; } }

.page-hero-split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.page-hero-media .ui-frame { transform: translateY(6px); }

/* ---------- Marco de producto (mockup) ---------- */
.ui-frame {
  --ui-accent: var(--violet);
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); font-size: 11px; line-height: 1.35;
}
.ui-frame--build { --ui-accent: #0fb5a0; }
.ui-frame--radar { --ui-accent: #5b47de; }
.ui-frame--crm { --ui-accent: #3b82f6; }
.ui-frame--talent { --ui-accent: #8b5cf6; }
.ui-frame--velox { --ui-accent: #e0a020; }
.ui-frame--project { --ui-accent: #5b47de; }
.ui-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--dark); color: #fff; }
.ui-dots { display: flex; gap: 4px; }
.ui-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.32); display: block; }
.ui-app { font-family: var(--font-display); font-weight: 700; font-size: 11px; }
.ui-crumb { margin-left: auto; color: rgba(255,255,255,.55); font-size: 9px; }
.ui-body { display: grid; grid-template-columns: 46px 1fr; min-height: 300px; }
.ui-side { background: var(--bg-soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.ui-avatar { width: 22px; height: 22px; border-radius: 6px; background: var(--ui-accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.ui-side i { width: 16px; height: 16px; border-radius: 4px; background: #e6e8f0; display: block; }
.ui-side i.on { background: var(--violet-line); }
.ui-main { padding: 14px; display: grid; gap: 10px; background: linear-gradient(180deg,#fff,#fbfbfe); }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-kpi { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.ui-kpi small { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ui-kpi b { font-family: var(--font-display); font-size: 15px; letter-spacing: -.02em; }
.ui-panel { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.ui-panel-head { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.ui-chart { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.ui-chart i { flex: 1; background: linear-gradient(180deg, var(--ui-accent), #d9d2ff); border-radius: 3px 3px 0 0; opacity: .85; display: block; }
.ui-rows { display: grid; gap: 6px; }
.ui-row { display: grid; grid-template-columns: 8px 1fr 70px; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #fff; }
.ui-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ui-accent); display: block; }
.ui-row b { display: block; font-size: 9.5px; }
.ui-row small { color: var(--muted); font-size: 8px; }
.ui-progress { height: 4px; background: var(--bg-soft-2); border-radius: 99px; overflow: hidden; }
.ui-progress i { display: block; height: 100%; background: var(--ui-accent); border-radius: 99px; }

/* ---------- Panel Flexiu AI ---------- */
.home-shot { max-width: 920px; margin: 30px auto 8px; }
.home-shot .ui-frame { box-shadow: var(--shadow-lg); }

.ai-panel {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 52px);
  align-items: center; margin-top: 44px; padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--violet-line); border-radius: 24px;
  background: linear-gradient(135deg, #f6f3ff 0%, #fff 62%);
}
.stack-diagram { display: grid; gap: 8px; }
.stack-row {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; background: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  box-shadow: 0 10px 24px -24px rgba(12,18,38,.4);
}
.stack-row span { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.stack-row small { color: var(--muted); font-size: .74rem; }
.stack-row--1 { margin-right: 44px; }
.stack-row--2 { margin-right: 30px; }
.stack-row--3 { background: var(--violet); border-color: var(--violet); color: #fff; }
.stack-row--3 small { color: rgba(255,255,255,.72); }
.stack-row--4 { margin-right: 30px; }
.stack-row--5 { margin-right: 44px; }

/* ---------- Cómo trabajamos ---------- */
.team-map { display: grid; gap: 10px; }
.team-col { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.team-col .icon-badge { width: 32px; height: 32px; border-radius: 9px; }
.team-col .icon-badge svg { width: 16px; height: 16px; }
.team-col b { font-family: var(--font-display); font-size: .86rem; display: block; }
.team-col small { color: var(--muted); font-size: .74rem; }
.team-col--accent { border-color: var(--violet-line); background: var(--violet-soft); }
.team-col--accent .icon-badge { background: #fff; }
.team-col--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.team-col--dark small { color: rgba(255,255,255,.6); }
.team-col--dark .icon-badge { background: rgba(255,255,255,.12); color: #fff; }

.modality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.modality { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.modality h3 { font-size: 1rem; }
.modality p { font-size: .82rem; color: var(--muted); }
.modality .mod-meta { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .74rem; color: var(--ink-soft); }
.modality .mod-meta b { font-weight: 600; }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 24px; }
.timeline-item { position: relative; padding: 28px 12px 0; border-top: 1px solid var(--line-strong); }
.timeline-item::before { content: ""; position: absolute; top: -4.5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--violet); }
.timeline-item b { display: block; font-family: var(--font-display); font-size: .9rem; }
.timeline-item span { display: block; font-size: .78rem; color: var(--muted); }
.timeline-item em { font-style: normal; font-size: .7rem; letter-spacing: .1em; color: var(--violet); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hero-grid, .split, .split--wide, .scene-grid, .brief-shell, .cta-inner, .page-hero-split, .ai-panel { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; }
  .hero-panel { min-height: 380px; }
  .scene-media { display: none; }
  .scene-card { min-height: 320px; }
  .scene-step { min-height: 0; padding-block: 28px; }
  .scene-step .step-note { display: block; font-size: .84rem; color: var(--muted); }
  .scene-steps { padding-left: 0; border-left: 0; }
  .scene-step::before { display: none; }
  .brief-aside { position: static; }
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex; position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0;
    height: calc(100dvh - var(--header-h));
    background: #fff; flex-direction: column; align-items: stretch; padding: 24px; gap: 6px; overflow: auto; z-index: 90;
  }
  .nav.is-open > li > a, .nav.is-open > li > button { width: 100%; justify-content: space-between; font-size: 1.02rem; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.is-open .nav-mobile-cta, .nav.is-open .nav-mobile-contact { display: block; }
  .nav-lang { display: flex; gap: 6px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-lang a { width: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
  .nav-lang a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .nav-lang a:hover { border-color: var(--line-strong); }
  .nav.is-open .nav-mobile-cta a { border: 0; margin-top: 18px; padding: 14px 20px; justify-content: center; border-radius: 999px; }
  .nav.is-open .nav-mobile-contact a { border: 0; font-size: .85rem; color: var(--muted); padding: 10px 4px; }
  .nav.is-open .dropdown { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; }
  .nav.is-open [aria-expanded="true"] + .dropdown { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding-block: 48px; }
  .hero { padding-block: 28px 32px; }
  .hero-grid { gap: 28px; }
  .hero-panel { min-height: 330px; }
  .card { padding: 20px; }
  .line-card { min-height: 0; }
  .grid-2, .grid-3, .grid-4, .choice-grid, .modality-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-band-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .logo-band-head .link-arrow { white-space: nowrap; }
  .logo-item { height: 58px; padding: 10px 12px; }
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline-item { border-top: 0; border-left: 1px solid var(--line-strong); padding: 0 0 0 18px; }
  .timeline-item::before { top: 4px; left: -4.5px; }
  .stack-row--1, .stack-row--2, .stack-row--4, .stack-row--5 { margin-right: 0; }
  .ai-panel { padding: 18px; }
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact { border-left: 0; padding: 14px 0; border-top: 1px solid var(--line); }
  .fact:nth-child(2) { border-top: 0; } .fact:nth-child(1) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .request-foot { flex-direction: column; align-items: stretch; }
  .request-foot .btn { width: 100%; }
  .cta-actions { justify-content: flex-start; }
  .page-hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-panel::before, .hero-panel::after, .cta-band::before, .cta-band::after { display: none; }
}

/* Ofertas públicas: búsqueda visual, filtros y tarjetas */
.offers-hero {
  padding-block: clamp(28px, 3.6vw, 44px) clamp(26px, 3.2vw, 38px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(680px 280px at 12% 0%, rgba(91, 71, 222, .11), transparent 72%),
    radial-gradient(520px 260px at 92% 10%, rgba(15, 181, 160, .08), transparent 72%),
    #fff;
}
.offers-hero .container { display: grid; gap: 11px; }
.offers-hero h1 { max-width: 900px; font-size: clamp(2rem, 3.6vw, 3.15rem); }
.offers-hero .lead { max-width: 720px; margin: 0; font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.55; }
.offers-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: .8rem; }
.offers-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.offers-hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.offers-market { padding-block: clamp(20px, 2.8vw, 30px) clamp(52px, 7vw, 88px); background: var(--bg-soft); }
.offers-market .container { max-width: 1160px; }
.offers-after { border-top: 1px solid var(--line); background: #fff; }
.offers-after-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.offers-after-inner p { margin: 0; max-width: 720px; color: var(--ink-soft); }
#public-offers { display: grid; gap: 15px; min-width: 0; width: 100%; }
.offers-toolbar {
  display: grid; gap: 9px; min-width: 0; width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px -32px rgba(12, 18, 38, .42);
}
.offers-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  width: 100%; min-width: 0;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 5px 6px 5px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.offers-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.offer-search-icon { display: inline-flex; color: var(--muted); }
.offer-search-icon svg { width: 20px; height: 20px; }
.offers-search input { min-width: 0; min-height: 42px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); }
.offers-search-submit {
  min-height: 42px; padding: 0 20px;
  border: 0; border-radius: 10px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: background .18s var(--ease);
}
.offers-search-submit:hover { background: var(--violet); }
.offers-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.offer-select-pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--ink-soft); font-size: .8rem;
}
.offer-select-label { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.offer-select-pill select {
  max-width: 180px; padding: 7px 17px 7px 0;
  border: 0; outline: 0; background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23626b82' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
  color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.offer-feature-toggle {
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--ink-soft); font: inherit; font-size: .8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.offer-feature-toggle:hover { border-color: var(--violet-line); color: var(--violet-ink); }
.offer-feature-toggle.is-active { border-color: var(--violet-line); background: var(--violet-soft); color: var(--violet-ink); }
.offers-tags-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; padding-top: 1px; }
.offers-tags-label { font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.offer-tag-search { flex: 0 1 175px; min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; }
.offer-tag-list { display: flex; flex: 1 1 220px; flex-wrap: nowrap; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; padding: 0 0 4px; scrollbar-width: thin; }
.offer-tag-list::-webkit-scrollbar { height: 4px; }
.offer-tag-list::-webkit-scrollbar-thumb { background: #d7dce8; border-radius: 999px; }
.offer-tag-list::-webkit-scrollbar-track { background: transparent; }
.offer-tag {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  min-height: 30px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: #4c5a72;
  font: inherit; font-size: .72rem; cursor: pointer;
}
.offer-tag:hover { border-color: var(--violet-line); color: var(--violet-ink); }
.offer-tag small { color: var(--muted); font-size: .62rem; }
.offer-tag.is-active { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-ink); }
.offer-tag.is-static { cursor: default; background: #fafbff; }
.offer-tag.is-featured { border-color: #d9d0ff; background: #f7f5ff; color: #4c35c9; }
.offer-tag.is-featured.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.offer-tag-empty { color: var(--muted); font-size: .76rem; }
.offers-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 5px 2px 0; }
.offer-count { margin: 0; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.offers-sort { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.offers-sort select { border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.offer-status { display: none; padding: 11px 14px; border-radius: 12px; background: #f8faff; color: var(--muted); font-size: .82rem; }
.offer-status.is-visible { display: block; }
.offer-status.is-error { background: #fff1f2; color: #9f1239; }
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; width: 100%; }
.offer-list.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s ease; }
.offer-card {
  display: flex; flex-direction: column; gap: 11px;
  min-width: 0; padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(12, 18, 38, .035), 0 22px 48px -38px rgba(12, 18, 38, .42);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.offer-card:hover { transform: translateY(-2px); border-color: var(--violet-line); box-shadow: 0 16px 38px -26px rgba(12, 18, 38, .38); }
.offer-card:focus-visible { outline: 3px solid #ddd6ff; outline-offset: 3px; }
.offer-card.is-featured { border-color: #d8d0ff; }
.offer-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offer-card-title { min-width: 0; }
.offer-featured-badge { display: inline-flex; align-items: center; margin-bottom: 9px; padding: 4px 9px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.offer-card h2 { margin: 0; font-size: clamp(1.14rem, 1.8vw, 1.34rem); line-height: 1.22; letter-spacing: -.025em; }
.offer-kicker { margin-top: 7px; color: var(--muted); font-size: .78rem; }
.public-offer-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .74rem; }
.public-offer-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; background: var(--bg-soft); }
.public-offer-meta .offer-deadline { color: #7b5a00; background: #fff9e9; border-color: #f3e2b7; }
.offer-card-summary { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offer-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 5px; }
.offer-empty { grid-column: 1 / -1; padding: 42px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); background: #fff; }
.offer-sentinel { min-height: 24px; padding: 4px 0; text-align: center; color: var(--muted); font-size: .75rem; }
.offer-skeleton { position: relative; display: grid; gap: 12px; align-content: start; min-height: 245px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.offer-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-100%); animation: offer-shimmer 1.15s infinite; }
.offer-skeleton span { display: block; border-radius: 999px; background: #eef1f7; }
.offer-skeleton-kicker { width: 32%; height: 11px; }
.offer-skeleton-title { width: 78%; height: 22px; margin-top: 6px; }
.offer-skeleton-line { width: 100%; height: 12px; }
.offer-skeleton-line.is-short { width: 64%; }
.offer-skeleton-foot { width: 42%; height: 30px; margin-top: auto; }
@keyframes offer-shimmer { to { transform: translateX(100%); } }

/* Detalle y postulación */
body.offer-modal-open { overflow: hidden; }
.offer-modal-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(7, 12, 24, .55); backdrop-filter: blur(4px); }
.offer-modal { width: min(680px, 100%); max-height: 92vh; overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(7, 12, 24, .35); }
.offer-modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.offer-modal-head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -.03em; }
.offer-modal-close { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f1f5f9; color: #475569; font-size: 20px; cursor: pointer; }
.offer-modal-body { display: grid; gap: 12px; padding: 20px 22px 24px; }
.offer-modal-body h3 { margin: 6px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.offer-detail-copy { margin: 0; color: #33405a; line-height: 1.7; white-space: pre-line; }
.offer-form { display: grid; gap: 10px; }
.offer-form-note { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.offer-field { display: grid; gap: 5px; }
.offer-field > span { color: #526078; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.offer-field input, .offer-field select, .offer-field textarea { width: 100%; border: 1px solid #cfd8e6; border-radius: 10px; padding: 10px 11px; background: #fff; color: var(--ink); font: inherit; }
.offer-field input:focus, .offer-field select:focus, .offer-field textarea:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 3px #e9e4ff; }
.offer-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.offer-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.offer-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.offer-form-error { min-height: 18px; color: #9f1239; font-size: 12px; }
.offer-back { justify-self: start; padding: 4px 0; border: 0; background: transparent; color: var(--violet); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

@media (max-width: 860px) {
  .offer-list { grid-template-columns: 1fr; }
  .offers-search { grid-template-columns: 22px minmax(0, 1fr) auto; }
}
@media (max-width: 560px) {
  .offers-toolbar { padding: 11px; border-radius: 16px; }
  .offers-search { grid-template-columns: 20px minmax(0, 1fr); padding-right: 5px; }
  .offers-search-submit { grid-column: 1 / -1; width: 100%; min-height: 40px; }
  .offers-filter-row { gap: 6px; }
  .offer-select-pill { flex: 1 1 auto; }
  .offer-select-pill select { max-width: none; }
  .offers-results-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .offer-card { padding: 18px; }
  .offer-card-actions { justify-content: stretch; }
  .offer-card-actions .btn { flex: 1; }
  .offer-field-row { grid-template-columns: 1fr; }
  .offer-modal-head { padding: 16px; }
  .offer-modal-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-skeleton::after { animation: none; }
}

/* Postulación guiada: asistente + propuesta estructurada */
body.proposal-open { overflow: hidden; }
.proposal-overlay {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  padding: 22px; background: rgba(6, 10, 24, .72); backdrop-filter: blur(7px);
}
.proposal-shell {
  width: min(1180px, 96vw); height: min(900px, 94vh); min-height: 540px;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16); border-radius: 24px;
  background: #fff; box-shadow: 0 40px 120px rgba(4, 8, 20, .55);
}
.proposal-header {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 15px 18px; color: #fff; flex: 0 0 auto;
  background:
    radial-gradient(420px 160px at 10% 0%, rgba(91, 71, 222, .62), transparent 70%),
    #0a0f1f;
}
.proposal-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.proposal-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #826dff, #5b3df5 60%, #3e2ec0);
  font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #fff;
}
.proposal-brand div { display: grid; gap: 1px; min-width: 0; }
.proposal-brand strong { font-family: var(--font-display); font-size: .93rem; letter-spacing: -.01em; }
.proposal-brand span { color: #a9b4ca; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.proposal-header-progress { flex: 1; max-width: 280px; height: 4px; margin-left: auto; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.proposal-header-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a99bff, #25d3a4); transition: width .3s var(--ease); }
.proposal-close {
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.proposal-close:hover { background: rgba(255,255,255,.09); }
.proposal-mobile-tabs { display: none; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1); }
.proposal-mobile-tabs button { border: 0; border-radius: 999px; padding: 6px 10px; background: transparent; color: #c8d0e0; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.proposal-mobile-tabs button.is-active { background: #fff; color: var(--ink); }

.proposal-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
.proposal-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.proposal-chat-head { flex: 0 0 auto; padding: 14px 20px 10px; border-bottom: 1px solid #f0f2f8; }
.proposal-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 10px; display: grid; align-content: start; gap: 14px; scrollbar-width: thin; }
.proposal-msg { display: flex; gap: 9px; align-items: flex-start; }
.proposal-msg.user { justify-content: flex-end; }
.proposal-avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px;
  background: var(--violet-soft); color: var(--violet-ink); font-family: var(--font-display); font-size: 15px; font-weight: 800;
}
.proposal-bubble { max-width: min(92%, 540px); padding: 11px 13px; border-radius: 3px 13px 13px 13px; background: #f5f7fc; color: #273148; font-size: .86rem; line-height: 1.55; white-space: pre-wrap; }
.proposal-msg.user .proposal-bubble { border-radius: 13px 3px 13px 13px; background: var(--ink); color: #fff; }
.proposal-suggestions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 20px 12px; max-height: 38%; overflow-y: auto; scrollbar-width: thin; }
.proposal-chip {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px;
  background: #fff; color: var(--ink-soft); font: inherit; font-size: .78rem; font-weight: 650;
  text-align: left; cursor: pointer; transition: border-color .16s, background .16s, color .16s;
}
.proposal-chip:hover { border-color: var(--violet-line); background: #faf9ff; color: var(--violet-ink); }
.proposal-chip.is-selected { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-ink); }
.proposal-chip--soft { border-color: var(--line); background: var(--bg-soft); }
.proposal-chip--primary, .proposal-chip.proposal-chip--primary { border-color: var(--violet); background: var(--violet); color: #fff; }
.proposal-chip--primary:hover { background: var(--violet-ink); color: #fff; }
.proposal-chip:disabled { opacity: .55; cursor: not-allowed; }
.proposal-hint { width: 100%; margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.proposal-assumption { width: 100%; display: grid; gap: 6px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.proposal-assumption p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.proposal-assumption-actions { display: flex; gap: 6px; }
.proposal-mini { border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; background: #fff; color: var(--muted); font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; }
.proposal-mini.is-on { border-color: var(--violet-line); background: var(--violet-soft); color: var(--violet-ink); }
.proposal-assumption.is-reviewed { background: #fbfcff; }
.proposal-estimate-form { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
.proposal-estimate-form input, .proposal-estimate-form select { min-height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 10px; background: #fff; font: inherit; font-size: .8rem; }
.proposal-estimate-form input { flex: 1 1 150px; min-width: 0; }
.proposal-composer { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 20px 15px; border-top: 1px solid #f0f2f8; background: #fff; }
.proposal-composer textarea {
  width: 100%; min-height: 42px; max-height: 110px; resize: vertical; border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; font-size: .82rem; line-height: 1.45; outline: 0;
}
.proposal-composer textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.proposal-send { align-self: end; min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: inherit; font-size: .8rem; font-weight: 750; cursor: pointer; }
.proposal-send:hover { background: var(--violet); }

.proposal-preview { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg-soft); }
.proposal-preview-head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.proposal-kicker { display: block; margin-bottom: 4px; color: var(--violet); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.proposal-preview-head h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.025em; }
.proposal-status { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.proposal-status.is-ready { border-color: #bce9de; background: var(--mint-soft); color: #087568; }
.proposal-preview-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 12px; display: grid; align-content: start; gap: 9px; scrollbar-width: thin; }
.proposal-section { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.proposal-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.proposal-section h3 { margin: 0; color: var(--muted); font-family: var(--font-body); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.proposal-adjust { border: 0; padding: 0; background: transparent; color: var(--violet); font: inherit; font-size: .66rem; font-weight: 750; cursor: pointer; }
.proposal-adjust:hover { text-decoration: underline; }
.proposal-understanding, .proposal-answer { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; white-space: pre-wrap; }
.proposal-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.proposal-list li { position: relative; padding-left: 12px; color: var(--ink-soft); font-size: .75rem; line-height: 1.45; }
.proposal-list li::before { content: ""; position: absolute; top: .55em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }
.proposal-empty { margin: 0; color: #9aa4b8; font-size: .73rem; }
.proposal-estimate strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; letter-spacing: -.02em; }
.proposal-assumption-list { display: grid; gap: 5px; }
.proposal-assumption-preview { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 6px; align-items: start; }
.proposal-assumption-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #c7cedb; }
.proposal-assumption-dot.confirmed { background: var(--mint); }
.proposal-assumption-dot.open { background: #e0a020; }
.proposal-assumption-preview p { margin: 0; color: var(--ink-soft); font-size: .7rem; line-height: 1.4; }
.proposal-assumption-preview small { color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .04em; }
.proposal-preview-foot { flex: 0 0 auto; display: grid; gap: 9px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #fff; }
.proposal-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; color: var(--muted); font-size: .66rem; }
.proposal-progress b { color: var(--ink-soft); }
.proposal-progress-track { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: #edf0f6; overflow: hidden; }
.proposal-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--mint)); transition: width .3s var(--ease); }
.proposal-confirm {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px;
  border: 1px solid var(--violet); border-radius: 10px; background: var(--violet); color: #fff;
  font-family: var(--font-display); font-size: .84rem; font-weight: 750; cursor: pointer; text-decoration: none;
}
.proposal-confirm:hover { background: var(--violet-ink); border-color: var(--violet-ink); }
.proposal-confirm:disabled { opacity: .45; cursor: not-allowed; }

.proposal-identity { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 58px); }
.proposal-identity-copy h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.04em; }
.proposal-identity-copy p { max-width: 42ch; margin: 0; color: var(--muted); line-height: 1.6; }
.proposal-identity-summary { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 22px 0; padding: 13px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.proposal-identity-summary strong { color: var(--ink); font-size: .8rem; }
.proposal-back { justify-self: start; border: 0; padding: 5px 0; background: transparent; color: var(--violet); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.proposal-identity-form { display: grid; gap: 12px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 48px -32px rgba(12,18,38,.3); }
.proposal-field { display: grid; gap: 5px; }
.proposal-field > span { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proposal-field input, .proposal-field select { width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--ink); font: inherit; font-size: .84rem; }
.proposal-field input:focus, .proposal-field select:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 3px var(--violet-soft); }
.proposal-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proposal-consent { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.proposal-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; }
.proposal-form-error { min-height: 16px; color: #9f1239; font-size: .74rem; }
.proposal-login { color: var(--violet); font-size: .72rem; font-weight: 700; text-align: center; }

.proposal-success { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 40px 24px; text-align: center; }
.proposal-success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 8px; border-radius: 50%; background: var(--mint-soft); color: #087568; font-size: 28px; font-weight: 800; }
.proposal-success h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.04em; }
.proposal-success > p { max-width: 46ch; margin: 0; color: var(--muted); }
.proposal-success-id { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: .72rem; }
.proposal-success-id strong { color: var(--ink); }
.proposal-success-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 12px; }

@media (max-width: 980px) {
  .proposal-body { grid-template-columns: 1fr; }
  .proposal-preview { display: none; }
  .proposal-shell.show-preview .proposal-chat { display: none; }
  .proposal-shell.show-preview .proposal-preview { display: flex; }
  .proposal-mobile-tabs { display: flex; }
  .proposal-header-progress { display: none; }
  .proposal-identity { grid-template-columns: 1fr; align-content: start; }
}
@media (max-width: 620px) {
  .proposal-overlay { padding: 0; }
  .proposal-shell { width: 100vw; height: 100svh; min-height: 0; border: 0; border-radius: 0; }
  .proposal-header { padding: 12px 14px; gap: 9px; }
  .proposal-brand span { display: none; }
  .proposal-chat-head { padding: 10px 14px 8px; }
  .proposal-messages { padding: 14px; }
  .proposal-suggestions { padding: 7px 14px 10px; }
  .proposal-composer { padding: 10px 14px 12px; }
  .proposal-preview-head { padding: 14px 14px 10px; }
  .proposal-preview-scroll { padding: 0 10px 10px; }
  .proposal-identity { padding: 22px 16px; gap: 24px; }
  .proposal-field-row { grid-template-columns: 1fr; }
}

.proposal-offer { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.proposal-offer.is-compact { padding: 9px 11px; background: linear-gradient(180deg, #fbfcff, #f7f9fd); }
.proposal-offer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.proposal-offer-kicker { display: block; margin-bottom: 2px; color: var(--violet); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.proposal-offer h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: .86rem; letter-spacing: -.015em; line-height: 1.3; }
.proposal-offer-date { flex: 0 0 auto; color: #7b5a00; font-size: .6rem; font-weight: 700; }
.proposal-offer-summary { margin: 6px 0 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.45; }
.proposal-offer.is-compact .proposal-offer-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proposal-offer-details { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef1f7; }
.proposal-offer-details summary { color: var(--violet); font-size: .66rem; font-weight: 750; cursor: pointer; }
.proposal-offer-details h4 { margin: 9px 0 3px; color: var(--muted); font-family: var(--font-body); font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.proposal-offer-details p { margin: 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.48; }
.proposal-offer-details .offer-card-tags { margin-top: 8px; }

/* Home: dónde generamos valor y cómo se ejecuta */
.value-map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; margin-top: 30px; }
.value-node {
  display: grid; align-content: start; gap: 9px; min-width: 0; padding: clamp(20px, 2.6vw, 28px);
  border-radius: 18px; color: #fff;
  background:
    radial-gradient(300px 150px at 100% 0%, rgba(91, 71, 222, .28), transparent 70%),
    #0d1428;
  border: 1px solid rgba(255,255,255,.09);
}
.value-kicker { color: #b9b2ff; font-size: .65rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.value-node h3 { margin: 0; color: #fff; font-size: clamp(1.05rem, 1.5vw, 1.22rem); letter-spacing: -.025em; line-height: 1.25; }
.value-node p { margin: 0; color: #aebbd2; font-size: .82rem; line-height: 1.55; }
.value-arrow { display: grid; place-items: center; color: #a99bff; font-size: 1.3rem; font-weight: 700; }
.home-offers { align-items: stretch; }
.home-offer-card { display: flex; flex-direction: column; gap: 9px; }
.home-offer-card h3 { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.home-offer-pain, .home-offer-result { display: grid; gap: 3px; margin: 0; font-size: .82rem; line-height: 1.48; }
.home-offer-pain { color: var(--muted); }
.home-offer-result { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.home-offer-pain span, .home-offer-result span { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #97a1b5; }
.home-offer-result span { color: var(--mint); }
.process-section { background: var(--dark); }
.process-section .section-head h2 { color: #fff; }
.process-section .section-head .lead { color: #aebbd2; }
.process-section .eyebrow { color: #b9b2ff; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.process-card {
  position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; padding: 22px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}
.process-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; color: #8f80ff; }
.process-tag { color: var(--mint); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.process-card h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.process-card p { margin: 0; color: #aebbd2; font-size: .8rem; line-height: 1.55; }
@media (max-width: 900px) {
  .value-map { grid-template-columns: 1fr; }
  .value-arrow { transform: rotate(90deg); min-height: 18px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* Portafolio de productos: mapa visual */
.suite-visual {
  position: relative; display: grid; gap: 20px; min-height: 420px; padding: clamp(22px, 3vw, 34px);
  overflow: hidden; border-radius: 22px; color: #fff;
  background:
    radial-gradient(460px 300px at 15% 0%, rgba(91, 71, 222, .55), transparent 70%),
    radial-gradient(380px 260px at 95% 100%, rgba(15, 181, 160, .16), transparent 70%),
    #0a1120;
  box-shadow: var(--shadow-lg);
}
.suite-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 82%); pointer-events: none;
}
.suite-core, .suite-grid { position: relative; z-index: 1; }
.suite-core { display: flex; align-items: center; gap: 11px; justify-self: start; padding: 10px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.suite-core-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #9b8bff, #5b3df5); font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.suite-core div { display: grid; gap: 1px; }
.suite-core strong { font-family: var(--font-display); font-size: .95rem; letter-spacing: -.02em; }
.suite-core small { color: #aebbd2; font-size: .65rem; }
.suite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; align-self: end; }
.suite-tile { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.055); }
.suite-tile b { font-family: var(--font-display); font-size: .72rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.suite-icon { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; background: rgba(169,155,255,.16); color: #d8d2ff; }
.suite-icon svg { width: 15px; height: 15px; }
.suite-line { position: absolute; right: 14%; bottom: 36%; z-index: 0; width: 130px; height: 130px; border: 1px solid rgba(169,155,255,.18); border-radius: 50%; }
@media (max-width: 700px) {
  .suite-grid { grid-template-columns: 1fr 1fr; }
  .suite-visual { min-height: 0; }
}

.proposal-body.is-single { display: block; }
.proposal-success {
  flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(28px, 6vw, 80px); align-items: center; justify-items: stretch; padding: clamp(28px, 6vw, 72px); text-align: left;
}
.proposal-body.is-single .proposal-identity, .proposal-body.is-single .proposal-success { min-height: 100%; }
.proposal-success-copy { display: grid; justify-items: start; gap: 10px; }
.proposal-success-copy h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.045em; }
.proposal-success-copy > p { max-width: 44ch; margin: 0; color: var(--muted); }
.proposal-success-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.proposal-success-card { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); }
.proposal-success-card h3 { margin: 0 0 4px; font-size: 1.1rem; letter-spacing: -.02em; }
.proposal-success-row { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.proposal-success-row span { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.proposal-success-row b { color: var(--ink-soft); font-size: .8rem; line-height: 1.4; }
.proposal-success-mark { margin-bottom: 4px; }
@media (max-width: 860px) {
  .proposal-success { grid-template-columns: 1fr; align-content: start; text-align: left; }
  .proposal-success-card { width: 100%; }
}

.proposal-shell { position: relative; }
.proposal-inner-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(7,12,24,.58); backdrop-filter: blur(4px); }
.proposal-offer-modal { width: min(720px, 100%); max-height: 88%; overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(5,10,24,.4); }
.proposal-offer-modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.proposal-offer-modal-head h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.proposal-offer-modal-body { display: grid; gap: 9px; padding: 16px 20px 22px; }
.proposal-offer-modal-body h4 { margin: 8px 0 0; color: var(--muted); font-family: var(--font-body); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.proposal-detail-copy { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.65; white-space: pre-line; }
.proposal-close--dark { border-color: var(--line); background: #f5f7fb; color: var(--ink); }
.proposal-offer-detail-btn { justify-self: start; margin-top: 3px; border: 0; padding: 0; background: transparent; color: var(--violet); font: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.proposal-offer-detail-btn:hover { text-decoration: underline; }
.proposal-assumption-help { width: 100%; margin: 0 0 2px; padding: 9px 11px; border-radius: 10px; background: #f3f0ff; color: #51457b; font-size: .73rem; line-height: 1.5; }
.proposal-assumption-meta { display: flex; align-items: center; gap: 7px; }
.proposal-assumption-kind { padding: 3px 7px; border-radius: 999px; background: #f2f5fa; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.proposal-assumption-kind.mine { background: #edf9f5; color: #087568; }
.proposal-assumption-meta small { color: var(--violet); font-size: .6rem; font-weight: 750; }
.proposal-assumption { gap: 5px; }

/* Postulación guiada: tres paneles en escritorio */
.proposal-shell { width: min(1480px, 97vw); height: min(960px, 95vh); }
.proposal-body { grid-template-columns: minmax(250px, .72fr) minmax(360px, 1.12fr) minmax(330px, .9fr); }
.proposal-offer-pane { min-width: 0; min-height: 0; overflow-y: auto; background: #fbfcff; border-right: 1px solid var(--line); scrollbar-width: thin; }
.proposal-offer-pane-scroll { display: grid; align-content: start; gap: 9px; padding: 18px 16px 22px; }
.proposal-offer-pane-head { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.proposal-offer-pane-head h2 { margin: 0; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.03em; }
.proposal-offer-pane h3 { margin: 7px 0 0; color: var(--muted); font-family: var(--font-body); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.proposal-offer-summary--full { margin: 2px 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.55; }
.proposal-offer-pane .proposal-detail-copy { font-size: .74rem; line-height: 1.55; }
.proposal-offer-pane .public-offer-meta { gap: 5px; }
.proposal-offer-pane .public-offer-meta span { font-size: .66rem; }
.proposal-chat-context { margin: 5px 0 0; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) {
  .proposal-shell { width: min(920px, 96vw); }
  .proposal-body { grid-template-columns: 1fr; }
  .proposal-body > .proposal-offer-pane, .proposal-body > .proposal-preview { display: none; }
  .proposal-body > .proposal-chat { display: flex; }
  .proposal-shell.show-offer .proposal-chat, .proposal-shell.show-preview .proposal-chat { display: none; }
  .proposal-shell.show-offer .proposal-offer-pane { display: flex; }
  .proposal-shell.show-preview .proposal-preview { display: flex; }
  .proposal-mobile-tabs { display: flex; }
  .proposal-header-progress { display: none; }
  .proposal-identity { grid-template-columns: 1fr; align-content: start; }
}
@media (max-width: 620px) {
  .proposal-brand div { display: none; }
  .proposal-mobile-tabs button { padding: 6px 8px; font-size: .66rem; }
}

.proposal-chat-head { display: grid; gap: 5px; padding: 14px 20px 12px; }
.proposal-step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.proposal-step-count { color: var(--violet); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.proposal-step-dots { display: flex; gap: 3px; }
.proposal-step-dots i { display: block; width: 14px; height: 3px; border-radius: 999px; background: #e6e9f2; }
.proposal-step-dots i.is-done { background: #9de7db; }
.proposal-step-dots i.is-active { background: var(--violet); }
.proposal-step-title { margin: 2px 0 0; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.02em; }
.proposal-step-hint { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.proposal-chat-context { margin: 2px 0 0; color: #9aa4b8; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proposal-shell { height: min(900px, 92vh); }
@media (max-width: 620px) {
  .proposal-chat-head { padding: 10px 14px 9px; }
  .proposal-step-dots i { width: 10px; }
  .proposal-step-title { font-size: .96rem; }
}

/* Choosers compactos en el asistente */
.proposal-choice-grid { display: grid; gap: 7px; width: 100%; }
.proposal-choice {
  display: grid; gap: 3px; width: 100%; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}
.proposal-choice:hover { border-color: var(--violet-line); background: #fbfaff; transform: translateY(-1px); }
.proposal-choice b { font-family: var(--font-display); font-size: .8rem; font-weight: 750; letter-spacing: -.01em; }
.proposal-choice small { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.proposal-shell { width: min(1400px, 96vw); height: min(840px, 90vh); }
@media (max-width: 620px) {
  .proposal-choice { padding: 9px 10px; }
  .proposal-choice small { font-size: .65rem; }
}

.proposal-messages { flex: 0 1 auto; }
.proposal-suggestions { flex: 1 1 auto; align-content: flex-start; max-height: none; }
.proposal-shell { height: min(800px, 90vh); }

.proposal-step-context { width: 100%; margin-top: 3px; padding: 11px 12px; border: 1px solid #e7e3fb; border-radius: 11px; background: #faf9ff; }
.proposal-step-context > span { display: block; color: var(--violet); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.proposal-step-context > p { margin: 4px 0 6px; color: #4f4868; font-size: .76rem; line-height: 1.45; }
.proposal-step-context ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.proposal-step-context li { position: relative; padding-left: 11px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.proposal-step-context li::before { content: ""; position: absolute; top: .52em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }
.proposal-shell { height: min(780px, 90vh); }

/* Modo embebido: chat + preview; la oferta se abre dentro del workspace. */
.proposal-shell.proposal-shell--inline .proposal-body { grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); }
.proposal-shell.proposal-shell--inline .proposal-offer-pane { display: none; }
.proposal-offer-link { justify-self: start; border: 0; padding: 2px 0; background: transparent; color: var(--violet); font: inherit; font-size: .72rem; font-weight: 750; cursor: pointer; }
.proposal-offer-link:hover { text-decoration: underline; }
@media (max-width: 1180px) {
  .proposal-shell.proposal-shell--inline .proposal-body { grid-template-columns: 1fr; }
}

/* Chat y opciones en un solo scroll; el compositor nunca tapa las opciones. */
.proposal-chat-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.proposal-chat-head { padding: 10px 16px 8px; gap: 3px; }
.proposal-step-title { font-size: .98rem; margin-top: 1px; }
.proposal-step-hint { font-size: .72rem; line-height: 1.35; }
.proposal-messages { flex: 0 0 auto; overflow: visible; padding: 12px 18px 4px; }
.proposal-suggestions { flex: 0 0 auto; overflow: visible; max-height: none; padding: 4px 18px 18px; }
.proposal-assumption-pending { width: 100%; margin: -2px 0 2px; color: var(--violet); font-size: .7rem; font-weight: 750; }
.proposal-assumption.is-attention { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.proposal-shell.is-final { height: min(660px, 84vh); }
.proposal-shell.proposal-shell--inline.is-final { height: min(660px, calc(100vh - 210px)); }
.proposal-shell.is-success, .proposal-shell.proposal-shell--inline.is-success { height: min(590px, 80vh); }
.proposal-success-id { text-decoration: none; cursor: pointer; }
.proposal-success-id small { margin-left: 3px; color: var(--violet); font-size: .62rem; font-weight: 750; }
.proposal-success-id:hover { border-color: var(--violet-line); background: #faf9ff; }
@media (max-width: 620px) {
  .proposal-chat-head { padding: 9px 14px 7px; }
  .proposal-messages { padding: 10px 14px 3px; }
  .proposal-suggestions { padding: 3px 14px 14px; }
}

/* En el portal, el workspace se integra como panel de la app, no como banner oscuro. */
.proposal-shell.proposal-shell--inline .proposal-header {
  background: #fff; color: var(--ink); border-bottom: 1px solid var(--line);
  padding: 8px 14px; gap: 10px;
}
.proposal-shell.proposal-shell--inline .proposal-brand strong { color: var(--ink); font-size: .82rem; }
.proposal-shell.proposal-shell--inline .proposal-brand span { color: var(--muted); font-size: .6rem; }
.proposal-shell.proposal-shell--inline .proposal-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 17px; }
.proposal-shell.proposal-shell--inline .proposal-close { border-color: var(--line); background: #f7f8fc; color: var(--ink); width: 30px; height: 30px; }
.proposal-shell.proposal-shell--inline .proposal-mobile-tabs { background: #f1f4fa; }
.proposal-shell.proposal-shell--inline .proposal-mobile-tabs button { color: var(--muted); }
.proposal-shell.proposal-shell--inline .proposal-mobile-tabs button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(12,18,38,.08); }
.proposal-shell.proposal-shell--inline .proposal-header-progress { background: #eef1f7; }
.proposal-shell.proposal-shell--inline .proposal-header-progress i { background: linear-gradient(90deg, var(--violet), var(--mint)); }

.proposal-step-info { display: grid; place-items: center; width: 21px; height: 21px; margin-left: 2px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--muted); font: 700 11px/1 var(--font-body); cursor: pointer; }
.proposal-step-info:hover { border-color: var(--violet); color: var(--violet); }
.proposal-step-offer { border: 0; padding: 1px 0; background: transparent; color: var(--violet); font: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.proposal-step-offer:hover { text-decoration: underline; }
.proposal-step-tip { margin-top: 5px; padding: 8px 10px; border: 1px solid #e7e3fb; border-radius: 9px; background: #faf9ff; }
.proposal-step-tip p { margin: 0; color: #51457b; font-size: .72rem; line-height: 1.42; }
.proposal-step-context-inline { margin-top: 6px; padding-top: 6px; border-top: 1px solid #ece8fc; }
.proposal-step-context-inline ul { display: grid; gap: 2px; margin: 5px 0 0; padding: 0; list-style: none; }
.proposal-step-context-inline li { position: relative; padding-left: 10px; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.proposal-step-context-inline li::before { content: ""; position: absolute; top: .5em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }

.proposal-missing { display: grid; gap: 7px; padding: 11px 12px; border: 1px dashed var(--line-strong); border-radius: 11px; background: #fbfcff; }
.proposal-missing > span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.proposal-missing-list { display: flex; flex-wrap: wrap; gap: 5px; }
.proposal-missing-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; background: #fff; color: var(--ink-soft); font: inherit; font-size: .68rem; cursor: pointer; }
.proposal-missing-chip:hover { border-color: var(--violet-line); color: var(--violet-ink); }

/* Registro por pasos dentro de la postulación */
.proposal-identity { align-items: start; }
.proposal-identity-steps { display: grid; gap: 0; margin: 18px 0 20px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.proposal-identity-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: #99a3b7; }
.proposal-identity-steps li span { font-family: var(--font-display); font-size: .68rem; font-weight: 800; color: #b3bbcb; }
.proposal-identity-steps li b { font-size: .78rem; font-weight: 650; }
.proposal-identity-steps li.is-active { color: var(--ink); }
.proposal-identity-steps li.is-active span { color: var(--violet); }
.proposal-identity-steps li.is-done { color: var(--mint); }
.proposal-identity-steps li.is-done span { color: var(--mint); }
.proposal-form-step { color: var(--violet); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.proposal-identity-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.proposal-identity-actions .proposal-confirm { flex: 1 1 200px; }
.proposal-cv { display: grid; gap: 5px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 11px; background: #fbfcff; }
.proposal-cv-label { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proposal-cv-input { display: none; }
.proposal-cv-button { justify-self: start; border: 1px solid var(--violet-line); border-radius: 999px; padding: 6px 11px; background: #fff; color: var(--violet-ink); font: inherit; font-size: .72rem; font-weight: 750; cursor: pointer; }
.proposal-cv-name { color: var(--ink-soft); font-size: .73rem; overflow-wrap: anywhere; }
.proposal-cv-hint { color: var(--muted); font-size: .64rem; }
.proposal-data-note { margin: 0; padding: 9px 10px; border-radius: 9px; background: #f7f9fc; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.proposal-data-note a, .proposal-consent--link a { color: var(--violet); font-weight: 700; }
.proposal-promo { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border: 1px solid #e7e2fb; border-radius: 11px; background: linear-gradient(135deg, #fbf9ff, #f4fbf9); cursor: pointer; }
.proposal-promo input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--violet); }
.proposal-promo div { display: grid; gap: 2px; }
.proposal-promo b { color: var(--ink); font-size: .75rem; line-height: 1.35; }
.proposal-promo span { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.proposal-consent--link { align-items: flex-start; }

/* Modo split: chat en el panel de IA del shell y preview en la página. */
.proposal-split-page { height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--bg-soft); }
.proposal-split-page > .proposal-preview { flex: 1; min-height: 0; }
.proposal-split-page > .proposal-identity, .proposal-split-page > .proposal-success { flex: 1; min-height: 0; background: #fff; }
.proposal-step-close { border: 0; background: transparent; color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; padding: 0 2px; }
.proposal-step-close:hover { color: var(--ink); }
.proposal-preview-host { position: relative; height: calc(100vh - 150px); min-height: 560px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-soft); }

.proposal-split-root {
  --line: #e6e8f0; --line-strong: #d2d7e4;
  --ink: #0c1226; --ink-soft: #343c56; --muted: #626b82;
  --violet: #5b47de; --violet-ink: #4634c2; --violet-soft: #efecff; --violet-line: #d9d2ff;
  --mint: #0fb5a0; --mint-soft: #e4f7f3; --bg-soft: #f7f8fc;
  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 1.5;
}
.proposal-split-root > .proposal-chat, .proposal-split-root > .proposal-preview { height: 100%; }

.proposal-preview-host { width: 100%; height: auto; min-height: 0; }
.proposal-split-page { height: auto; min-height: 0; }
.proposal-split-page > .proposal-preview { flex: none; }

/* Cabecera del asistente dentro del panel de IA del shell. */
.proposal-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.proposal-ai-logo { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); }
.proposal-ai-logo svg { width: 15px; height: 15px; }
.proposal-ai-copy { display: grid; min-width: 0; flex: 1; line-height: 1.15; }
.proposal-ai-title { color: var(--ink); font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: -.01em; }
.proposal-ai-sub { color: var(--muted); font-size: .62rem; }
.proposal-ai-actions { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
.proposal-preview-jump { border: 1px solid var(--violet-line); border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); padding: 4px 8px; font: inherit; font-size: .62rem; font-weight: 750; white-space: nowrap; cursor: pointer; }
.proposal-preview-jump:hover { background: #e5e0ff; }
.proposal-icon-btn { display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.proposal-icon-btn svg { width: 14px; height: 14px; }
.proposal-icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.proposal-step-top { flex-wrap: wrap; }
@media (max-width: 420px) {
  .proposal-ai-sub { display: none; }
  .proposal-preview-jump { font-size: .58rem; padding: 4px 6px; }
}

/* ===== Estándar visual del asistente Flexiu AI ===== */
.ai-panel-header {
  color: #fff; padding: 12px 16px;
  background:
    radial-gradient(120% 170% at 0% 0%, rgba(124, 92, 255, 0.38) 0%, rgba(124, 92, 255, 0) 58%),
    linear-gradient(132deg, #17122d 0%, #241744 55%, #2d1b53 100%);
}
.ai-panel-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ai-panel-logo {
  display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, #9b7bff 0%, #6b4de6 52%, #5434cf 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 18px rgba(51,20,140,.45);
  color: #fff; font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 1;
}
.ai-panel-copy { display: grid; min-width: 0; line-height: 1.12; }
.ai-panel-title { margin: 0; color: #fff; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.ai-panel-subtitle { margin: 3px 0 0; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.ai-panel-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ai-panel-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.88); cursor: pointer;
}
.ai-panel-icon:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); color: #fff; }
.ai-panel-action { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.09); color: #fff; padding: 6px 10px; font: inherit; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ai-panel-action:hover { background: rgba(255,255,255,.16); }
.ai-panel-progress { height: 2px; margin-top: 10px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.ai-panel-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b7a4ff, #7c5cff); }

.proposal-chat-head.is-standard { display: block; padding: 0; border-bottom: 0; }
.proposal-chat-head.is-standard .proposal-ai-head { display: block; margin: 0; padding: 12px 16px; }
.proposal-chat-head.is-standard .proposal-chat-head-body { padding: 10px 20px 12px; border-bottom: 1px solid #f0f2f8; }
.proposal-ai-head { margin: 0; }
@media (max-width: 620px) {
  .proposal-chat-head.is-standard .proposal-ai-head { padding: 10px 14px; }
  .proposal-chat-head.is-standard .proposal-chat-head-body { padding: 9px 14px 10px; }
}
.proposal-chat-head-body { display: grid; gap: 5px; }
.ai-panel-title, .ai-panel-subtitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Resumen de la oferta y layouts compactos del panel derecho (split). */
.proposal-split-page { width: 100%; }
.proposal-split-page > .proposal-preview { width: 100%; }
.proposal-offer-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 0 12px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; box-shadow: 0 8px 24px -22px rgba(12,18,38,.3);
}
.proposal-offer-strip-copy { min-width: 0; display: grid; gap: 3px; }
.proposal-offer-strip .proposal-kicker { margin: 0; }
.proposal-offer-strip h2 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: .98rem; line-height: 1.25; letter-spacing: -.02em; }
.proposal-offer-strip-meta { margin: 0; color: var(--muted); font-size: .68rem; }
.proposal-offer-strip-cta {
  flex: 0 0 auto; border: 1px solid var(--violet-line); border-radius: 999px;
  background: var(--violet-soft); color: var(--violet-ink); padding: 7px 11px;
  font: inherit; font-size: .7rem; font-weight: 750; white-space: nowrap; cursor: pointer;
}
.proposal-offer-strip-cta:hover { background: #e6e0ff; }
.proposal-step-offer {
  border: 1px solid var(--violet-line); border-radius: 999px; padding: 3px 8px;
  background: var(--violet-soft); color: var(--violet-ink); font: inherit;
  font-size: .62rem; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.proposal-step-offer:hover { background: #e6e0ff; text-decoration: none; }

.proposal-split-page > .proposal-identity {
  display: block; padding: 22px; overflow-y: auto; align-items: start;
}
.proposal-split-page > .proposal-identity .proposal-identity-copy h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem); line-height: 1.12;
}
.proposal-split-page > .proposal-identity .proposal-identity-form {
  width: 100%; max-width: 560px; margin-top: 16px; padding: 20px;
}
.proposal-split-page > .proposal-identity .proposal-identity-summary { margin: 16px 0; }

.proposal-split-page > .proposal-success {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  text-align: left; padding: 24px; gap: 15px; overflow-y: auto;
}
.proposal-split-page > .proposal-success .proposal-success-copy { width: 100%; max-width: none; }
.proposal-split-page > .proposal-success .proposal-success-copy h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem); line-height: 1.12;
}
.proposal-split-page > .proposal-success .proposal-success-copy > p { max-width: 46ch; }
.proposal-split-page > .proposal-success .proposal-success-card { width: 100%; max-width: none; }
.proposal-split-page > .proposal-success .proposal-success-actions { justify-content: flex-start; }

@media (max-width: 620px) {
  .proposal-offer-strip { align-items: flex-start; flex-direction: column; }
  .proposal-offer-strip-cta { width: 100%; text-align: center; }
  .proposal-split-page > .proposal-identity, .proposal-split-page > .proposal-success { padding: 16px; }
}

/* ---------- Escaparate animado de productos ---------- */
.product-showcase { position: relative; min-width: 0; }
.showcase-stage { display: grid; min-width: 0; }
.showcase-slide {
  grid-area: 1 / 1; min-width: 0; opacity: 0; pointer-events: none;
  transform: translateY(10px) scale(.988);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.showcase-slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; transform: none; }
.showcase-slide .ui-frame { height: 100%; }
.showcase-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.showcase-dots { display: flex; align-items: center; gap: 5px; }
.showcase-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: #d8deea; cursor: pointer; transition: width .25s var(--ease), background .25s var(--ease);
}
.showcase-dots button span { display: block; width: 100%; height: 100%; }
.showcase-dots button:hover { background: var(--violet-line); }
.showcase-dots button.is-active { width: 24px; background: var(--violet); }
.showcase-caption { color: var(--muted); font-size: .67rem; white-space: nowrap; }

/* Los elementos internos se encienden al entrar cada producto. */
.showcase-slide.is-active .ui-kpi { animation: showcase-kpi .62s var(--ease) both; }
.showcase-slide.is-active .ui-kpi:nth-child(2) { animation-delay: .1s; }
.showcase-slide.is-active .ui-kpi:nth-child(3) { animation-delay: .2s; }
.showcase-slide.is-active .ui-panel { animation: showcase-panel .7s var(--ease) both; }
.showcase-slide.is-active .ui-chart i { animation: showcase-bar .58s var(--ease) both; transform-origin: bottom; }
.showcase-slide.is-active .ui-chart i:nth-child(2) { animation-delay: .05s; }
.showcase-slide.is-active .ui-chart i:nth-child(3) { animation-delay: .1s; }
.showcase-slide.is-active .ui-chart i:nth-child(4) { animation-delay: .15s; }
.showcase-slide.is-active .ui-chart i:nth-child(5) { animation-delay: .2s; }
.showcase-slide.is-active .ui-chart i:nth-child(6) { animation-delay: .25s; }
.showcase-slide.is-active .ui-chart i:nth-child(7) { animation-delay: .3s; }
.showcase-slide.is-active .ui-chart i:nth-child(8) { animation-delay: .35s; }
.showcase-slide.is-active .ui-row { animation: showcase-row .52s var(--ease) both; }
.showcase-slide.is-active .ui-row:nth-child(2) { animation-delay: .16s; }
.showcase-slide.is-active .ui-row:nth-child(3) { animation-delay: .28s; }
.showcase-slide.is-active .ui-row:nth-child(4) { animation-delay: .4s; }

@keyframes showcase-kpi {
  0% { opacity: 0; transform: translateY(5px); border-color: var(--line); }
  55% { opacity: 1; border-color: var(--violet-line); box-shadow: 0 0 0 3px rgba(91,71,222,.08); }
  100% { opacity: 1; transform: none; border-color: var(--line); box-shadow: none; }
}
@keyframes showcase-panel {
  0% { opacity: 0; transform: translateY(7px); }
  100% { opacity: 1; transform: none; }
}
@keyframes showcase-bar {
  0% { opacity: 0; transform: scaleY(.15); }
  100% { opacity: .85; transform: scaleY(1); }
}
@keyframes showcase-row {
  0% { opacity: 0; transform: translateX(6px); background: #fff; }
  50% { opacity: 1; background: var(--violet-soft); border-color: var(--violet-line); }
  100% { opacity: 1; transform: none; background: #fff; border-color: var(--line); }
}

@media (max-width: 700px) {
  .showcase-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-slide { transition: none; transform: none; }
  .showcase-slide.is-active .ui-kpi,
  .showcase-slide.is-active .ui-panel,
  .showcase-slide.is-active .ui-chart i,
  .showcase-slide.is-active .ui-row { animation: none; }
}

/* El detalle de la oferta abre arriba y se cierra sin salir de la postulación. */
.proposal-inner-overlay {
  align-items: start; justify-items: center;
  padding-top: clamp(14px, 4vh, 32px);
}
.proposal-offer-strip-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.proposal-offer-strip-cancel {
  border: 0; background: transparent; color: var(--muted); padding: 4px 2px;
  font: inherit; font-size: .68rem; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.proposal-offer-strip-cancel:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 620px) {
  .proposal-offer-strip-actions { width: 100%; justify-content: space-between; }
}
.site-footer .logo img { filter: brightness(0) invert(1); opacity: .96; }

/* Hero: foco del requerimiento y microcopy de acompañamiento */
@property --laser-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.request {
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.request-laser {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  z-index: 3; pointer-events: none; opacity: .9;
  background: conic-gradient(from var(--laser-angle, 0deg),
    transparent 0deg 268deg,
    rgba(96, 48, 232, .30) 286deg,
    rgba(96, 48, 232, .95) 314deg,
    rgba(0, 184, 196, .95) 338deg,
    transparent 354deg 360deg);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: request-laser-sweep 6s linear infinite;
  transition: opacity .25s var(--ease);
}
.request.has-value .request-laser,
.request.is-focused .request-laser { opacity: 0; }
@keyframes request-laser-sweep {
  to { --laser-angle: 360deg; }
}
.request-foot .btn--primary { position: relative; overflow: hidden; }
.request:not(.has-value):not(.is-focused) .request-foot .btn--primary {
  animation: request-btn-glow 4.6s ease-in-out infinite;
}
.request:not(.has-value):not(.is-focused) .request-foot .btn--primary::before {
  content: ""; position: absolute; z-index: 0; top: -30%; bottom: -30%; left: -65%;
  width: 42%; pointer-events: none; transform: skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: request-btn-shine 4.6s ease-in-out infinite;
}
.request:not(.has-value):not(.is-focused) .request-foot .btn--primary svg {
  animation: request-arrow-nudge 4.6s ease-in-out infinite;
}
.request-foot .btn:hover svg { animation: none; transform: translateX(4px); }
@keyframes request-btn-glow {
  0%, 100% { box-shadow: 0 8px 22px -16px rgba(96, 48, 232, .25); }
  50% { box-shadow: 0 10px 26px -14px rgba(96, 48, 232, .55); }
}
@keyframes request-btn-shine {
  0%, 48% { left: -65%; }
  70%, 100% { left: 125%; }
}
@keyframes request-arrow-nudge {
  0%, 56%, 100% { transform: translateX(0); }
  66% { transform: translateX(5px); }
  76% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .request-laser { animation: none; opacity: 0; }
  .request:not(.has-value):not(.is-focused) .request-foot .btn--primary,
  .request:not(.has-value):not(.is-focused) .request-foot .btn--primary::before,
  .request:not(.has-value):not(.is-focused) .request-foot .btn--primary svg { animation: none; }
}
.request:focus-within,
.request.is-focused {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(96, 48, 232, .10), var(--shadow);
}

/* Borde vivo: la tonalidad acompaña el avance del texto sin distraer. */
.request { position: relative; }
.request.is-writing,
.request.is-writing:focus-within {
  border-color: var(--req-border, var(--violet));
  box-shadow:
    0 0 0 var(--req-ring, 0px) rgba(var(--req-tone, 91, 61, 245), var(--req-ring-alpha, 0)),
    0 0 20px rgba(var(--req-tone, 91, 61, 245), var(--req-glow, 0)),
    var(--shadow);
  background-image: linear-gradient(180deg, rgba(91, 61, 245, var(--req-wash, 0)) 0%, transparent 46%);
  transition: border-color .45s ease, box-shadow .45s ease, background-image .45s ease;
}
.request.is-writing textarea { caret-color: var(--req-border, var(--violet)); }
.request::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 3px;
  border-radius: 999px; pointer-events: none;
  background: rgba(14, 19, 32, .07);
  opacity: 0; transition: opacity .3s var(--ease);
}
.request.is-writing::before { opacity: 1; }
.request::after {
  content: ""; position: absolute; left: 12px; bottom: 5px; height: 3px;
  width: calc(var(--req-progress, 0) * 100%);
  max-width: calc(100% - 24px);
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(90deg, var(--violet) 0%, var(--violet) 45%, var(--mint) 100%);
  box-shadow: 0 0 10px rgba(91, 61, 245, .35), 0 0 2px rgba(18, 184, 134, .28);
  opacity: 0; transition: width .45s var(--ease), opacity .3s var(--ease);
}
.request.is-writing::after { opacity: .95; }
@media (prefers-reduced-motion: reduce) {
  .request, .request.is-writing, .request::after { transition: none; }
}
.request-guide {
  display: flex; align-items: flex-start; gap: 7px;
  min-height: 22px; margin: 0; padding: 0 14px 3px;
  color: var(--muted); font-size: .73rem; line-height: 1.45;
  opacity: 0; transform: translateY(-2px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
  pointer-events: none;
}
.request:focus-within .request-guide,
.request.is-focused .request-guide,
.request.has-value .request-guide { opacity: 1; transform: none; }
.request-guide-mark { color: var(--violet); font-size: .9rem; line-height: 1.2; }
@media (max-width: 700px) {
  .request-guide { font-size: .7rem; padding-inline: 12px; }
}

/* CTA de cierre de la sección de valor */
.section-cta { align-items: center; gap: 18px; padding-top: 4px; }
.section-cta p { max-width: 54ch; margin: 0; }
.section-cta .btn { flex: 0 0 auto; }
@media (max-width: 700px) {
  .section-cta { align-items: flex-start; flex-direction: column; }
  .section-cta .btn { width: 100%; justify-content: center; }
}

/* Destello sutil de la guía: una luz cruza una vez cuando aparece el mensaje. */
.request-guide {
  position: relative; overflow: hidden; border-radius: 8px;
}
.request-guide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(102deg, transparent 24%, rgba(255,255,255,.55) 43%, rgba(96,48,232,.08) 52%, transparent 76%);
  transform: translateX(-130%); opacity: 0;
}
.request-guide.is-shimmer::after { animation: guide-shimmer 2.6s var(--ease); }
@keyframes guide-shimmer {
  0% { transform: translateX(-130%); opacity: 0; }
  14% { opacity: .48; }
  55% { opacity: .38; }
  100% { transform: translateX(130%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .request-guide.is-shimmer::after { animation: none; }
}


/* ---------- Flexiu AI: arquitectura, entrada y flip ---------- */
.flexiu-ai .page-hero h1 {
  animation: fx-ai-hero .85s var(--ease) both;
}
@keyframes fx-ai-hero {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.flexiu-ai .reveal {
  transition-duration: .7s;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1);
}
.flexiu-ai .grid .reveal:nth-child(2) { --d: 70ms; }
.flexiu-ai .grid .reveal:nth-child(3) { --d: 140ms; }
.flexiu-ai .grid .reveal:nth-child(4) { --d: 210ms; }
.flexiu-ai .grid .reveal:nth-child(5) { --d: 280ms; }
.flexiu-ai .grid .reveal:nth-child(6) { --d: 350ms; }
.flexiu-ai .card {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.flexiu-ai .card:hover,
.flexiu-ai .card--flat:hover {
  transform: translateY(-5px);
  border-color: var(--violet-line);
  box-shadow: 0 18px 38px -28px rgba(18, 24, 44, .42);
}
.flexiu-ai .card--agent:hover {
  box-shadow: 0 22px 52px -24px rgba(96, 48, 232, .55);
  border-color: rgba(0, 184, 196, .45);
}

/* Las aplicaciones se voltean al pasar el cursor, sin ocultar el enlace. */
.ai-app-flip {
  display: block; min-height: 318px; color: var(--ink);
  perspective: 1100px; border-radius: var(--radius);
}
.ai-app-flip-inner {
  position: relative; display: block; min-height: 318px;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.22, .61, .36, 1);
}
.ai-app-flip:hover .ai-app-flip-inner,
.ai-app-flip:focus-visible .ai-app-flip-inner { transform: rotateY(180deg); }
.ai-app-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.ai-app-front { box-shadow: 0 1px 0 rgba(18, 24, 44, .02); }
.ai-app-face h3 { margin-top: 4px; }
.ai-app-face .link-arrow { margin-top: auto; padding-top: 8px; }
.ai-app-back {
  transform: rotateY(180deg);
  background: var(--dark); color: #fff; border-color: rgba(255,255,255,.12);
}
.ai-app-back h3 { color: #fff; }
.ai-app-back p { color: rgba(255,255,255,.72); }
.ai-app-back .link-arrow { color: #fff; }
.ai-app-flip:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }

@media (hover: none) {
  .ai-app-flip:hover .ai-app-flip-inner,
  .ai-app-flip:focus-visible .ai-app-flip-inner { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flexiu-ai .page-hero h1 { animation: none; }
  .ai-app-flip-inner { transition: none; }
}
