/* Hero: a video call that Performy is analysing. 1 video call, 2 detected signals (always 4-5 visible, aligned in 3 columns below the call).
   Driven by assets/js/hero-call.js. Prefix: hc- */
.hc { position: relative; width: 100%; border-radius: 22px; background: var(--color-p-bg-secondary); box-shadow: 0 50px 130px -30px rgba(0,0,0,0.85), 0 0 0 1px var(--color-p-card) inset; }
.hc-head { display: flex; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--color-p-border-line); border-radius: 22px 22px 0 0; }
.hc-rec { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #F87171; }
.hc-stage { padding: 16px 22px 18px; }
/* tag at the top right: "CRM actualizado" / "CRM updated" (shown ~8 s per conversation cycle by hero-call.js) */
.hc-crm { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--color-p-text);
    background: color-mix(in srgb, #34D399 14%, var(--color-p-bg-secondary)); border: 1px solid color-mix(in srgb, #34D399 55%, transparent);
    opacity: 0; transform: translateY(-4px) scale(.94); transition: opacity .35s ease, transform .4s cubic-bezier(0.22, 1, 0.36, 1); }
.hc-crm svg { color: #059669; flex-shrink: 0; }
.hc-crm.in { opacity: 1; transform: none; }

/* the call: two separate windows with air between them */
.hc-call { width: 100%; padding: 14px; border-radius: 18px; background: var(--color-p-card); border: 1px solid var(--color-p-border-line); }
.hc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hc-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: var(--color-p-bg-secondary); }
.hc-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transform-origin: 50% 24%; background: var(--color-p-bg-secondary); }
.hc-tile::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .3s ease; }
.hc-tile--a.speaking::before { box-shadow: inset 0 0 0 3px rgba(248,113,113,0.9); }
.hc-tile--b.speaking::before { box-shadow: inset 0 0 0 3px rgba(20,184,166,0.95); }
.hc-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent); pointer-events: none; }
.hc-name { position: absolute; left: 12px; bottom: 11px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.hc-mic { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; opacity: 0; transition: opacity .25s ease; }
.hc-mic i { width: 3px; height: 4px; border-radius: 2px; background: #fff; }
.hc-tile.speaking .hc-mic { opacity: 1; }
.hc-tile.speaking .hc-mic i { animation: dm-wave .9s ease-in-out infinite; }
.hc-tile.speaking .hc-mic i:nth-child(2) { animation-delay: .15s; } .hc-tile.speaking .hc-mic i:nth-child(3) { animation-delay: .3s; }
.hc-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-p-muted); }
.hc-timer { font-family: var(--font-geist, inherit); font-size: 15px; letter-spacing: 0; color: var(--color-p-text); font-variant-numeric: tabular-nums; }

/* signals: 3 aligned columns under the call (2 rows = 6 positions, 4-5 of them filled at any time) */
.hc-sigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin-top: 16px; }
.hc-slot { display: flex; align-items: center; justify-content: flex-start; min-width: 0; min-height: 30px; }
.hc-sig { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--color-p-text);
    background: color-mix(in srgb, var(--c) 14%, var(--color-p-bg-secondary)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
    opacity: 0; transform: translateY(6px) scale(.94); transition: opacity .35s ease, transform .4s cubic-bezier(0.22, 1, 0.36, 1); }
.hc-sig span { overflow: hidden; text-overflow: ellipsis; }
.hc-sig i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent); }
.hc-sig.in { opacity: 1; transform: none; }
.hc-sig.out { opacity: 0; transform: translateY(-6px) scale(.96); }
/* colour code: one colour = one meaning (works on dark and light) */
.hc-sig--danger, .lg-danger { --c: #F87171; }      /* riesgo */
.hc-sig--warning, .lg-warning { --c: #FBBF24; }    /* atencion */
.hc-sig--success, .lg-success { --c: #34D399; }    /* positivo */
.hc-sig--info, .lg-info { --c: #60A5FA; }          /* contexto */

@media (max-width: 767px) {
    .hc-head { padding: 11px 14px; } .hc-stage { padding: 12px 12px 14px; }
    .hc-crm { font-size: 10px; padding: 3px 8px; gap: 5px; }
    .hc-call { padding: 10px; border-radius: 16px; } .hc-tiles { gap: 12px; } .hc-tile { border-radius: 12px; }
    .hc-sigs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 12px; }
    .hc-slot { min-height: 28px; }
    .hc-sig { font-size: 10px; padding: 4px 9px; gap: 5px; white-space: normal; border-radius: 14px; }
    .hc-sig span { overflow: visible; text-overflow: clip; }
    .hc-name { font-size: 11px; left: 9px; bottom: 8px; }
    }
@media (prefers-reduced-motion: reduce) { .hc-tile.speaking .hc-mic i { animation: none; } .hc-sig { transition: none; } .hc-crm { opacity: 1; transform: none; transition: none; } }

/* self-contained: these were defined inline on the Home only */
.dm-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; display: inline-block; animation: dm-rec-pulse 1.4s ease-in-out infinite; }
@keyframes dm-rec-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dm-wave { 0%,100% { height: 4px; } 50% { height: 16px; } }

/* Solutions heroes: the role-flow chips sit left-aligned in the text column */
.role-flow-diagram--left { justify-content: flex-start; }
