/* ============================================================
   CONTAVLE — Asesorías CSS
   ============================================================ */

/* ============================================================
   ASESORIAS — Página específica
   ============================================================ */

/* ====== HERO ====== */
.ases-hero {
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.ases-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.ases-hero-content { max-width: 620px; }
.ases-hero-content .pill { margin-bottom: 24px; }
.ases-hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  font-weight: 700;
}
.ases-hero .lead { margin-bottom: 32px; max-width: 580px; }
.ases-hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.ases-hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.ases-hero-stats div { display: flex; flex-direction: column; }
.ases-hero-stats strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.ases-hero-stats span {
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 4px;
}

/* ===== VISUAL: Cartera panel + AI overlay ===== */
.ases-hero-visual { position: relative; }
.ases-panel {
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ases-panel-bar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mist);
  background: var(--paper);
}
.ases-panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.ases-panel-badge {
  background: var(--lime-soft);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.ases-panel-search {
  padding: 12px 22px;
  border-bottom: 1px solid var(--mist);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-size: 13px;
}
.ases-panel-search span:first-of-type { flex: 1; }
.ases-shortcut {
  background: var(--whisper);
  border: 1px solid var(--mist);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--graphite);
}

.ases-clients {
  list-style: none;
  padding: 6px 0;
}
.ases-clients li {
  padding: 12px 22px;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--mist);
  font-size: 13.5px;
}
.ases-clients li:last-child { border-bottom: none; }
.ases-clients .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-ok { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.dot-warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.dot-ai { background: var(--lime); box-shadow: 0 0 0 3px rgba(195,231,107,0.3); }
.c-name { color: var(--ink); font-weight: 500; }
.c-name em { color: var(--slate); font-style: normal; font-weight: 400; font-size: 12.5px; }
.c-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-ok { background: var(--lime-mist); color: #0a8a4e; }
.tag-warn { background: #fef3c7; color: #92400e; }
.tag-ai { background: rgba(195,231,107,0.18); color: var(--ink); }

.ases-ai-card {
  position: absolute;
  bottom: -24px;
  right: -16px;
  width: 268px;
  background: var(--ink);
  color: white;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-xl);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.ai-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-card-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.ai-card-head strong { font-family: var(--font-display); font-size: 13px; flex: 1; }
.ai-card-badge {
  background: var(--lime);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.ases-ai-card p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 12px;
}
.ai-card-actions { display: flex; gap: 8px; }
.ai-btn-primary {
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
}
.ai-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
}

/* ====== INTRO ====== */
.ases-intro {
  background: var(--paper);
  padding: clamp(72px, 8vw, 120px) 0;
}
.ases-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
}
.ases-intro-left h2 {
  letter-spacing: -0.03em;
  margin-top: 16px;
}
.ases-intro-right p { color: var(--graphite); font-size: 17px; line-height: 1.6; margin-bottom: 20px; }
.ases-intro-right p strong { color: var(--ink); }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease);
  margin-top: 8px;
}
.btn-arrow:hover { gap: 14px; }
.btn-arrow span { font-size: 18px; }

/* ====== PILARES ====== */
.ases-pillars {
  background: var(--bg);
  padding: clamp(80px, 9vw, 140px) 0;
}
.ases-pillars-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}
.ases-pillars-header .eyebrow { display: inline-flex; margin-bottom: 20px; }
.ases-pillars-header .eyebrow::before { display: none; }
.ases-pillars-header h2 { letter-spacing: -0.03em; }

/* ====== Scroll-stack pillars — cards que se apilan al scrollear ======
   Cada fila se queda "pegada" mientras la siguiente sube por debajo.
   El background blanco oculta lo de detrás creando la sensación de apilado.
   Las superiores reciben un sutil scale(0.97) + opacity al ser tapadas. */
.ases-pillars-stack {
  position: relative;
}
.ases-pillars .pillar-row {
  display: grid;
  grid-template-columns: 100px 1.1fr 1fr;
  gap: 40px;
  padding: 56px 48px;
  border-top: none;
  border-radius: 32px;
  background: var(--bg);
  align-items: center;
  position: sticky;
  top: 110px;
  margin-bottom: 28px;
  box-shadow: 0 1px 0 var(--mist);
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
  will-change: transform;
  /* Cada fila incrementa el top base 6px para que se apilen visualmente */
}
.ases-pillars .pillar-row:nth-child(1) { top: calc(110px + 0px); }
.ases-pillars .pillar-row:nth-child(2) { top: calc(110px + 12px); }
.ases-pillars .pillar-row:nth-child(3) { top: calc(110px + 24px); }
.ases-pillars .pillar-row:nth-child(4) { top: calc(110px + 36px); }
.ases-pillars .pillar-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Borde superior fino navy + sombra premium para que la pila se sienta como cards de verdad */
.ases-pillars .pillar-row {
  border: 1px solid var(--mist);
  box-shadow: 0 10px 30px rgba(15,17,42,0.04), 0 1px 0 rgba(255,255,255,0.6) inset;
}

/* Cuando una pillar-row queda "tapada" por la siguiente (lo gestiona JS),
   añadimos .is-stacked que aplica el scale/opacity sutil de profundidad */
.ases-pillars .pillar-row.is-stacked {
  transform: scale(0.98) translateY(-8px);
  opacity: 0.88;
}
.ases-pillars .pillar-row.is-stacked-2 {
  transform: scale(0.965) translateY(-16px);
  opacity: 0.75;
}
.ases-pillars .pillar-row.is-stacked-3 {
  transform: scale(0.95) translateY(-22px);
  opacity: 0.6;
}

@media (max-width: 980px) {
  .ases-pillars .pillar-row {
    position: relative;
    top: auto !important;
    padding: 40px 28px;
    transform: none !important;
    opacity: 1 !important;
  }
}
.pillar-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  position: relative;
  line-height: 1;
}
.pillar-number::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 56%;
  height: 14px;
  background: var(--lime);
  z-index: -1;
}
.pillar-content h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.pillar-content > p {
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 92%;
}
.pillar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pillar-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.pillar-features .tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.pillar-row-rev { direction: rtl; }
.pillar-row-rev > * { direction: ltr; }
.pillar-row-rev .pillar-number { text-align: right; }
.pillar-row-rev .pillar-number::after { left: auto; right: 0; }

/* ===== Pillar visuals ===== */
.pillar-visual {
  display: grid;
  place-items: center;
  padding: 24px;
}
.pillar-mockup {
  position: relative;
  width: 100%;
  max-width: 460px;
  isolation: isolate;
}
.pillar-mockup::before {
  content: "";
  position: absolute;
  inset: -30px;
  background:
    radial-gradient(circle at 30% 20%, rgba(195,231,107,0.30), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(15,17,42,0.10), transparent 55%);
  filter: blur(28px);
  z-index: -1;
  border-radius: 50%;
}
.pillar-mockup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f7f8fb);
  box-shadow:
    0 30px 80px rgba(15,17,42,0.14),
    0 8px 24px rgba(15,17,42,0.06);
  border: 1px solid rgba(15,17,42,0.06);
}
.pv-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.pv-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mist);
  margin-bottom: 14px;
}
.pv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
.pv-card-head strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  display: block;
}
.pv-card-head span {
  font-size: 12px;
  color: var(--slate);
}
.pv-card-head > div:nth-child(2) { flex: 1; }
.pv-pill {
  background: var(--lime-soft);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.pv-rows { display: flex; flex-direction: column; gap: 6px; }
.pv-row {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 9px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.pv-row-label { color: var(--ink); font-weight: 500; }
.pv-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.pv-status-ok { background: var(--lime-mist); color: #0a8a4e; }
.pv-status-warn { background: #fef3c7; color: #92400e; }

/* Automation flow */
.pv-automation {
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 320px;
}
.pv-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
}
.pv-step span:first-child {
  font-family: var(--font-mono);
  color: var(--slate);
  font-size: 12px;
}
.pv-step-4 { background: var(--ink); color: white; border-color: var(--ink); }
.pv-step-4 span:first-child { color: var(--lime); }
.pv-step-4 strong { color: var(--lime); }
.pv-arrow { text-align: center; color: var(--slate); padding: 4px 0; font-size: 14px; }

/* Verifactu */
.pv-verifactu {
  background: var(--ink);
  color: white;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
}
.pv-vf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.pv-vf-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
}
.pulse {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(195,231,107,0.25);
  animation: pulse-soft 2s ease-in-out infinite;
}
.pv-vf-meta { font-size: 12px; color: rgba(255,255,255,0.55); }
.pv-vf-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  margin-bottom: 18px;
  overflow: hidden;
}
.pv-vf-bar-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 999px;
}
.pv-verifactu ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.pv-verifactu li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.85);
}
.pv-verifactu .dot { width: 7px; height: 7px; border-radius: 50%; }
.pv-verifactu .t { color: rgba(255,255,255,0.45); font-size: 11px; margin-left: auto; }

/* Marketplace card */
.pv-mp-card {
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 340px;
}
.pv-mp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pv-mp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.pv-mp-head strong { font-family: var(--font-display); font-size: 15px; color: var(--ink); display: block; }
.pv-mp-head span { font-size: 12px; color: var(--slate); }
.pv-mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pv-mp-tags span {
  background: var(--whisper);
  border: 1px solid var(--mist);
  font-size: 11.5px;
  color: var(--graphite);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.pv-mp-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}
.pv-mp-stats div { flex: 1; }
.pv-mp-stats strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  display: block;
}
.pv-mp-stats span {
  font-size: 11px;
  color: var(--slate);
}
.pv-mp-btn {
  background: var(--ink);
  color: white;
  width: 100%;
  padding: 11px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}

/* ====== TABS SECTION ====== */
.ases-tabs-section {
  background: var(--paper);
  padding: clamp(80px, 9vw, 140px) 0;
}
.ases-tabs-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}
.ases-tabs-header .eyebrow { display: inline-flex; margin-bottom: 20px; }
.ases-tabs-header .eyebrow::before { display: none; }
.ases-tabs-header h2 { letter-spacing: -0.03em; }

.ases-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.ases-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--mist);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--graphite);
  transition: all 0.25s var(--ease);
}
.ases-tab:hover { border-color: var(--ink); color: var(--ink); }
.ases-tab.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.ases-tab.active svg { color: var(--lime); }

.ases-tab-panel { display: none; animation: fade-in 0.4s var(--ease-out); }
.ases-tab-panel.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.atp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 24px;
  padding: 48px;
}
.atp-text h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.atp-text p {
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.atp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.atp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.atp-list .tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.atp-visual { display: grid; place-items: center; }

/* Tasks visual */
.atp-tasks {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 16px;
}
.atp-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  background: var(--bg);
  border: 1px solid var(--mist);
  margin-bottom: 6px;
}
.atp-task:last-child { margin-bottom: 0; }
.atp-tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime-mist);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.atp-tick-now {
  background: var(--lime);
  font-size: 10px;
}
.atp-tick-todo {
  background: transparent;
  border: 1.5px solid var(--mist);
}
.atp-task-done { color: var(--slate); }
.atp-task-done .atp-tick { background: var(--ink); color: var(--lime); }
.atp-task-done span:not(.atp-tick):not(.atp-meta) { text-decoration: line-through; flex: 1; }
.atp-task:not(.atp-task-done) span:not(.atp-tick):not(.atp-meta) { flex: 1; color: var(--ink); }
.atp-meta { font-size: 11px; color: var(--slate); font-weight: 500; }

/* Rules visual */
.atp-rules {
  width: 100%;
  max-width: 420px;
  background: var(--ink);
  color: white;
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.atp-rule-head {
  padding: 12px 18px;
  background: rgba(255,255,255,0.06);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.atp-rule-body { padding: 18px; }
.atp-rule-line { padding: 4px 0; line-height: 1.5; color: rgba(255,255,255,0.85); }
.atp-rule-line .key {
  color: var(--lime);
  font-weight: 700;
  margin-right: 6px;
}
.atp-rule-line .key-and { color: #fbbf24; }
.atp-rule-line .key-then { color: var(--lime); margin: 4px 0 2px; display: inline-block; }
.atp-rule-line .dim { color: rgba(255,255,255,0.4); margin-right: 6px; }
.atp-rule-line code {
  background: rgba(195,231,107,0.12);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--lime);
}
.atp-rule-foot {
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.atp-rule-foot strong { color: var(--lime); font-weight: 700; }

/* AI visual */
.atp-ai {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.atp-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.atp-ai-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.atp-ai-item {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 9px;
  margin-bottom: 6px;
}
.atp-ai-item:last-child { margin-bottom: 0; }
.atp-ai-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.atp-ai-item span { font-size: 12px; color: var(--slate); }

/* Chat visual */
.atp-chat {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.atp-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--mist);
  background: var(--paper);
}
.atp-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.atp-chat-head strong { font-family: var(--font-display); font-size: 14px; color: var(--ink); display: block; }
.atp-chat-head span {
  font-size: 11px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}
.atp-chat-head span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}
.atp-bubble {
  padding: 10px 14px;
  margin: 12px 18px;
  font-size: 13.5px;
  border-radius: 14px;
  max-width: 80%;
  line-height: 1.4;
}
.atp-bubble-them {
  background: var(--paper);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.atp-bubble-us {
  background: var(--lime);
  color: var(--ink);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.atp-bubble-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--mist);
}
.atp-doc-icon { font-size: 16px; }
.atp-doc-size { color: var(--slate); font-size: 11.5px; margin-left: auto; }
.atp-typing {
  padding: 10px 18px 16px;
  font-size: 11.5px;
  color: var(--slate);
  font-style: italic;
}

/* ====== MARKETPLACE SECTION ====== */
.ases-mp {
  background: var(--ink);
  color: white;
  padding: clamp(80px, 9vw, 140px) 0;
}
.ases-mp-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.eyebrow-light {
  color: var(--lime);
}
.eyebrow-light::before { background: var(--lime); }
.ases-mp h2 {
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.ases-mp h2 .italic-serif {
  background: transparent;
  color: var(--lime);
  padding: 0;
}
.ases-mp-text > p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 92%;
}
.ases-mp-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}
.ases-mp-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.tick-light {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
}
.btn-lime:hover { background: var(--lime-dark); transform: translateY(-1px); }

.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.mp-card:hover {
  border-color: rgba(195,231,107,0.4);
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}
.mp-card-featured {
  background: linear-gradient(180deg, rgba(195,231,107,0.12), rgba(195,231,107,0.04));
  border-color: rgba(195,231,107,0.4);
}
.mp-tag-featured {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(195,231,107,0.3);
}
.mp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.mp-avatar-1 { background: #fbbf24; }
.mp-avatar-2 { background: #60a5fa; }
.mp-avatar-3 { background: var(--lime); }
.mp-avatar-4 { background: #f472b6; }
.mp-card-head strong {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: white;
  display: block;
  line-height: 1.25;
}
.mp-card-head > div:nth-child(2) { min-width: 0; flex: 1; }
.mp-card-head span {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.mp-tags span {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ====== TESTIMONY ====== */
.ases-testimony {
  background: var(--paper);
  padding: clamp(72px, 8vw, 120px) 0;
}
.ases-quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.ases-quote-stars {
  color: var(--lime-dark);
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 24px;
}
.ases-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 32px;
}
.ases-quote-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.aqa-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.ases-quote-author strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}
.ases-quote-author span {
  font-size: 13px;
  color: var(--slate);
  text-align: left;
  display: block;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1080px) {
  .ases-hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .ases-hero-content { max-width: 100%; }
  .ases-hero-visual { max-width: 480px; }
  .ases-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillar-row { grid-template-columns: 80px 1fr; gap: 32px; }
  .pillar-row .pillar-visual { grid-column: 1 / -1; padding: 12px 0; }
  .pillar-row-rev { direction: ltr; }
  .pillar-row-rev .pillar-number { text-align: left; }
  .pillar-row-rev .pillar-number::after { left: 0; right: auto; }
  .atp-grid { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .ases-mp-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 700px) {
  .ases-hero { padding: 130px 0 60px; }
  .ases-hero h1 { font-size: clamp(36px, 9.5vw, 52px); }
  .ases-hero-stats { gap: 24px; }
  .ases-ai-card { display: none; }
  .pillar-row { grid-template-columns: 60px 1fr; gap: 20px; padding: 36px 0; }
  .pillar-number { font-size: 44px; }
  .pillar-number::after { height: 10px; }
  .pillar-content h3 { font-size: 22px; }
  .atp-grid { padding: 24px; }
  .ases-mp-features { grid-template-columns: 1fr; }
  .ases-quote blockquote { font-size: 20px; }
  .mp-grid { grid-template-columns: 1fr; }
}

/* ====== MENOS CAOS — Card hero navy ====== */
.ases-chaos {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--bg);
}
.chaos-card {
  position: relative;
  background: var(--ink);
  border-radius: 40px;
  padding: clamp(56px, 6vw, 96px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 100px rgba(15,17,42,0.18);
}
.chaos-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* Silueta de la V de contavle, super sutil — refuerza identidad de marca */
.chaos-card-bg::after {
  content: "";
  position: absolute;
  right: -6%;
  top: 50%;
  width: 660px;
  height: 600px;
  transform: translateY(-50%);
  background-image: url("../img/v-pattern.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.028;
}
.chaos-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}
.chaos-glow-1 {
  top: -200px;
  left: -150px;
  background: rgba(195,231,107,0.25);
  animation: chaosGlow1 22s ease-in-out infinite;
}
.chaos-glow-2 {
  bottom: -250px;
  right: -180px;
  background: rgba(38,99,235,0.18);
  animation: chaosGlow2 26s ease-in-out infinite;
}
@keyframes chaosGlow1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(60px, 40px, 0); }
}
@keyframes chaosGlow2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-80px, -50px, 0); }
}

.chaos-card-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.chaos-title {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: white;
  margin-bottom: 32px;
}
.chaos-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}
.chaos-body p {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.6;
}
.chaos-body strong {
  color: white;
  font-weight: 600;
}
.chaos-result {
  border-left: 2px solid var(--lime);
  padding-left: 16px;
  margin-top: 8px;
}

.chaos-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chaos-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.8s var(--ease-out);
}
.chaos-card:hover .chaos-mockup {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.chaos-mockup img {
  width: 100%;
  display: block;
  border-radius: 18px;
}
/* Floating mini cards over the mockup */
.chaos-float {
  position: absolute;
  background: white;
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.30), 0 1px 0 rgba(255,255,255,0.6) inset;
  animation: floatY 5s ease-in-out infinite;
  z-index: 2;
}
.chaos-float strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.chaos-float span:not(.chaos-float-dot):not(.chaos-float-icon) {
  font-size: 12px;
  color: var(--slate);
}
.chaos-float-1 {
  top: 8%;
  right: -4%;
  animation-delay: 0s;
}
.chaos-float-2 {
  bottom: 10%;
  left: -6%;
  animation-delay: 1.5s;
}
.chaos-float-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.20);
  flex-shrink: 0;
}
.chaos-float-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  flex-shrink: 0;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .chaos-card-grid { grid-template-columns: 1fr; gap: 48px; }
  .chaos-card { padding: 48px 32px; border-radius: 28px; }
  .chaos-visual { min-height: 300px; }
  .chaos-mockup { transform: none; }
  .chaos-float-1 { top: -16px; right: 8px; }
  .chaos-float-2 { bottom: -16px; left: 8px; }
}
@media (max-width: 600px) {
  .chaos-title { font-size: clamp(32px, 9vw, 44px); }
  .chaos-float-1, .chaos-float-2 { display: none; }
}

/* ============================================================
   atp-mp — Mockup marketplace para tab "Captación"
   ============================================================ */
.atp-mp {
  width: 100%;
  max-width: 380px;
  background: white;
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(15, 17, 42, 0.12);
}
.atp-mp-head {
  margin-bottom: 14px;
}
.atp-mp-badge {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.atp-mp-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.atp-mp-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}
.atp-mp-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.atp-mp-info span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate);
}
.atp-mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.atp-mp-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--graphite);
  background: var(--whisper);
  border: 1px solid var(--mist);
  padding: 4px 10px;
  border-radius: 6px;
}
.atp-mp-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.atp-mp-cta:hover {
  background: #1a1d3a;
  transform: translateY(-1px);
}

/* ============================================================
   CTAs de demo añadidos en asesorias.html
   ============================================================ */

/* Botón ghost para hero (al lado del primary) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid var(--mist);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: white;
  transform: translateY(-1px);
}
.btn-ghost svg {
  color: var(--graphite);
}

/* CTA de demo dentro del card chaos (navy bg) */
.chaos-cta {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.chaos-cta .btn-lime {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.chaos-cta .btn-lime:hover {
  background: #b8de60;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(195, 231, 107, 0.35);
}
.chaos-cta-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
}

/* Sub-link demo en el morph final */
.cta-morph-sublink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.cta-morph-sublink:hover {
  border-color: var(--lime);
  background: rgba(195, 231, 107, 0.08);
  color: white;
}
.cta-morph-sublink span {
  font-weight: 700;
  color: var(--lime);
  margin-left: 4px;
}

/* Layout: que el hero CTA en mobile no se desborde */
@media (max-width: 600px) {
  .ases-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .ases-hero-cta .btn,
  .ases-hero-cta .btn-ghost {
    justify-content: center;
  }
}

/* ============================================================
   Custom skin para Calendly popup overlay
   Mejora visual: overlay navy + borde lime + cierre branded
   ============================================================ */

/* Overlay (fondo translúcido) — navy en lugar de negro plano */
.calendly-overlay,
.calendly-popup-close {
  /* Asegurar que el overlay del Calendly use nuestro navy */
}
.calendly-overlay {
  background: rgba(15, 17, 42, 0.78) !important;
  backdrop-filter: blur(8px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
}

/* Card del popup — borde y sombra branded */
.calendly-popup {
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow:
    0 0 0 1px rgba(195, 231, 107, 0.25),
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(195, 231, 107, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Botón de cierre del popup — fondo lime con X navy creada con pseudo-elementos */
.calendly-popup-close {
  background: var(--lime) !important;
  background-image: none !important;
  color: var(--ink) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  top: 20px !important;
  right: 20px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.18s var(--ease) !important;
  opacity: 1 !important;
  z-index: 10 !important;
  font-size: 0 !important;
  /* La X la creamos con un SVG inline como background */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f112a' stroke-width='3' stroke-linecap='round'><line x1='6' y1='6' x2='18' y2='18'/><line x1='18' y1='6' x2='6' y2='18'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
}
.calendly-popup-close:hover {
  background-color: white !important;
  transform: scale(1.08) !important;
}

/* Ocultar el SVG/icon original que Calendly mete dentro del botón si lo hay */
.calendly-popup-close img,
.calendly-popup-close svg {
  display: none !important;
}

/* En mobile, ajustar el overlay y el padding */
@media (max-width: 600px) {
  .calendly-popup {
    border-radius: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  .calendly-popup-close {
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
  }
}
