/* Demos animadas de la plataforma («Cómo funciona»).
   Cada demo es una página pequeña que se inserta con un iframe en un hueco 16:10.
   Colores, tipografía e iconos medidos en app.salesbyoftex.com; 1em = 16px de la app.
   Empresas, personas y cifras son inventadas. */

:root {
  --sa-bg: #f8f9fa;
  --sa-white: #ffffff;
  --sa-ink: #344767;
  --sa-muted: #67748e;
  --sa-line: #e3e8f0;
  --sa-field: #f1f4f9;
  --sa-primary: #0076a3;
  --sa-primary-soft: rgba(0, 118, 163, 0.09);
  --sa-ok: #4CAF50;
  --sa-gold: #c98500;
  --sa-bad: #d9534f;
  --sa-shadow: 0 0 32px rgba(136, 152, 170, 0.15);
  --g-primary: linear-gradient(310deg, #0076a3, #0094c6);
  --g-success: linear-gradient(310deg, #4caf50, #66bb6a);
  --g-warning: linear-gradient(310deg, #f4a300, #ffbe3d);
  --g-dark: linear-gradient(310deg, #002633, #014259);
  --g-bar: linear-gradient(90deg, #0076a3, #22907e);
  --g-bar-ok: linear-gradient(90deg, #4caf50, #66bb6a);
  --bk-accent: #0076a3;
  --bk-ink-a: #0b5c7d;
  --bk-tint: #e6f2f8;
  --bk-tint-2: #cfe6f1;
  --bk-line: #e4e8ef;
  --bk-muted: #6b7a90;
  --bk-ink: #1f2d3d;
  --fv: #4f6bed;
  --font-app: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Ancho visible de cada demo, en em de la app. En ventanas grandes la letra
     no pasa de 15px (tamaño real de la app) y cabe más pantalla */
  --W: 24;
}

[data-demo="encaje"],
[data-demo="llamada"] { --W: 26; }
[data-demo="interes"] { --W: 25; }

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  background: var(--sa-bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2, h3, h6, ul { margin: 0; }

/* ---------- Ventana y cámara ---------- */
.shot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: size;
}

.cam {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: grid;
  gap: 0.75em;
  padding: 0.8em;
  font-family: var(--font-app);
  font-size: min(calc(100cqw / var(--W)), 15px);
  line-height: 1.5;
  color: var(--sa-ink);
  transform-origin: 0 0;
  transition: transform 1.3s cubic-bezier(.45, .05, .25, 1), opacity 0.5s ease;
  will-change: transform;
}

.shot.is-fading .cam { opacity: 0; }

.ico { width: 1em; height: 1em; fill: currentColor; display: block; flex: none; }

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.1em;
  z-index: 3;
  pointer-events: none;
  transition: transform 0.85s cubic-bezier(.45, .05, .2, 1);
}

.cursor svg { display: block; width: 100%; height: auto; transform-origin: 15% 10%; transition: transform 0.15s ease; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.cursor.is-click svg { transform: scale(0.8); }
.cursor::before { content: ""; position: absolute; left: -0.7em; top: -0.7em; width: 1.4em; height: 1.4em; border-radius: 50%; border: 2px solid var(--sa-primary); opacity: 0; transform: scale(0.3); }
.cursor.is-click::before { animation: ripple 0.6s ease-out; }
@keyframes ripple { 0% { opacity: 1; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.6); } }

.pause {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--sa-line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--sa-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.pause:focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 2px; }
.pause svg { width: 10px; height: 10px; fill: currentColor; }
.pause .ico-play { display: none; }
.shot.is-paused .pause .ico-play { display: block; }
.shot.is-paused .pause .ico-pause { display: none; }

/* Con ratón solo se ve al pasar por encima, con el foco del teclado o en pausa, para poder
   reanudar. Sin ratón (móvil) sigue siempre a la vista */
@media (hover: hover) {
  .pause { opacity: 0; transition: opacity 0.15s ease; }
  .shot:hover .pause,
  .shot.is-paused .pause,
  .pause:focus-visible { opacity: 1; }
}

/* En pausa (o fuera de pantalla) también se paran las animaciones CSS */
.shot.is-paused *, .shot.is-off * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .cursor, .pause { display: none; }
  .caret { animation: none; }
}

/* ---------- Piezas comunes ---------- */
.panel {
  background: var(--sa-white);
  border: 1px solid var(--sa-line);
  border-radius: 1em;
  box-shadow: var(--sa-shadow);
  padding: 0.85em 1em;
  display: grid;
  gap: 0.55em;
}

.p-h { font-size: 0.9em; font-weight: 700; }
.muted { color: var(--sa-muted); }
.is-hov { transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }

@keyframes pop { from { transform: scale(0.4); } }

.badge { display: inline-block; font-size: 0.75em; font-weight: 700; color: #fff; text-transform: uppercase; border-radius: 0.6em; line-height: 1; padding: 0.67em 0.9em; white-space: nowrap; }
.badge.is-pop { animation: pop 0.45s cubic-bezier(.2, .9, .3, 1.4); }
.b-contact { background: var(--g-primary); }
.b-interest { background: var(--g-success); }
.b-nocontacts { background: var(--g-warning); }
.b-quote { background: linear-gradient(310deg, #0d7a71, #11a79b); }

.channels { display: inline-flex; gap: 0.5em; color: var(--sa-muted); align-items: center; transition: opacity 0.35s ease; }
.channels .ico { width: 0.8em; height: 0.8em; transition: color 0.25s ease, transform 0.25s ease; }
.channels .ico.is-live { color: var(--sa-primary); transform: scale(1.3); }
.channels.is-hidden { display: none; }
.dash { font-size: 0.85em; color: var(--sa-muted); }
.dash.is-hidden { display: none; }

/* Tarjeta de empresa (resultados y listado) */
.sr-card {
  position: relative;
  background: var(--sa-field);
  border: 1px solid var(--sa-line);
  border-radius: 1em;
  padding: 0.8em;
  display: grid;
  gap: 0.5em;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.sr-card.is-hidden { opacity: 0; transform: translateY(1em); }
.sr-card.is-hov { box-shadow: 0 0.6em 1.4em -0.6em rgba(52, 71, 103, 0.35); border-color: var(--sa-primary); }
.sr-head { display: grid; grid-template-columns: 2.56em minmax(0, 1fr) 2.75em; gap: 0.6em; align-items: center; }
.sr-head--plain { grid-template-columns: minmax(0, 1fr) 1em; align-items: start; }
.sr-logo { width: 2.56em; height: 2.56em; border-radius: 0.7em; display: grid; place-items: center; color: #fff; font-weight: 800; }
.sr-logo--mark { background: var(--sa-white); border: 1px solid var(--sa-line); }
.sr-logo--bf { background: linear-gradient(135deg, hsl(210 62% 46%), hsl(250 62% 36%)); }
.sr-logo--mh { background: linear-gradient(135deg, hsl(20 62% 50%), hsl(350 62% 40%)); }
.sr-logo svg { width: 72%; height: 72%; display: block; }
.sr-name { font-size: 0.95em; font-weight: 700; line-height: 1.3; }
.sr-dom { font-size: 0.72em; color: var(--sa-muted); line-height: 1.45; }
.cc-country { font-size: 0.78em; color: var(--sa-muted); line-height: 1.45; overflow-wrap: anywhere; }
.cc-country b { font-weight: 700; color: var(--sa-primary); }
.sr-fit { position: relative; width: 2.75em; height: 2.75em; display: grid; place-items: center; }
.sr-fit svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sr-fit .ring { transition: stroke-dashoffset 1.1s cubic-bezier(.3, .7, .2, 1) 0.25s; }
.sr-card.is-hidden .ring { stroke-dashoffset: 119.4 !important; transition: none; }
.sr-fit b { font-size: 0.72em; font-weight: 700; }
.sr-card p { font-size: 0.8em; color: var(--sa-muted); line-height: 1.55; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 0.35em; }
.sr-fraud { font-size: 0.68em; font-weight: 600; color: var(--sa-ok); background: rgba(76, 175, 80, 0.16); border-radius: 0.5em; padding: 0.15em 0.75em; }
.sr-tag { font-size: 0.7em; font-weight: 600; color: var(--sa-gold); border: 1px solid rgba(201, 133, 0, 0.5); border-radius: 999px; padding: 0.15em 0.8em; }
/* Si el motivo no cabe en una línea, la etiqueta pasa de píldora a caja redondeada */
.sr-out { font-size: 0.68em; font-weight: 600; line-height: 1.4; color: var(--sa-bad); border: 1px solid rgba(217, 83, 79, 0.45); border-radius: 0.8em; padding: 0.2em 0.75em; justify-self: start; align-self: start; text-wrap: balance; }
/* Tarjetas de la misma fila con alturas distintas: lo que sobra queda abajo, no se estira el contenido */
.res-cards .sr-card { align-content: start; }
.sr-card.is-out .sr-name { text-decoration: line-through; color: var(--sa-muted); }
.sr-card.is-out .sr-logo, .sr-card.is-out .sr-dom, .sr-card.is-out p { opacity: 0.6; }
.sr-kind { font-size: 0.68em; color: var(--sa-muted); }
.sr-select { font-size: 0.72em; font-weight: 700; color: var(--sa-primary); background: var(--sa-white); border: 1px solid var(--sa-primary); border-radius: 999px; padding: 0.5em 1em; white-space: nowrap; }
.sr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5em; }
.cc-state { display: flex; align-items: center; gap: 0.6em; }
.cc-when { display: flex; gap: 1em; font-size: 0.72em; color: var(--sa-muted); }
.cc-when span { display: inline-flex; align-items: center; gap: 0.4em; }
.cc-when .ico { width: 0.9em; height: 0.9em; }
.pr-faces { display: flex; align-items: center; min-height: 2em; }
.pr-avatar { width: 2em; height: 2em; border-radius: 50%; border: 2px solid var(--sa-white); overflow: hidden; flex: none; }
.pr-avatar svg { width: 100%; height: 100%; display: block; }
.pr-avatar + .pr-avatar { margin-left: -0.6em; }
.pr-faces small { font-size: 0.72em; color: var(--sa-muted); margin-left: 0.5em; }

.tip {
  position: absolute;
  right: -0.2em;
  bottom: calc(100% + 0.6em);
  z-index: 2;
  background: #000;
  color: #fff;
  font-size: 0.68em;
  line-height: 1.35;
  padding: 0.4em 0.7em;
  border-radius: 0.4em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.tip::after { content: ""; position: absolute; top: 100%; right: 1.2em; border: 0.4em solid transparent; border-top-color: #000; }
.sr-fit.is-tip .tip { opacity: 0.92; transform: none; }

/* ---------- Formulario «Buscar nuevos clientes» ---------- */
.f-label { font-size: 0.85em; font-weight: 700; }
.f-help { font-size: 0.75em; color: var(--sa-muted); }
.rq-q { display: flex; align-items: center; gap: 0.55em; font-size: 0.95em; font-weight: 700; }
.rq-q i { color: #ea0606; font-style: normal; }
.rq-num { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--sa-primary-soft); color: var(--sa-primary); font-size: 0.8em; font-weight: 800; display: grid; place-items: center; flex: none; }
.rq-card {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  align-items: center;
  gap: 0.6em;
  background: var(--sa-field);
  border: 1px solid var(--sa-line);
  border-radius: 0.8em;
  padding: 0.55em 1em 0.55em 0.6em;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rq-ico { width: 2em; height: 2em; border-radius: 0.6em; background: var(--sa-primary-soft); color: var(--sa-primary); display: grid; place-items: center; transition: background-color 0.25s ease, color 0.25s ease; }
.rq-ico .ico { width: 0.95em; height: 0.95em; }
.rq-card strong { display: block; font-size: 0.9em; font-weight: 700; line-height: 1.25; }
.rq-card small { display: block; font-size: 0.76em; font-weight: 700; color: var(--sa-muted); line-height: 1.3; }
.rq-card.is-on { background: var(--sa-primary-soft); border-color: var(--sa-primary); box-shadow: 0 0 0 3px var(--sa-primary-soft); }
.rq-card.is-on .rq-ico { background: var(--sa-primary); color: #fff; }
.rq-reveal { margin-top: 0.3em; padding-top: 0.8em; border-top: 1px dashed var(--sa-line); display: grid; gap: 0.45em; }
.rq-reveal.is-open { animation: rq-reveal 0.35s ease-out; }
.rq-reveal.is-hidden { display: none; }
@keyframes rq-reveal { from { opacity: 0; transform: translateY(-0.4em); } }
.rq-field {
  background: var(--sa-field);
  border: 1px solid var(--sa-line);
  border-radius: 0.7em;
  padding: 0.6em 0.85em;
  font-size: 0.9em;
  line-height: 1.6;
  min-height: 2.75em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rq-field.is-focus { border-color: var(--sa-primary); box-shadow: 0 0 0 3px var(--sa-primary-soft); }
.rq-field .ph { color: var(--sa-muted); }
.caret { display: inline-block; width: 1px; height: 1.1em; background: var(--sa-ink); vertical-align: -0.2em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.rq-field:not(.is-focus) .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.rq-q { flex-wrap: wrap; }
.rq-express { margin-left: auto; font-size: 0.72em; font-weight: 700; color: var(--sa-primary); border: 1px dashed var(--sa-primary); border-radius: 999px; padding: 0.3em 0.9em; background: var(--sa-primary-soft); display: inline-flex; gap: 0.4em; align-items: center; white-space: nowrap; }
.rq-express .ico { width: 0.9em; height: 0.9em; }
.rq-opts { display: flex; flex-wrap: wrap; gap: 0.6em; }
.rq-opts .rq-card { flex: 1 1 13em; }
.rq-grid { display: grid; gap: 0.8em 1.4em; }
.rq-label { display: block; font-size: 0.85em; font-weight: 700; margin-bottom: 0.35em; }
.rq-help { display: block; font-size: 0.72em; color: var(--sa-muted); margin-top: 0.3em; }
.rq-select { position: relative; padding-right: 2em; }
.rq-select::after { content: ""; position: absolute; right: 0.9em; top: 50%; border: 0.3em solid transparent; border-top-color: #888; margin-top: -0.1em; }
.countries { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em; }
.chip { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.85em; background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: 0.5em; padding: 0 0.5em; line-height: 1.7; animation: pop 0.3s cubic-bezier(.2, .9, .3, 1.3); }
.chip b { font-size: 0.72em; color: var(--sa-muted); }
.btn-dark { justify-self: start; display: inline-flex; align-items: center; gap: 0.5em; background: var(--g-dark); color: #fff; font-size: 0.875em; font-weight: 700; text-transform: uppercase; border-radius: 0.5em; padding: 0.7em 1.4em; transition: transform 0.15s ease; }
.btn-dark.is-pressed { transform: scale(0.94); }
.spin { width: 0.9em; height: 0.9em; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.btn-dark.is-busy .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Resultados: «Del mercado a tu lista» ---------- */
.fr { display: grid; grid-template-columns: 9.4em minmax(0, 1fr) 2.6em; align-items: center; gap: 0.6em; font-size: 0.75em; }
.bar { height: 1.35em; border-radius: 0.7em; background: var(--sa-field); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 0.7em; background: var(--g-bar); transition: width 0.9s cubic-bezier(.3, .7, .2, 1); }
.fr.is-ok .bar i { background: var(--g-bar-ok); }
.fr.is-empty .bar i { width: 0; }
.fr b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fr.is-ok b { color: var(--sa-ok); }
.w100 { --w: 100%; }
.w48 { --w: 48%; }
.w8 { --w: 8%; }
.w4 { --w: 4%; }

/* ---------- Bloque «Búsqueda» de la ficha ---------- */
.info-title { font-size: 0.7em; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sa-primary); padding-bottom: 0.35em; border-bottom: 1px solid var(--sa-line); }
.info-title--gap { margin-top: 0.4em; }
.d-score { display: flex; align-items: center; gap: 0.75em; }
.d-score .sr-fit { width: 3.2em; height: 3.2em; }
.d-score .sr-fit b { font-size: 0.85em; }
.d-score .ring { transition: stroke-dashoffset 1.2s cubic-bezier(.3, .7, .2, 1); }
.d-score.is-empty .ring { stroke-dashoffset: 119.4 !important; transition: none; }
.d-note { white-space: pre-line; line-height: 1.45; font-size: 0.75em; color: var(--sa-muted); min-height: 4.4em; }
.sr-tr { margin-left: auto; align-self: flex-start; font-size: 0.72em; font-weight: 600; color: var(--sa-primary); background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: 999px; padding: 0.35em 0.8em; white-space: nowrap; transition: border-color 0.2s ease, transform 0.15s ease; }
.sr-tr.is-pressed { border-color: var(--sa-primary); transform: scale(0.95); }
.h6 { font-size: 0.85em; font-weight: 800; color: var(--sa-primary); margin: 0 0 0.35em; }
.sr-intent { border: 1px solid rgba(201, 133, 0, 0.55); border-left: 4px solid var(--sa-gold); border-radius: 0.75em; padding: 0.75em 0.85em; background: linear-gradient(135deg, #f4e6cc, #fcf8f0); box-shadow: 0 6px 20px rgba(201, 133, 0, 0.18); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1); }
.sr-intent.is-hidden { opacity: 0; transform: translateY(0.6em); }
.sr-intent .h6 { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; color: #a4751a; font-size: 0.95em; margin-bottom: 0.4em; }
.sr-intent .ic { color: var(--sa-gold); }
.sr-w { flex: none; padding: 0.1em 0.55em; border-radius: 999px; font-weight: 800; font-size: 0.85em; background: var(--sa-gold); color: #fff; line-height: 1.5; }
.sig-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4em; font-size: 0.85em; }
.sig-list li { line-height: 1.35; }
.sig-list a { color: var(--sa-primary); text-decoration: none; border-bottom: 1px dotted currentColor; transition: color 0.2s ease, opacity 0.25s ease; }
.sig-list a.is-hover { color: #00506f; border-bottom-style: solid; }
.sig-list small { display: block; color: var(--sa-muted); font-size: 0.85em; }
.facts { display: flex; flex-wrap: wrap; gap: 0.3em; }
.facts span { font-size: 0.78em; padding: 0.2em 0.6em; border-radius: 0.35em; background: var(--sa-field); color: var(--sa-muted); }
.fraud-box { border: 1px solid var(--sa-line); border-left: 4px solid var(--sa-ok); border-radius: 0.6em; padding: 0.5em 0.7em; font-size: 0.72em; line-height: 1.35; display: grid; gap: 0.25em; }
.fraud-box .h6 { font-size: 1.08em; display: flex; align-items: center; gap: 0.4em; flex-wrap: wrap; margin: 0; }
.fraud-box .sr-fraud { font-size: 0.85em; }
.crit { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 0.5em; padding: 0.55em 0; border-top: 1px solid var(--sa-line); font-size: 0.8em; transition: opacity 0.4s ease, transform 0.4s ease; }
.crit > div { font-weight: 700; }
.crit q { display: block; margin-top: 0.25em; color: var(--sa-muted); font-style: italic; font-weight: 400; quotes: "“" "”"; transition: opacity 0.25s ease; }
.crit .w { color: var(--sa-muted); font-variant-numeric: tabular-nums; }
.crit.is-no { opacity: 0.5; }
.crit.is-hidden { opacity: 0; transform: translateX(-0.6em); }
.is-fadeout { opacity: 0 !important; }
.crit-note { font-size: 0.7em; color: var(--sa-muted); margin-top: 0.2em; }
.acts { display: flex; flex-wrap: wrap; gap: 0.5em; }
.btn-o { font-size: 0.72em; font-weight: 700; text-transform: uppercase; border-radius: 0.5em; padding: 0.75em 1.4em; border: 1px solid; background: var(--sa-white); transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.btn-o.ok { color: var(--sa-ok); border-color: var(--sa-ok); }
.btn-o.pri { color: var(--sa-primary); border-color: var(--sa-primary); }
.btn-o.pri.is-hover { background: var(--sa-primary); color: #fff; }
.btn-o.is-pressed { transform: scale(0.95); }

/* ---------- Historial de contacto ---------- */
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; }
.tl-head h6 { font-size: 1em; font-weight: 600; }
.dot-status { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.85em; }
.dot-status::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: #002633; }
.dot-status--ok::before { background: var(--sa-ok); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 0.8em; top: 0.4em; bottom: 0; border-left: 2px dotted #dee2e6; }
.tl-b { position: relative; padding-bottom: 1em; transition: opacity 0.5s ease, max-height 0.6s ease, padding 0.6s ease; max-height: 16em; overflow: hidden; }
.tl-b.is-hidden { opacity: 0; max-height: 0; padding-bottom: 0; }
.tl-step { position: absolute; left: 0.2em; top: 0.1em; width: 1.25em; height: 1.25em; display: grid; place-items: center; background: var(--sa-white); }
.tl-step .ico { width: 0.95em; height: 0.95em; }
.tl-c { margin-left: 2.3em; }
.tl-c h6 { font-size: 0.875em; font-weight: 700; color: var(--sa-ink); }
.tl-date { font-size: 0.75em; font-weight: 700; margin-top: 0.15em; }
.tl-text { font-size: 0.85em; color: var(--sa-muted); margin-top: 0.5em; line-height: 1.55; }
.tl-text.big { font-size: 0.95em; }
.tl-small { font-size: 0.75em; font-weight: 600; margin-top: 0.3em; }
.tl-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.tl-c .dot-status { margin-top: 0.5em; font-size: 0.8em; }
.c-li, .c-mail, .c-note { color: #2a9fd6; }
.c-call { color: #e08a2c; }
.c-wa { color: #1fa855; }
.btn-call { font-size: 0.68em; font-weight: 700; text-transform: uppercase; color: var(--bk-ink-a); border: 1px solid var(--sa-primary); border-radius: 0.5em; padding: 0.5em 1em; background: var(--sa-white); white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.btn-call.is-pressed { background: var(--sa-primary); color: #fff; transform: scale(0.95); }
/* Detalle de la llamada (modal con la transcripción) */
.modal { position: absolute; inset: 0; z-index: 2; display: grid; align-items: start; padding: 0.8em; font-family: var(--font-app); font-size: min(calc(100cqw / var(--W)), 15px); line-height: 1.5; color: var(--sa-ink); background: rgba(0, 38, 51, 0.35); transition: opacity 0.35s ease; }
.modal.is-hidden { opacity: 0; pointer-events: none; }
.modal-box { background: var(--sa-white); border-radius: 0.75em; box-shadow: 0 1em 2.5em rgba(0, 0, 0, 0.25); padding: 0.8em; display: grid; gap: 0.6em; transition: transform 0.4s cubic-bezier(.2, .8, .2, 1); }
.modal.is-hidden .modal-box { transform: translateY(-1.5em); }
.modal-title { font-size: 0.85em; font-weight: 700; padding-bottom: 0.5em; border-bottom: 1px solid var(--sa-line); }
.ct-tr { font-size: 0.68em; font-weight: 600; color: var(--sa-primary); transition: opacity 0.2s ease; }
.ct-h { font-size: 0.72em; color: var(--sa-muted); }
.ct { display: grid; gap: 0.6em; padding: 0.5em; background: #f6f7f9; border-radius: 0.6em; }
.ct-row { display: flex; gap: 0.5em; align-items: flex-end; transition: opacity 0.35s ease, transform 0.35s ease; }
.ct-row.is-hidden { opacity: 0; transform: translateY(0.6em); }
.ct-right { flex-direction: row-reverse; }
.ct-avatar { width: 2em; height: 2em; flex: 0 0 2em; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); display: grid; place-items: center; }
.ct-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-fallback { font-size: 0.65em; font-weight: 700; color: #334155; }
.ct-bubble { flex: 1; padding: 0.5em 0.65em; border-radius: 0.85em; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03); }
.ct-agent { background: #fff; border-top-left-radius: 0.35em; }
.ct-user { background: #e9f2ff; border-top-right-radius: 0.35em; }
.ct-speaker { font-size: 0.65em; color: rgba(0, 0, 0, 0.55); font-weight: 600; margin-bottom: 0.2em; }
.ct-text { font-size: 0.78em; line-height: 1.45; }

/* ---------- Filtro del listado ---------- */
.ftb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45em; font-size: 0.8em; color: var(--sa-muted); }
.fgroup { display: inline-flex; align-items: center; gap: 0.45em; transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2, .9, .3, 1.3); }
.fgroup.is-hidden { opacity: 0; transform: scale(0.85); }
.fgroup .lbl { color: #8898aa; font-weight: 500; }
.fval { display: inline-flex; align-items: center; gap: 0.45em; background: var(--sa-field); border: 1px solid #e9ecef; border-radius: 999px; padding: 0.15em 0.7em; color: var(--sa-ink); }
.fval .ico { width: 0.75em; height: 0.75em; color: var(--sa-muted); }
.fbtn { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.9em; border-radius: 0.5em; border: 1px solid #e9ecef; background: #fff; color: var(--sa-ink); transition: background-color 0.2s ease; }
.fbtn .ico { width: 0.8em; height: 0.8em; color: #8898aa; }
.fbtn.is-pressed { background: #eef2f7; }
.flt-cards { display: grid; gap: 0.7em; transition: opacity 0.35s ease; }
.flt-cards.is-swap { opacity: 0; }

/* ---------- Página de reservas ---------- */
.bk { color: var(--bk-ink); gap: 0.8em; }
.bk-head { display: flex; justify-content: space-between; align-items: center; }
.bk-head h2 { font-size: 1em; font-weight: 700; }
.bk-steps { font-size: 0.75em; color: var(--bk-muted); }
.bk-steps b { color: var(--bk-ink); }
.bk-month { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6em; }
.bk-month h3 { font-size: 0.95em; font-weight: 600; }
.bk-nav { display: flex; gap: 0.375em; }
.bk-nav span { width: 2em; height: 2em; border-radius: 0.5em; border: 1px solid var(--bk-line); display: grid; place-items: center; color: var(--bk-muted); }
.bk-nav .ico { width: 0.6em; height: 0.6em; }
.bk-dow, .bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.bk-dow { text-align: center; font-size: 0.68em; font-weight: 600; letter-spacing: 0.04em; color: var(--bk-muted); margin-bottom: 0.6em; }
.bk-grid { gap: 0.3em; }
.bk-day { aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 50%; color: #b6bfcc; font-size: 0.85em; font-variant-numeric: tabular-nums; transition: background-color 0.25s ease, color 0.25s ease; }
.bk-day.is-blank { visibility: hidden; }
.bk-day.is-free { background: var(--bk-tint); color: var(--bk-ink-a); font-weight: 600; }
.bk-day.is-today::after { content: ""; position: absolute; bottom: 0.3em; width: 0.25em; height: 0.25em; border-radius: 50%; background: currentColor; }
.bk-day.is-selected { background: var(--bk-accent); color: #fff; }
.bk-tz { margin-top: 0.9em; display: flex; align-items: center; gap: 0.6em; color: var(--bk-muted); font-size: 0.8em; }
.bk-tz .ico { width: 0.9em; height: 0.9em; color: var(--sa-primary); }
.bk-tz b { color: var(--bk-ink); font-weight: 600; }
.bk-slots { transition: opacity 0.35s ease; }
.bk-slots.is-hidden { opacity: 0; }
.bk-slots h3 { font-size: 0.9em; font-weight: 600; margin-bottom: 0.6em; }
.bk-slots h3 small { display: block; font-size: 0.8em; font-weight: 400; color: var(--bk-muted); }
.bk-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5em; }
.bk-slot { border: 1px solid var(--bk-tint-2); background: #fff; color: var(--bk-ink-a); border-radius: 0.5em; padding: 0.55em 0.5em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9em; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.bk-slot.is-picked { background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; }
.bk-next { margin-top: 0.75em; border: 1px solid var(--bk-line); border-radius: 0.5em; padding: 0.6em; background: #f0f2f6; color: #b6bfcc; text-align: center; font-weight: 600; transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease; }
.bk-next.is-on { background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; }
.bk-next.is-pressed { transform: scale(0.96); }

.bk-step { transition: opacity 0.35s ease; }
.bk-step.is-hidden { display: none; }
.bk-step.is-open { animation: rq-reveal 0.4s ease-out; }
.bk-summary { display: flex; align-items: center; gap: 0.9em; background: var(--bk-tint); border-radius: 0.625em; padding: 0.75em 0.9em; font-size: 0.85em; }
.bk-summary .ico { width: 1.1em; height: 1.1em; color: var(--bk-accent); }
.bk-summary b { display: block; font-weight: 700; }
.bk-summary small { color: var(--bk-muted); }
.bk-summary a { margin-left: auto; color: var(--bk-accent); font-weight: 600; font-size: 0.9em; white-space: nowrap; }
.bk-fields { display: grid; gap: 0.8em; }
.bk-fields label { display: block; font-size: 0.75em; font-weight: 700; color: var(--sa-ink); margin: 0 0 0.3em 0.25em; }
.bk-fields label span { font-weight: 400; color: var(--sa-muted); }
.bk-input { border: 1px solid #d2d6da; border-radius: 0.5em; padding: 0.5em 0.75em; font-size: 0.875em; min-height: 2.5em; background: #fff; color: var(--sa-ink); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.bk-input.is-focus { border-color: var(--sa-primary); box-shadow: 0 0 0 2px var(--sa-primary-soft); }
.bk-input:not(.is-focus) .caret { display: none; }
.bk-area { min-height: 4.5em; }
.bk-area .ph { color: #adb5bd; }
.bk-confirm { background: var(--g-primary); color: #fff; text-align: center; font-size: 0.75em; font-weight: 700; text-transform: uppercase; border-radius: 0.5em; padding: 0.9em 1.5em; box-shadow: 0 4px 7px -1px rgba(0, 0, 0, 0.11), 0 2px 4px -1px rgba(0, 0, 0, 0.07); transition: transform 0.15s ease; }
.bk-confirm.is-pressed { transform: scale(0.97); }
.bk-legal { font-size: 0.72em; color: var(--bk-muted); }
.bk-done { text-align: center; justify-items: center; padding: 1.6em 1.4em; }
.bk-check { width: 3.5em; height: 3.5em; border-radius: 50%; display: grid; place-items: center; background: #e6f9f0; color: #2dce89; }
.bk-check .ico { width: 1.4em; height: 1.4em; }
.bk-step.is-open .bk-check { animation: pop 0.5s cubic-bezier(.2, .9, .3, 1.4); }
.bk-done h2 { font-size: 1.25em; font-weight: 700; }
.bk-done > p { font-size: 0.875em; color: var(--bk-muted); max-width: 26em; }
.bk-ticket { width: 100%; text-align: left; border: 1px solid var(--bk-line); border-radius: 0.625em; overflow: hidden; font-size: 0.875em; }
.bk-ticket > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 0.75em; padding: 0.7em 1em; }
.bk-ticket > div + div { border-top: 1px solid var(--bk-line); }
.bk-ticket > div > span:first-child { color: var(--bk-muted); font-size: 0.82em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 0.15em; }
.bk-ticket small { color: var(--bk-muted); }

/* ---------- Panel de control ---------- */
.dash-top h1 { font-size: 1.4em; font-weight: 700; line-height: 1.2; }
.dash-top p { font-size: 0.8em; color: var(--sa-muted); margin-top: 0.15em; }
.fv { display: flex; flex-direction: column; align-items: center; gap: 0.25em; }
.fv-step { display: flex; align-items: center; justify-content: center; gap: 0.8em; padding: 0.6em 1em; border-radius: 0.9em; min-height: 3.4em; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.fv-s1 { background: #f0f4ff; color: #2d3a8c; width: 100%; }
.fv-s2 { background: #c7d7fe; color: #1e2f6a; width: 88%; }
.fv-s3 { background: #91a8f7; color: #fff; width: 76%; }
.fv-ico { width: 1.2em; height: 1.2em; opacity: 0.65; }
.fv-label { font-size: 0.85em; font-weight: 600; line-height: 1.2; }
.fv-desc { font-size: 0.68em; opacity: 0.75; margin-top: 0.1em; }
.fv-val { font-size: 1.5em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.fv-arrow { position: relative; width: 100%; height: 1.6em; }
.fv-arrow::before { content: ""; position: absolute; left: 50%; top: 0.15em; bottom: 0.3em; width: 2px; transform: translateX(-50%); background: var(--fv); }
.fv-arrow::after { content: ""; position: absolute; left: 50%; bottom: 0.15em; width: 0.5em; height: 0.5em; border-right: 2px solid var(--fv); border-bottom: 2px solid var(--fv); transform: translateX(-50%) rotate(45deg); }
.fv-pct { position: absolute; top: 50%; left: calc(50% + 0.75em); transform: translateY(-50%); font-size: 0.7em; font-weight: 700; color: var(--fv); background: #eef1ff; padding: 0.15em 0.55em; border-radius: 0.7em; }
.fv-ends { width: 76%; display: grid; gap: 0.35em; }
.fv-outs { display: flex; gap: 0.35em; }
.fv-out { flex: 1 1 0; min-width: 0; min-height: 3.7em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em; padding: 0.5em 0.4em; border-radius: 0.9em; background: var(--fv); color: #fff; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.fv-out--half { flex: 0 1 50%; }
.fv-out-v { display: inline-flex; align-items: center; gap: 0.4em; font-size: 1.25em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.fv-out-v .ico { width: 0.75em; height: 0.75em; opacity: 0.65; }
.fv-out-l { font-size: 0.72em; font-weight: 600; line-height: 1.15; }
.fv-out-p { font-size: 0.62em; font-weight: 700; padding: 0.05em 0.5em; border-radius: 0.7em; background: rgba(255, 255, 255, 0.22); }
.fv-cust { justify-content: center; }
.fv-step.is-hov, .fv-out.is-hov { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79, 107, 237, 0.25); }
.fv-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em; margin-top: 0.6em; }
.fx { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.68em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--sa-muted); padding: 0.35em 0.9em; border-radius: 999px; transition: box-shadow 0.2s ease; }
.fx b { font-size: 1.45em; color: #1e2f6a; font-variant-numeric: tabular-nums; }
.fx.feat { background: #eef1ff; border: 1px solid #c7d2fe; color: #2d3a8c; }
.fx.feat .ico { color: var(--fv); width: 1em; height: 1em; }
.fx.is-hov { box-shadow: 0 0 0 2px rgba(79, 107, 237, 0.25); }

/* ---------- Ventanas anchas (home): la disposición de escritorio de la plataforma ---------- */
@container (min-width: 520px) {
  .rq-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .bk-fields { grid-template-columns: 1fr 1fr; }
  .bk-full { grid-column: 1 / -1; }

  .bk-pick {
    grid-template-columns: minmax(0, 1fr) 12.5em;
    column-gap: 1.75em;
    align-items: start;
  }

  .bk-pick .bk-head { grid-column: 1 / -1; }
  .bk-list { grid-template-columns: 1fr; }
  .flt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Resultados: cifras y lo que se deja fuera (solo en ventanas anchas) ---------- */
.wide-only { display: none; }
.res-cols { display: grid; gap: 0.75em; }
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6em; }
.kpi { background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: 0.9em; padding: 0.5em 0.8em; display: flex; flex-direction: column; gap: 0.1em; }
.kpi b { font-size: 1.4em; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 0.68em; color: var(--sa-muted); line-height: 1.3; }
.kpi.is-ok b { color: var(--sa-ok); }
.kpi.is-bad b { color: var(--sa-bad); }
.kpi.is-gold b { color: var(--sa-gold); }
.donut { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 1em; align-items: center; }
.donut svg { width: 6.5em; height: 6.5em; transform: rotate(-90deg); }
.donut circle { transition: stroke-dasharray 1.1s cubic-bezier(.2, .8, .2, 1); }
.legend { display: flex; flex-direction: column; gap: 0.1em; font-size: 0.68em; min-width: 0; }
.legend div { display: grid; grid-template-columns: 0.75em minmax(0, 1fr) auto; gap: 0.6em; align-items: center; }
.legend i { width: 0.75em; height: 0.75em; border-radius: 3px; }
.legend .total { border-top: 1px solid var(--sa-line); padding-top: 0.3em; margin-top: 0.2em; font-weight: 700; }
.legend b { font-variant-numeric: tabular-nums; }
.lg0 { background: #0076a3; }
.lg1 { background: #d9534f; }
.lg2 { background: #c98500; }
.lg3 { background: #9d8cff; }
.lg4 { background: #4CAF50; }
.lg5 { background: #ff9f6b; }
.lg6 { background: #7ee0d0; }

/* ---------- Resultados con el detalle de la empresa (cajón de la derecha) ---------- */
.stage { display: grid; }
.stage > * { grid-area: 1 / 1; }
.results { display: grid; gap: 0.75em; align-content: start; }
.res-cards { display: grid; gap: 0.75em; }
.veil { margin: -0.8em; background: rgba(5, 8, 20, 0.45); opacity: 0; transition: opacity 0.3s ease; z-index: 1; }
.veil.is-on { opacity: 1; }
.drawer {
  z-index: 2;
  justify-self: end;
  align-self: start;
  width: min(34em, 88%);
  min-height: calc(100% + 1.6em);
  margin: -0.8em -0.8em 0 0;
  padding: 1.1em 1.1em 1.6em;
  display: grid;
  align-content: start;
  gap: 0.85em;
  background: var(--sa-white);
  border-left: 1px solid var(--sa-line);
  box-shadow: -1em 0 2.5em rgba(0, 0, 0, 0.18);
  transform: translateX(110%);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open { transform: none; }
.drawer-actions { display: flex; justify-content: flex-end; align-items: stretch; gap: 0.5em; }
.drawer-actions .sr-tr { margin: 0 auto 0 0; align-self: center; }
.close-x { width: 2.1em; display: grid; place-items: center; border-radius: 999px; font-size: 0.8em; font-weight: 700; border: 1.5px solid var(--sa-primary); color: var(--sa-primary); }
.dh { display: flex; gap: 0.85em; align-items: center; }
.dh .sr-logo { width: 3.4em; height: 3.4em; flex: none; }
.dh h2 { font-size: 1.3em; font-weight: 700; line-height: 1.2; }
.dh a { color: var(--sa-primary); font-size: 0.8em; }
.dh .place { color: var(--sa-muted); font-size: 0.78em; }
.dh .sr-fit { width: 4em; height: 4em; margin-left: auto; flex: none; }
.dh .sr-fit b { font-size: 0.9em; }
.sr-tag.is-ok { color: var(--sa-ok); border-color: rgba(76, 175, 80, 0.5); }
.d-desc { font-size: 0.875em; }

/* ---------- Correo y LinkedIn en el historial ---------- */
.mail-meta { display: grid; gap: 0.25em; font-size: 0.78em; padding-bottom: 0.5em; border-bottom: 1px solid var(--sa-line); }
.mail-meta > div { display: grid; grid-template-columns: 4.5em 1fr; gap: 0.5em; }
.mail-meta span { color: var(--sa-muted); font-weight: 600; }
.mail-body { display: grid; gap: 0.55em; font-size: 0.8em; line-height: 1.5; padding: 0.7em 0.8em; background: #f6f7f9; border-radius: 0.6em; transition: opacity 0.4s ease; }
.li-head { display: flex; align-items: center; gap: 0.6em; padding-bottom: 0.5em; border-bottom: 1px solid var(--sa-line); }
.li-head .pr-avatar { width: 2.4em; height: 2.4em; border: 0; }
.li-head b { display: block; font-size: 0.9em; }
.li-head small { display: block; font-size: 0.72em; color: var(--sa-muted); }
.li-mark { margin-left: auto; color: #0a66c2; }
.li-mark .ico { width: 1.2em; height: 1.2em; }
.ct-avatar svg { width: 100%; height: 100%; display: block; }

/* ---------- Listado de empresas con el aviso de presupuesto ---------- */
.list-bar { display: flex; align-items: center; justify-content: space-between; }
.list-bar strong { font-size: 1em; font-weight: 700; }
.seg { display: flex; gap: 0.3em; }
.seg span { font-size: 0.72em; color: var(--sa-muted); border: 1px solid var(--sa-line); border-radius: 999px; padding: 0.25em 0.8em; background: var(--sa-white); }
.seg span.is-on { color: #fff; background: var(--sa-primary); border-color: transparent; }
.list-cards { display: grid; gap: 0.75em; }
.ch { position: relative; display: inline-grid; }
.ch .tip { right: auto; left: -0.6em; }
.ch .tip::after { right: auto; left: 0.8em; }
.ch.is-tip .tip { opacity: 0.92; transform: none; }
.ch.is-live .ico { color: var(--sa-primary); transform: scale(1.3); }
/* Avisos de la plataforma, apilados arriba a la derecha (el más nuevo arriba) */
.toasts {
  position: absolute;
  top: 0.6em;
  right: 0.6em;
  z-index: 4;
  width: min(21em, calc(100% - 1.2em));
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  font-family: var(--font-app);
  font-size: min(calc(100cqw / var(--W)), 15px);
  line-height: 1.35;
  pointer-events: none;
}
.toast {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75em;
  padding: 0.7em 0.9em;
  border-radius: 0.9em;
  border-left: 0.3em solid var(--t-color);
  background: var(--sa-white);
  color: var(--sa-ink);
  box-shadow: 0 1em 2.2em -0.6em rgba(0, 0, 0, 0.45);
  animation: toast-in 0.45s cubic-bezier(.2, .9, .3, 1.3);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast.is-out { opacity: 0; transform: translateX(1em); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-0.8em) scale(0.97); } }
.toast-ico { width: 2.2em; height: 2.2em; border-radius: 0.6em; background: var(--t-color); color: #fff; display: grid; place-items: center; }
.toast-ico .ico { width: 1em; height: 1em; }
.toast strong { display: block; font-size: 0.82em; font-weight: 700; }
.toast small { display: block; font-size: 0.72em; color: var(--sa-muted); }
.t-mail { --t-color: #0076a3; }
.t-li { --t-color: #0a66c2; }
.t-wa { --t-color: #1fa855; }
.t-interest { --t-color: #4caf50; }
.t-quote { --t-color: #11a79b; }
.t-meeting { --t-color: #8965e0; }
.b-meeting { background: linear-gradient(310deg, #6c43d6, #8965e0); }

@container (min-width: 520px) {
  .list-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.wide-only { display: grid; }
  .panel.wide-only { display: grid; }
  .sr-card.wide-only { display: grid; }
}
