/* ============================================================
   Pedir demo — página de dos caminos (agente / Calendly)
   Mood glass + degradado (ref. del cliente) en identidad Clarity:
   fondo azul-noche, acento #3b82f6, Spectral/Inter/Hanken.
   ============================================================ */

.demo-choice {
  position: relative;
  /* padding-top alto para que el titular respire bajo el navbar fijo (igual que .page-hero) */
  padding: 160px 0 clamp(72px, 12vh, 140px);
  overflow: hidden;
}

/* Resplandor superior, como en la referencia */
.demo-choice::before {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(900px, 120vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    var(--accent-glow-strong) 0%,
    var(--accent-glow) 38%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.demo-choice .container {
  position: relative;
  z-index: 1;
}

/* ---- Encabezado ---- */
.demo-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vh, 64px);
  text-align: center;
}

.demo-head .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}

.demo-head h1 {
  font-family: var(--f-serif, 'Spectral', serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 18px;
}

.demo-head h1 .accent {
  color: var(--accent-light);
}

.demo-head p {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Rejilla de tarjetas ---- */
.demo-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .demo-choice { padding-top: 116px; }
  .demo-cards { grid-template-columns: 1fr; }
}

/* ---- Tarjeta glass ---- */
.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 38px);
  border-radius: 20px;
  border: 1px solid var(--border-accent);
  background:
    linear-gradient(160deg, rgba(59, 130, 246, 0.12) 0%, rgba(18, 26, 36, 0.0) 46%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -28px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* Brillo interior que vive en el borde superior (glass) */
.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.55), rgba(96, 165, 250, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

/* Resplandor difuso de fondo dentro de la tarjeta */
.demo-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 68%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 40px 70px -26px rgba(0, 0, 0, 0.78);
}

/* Icono superior */
.demo-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.06));
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
}

.demo-card-icon svg { width: 26px; height: 26px; }

.demo-card .card-eyebrow {
  font-family: var(--f-mono, 'Hanken Grotesk', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.demo-card h2,
.demo-card h3 {
  font-family: var(--f-serif, 'Spectral', serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.18;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.demo-card p {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text-muted);
  margin: 0 0 26px;
}

/* Mock de "escribe aquí" — solo mood, sin función (camino agente) */
.demo-card-mock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.demo-card-mock .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-light);
  flex: none;
}

.demo-card-mock svg { width: 18px; height: 18px; margin-left: auto; color: var(--accent-light); flex: none; }

/* El CTA se ancla abajo para que ambas tarjetas alineen */
.demo-card .card-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* Pie de apoyo bajo las tarjetas */
.demo-foot {
  max-width: 680px;
  margin: clamp(34px, 5vh, 52px) auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.demo-foot a { color: var(--accent-light); text-decoration: none; }
.demo-foot a:hover { text-decoration: underline; }
