/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Sales Module — /platform/sales/
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Global tokens (not inherited from home.css on this page) ── */
:root {
  --c-negro:    #1F1C1B;
  --c-blanco:   #ffffff;
  --c-off-white: #F7F6F0;
  --c-gris-600: #585858;
  --c-gris-400: #A0A0A0;
  /* Fluid type scale — matches home.css (375 → 1440 viewport) */
  --step-5: clamp(2rem, 1.648rem + 1.5vw, 3rem);   /* 32 → 48px */
  --step-6: clamp(2.25rem, 1.634rem + 2.63vw, 4rem); /* 36 → 64px */
  --step-4: clamp(1.5rem, 1.324rem + 0.75vw, 2rem); /* 24 → 32px */
  --step-3: clamp(1.25rem, 1.162rem + 0.38vw, 1.5rem);
  --step-1: clamp(1rem, 0.912rem + 0.38vw, 1.25rem);
}

/* Short viewports (landscape laptops) — same override as home.css */
@media (max-height: 750px) and (min-width: 768px) {
  :root {
    --step-5: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); /* 26 → 36px */
    --step-6: clamp(1.875rem, 1.3rem + 1.8vw, 3rem);    /* 30 → 48px */
    --step-4: clamp(1.25rem, 1.1rem + 0.55vw, 1.625rem);
    --step-3: clamp(1.125rem, 1rem + 0.35vw, 1.375rem);
  }
}

/* ── Design Tokens ── */
#sales {
  --s-accent: #F32A73;
  --s-accent-light: #FDE8F0;
  --s-negro: #1F1C1B;
  --s-off-white: #F7F6F0;
  --s-gris-600: #585858;
  --s-gris-400: #A0A0A0;
  --s-gris-200: #E3E3E3;
  --s-gris-100: #F6F6F6;
  background: var(--s-off-white);
}

/* ── Base ── */
#sales section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── h2 base — beats global.css h2 { font-weight: 700 } ── */
#sales h2 {
  font-size: var(--step-5);
  font-weight: 400;
  color: var(--c-negro);
  letter-spacing: -0.03em;
  line-height: 110%;
  margin: 0 0 24px;
}

#sales p {
  color: var(--c-gris-600);
  line-height: 170%;
  margin: 0;
}

/* ── Section layout: centered eyebrow + h2 + desc ── */
#sales .sales-section .s-eyebrow,
#sales .s-section .s-eyebrow {
  justify-content: center;
}

#sales .sales-section h2,
#sales .s-section h2 {
  max-width: 860px;
  margin: 0 auto 24px;
  text-align: center;
}

#sales .sales-section__desc,
#sales .s-section .s-section__header p {
  font-size: 1.05rem;
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ── Eyebrow ── */
.s-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--c-gris-400);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s-eyebrow--light { color: rgba(255,255,255,0.5); }
.s-eyebrow svg { width: 10px; height: 12px; flex-shrink: 0; }

/* ── Button ── */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  letter-spacing: -0.48px;
  line-height: 1;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.s-btn--accent {
  background: var(--s-accent);
  color: #fff;
}
.s-btn--accent:hover { background: #D91F63; }

/* ── Huge Copy — scroll-driven letter reveal ── */
.huge-copy {
  position: relative;
  min-height: 280vh;
}
.huge-copy__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
/* Dashed divider marking the dark-zone boundary */
.hc-divider {
  width: 100%;
  margin: 0;
  border: none;
  border-top: 1px dashed #ccc;
  padding: 0;
  height: 0;
}
.huge-copy__bg {
  position: absolute;
  inset: 0;
  background: #1F1C1B;
  opacity: 0;
  transition: none;
  pointer-events: none;
}
.huge-copy__reveal {
  position: absolute;
  inset: 0;
  background: #F32A73;
  clip-path: circle(0px at 50% 50%);
  pointer-events: none;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.huge-copy__reveal-phrase {
  font-family: 'Geist', sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #1F1C1B;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 400ms ease, transform 400ms ease;
  white-space: nowrap;
}
.huge-copy__reveal-phrase.hc-phrase--visible {
  opacity: 1;
  transform: scale(1);
}
.huge-copy__text {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  padding: 0 32px;
  text-align: center;
}
.huge-copy__text h2,
#sales .huge-copy__text h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -0.01em;
  color: #1F1C1B;
  margin: 0;
  white-space: nowrap;
}
.huge-copy__text h2 .hc-word {
  display: inline;
  color: #bbb;
  transition: color 300ms ease;
}
.huge-copy__text h2 .hc-word.hc-word--lit {
  color: #F32A73;
}
/* Floating spotlight dot */
.hc-spotlight {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F32A73;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
}
.hc-spotlight.hc-spotlight--active {
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 768px) {
  .huge-copy {
    min-height: 220vh;
  }
  .huge-copy__text h2,
  #sales .huge-copy__text h2 {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
  }
  .huge-copy__text {
    padding: 0 16px;
  }
}

/* ── Split (2-col text + visual) ── */
.s-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.s-split--reverse {
  direction: rtl;
}
.s-split--reverse > * {
  direction: ltr;
}
.s-split__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#sales .s-split__text .s-eyebrow {
  justify-content: flex-start;
  margin-bottom: 16px;
}
#sales .s-split__text h2 {
  text-align: left;
  margin: 0 0 24px;
  max-width: none;
}
#sales .s-split__text .sales-section__desc {
  text-align: left;
  margin: 0;
  max-width: none;
}
.s-split__visual .s-placeholder {
  margin-top: 0;
  aspect-ratio: 1 / 1;
}
@media (max-width: 768px) {
  .s-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .s-split--reverse {
    direction: ltr;
  }
}

/* ── Placeholder ── */
.s-placeholder {
  margin-top: 48px;
  padding: 80px 40px;
  border: 2px dashed var(--s-gris-200);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.s-placeholder p {
  font-size: 14px;
  color: var(--s-gris-400);
  max-width: 500px;
  line-height: 170%;
  margin: 0;
}
.s-placeholder--wide {
  max-width: 100%;
}
.s-placeholder--on-dark {
  border-color: rgba(255,255,255,0.2);
}
.s-placeholder--on-dark p {
  color: rgba(255,255,255,0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. HERO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sales-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px !important;
  max-width: none !important;
  overflow: hidden;
  background: var(--s-negro);
}

.sales-hero__content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  margin-top: -100px;
}

/* Sales hero iso */
#sales-hero-iso {
  filter: blur(12px);
  opacity: 0;
  transition: filter 1.2s cubic-bezier(.22,1,.36,1),
              opacity 0.8s ease;
}
#sales-hero-iso.hero-iso--revealed {
  filter: blur(0px);
  opacity: 1;
}

.sales-hero__eyebrow {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  line-height: 1.1;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.sales-hero__eyebrow.sales-title--revealed {
  opacity: 1;
  transform: translateY(0);
}

.sales-hero h1 {
  font-size: var(--step-6);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 110%;
  margin: 0 0 24px;
  transform: scale(1.2);
  opacity: 0;
  transition: transform .8s cubic-bezier(.22,1,.36,1),
              opacity .5s ease;
}
.sales-hero h1.sales-title--revealed {
  transform: scale(1);
  opacity: 1;
}

#sales .sales-hero__desc {
  font-size: 1.15rem;
  line-height: 170%;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .7s cubic-bezier(.22,1,.36,1) .15s,
              opacity .5s ease .15s;
}
#sales .sales-hero__desc.sales-title--revealed {
  transform: translateY(0);
  opacity: 1;
}

.sales-hero h1 em {
  font-style: normal;
  color: #fff;
}

/* ── Scroll hint mouse ── */
.sales-hero__scroll-hint {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease .4s, transform .6s cubic-bezier(.22,1,.36,1) .4s;
}
.sales-hero__scroll-hint.sales-title--revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 12px;
  position: relative;
  margin: 0 auto;
}
.scroll-mouse__wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%  { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Hero text scroll-driven 3D effect ── */
.sales-hero__content {
  transition: transform 0.3s ease-out, filter 0.3s ease-out, opacity 0.3s ease-out;
}

.sales-hero__visual {
  margin-top: 64px;
  width: 100%;
  max-width: 960px;
  position: relative;
  z-index: 2;
}

.sales-hero__visual .s-placeholder {
  border-color: rgba(255,255,255,0.2);
}
.sales-hero__visual .s-placeholder p {
  color: rgba(255,255,255,0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SKILL SDR SPLIT CARD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.skill-crm-scroll {
  position: relative;
  height: 250vh;            /* scroll budget for X-ray animation */
}
.skill-crm-sticky {
  position: sticky;
  top: 20px;
}
.skill-crm-reveal-title {
  font-size: var(--step-3);
  font-weight: 400;
  color: var(--c-negro);
  letter-spacing: -0.03em;
  line-height: 110%;
  text-align: center;
  position: absolute;
  top: -72px;
  left: 0;
  right: 0;
  z-index: 5;
  opacity: 0;
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 0%);
  mask-image: linear-gradient(to right, #000 0%, transparent 0%);
  will-change: mask-image, -webkit-mask-image;
  pointer-events: none;
}
.skill-crm-wrap {
  max-width: 828px;
  margin: 32px auto 0;
  position: relative;
  overflow: visible;
  will-change: transform;
}
.skill-crm {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(31,28,27,0.06);
  position: relative;
  background: #161513;
  height: 362px;
}

/* ── Left: editor (X-ray overlay, clipped until hover) ── */
.skill-crm__editor {
  background: #161513;
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.skill-crm__scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(60,58,56,0.12) 8%, rgba(60,58,56,0.35) 20%, rgba(60,58,56,0.5) 50%, rgba(60,58,56,0.35) 80%, rgba(60,58,56,0.12) 92%, transparent 100%);
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.35s ease;
  will-change: left;
  left: 0;
  opacity: 0;
}
.skill-crm__editor-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sk-dots { display: flex; gap: 6px; }
.sk-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  display: block;
}
.sk-dots i:nth-child(1) { background: #FF5F57; }
.sk-dots i:nth-child(2) { background: #FEBC2E; }
.sk-dots i:nth-child(3) { background: #28C840; }
.sk-filename {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}
/* Markdown editor style */
.skill-crm__editor-md {
  flex: 1;
  overflow: auto;
  background: #161513;
  padding: 0 20px 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.sk-md {
  font-family: 'Geist Mono', 'Fira Mono', 'Menlo', monospace;
  font-size: 12px;
  color: #F7F6F0;
  background: transparent;
  border: none;
  padding: 18px 0 0 0;
  margin: 0;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  min-height: 100%;
}
.skill-crm__editor-header {
  padding: 14px 20px 8px;
  flex-shrink: 0;
}
.skill-crm__editor-rules {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 0 20px;
}
.skill-crm__editor-rules::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #161513);
  pointer-events: none;
  z-index: 2;
}
/* Remove old flex shrink for label/comment in new layout */
.sk-rules-track {
  animation: lf-scroll 16s linear infinite;
}
.skill-crm:hover .sk-rules-track {
  animation-play-state: paused;
}
/* Remove old rule block styles in markdown mode */
/* Skill label */
.sk-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F32A73;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sk-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}
/* Comment line */
.sk-comment {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  line-height: 1.5;
  margin-bottom: 6px;
}
/* Rule block */
.sk-rule {
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 4px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.sk-rule--active {
  background: rgba(243,42,115,0.08);
  border-color: rgba(243,42,115,0.25);
}
.sk-if {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
}
.sk-kw  { color: #C084FC; }  /* purple - keyword */
.sk-prop { color: #7DD3FC; }  /* blue - property */
.sk-op  { color: #94A3B8; }  /* gray - operator */
.sk-val  { color: #86EFAC; }  /* green - value */

/* Markdown typewriter syntax tokens */
.sk-c-title   { color: #F32A73; font-weight: 600; }
.sk-c-h2      { color: #7DD3FC; font-weight: 500; }
.sk-c-comment { color: #FBBF24; }
.sk-line--comment:first-of-type { margin-top: 12px; }
.sk-c-sep     { color: rgba(255,255,255,0.12); }
.sk-c-kw      { color: #C084FC; }
.sk-c-prop    { color: #7DD3FC; }
.sk-c-op      { color: #94A3B8; }
.sk-c-val     { color: #86EFAC; }
.sk-c-name    { color: #FBBF24; }
.sk-c-role    { color: rgba(255,255,255,0.3); font-size: 11px; }

/* Blinking cursor */
.sk-cursor {
  color: #FBBF24;
  animation: sk-blink 0.8s step-start infinite;
  font-weight: 400;
  user-select: none;
}
@keyframes sk-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Line-by-line reveal animation ── */
div.sk-md {
  white-space: normal; /* lines handle their own whitespace */
}
.sk-line {
  display: block;
  white-space: pre;
  line-height: 1.7;
  opacity: 0;
}
.sk-line--empty {
  height: 12px;
}

/* Rule lines: fast horizontal scan (terminal print effect) */
.sk-line--rule {
  clip-path: inset(0 100% 0 0);
  opacity: 1; /* clip-path handles visibility */
}
.sk-line--rule.sk-line--visible {
  animation: sk-scan 0.18s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes sk-scan {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* Non-rule lines: quick fade + subtle slide up */
.sk-line--visible:not(.sk-line--rule) {
  animation: sk-fade 0.12s ease forwards;
}
@keyframes sk-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cursor line: same fade, stays invisible until last */
.sk-line--cursor {
  margin-top: 2px;
}
.sk-then {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  padding-left: 16px;
  margin-top: 3px;
}
.sk-then strong { color: #FBBF24; font-weight: 500; } /* gold - name */
.sk-then em     { color: rgba(255,255,255,0.3); font-style: normal; font-size: 11px; }

/* ── Right: assignments feed (base layer, always visible) ── */
.skill-crm__feed {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.skill-crm__feed-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #F0F0EE;
}
.skill-crm__feed-bar .sk-filename {
  color: #1F1C1B;
}
.lf-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4ade80;
  flex-shrink: 0;
}
.lf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: lf-pulse 1.5s ease-in-out infinite;
}
@keyframes lf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}
.lf-title {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: #585858;
}
.lf-count {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #A0A0A0;
}
.skill-crm__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.skill-crm__viewport::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  z-index: 2;
}
.skill-crm__track {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Card drop-in from top with bounce */
/* Staggered internal item entrance */
.sa-card__item {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sa-card__item--in {
  opacity: 1;
  transform: translateY(0);
}

/* Assignment card */
.sa-card {
  padding: 11px 16px;
  border-bottom: 1px solid #F7F6F0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.sa-card__main {
  min-width: 0;
}
.sa-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.sa-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.sa-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--s-negro);
  flex: 1;
  letter-spacing: -0.01em;
}
.sa-origin {
  font-size: 11px;
  color: #A0A0A0;
  background: #F6F6F6;
  padding: 2px 7px;
  border-radius: 100px;
}
/* ── Two-phase card bottom ── */
.sa-card__bottom-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 0;
  white-space: nowrap;
  overflow: hidden;
}
.sa-card__bottom-wrap {
  position: relative;
  height: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.sa-bottom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Analyzing state (default — visible) */
.sa-bottom--analyzing {
  opacity: 1;
  transform: translateY(0);
}
/* Resolved state (default — hidden below) */
.sa-bottom--resolved {
  opacity: 0;
  transform: translateY(6px);
}
/* When card resolves: swap states */
.sa-card--resolved .sa-bottom--analyzing {
  opacity: 0;
  transform: translateY(-6px);
}
.sa-card--resolved .sa-bottom--resolved {
  opacity: 1;
  transform: translateY(0);
}

/* Spinner */
.sa-spinner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #E3E3E3;
  border-top-color: #F32A73;
  animation: sa-spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes sa-spin {
  to { transform: rotate(360deg); }
}

/* Analyzing label */
.sa-analyzing-text {
  font-size: 11px;
  color: #F32A73;
  font-weight: 500;
}

/* Fuente badge — shown always */
.sa-new-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  color: #585858;
  background: #F6F6F6;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Score badge — square chip, right column spanning 2 rows */
.sa-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #F6F6F6;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.sa-score-badge__num {
  font-size: 14px;
  font-weight: 700;
  color: #1F1C1B;
  line-height: 1;
}
.sa-score-badge__label {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9B958A;
  text-transform: uppercase;
  margin-top: 2px;
}
.sa-score-badge--visible {
  opacity: 1;
  transform: scale(1);
  background: #F6F6F6;
}
.sa-score-badge--visible .sa-score-badge__num {
  color: #1F1C1B;
}

/* Country badge — shown in resolved row */
.sa-country-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  color: #585858;
  background: #F6F6F6;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Origin tag in resolved row */
.sa-origin--resolved {
  margin-left: auto;
}

/* Animated dots */
.sa-dots {
  display: flex;
  gap: 2px;
  align-items: center;
}
.sa-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #C0BEB8;
  display: block;
  animation: sa-dot-bounce 1s ease-in-out infinite;
}
.sa-dots i:nth-child(2) { animation-delay: 0.16s; }
.sa-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes sa-dot-bounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(-2px); }
}

/* Avatar scanning pulse (while analyzing) */
.sa-avatar--scanning {
  animation: sa-avatar-scan 1s ease-in-out infinite;
}
@keyframes sa-avatar-scan {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%       { filter: brightness(1.25) saturate(1.4); }
}

.sa-arrow {
  color: #A0A0A0;
  font-size: 11px;
}
.sa-resolved-label {
  font-size: 11px;
  color: #A0A0A0;
  flex-shrink: 0;
}
.sa-agent {
  font-size: 12px;
  color: #585858;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa-agent strong {
  color: var(--s-negro);
  font-weight: 600;
}
.sa-ai-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #F32A73;
  background: #FDE8F0;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Counter footer — status bar pinned to bottom */
.skill-crm__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #F7F6F0;
  border-top: 1px solid #EEEDE7;
}
.sc-counter {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.sc-counter__num {
  font-family: 'Geist Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--s-negro);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.15s;
}
.sc-counter__num.sc-flash {
  animation: sc-flash 0.4s ease;
}
@keyframes sc-flash {
  0%   { color: #F32A73; transform: scale(1.08); }
  100% { color: var(--s-negro); transform: scale(1); }
}
.sc-counter__label {
  font-size: 11px;
  color: #A0A0A0;
  white-space: nowrap;
  margin-left: 4px;
}
.sc-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: #F32A73;
  background: #FDE8F0;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.sc-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #F32A73;
  animation: lf-pulse 1.5s ease-in-out infinite;
}

/* ── Entrance animation ── */
.skill-crm {
  opacity: 0;
  transform: translateY(32px);
  transition: none;
}
.skill-crm.crm--visible {
  animation: crm-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes crm-reveal {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.skill-crm.crm--visible .skill-crm__editor {
  animation: crm-panel 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.skill-crm.crm--visible .skill-crm__feed {
  animation: crm-panel 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}
@keyframes crm-panel {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .skill-crm, .skill-crm__editor, .skill-crm__feed {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive: stack on mobile */
@media (max-width: 640px) {
  .sales-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 100px 24px 40px !important;
    justify-content: flex-start;
  }
  .sales-hero h1 {
    font-size: clamp(1.625rem, 5.5vw, 2.25rem);
  }
  .sales-hero__content {
    margin-top: 0;
  }
  #sales .sales-hero__desc {
    font-size: 1rem;
  }
  .skill-crm {
    grid-template-columns: 1fr;
    height: auto;
    margin: 24px auto 0;
    gap: 0;
    position: relative;
  }
  .skill-crm__editor {
    position: relative;
    inset: auto;
    min-height: auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(31,28,27,0.10);
    clip-path: none !important;
    -webkit-clip-path: none !important;
    pointer-events: auto;
    z-index: auto;
    opacity: 1 !important;
  }
  .skill-crm__editor::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin: 12px auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23585858' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E") center/contain no-repeat;
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .skill-crm__feed {
    margin-top: 40px;
    position: relative;
    inset: auto;
    display: flex;
    border-left: none;
    border-top: none;
    height: 291px;
    border-radius: 12px;
    border: 1px solid rgba(31,28,27,0.10);
  }
  .skill-crm__viewport::after {
    display: none;
  }
  .skill-crm-scroll {
    height: auto;
  }
  .skill-crm-sticky {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
  }
  .skill-crm-wrap {
    transform: none !important;
  }
  .sk-md {
    font-size: 11px;
    white-space: normal;
    word-break: break-word;
    padding: 14px 0 0 0;
  }
  .sk-line {
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AI PROMPT — Sales Copilot
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Greeting */
.sai-greeting {
  text-align: center;
  margin-bottom: 32px;
}
.sai-greeting__line {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  font-weight: 400;
  color: var(--c-negro);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Ask window — mac-style light window */
.ask-window {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(31,28,27,0.06);
  background: #ffffff;
}
.ask-window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(31,28,27,0.07);
}
.ask-window__bar .sk-filename {
  color: rgba(31,28,27,0.35);
}
.ask-window__body {
  padding: 36px 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Light overrides — ask-field inside light window (uses defaults, just reset dark leftover) */
.ask-window .ask-field__inner {
  background: #F7F6F0;
}
.ask-window .ask-field__bar {
  border-color: rgba(31,28,27,0.08);
  background: #F7F6F0;
}
.ask-window .ask-field.settled .ask-field__bar {
  border-color: rgba(31,28,27,0.08) !important;
}
.ask-window .ask-field__text {
  color: var(--c-negro);
}
.ask-window .ask-field__cursor {
  background: var(--c-negro);
}
.ask-window .ask-suggestions__item {
  border-bottom-color: rgba(31,28,27,0.08);
}
.ask-window .ask-suggestions__icon {
  color: rgba(31,28,27,0.3);
}
.ask-window .ask-suggestions__text {
  color: rgba(31,28,27,0.5);
}

/* Section layout */
.sales-section--ai-prompt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.ai-prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.ai-prompt-grid__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ai-prompt-grid__text .s-eyebrow {
  margin-bottom: 16px;
  justify-content: flex-start;
}
#sales .sales-section--ai-prompt .s-eyebrow {
  justify-content: flex-start;
}
#sales .sales-section--ai-prompt h2 {
  text-align: left;
  margin: 0 0 24px;
  max-width: none;
}
#sales .sales-section--ai-prompt .sales-section__desc {
  text-align: left;
  margin: 0;
  max-width: none;
}
@media (max-width: 640px) {
  .ai-prompt-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Ask Field — identical to home.css ── */
@property --ask-rotation {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.ask-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.ask-field__bar {
  --border-size: 2px;
  --gradient: conic-gradient(
    from var(--ask-rotation) at 50% 50%,
    oklch(0.63 0.2 251) 27%,
    oklch(0.67 0.21 26) 33%,
    oklch(0.9 0.19 94) 41%,
    oklch(0.79 0.25 150) 49%,
    oklch(0.63 0.2 251) 65%,
    oklch(0.72 0.21 151) 93%,
    oklch(0.63 0.2 251)
  );
  position: relative;
  width: 52px;
  border-radius: 100px;
  border: 2px solid rgba(31,28,27,0.08);
  background: none;
  padding: 0;
  z-index: 1;
  opacity: 0;
  transform: translateY(60px) scale(0.8);
  filter: blur(8px);
  will-change: opacity, transform, filter, width;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ask-rotate 1.2s linear infinite;
}

.ask-field__bar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--gradient);
  z-index: -1;
  filter: blur(18px);
  opacity: 0;
  border-radius: inherit;
  animation: ask-rotate 1.2s linear infinite;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ask-field.visible .ask-field__bar::after { opacity: 0.3; }

.ask-field.visible .ask-field__bar {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

.ask-field.expanded .ask-field__bar {
  width: 100%;
  max-width: 640px;
  border-color: transparent;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.8s cubic-bezier(0.34, 1.4, 0.64, 1),
              border-color 0.3s ease;
}

.ask-field__inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px;
  justify-content: center;
  background: var(--c-blanco);
  border-radius: inherit;
  position: relative;
  z-index: 2;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.ask-field.expanded .ask-field__inner {
  gap: 12px;
  padding: 14px 26px;
  transition: gap 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-field__border {
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border-radius: inherit;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ask-field.visible .ask-field__border { opacity: 1; }
.ask-field.settled .ask-field__bar {
  border-color: rgba(31,28,27,0.08);
  animation-play-state: paused;
  transition: border-color 0.8s ease;
}
.ask-field.settled .ask-field__bar::after {
  opacity: 0 !important;
  animation-play-state: paused;
  transition: opacity 0.8s ease;
}
.ask-field.settled .ask-field__border {
  opacity: 0 !important;
  animation-play-state: paused;
  transition: opacity 0.8s ease;
}
.ask-field.settled .ask-field__border::after {
  animation-play-state: paused;
}

.ask-field__border::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--gradient);
  z-index: -1;
  filter: blur(4px);
  animation: ask-rotate 1.2s linear infinite;
}

@keyframes ask-rotate {
  to { --ask-rotation: 360deg; }
}

.ask-field__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #4285F4;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.ask-field.visible .ask-field__icon { opacity: 0.8; }

.ask-field__text {
  color: var(--c-negro);
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.7s ease, max-width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.ask-field.expanded .ask-field__text {
  opacity: 0.4;
  max-width: 500px;
}

.ask-field__cursor {
  width: 1.5px;
  height: 18px;
  background: var(--c-negro);
  border-radius: 1px;
  opacity: 0;
  flex-shrink: 0;
}
.ask-field.expanded .ask-field__cursor {
  animation: ask-blink 1.1s ease-in-out infinite;
  animation-delay: 0.4s;
}
@keyframes ask-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.7; }
}

/* Suggestions */
.ask-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  width: 100%;
  max-width: 640px;
  padding: 0 4px;
  text-align: left;
}
.ask-suggestions__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(31,28,27,0.08);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor: default;
}
.ask-suggestions__item:last-child { border-bottom: none; }
.ask-field.suggestions .ask-suggestions__item { opacity: 1; transform: translateY(0); }
.ask-field.suggestions .ask-suggestions__item:nth-child(1) { transition-delay: 0s; }
.ask-field.suggestions .ask-suggestions__item:nth-child(2) { transition-delay: 0.12s; }
.ask-field.suggestions .ask-suggestions__item:nth-child(3) { transition-delay: 0.24s; }
.ask-field.suggestions .ask-suggestions__item:nth-child(4) { transition-delay: 0.36s; }

.ask-suggestions__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(31,28,27,0.3);
}
.ask-suggestions__text {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: rgba(31,28,27,0.5);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .sai-greeting__line { font-size: 1rem; }
  .ask-window__body { padding: 32px 24px 40px; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#sales .sales-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* Dark variant */
.sales-section--dark {
  background: var(--s-negro);
  max-width: none !important;
  padding-left: 24px;
  padding-right: 24px;
}
#sales .sales-section--dark h2,
#sales .s-section--dark h2 {
  color: #fff;
}
#sales .sales-section--dark .sales-section__desc,
#sales .s-section--dark .s-section__header p {
  color: rgba(255,255,255,0.7);
}
.sales-section--dark .s-eyebrow,
.sales-section--dark .s-eyebrow--light {
  color: rgba(255,255,255,0.5);
}
.sales-section--dark > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTA
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sales-cta {
  text-align: center;
  padding: 120px 24px !important;
}
.sales-cta h2 {
  margin-bottom: 16px;
}
.sales-cta p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  color: var(--s-gris-600);
}
