/* ============================================================
   Producto en acción — demo bespoke por segmento (prefijo pd-)
   Consola de conocimiento: selector de escenarios + panel de respuesta.
   Pensado para reusarse en operacion / riesgo / cliente.
   ============================================================ */

.pd-section { position: relative; }
.pd-section .section-lead { max-width: 680px; }

.pd-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: start;
  margin-top: 40px;
}

/* ---- Columna izquierda: escenarios seleccionables ---- */
.pd-scenarios { display: flex; flex-direction: column; gap: 12px; }

.pd-scn {
  position: relative;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 13px;
  padding: 16px 18px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.97rem;
  line-height: 1.42;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pd-scn:hover { border-color: var(--border-accent); color: var(--text-primary); transform: translateX(2px); }
.pd-scn.is-active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text-primary);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}
.pd-scn-mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600;
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.08);
  margin-top: 1px;
}
.pd-scn.is-active .pd-scn-mark { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- Columna derecha: la consola ---- */
.pd-console {
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 16px;
  background: rgba(8, 12, 19, 0.62);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.pd-console-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.14);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #93c5fd;
}
.pd-console-bar .pd-chip {
  color: #9aa6b8;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 10px;
}

.pd-console-body { position: relative; padding: 24px 24px 8px; min-height: 360px; }

.pd-panel { display: none; animation: pdFade 0.4s ease; }
.pd-panel.is-active { display: block; }
@keyframes pdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .pd-panel { animation: none; } }

/* pregunta + respuesta dentro de la consola */
.pd-row { display: flex; gap: 12px; align-items: flex-start; }
.pd-avatar {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
}
.pd-avatar--q { background: rgba(255, 255, 255, 0.06); color: #9aa6b8; }
.pd-avatar--a { background: var(--accent); color: #fff; }
.pd-q-text { color: #e7edf5; font-weight: 600; font-size: 1.02rem; line-height: 1.4; padding-top: 3px; }
.pd-a-text {
  color: #c7d2de; font-size: 1.02rem; line-height: 1.5; padding-top: 3px;
}
.pd-a-text b, .pd-hl { color: #fff; }
.pd-hl { color: #93c5fd; font-weight: 700; }
.pd-row + .pd-row { margin-top: 16px; }

/* tarjeta de fuente citada */
.pd-source {
  margin-top: 20px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.pd-source-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.12);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8392a4;
}
.pd-source-head .pd-cited {
  color: #93c5fd; border: 1px solid rgba(147, 197, 253, 0.3); border-radius: 999px; padding: 3px 9px;
}
.pd-source-body { padding: 6px 15px 12px; }

/* filas de datos (tabla simple) */
.pd-data-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 0.92rem; color: #aeb9c7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pd-data-row:last-child { border-bottom: none; }
.pd-data-row.is-key { color: #fff; font-weight: 600; }
.pd-data-row .pd-var-up { color: #f0a868; font-family: var(--f-mono); font-size: 0.85rem; }
.pd-data-row .pd-var-flat { color: #8392a4; font-family: var(--f-mono); font-size: 0.85rem; }

/* pasos numerados */
.pd-step { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; font-size: 0.92rem; color: #c7d2de; }
.pd-step-n {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  background: rgba(96, 165, 250, 0.14); color: #93c5fd;
}

/* dots */
.pd-dots { display: flex; gap: 8px; justify-content: center; padding: 14px 0 18px; }
.pd-dot {
  width: 7px; height: 7px; border-radius: 999px; border: none; padding: 0; cursor: pointer;
  background: rgba(147, 197, 253, 0.28); transition: background 0.2s ease, width 0.2s ease;
}
.pd-dot.is-active { background: var(--accent); width: 22px; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .pd-grid { grid-template-columns: 1fr; gap: 22px; }
  .pd-console-body { min-height: 0; }
}

/* ============================================================
   "Qué incluye" — 2 columnas, bullets grandes + ecuación de valor
   (fondo claro; usa tokens on-light). Reusable en riesgo/cliente.
   ============================================================ */
.incluye-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start; }
.incluye-lead .section-headline { margin-bottom: 16px; }
.incluye-sublead { color: var(--text-on-light-muted); font-size: 1.02rem; line-height: 1.55; max-width: 30em; }

.incluye-list { list-style: none; margin: 0; padding: 0; }
.incluye-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--border-on-light); }
.incluye-item:first-child { padding-top: 2px; border-top: none; }
.incluye-check {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(29, 78, 216, 0.10); color: var(--accent-on-light); border: 1px solid rgba(29, 78, 216, 0.22);
  font-size: 15px; font-weight: 700; margin-top: 2px;
}
.incluye-text { font-size: 1.2rem; line-height: 1.46; color: var(--text-on-light); font-weight: 500; }
.incluye-text b { font-weight: 700; }

/* ecuación de valor */
.valor-eq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.valor-tile { border: 1px solid var(--border-on-light); border-radius: 14px; padding: 22px 22px 24px; background: var(--card-on-light); }
.valor-tile--roi { border-color: rgba(29, 78, 216, 0.28); background: rgba(29, 78, 216, 0.05); }
.valor-label { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-on-light); }
.valor-val { display: block; font-family: var(--f-serif); font-size: 1.45rem; font-weight: 700; color: var(--text-on-light); margin-top: 11px; line-height: 1.18; }
.valor-note { display: block; font-size: 0.9rem; color: var(--text-on-light-muted); margin-top: 11px; line-height: 1.5; }

@media (max-width: 880px) {
  .incluye-grid { grid-template-columns: 1fr; gap: 30px; }
  .valor-eq { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   Franja de prueba slim (un solo stat, fondo oscuro)
   ============================================================ */
.section-proof { padding: 52px 0; background: #0a0a0f; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-band { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.proof-num { flex: 0 0 auto; font-family: var(--f-serif); font-size: clamp(3.2rem, 6.5vw, 4.8rem); font-weight: 700; color: var(--accent-light); line-height: 0.92; letter-spacing: -0.02em; }
.proof-copy { flex: 1; min-width: 280px; }
.proof-label { display: block; font-size: 1.05rem; color: var(--text-primary); line-height: 1.5; }
.proof-note { display: block; margin-top: 9px; font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   CTA "demo" en fondo claro (estilo Arkham, con halo de marca)
   ============================================================ */
.cta-demo { position: relative; overflow: hidden; text-align: center; }
.cta-demo::before {
  content: ""; position: absolute; top: -32%; left: 50%; transform: translateX(-50%);
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.08) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.cta-demo .container { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.cta-demo .eyebrow { text-align: center; }
.cta-demo .section-headline { text-align: center; margin: 12px auto 0; max-width: 20ch; }
.cta-demo .cta-lead { color: var(--text-on-light-muted); max-width: 620px; margin: 18px auto 0; text-align: center; font-size: 1.1rem; line-height: 1.6; }
.cta-demo .cta-buttons { margin-top: 30px; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cta-demo .btn-text { color: var(--accent-on-light); }

/* logo en la franja de prueba (riesgo usa la alianza 27 Risk Lab) */
.proof-logo { flex: 0 0 auto; height: 54px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
@media (max-width: 600px) { .proof-band { gap: 22px; } .proof-logo { height: 44px; } }

/* ============================================================
   Hero de Contacto: "Lo más rápido" como hero, con glow de marca
   ============================================================ */
.contacto-hero { position: relative; overflow: hidden; }
.contacto-hero::before {
  content: ""; position: absolute; top: -28%; left: 50%; transform: translateX(-50%);
  width: 920px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(96,165,250,0.06) 38%, transparent 64%);
  pointer-events: none; z-index: 0;
}
.contacto-hero .container { position: relative; z-index: 1; }
.contacto-hero .hero-buttons { margin-top: 28px; }

/* ============================================================
   Acceso — login con "enlace mágico" (UI premium)
   ============================================================ */
.acceso-wrap { min-height: 100vh; display: grid; place-items: center; padding: 110px 24px 60px; position: relative; z-index: 1; }
.acceso-card {
  width: 100%; max-width: 446px;
  border: 1px solid rgba(147,197,253,0.18); border-radius: 20px;
  background: rgba(10,14,20,0.74);
  backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 40px 38px; text-align: center;
}
.acceso-key {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(96,165,250,0.32); color: #93c5fd;
}
.acceso-card .eyebrow { color: var(--accent-light); }
.acceso-title { font-family: var(--f-serif); font-weight: 700; font-size: 1.7rem; color: #fff; margin: 8px 0 10px; line-height: 1.16; }
.acceso-lede { color: var(--text-muted); font-size: 0.98rem; line-height: 1.55; margin-bottom: 26px; }
.acceso-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.acceso-label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8392a4; }
.acceso-input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(147,197,253,0.22);
  background: rgba(255,255,255,0.04); color: #fff; font-size: 1rem; font-family: var(--font);
}
.acceso-input::placeholder { color: #6b7689; }
.acceso-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.18); }
.acceso-btn {
  width: 100%; padding: 14px; border-radius: 12px; border: none; background: var(--accent);
  color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .2s, transform .1s; margin-top: 4px;
}
.acceso-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.acceso-note { margin-top: 22px; font-size: 0.84rem; color: #6b7689; line-height: 1.5; }
.acceso-note a { color: #93c5fd; }
/* estado enviado */
.acceso-success { display: none; }
.acceso-card.sent .acceso-form, .acceso-card.sent .acceso-lede, .acceso-card.sent .acceso-note { display: none; }
.acceso-card.sent .acceso-success { display: block; animation: hcaFade .5s ease; }
.acceso-success-ic {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(111,207,151,0.16); border: 1px solid rgba(111,207,151,0.5); color: #6fcf97; font-size: 26px;
}
.acceso-success p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; margin-top: 8px; }
.acceso-success b { color: #fff; }
