/* =====================================================================
   DEMOS EN LOOP (bucle.js): CIMBA, el chat y el tablero de Migue y
   EstudIA corren solos dentro de su placa, como un video que se repite.
   ===================================================================== */
.bc { display: flex; flex-direction: column; gap: 14px; }

/* Capítulos arriba, con la barra de avance de cada uno (como un video). */
.bc-caps { flex: none; height: 54px; display: flex; gap: 10px; }
.bc-cap { flex: 1; min-width: 0; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: var(--blanco); border: 1.5px solid var(--borde); border-radius: 14px; font-size: 19px; font-weight: 700; color: var(--gris); white-space: nowrap; }
.bc-cap > span { overflow: hidden; text-overflow: ellipsis; }
.bc-cap > b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--hueso); color: var(--azul2); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.bc-cap > i { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--azul); }
.bc-cap.hecha > i { width: 100%; background: var(--arena); }
.bc-cap.on { color: var(--azul); border-color: var(--azul); }
.bc-cap.on > b { background: var(--azul); color: var(--blanco); }
.bc-cap.on > i { animation: bc-barra var(--dur, 10s) linear forwards; }
@keyframes bc-barra { from { width: 0; } to { width: 100%; } }
.bc-loop { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 22px; border-radius: 14px; background: var(--azul); color: var(--blanco); font-size: 16px; font-weight: 800; letter-spacing: 2.5px; }
.bc-loop svg { width: 22px; height: 22px; }
.on .bc-loop svg { animation: bc-gira 3s linear infinite; }
@keyframes bc-gira { to { transform: rotate(360deg); } }

/* La pantalla: cada escena es una capa que entra con un fundido. */
.bc-pantalla { position: relative; flex: 1; min-height: 0; border-radius: 18px; overflow: hidden; background: #e7ebf1; box-shadow: 0 0 0 1.5px var(--borde); }
.bc-esc { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.bc-esc.ver { opacity: 1; }
.bc-sub { position: absolute; left: 50%; bottom: 24px; z-index: 40; max-width: 1360px; padding: 14px 32px; border-radius: 999px;
  background: rgba(17, 26, 59, .93); color: #fff; font-size: 27px; font-weight: 600; line-height: 1.3; text-align: center; white-space: nowrap;
  box-shadow: 0 14px 34px rgba(17, 26, 59, .28); opacity: 0; transform: translate(-50%, 12px); transition: opacity .35s, transform .35s; pointer-events: none; }
.bc-sub.ver { opacity: 1; transform: translate(-50%, 0); }
.bc-fuente { position: absolute; right: 22px; top: 58px; z-index: 35; font-size: 14px; font-weight: 600; color: var(--gris); background: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 8px; }

/* Navegador con cámara: el lienzo se mueve y se acerca a lo que importa. */
.bc-nav { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.bc-barra { height: 44px; flex: none; background: #f1efeb; display: flex; align-items: center; gap: 9px; padding: 0 18px; }
.bc-barra i { width: 12px; height: 12px; border-radius: 50%; background: #d8d3ca; }
.bc-barra span { margin-left: 16px; width: 620px; height: 28px; border-radius: 14px; background: #fff; font-size: 15px; color: #6b6f7d; display: flex; align-items: center; padding: 0 16px; }
.bc-vp { position: relative; flex: 1; overflow: hidden; background: #eef1f6; }
.bc-lienzo { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.bc-img { display: block; }
.bc-cursor { position: absolute; left: 640px; top: 420px; z-index: 50; width: 0; height: 0; transform-origin: 0 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.bc-cursor.ver { opacity: 1; }
.bc-cursor svg { position: absolute; left: -6px; top: -4px; width: 34px; height: 34px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.bc-cursor i { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; background: rgba(20, 99, 255, .35); transform: scale(0); opacity: 0; }
.bc-cursor i.ya { animation: bc-onda .55s ease-out; }
@keyframes bc-onda { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.bc-pulsa { transform: scale(.96); filter: brightness(.95); }
.bc-marca { position: absolute; z-index: 20; border: calc(6px / var(--s, 1)) solid #f5b800; border-radius: calc(16px / var(--s, 1));
  box-shadow: 0 0 0 calc(4000px / var(--s, 1)) rgba(10, 16, 40, .28); opacity: 0; transition: opacity .45s; pointer-events: none; }
.bc-marca.ver { opacity: 1; }
.bc-toast { position: absolute; left: 50%; top: 50%; z-index: 45; transform: translate(-50%, -40%) scale(.96); opacity: 0; transition: opacity .4s, transform .4s;
  background: #fff; border-radius: 22px; padding: 34px 48px; box-shadow: 0 30px 80px rgba(17,26,59,.35); display: flex; gap: 26px; align-items: center; }
.bc-toast.ver { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bc-toast > i { width: 76px; height: 76px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 44px; font-weight: 800; flex: none; }
.bc-toast b { display: block; font-size: 34px; font-weight: 800; color: var(--azul); }
.bc-toast span { display: block; font-size: 24px; color: var(--azul2); margin-top: 4px; }

/* ---------------------------------------------------------------- CIMBA, escritorio (lienzo 1300 × 1010) */
.cb { position: absolute; inset: 0; background: #eef1f6; color: #111827; font-size: 13px; line-height: 1.4; }
.cb-cab { position: absolute; left: 0; right: 0; top: 0; height: 56px; background: #fff; border-bottom: 1px solid #e3e7ee; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.cb-logo { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; }
.cb-logo > i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #1d4ed8 0 3px, #fff 3.5px 6px, #60a5fa 6.5px 8px, #fff 8.5px 11px, #bfdbfe 11.5px 13px, transparent 13.5px); box-shadow: 0 0 0 1px #dbeafe; }
.cb-logo > b { font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: -.3px; }
.cb-logo > b em { font-style: normal; color: #eab308; }
.cb-logo > small { font-size: 7.5px; font-weight: 600; letter-spacing: 1.8px; color: #6b7280; }
.cb-user { text-align: right; line-height: 1.15; }
.cb-user b { display: block; font-size: 12px; font-weight: 700; }
.cb-user small { font-size: 9px; font-weight: 700; color: #2563eb; letter-spacing: .5px; }
.cb-menu { position: absolute; left: 0; top: 56px; bottom: 0; width: 196px; background: #fff; border-right: 1px solid #e3e7ee; padding: 14px 10px; }
.cb-menu a { display: block; padding: 7px 12px; margin: 1px 0; border-radius: 8px; font-size: 13px; color: #374151; }
.cb-menu a.on { background: #e8f0fe; color: #1d4ed8; font-weight: 600; }
.cb-menu h6 { font-size: 8.5px; font-weight: 700; letter-spacing: 1.5px; color: #6b7280; margin: 12px 12px 4px; }
.cb-main { position: absolute; left: 196px; top: 56px; right: 0; bottom: 0; padding: 22px 30px; }
.cb-volver { font-size: 12px; color: #6b7280; }
.cb-main h2 { font-size: 22px; font-weight: 700; margin-top: 4px; }
.cb-bajada { font-size: 12.5px; color: #4b5563; margin-top: 2px; }
.cb-cols { display: grid; grid-template-columns: 650px 1fr; gap: 22px; margin-top: 16px; align-items: start; }
.cb-izq, .cb-der { display: flex; flex-direction: column; gap: 14px; }
.cb-card { background: #fff; border: 1px solid #e2e6ee; border-radius: 12px; padding: 16px 18px; }
.cb-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.cb-card h4 span { font-weight: 400; color: #4b5563; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cb-chips span { padding: 4px 10px; border: 1px solid #cfd6e2; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #374151; background: #fff; transition: background .25s, color .25s, border-color .25s; }
.cb-trabajo span.on { background: #1463ff; border-color: #1463ff; color: #fff; }
.cb-por span.on { background: #e8f0fe; border-color: #93b4f5; color: #1d4ed8; }
.cb-combo { position: relative; height: 34px; border: 1px solid #cfd6e2; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 13px; color: #6b7280; width: 420px; }
.cb-combo.lleno { color: #111827; }
.cb-combo.abierto { border-color: #1463ff; box-shadow: 0 0 0 3px rgba(20,99,255,.15); }
.cb-combo em { font-style: normal; color: #9ca3af; }
.cb-lista { position: absolute; left: -1px; top: 38px; width: 420px; z-index: 10; background: #fff; border: 1px solid #d5dbe5; border-radius: 10px; box-shadow: 0 14px 30px rgba(17,24,39,.14); padding: 8px; display: none; }
.cb-combo.abierto .cb-lista { display: block; }
.cb-busca { height: 32px; border: 1.5px solid #111827; border-radius: 7px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #111827; font-size: 13px; }
.cb-busca i { font-style: normal; color: #6b7280; }
.cb-busca .ph { color: #9ca3af; }
.cb-caret { width: 1.5px; height: 16px; background: #111827; animation: bc-caret 1s steps(1) infinite; }
@keyframes bc-caret { 50% { opacity: 0; } }
.cb-opt { padding: 7px 8px; border-radius: 6px; }
.cb-opt b { display: block; font-size: 12.5px; font-weight: 600; }
.cb-opt small { font-size: 10px; color: #6b7280; }
.cb-opt.bc-pulsa, .cb-opt.hover { background: #eef4ff; }
.cb-cuenta-l { display: block; text-align: center; font-size: 9.5px; color: #9ca3af; border-top: 1px solid #eef0f4; padding-top: 5px; margin-top: 4px; }
.cb-aviso { background: #f4efd9; border: 1px solid #ddd09a; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #5c4d0b; display: none; }
.cb-aviso b { font-weight: 700; }
.cb.barrio .cb-aviso { display: block; animation: bc-entra .5s ease both; }
.cb-aviso.marca { box-shadow: 0 0 0 3px #f5b800; }
.cb-dem-vacia { font-size: 12.5px; color: #4b5563; }
.cb.barrio .cb-dem-vacia { display: none; }
.cb-dem { display: none; }
.cb.barrio .cb-dem { display: block; }
.cb-ac { font-size: 11px; font-weight: 600; color: #1d4ed8; margin: -4px 0 8px; }
.cb-botones { display: flex; gap: 6px; margin-bottom: 10px; }
.cb-botones span { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1px solid #93b4f5; color: #1d4ed8; background: #eef4ff; }
.cb-botones span.top { border-color: #e6c25a; background: #fdf3d4; color: #7a5a00; }
.cb-tabla { width: 100%; border-collapse: collapse; }
.cb-tabla th { text-align: left; font-size: 9px; letter-spacing: 1px; font-weight: 700; color: #6b7280; padding: 6px 6px; border-bottom: 1px solid #eef0f4; }
.cb-tabla td { padding: 8px 6px; border-bottom: 1px solid #f1f3f7; font-size: 12px; vertical-align: middle; }
.cb-tabla tr { transition: background .3s; }
.cb.barrio .cb-tabla tbody tr { animation: bc-entra .45s ease both; animation-delay: calc(var(--i) * .12s + .2s); }
.cb-tabla tr.tilde { background: #eef4ff; }
.cb-ck { width: 14px; height: 14px; border: 1.5px solid #9ca3af; border-radius: 3px; display: inline-block; position: relative; }
tr.tilde .cb-ck { background: #1463ff; border-color: #1463ff; }
tr.tilde .cb-ck::after { content: ''; position: absolute; left: 3.5px; top: .5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cb-pin { width: 24px; height: 24px; border: 1px solid #bfd3fb; border-radius: 6px; display: inline-grid; place-items: center; color: #1463ff; font-size: 12px; }
.cb-dir b { display: block; font-weight: 600; font-size: 12.5px; }
.cb-dir small { font-size: 10px; color: #6b7280; }
.cb-dir small em { font-style: normal; color: #1d4ed8; font-weight: 600; }
.cb-score { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; }
.cb-src small { display: block; font-size: 9.5px; color: #6b7280; }
.cb-mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #6b7280; }
.cb-contrato { font-size: 11.5px; color: #1e3a8a; background: #eef4ff; border: 1px solid #c7d7fb; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; display: none; }
.cb.barrio .cb-contrato { display: block; }
.cb-emp { border: 1px solid #e2e6ee; border-radius: 10px; padding: 9px 12px 9px 34px; margin-top: 8px; position: relative; transition: background .35s, border-color .35s; }
.cb-emp::before { content: ''; position: absolute; left: 12px; top: 12px; width: 11px; height: 11px; border: 1.5px solid #9ca3af; border-radius: 50%; }
.cb-emp b { font-size: 12px; font-weight: 700; }
.cb-emp em { display: none; font-style: normal; margin-left: 6px; font-size: 8.5px; font-weight: 700; letter-spacing: .6px; color: #1d4ed8; background: #dbe8ff; border-radius: 4px; padding: 1px 5px; }
.cb-emp p { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 10px; color: #4b5563; }
.cb-emp p span { color: #c2410c; }
.cb-emp small { display: block; font-size: 9px; color: #6b7280; }
.cb.barrio .cb-emp.toca { background: #eef4ff; border-color: #7aa5f8; }
.cb.barrio .cb-emp.toca::before { border-color: #1463ff; background: radial-gradient(circle, #1463ff 0 3px, #fff 3.5px); }
.cb.barrio .cb-emp.toca em { display: inline-block; }
.cb-c1 { font-size: 13px; font-weight: 700; }
.cb-c2 { font-size: 12px; color: #4b5563; margin: 4px 0 12px; transition: color .3s; }
.cb-c2.lista { color: #111827; }
.cb-c2.marca { background: #fff7d6; box-shadow: 0 0 0 4px #fff7d6; border-radius: 4px; }
.cb-crear { height: 38px; border-radius: 9px; background: #9db7f5; color: #fff; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; transition: background .3s, transform .15s; }
.cb-crear.lista { background: #1463ff; }
.cb-cuenta small { display: block; font-size: 10px; color: #6b7280; margin-top: 6px; text-align: center; }
@keyframes bc-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- CIMBA, en la calle (celular) */
.bc-campo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 90px; padding-bottom: 40px;
  background: radial-gradient(circle at 30% 40%, #f6f8fb, #e3e8ef); }
.bc-tel { width: 380px; height: 650px; border-radius: 46px; background: #111a3b; padding: 13px; box-shadow: 0 30px 70px rgba(17,26,59,.35); flex: none; }
.bc-tel-pant { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #eef1f6; font-size: 13px; color: #111827; }
.cbm-cab { height: 56px; background: #fff; border-bottom: 1px solid #e3e7ee; display: flex; align-items: center; padding: 0 16px; }
.cbm-cuerpo { padding: 14px 14px; }
.cbm-cuerpo > h3 { font-size: 19px; font-weight: 700; }
.cbm-cuerpo > p { font-size: 12px; color: #4b5563; margin-bottom: 10px; }
.cbm-card { background: #fff; border: 1px solid #e2e6ee; border-radius: 14px; padding: 13px; transition: border-color .4s, box-shadow .4s; }
.cbm-card.hecho { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.cbm-tit { display: flex; align-items: center; gap: 8px; }
.cbm-tit b { font-size: 13px; font-weight: 700; }
.cbm-estado { font-size: 9px; font-weight: 700; letter-spacing: .5px; padding: 2px 6px; border-radius: 4px; background: #fde8e4; color: #c2410c; transition: background .3s, color .3s; }
.cbm-card.hecho .cbm-estado { background: #dcfce7; color: #15803d; }
.cbm-tit em { margin-left: auto; font-style: normal; font-size: 11px; color: #1463ff; border: 1px solid #bfd3fb; border-radius: 6px; padding: 1px 6px; }
.cbm-dir { font-size: 15px; font-weight: 600; margin: 4px 0 10px; }
.cbm-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cbm-foto { position: relative; height: 150px; border: 1px solid #cfd6e2; border-radius: 9px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.cbm-foto span { font-size: 11.5px; font-weight: 600; color: #374151; }
.cbm-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .45s, transform .6s; }
.cbm-foto.lista img { opacity: 1; transform: none; }
.cbm-foto em { position: absolute; left: 6px; bottom: 6px; z-index: 2; font-style: normal; font-size: 9px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; padding: 1px 5px; opacity: 0; transition: opacity .4s .3s; }
.cbm-foto.lista em { opacity: 1; }
.cbm-flash { position: absolute; inset: 0; z-index: 30; background: #fff; opacity: 0; pointer-events: none; }
.cbm-flash.ya { animation: bc-flash .5s ease-out; }
@keyframes bc-flash { from { opacity: .95; } to { opacity: 0; } }
.cbm-fila { display: grid; grid-template-columns: 70px 1fr; gap: 8px; margin-top: 10px; }
.cbm-fila > div { height: 32px; border: 1px solid #cfd6e2; border-radius: 8px; display: flex; align-items: center; padding: 0 9px; font-size: 11.5px; color: #9ca3af; }
.cbm-m2 b { color: #111827; font-weight: 600; font-size: 13px; margin-right: 3px; }
.cbm-card small { display: block; font-size: 10.5px; font-weight: 600; color: #374151; margin: 10px 0 4px; }
.cbm-fecha { height: 32px; border: 1px solid #cfd6e2; border-radius: 8px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; }
.cbm-fin { margin-top: 12px; height: 40px; border-radius: 9px; background: #8fc7a7; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; transition: background .3s; }
.cbm-fin.lista { background: #15803d; }
.cbm-falta { font-size: 9.5px; color: #6b7280; text-align: center; margin-top: 6px; transition: opacity .3s; }
.cbm-card.hecho .cbm-falta { opacity: 0; }
.bc-toque { position: absolute; z-index: 25; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(17,26,59,.25); border: 2px solid rgba(255,255,255,.9); opacity: 0; pointer-events: none; }
.bc-toque.ya { animation: bc-toque .6s ease-out; }
@keyframes bc-toque { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4); } }
.bc-campo-txt { width: 640px; }
.bc-campo-txt h3 { font-size: 52px; line-height: 1.08; font-weight: 800; color: var(--azul); margin: 10px 0 24px; letter-spacing: -1px; }
.bc-campo-txt ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bc-campo-txt li { display: flex; align-items: center; gap: 18px; font-size: 27px; font-weight: 600; color: var(--azul2); background: #fff; border: 1.5px solid var(--borde); border-radius: 16px; padding: 14px 22px; opacity: .35; transition: opacity .4s, border-color .4s; }
.bc-campo-txt li.on { opacity: 1; border-color: var(--azul); }
.bc-campo-txt li i { font-style: normal; font-size: 32px; }

/* ---------------------------------------------------------------- CIMBA, antes y después */
.bc-ad { position: absolute; inset: 0; display: grid; grid-template-columns: 768px 1fr; gap: 64px; align-items: start; padding: 30px 60px 0; background: #111a3b; }
.bc-ad-foto { position: relative; width: 768px; height: 576px; border-radius: 20px; overflow: hidden; background: #222b4d; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.bc-ad-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-ad-desp { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.bc-ad-foto.ver .bc-ad-desp { clip-path: inset(0 0 0 0); transition: clip-path 1.9s cubic-bezier(.65,0,.35,1); }
.bc-ad-linea { position: absolute; top: 0; bottom: 0; left: 0; width: 5px; margin-left: -2.5px; background: #fff; box-shadow: 0 0 18px rgba(0,0,0,.45); opacity: 0; }
.bc-ad-linea::after { content: '⟷'; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--azul); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.bc-ad-foto.ver .bc-ad-linea { left: 100%; opacity: 1; transition: left 1.9s cubic-bezier(.65,0,.35,1), opacity .2s; }
.bc-ad-foto.fin .bc-ad-linea { opacity: 0; transition: opacity .4s; }
.bc-ad-et { position: absolute; top: 20px; z-index: 3; font-size: 18px; font-weight: 800; letter-spacing: 3px; padding: 7px 16px; border-radius: 10px; color: #fff; }
.bc-ad-et.a { left: 20px; background: rgba(214,69,61,.92); }
.bc-ad-et.d { right: 20px; background: rgba(47,158,110,.95); opacity: 0; transition: opacity .4s; }
.bc-ad-foto.fin .bc-ad-et.d { opacity: 1; }
.bc-ad-foto.fin .bc-ad-et.a { opacity: 0; transition: opacity .4s; }
.bc-ad-info { color: #fff; }
.bc-ad-info .ceja { color: #9aa3c4; }
.bc-ad-total { display: flex; align-items: baseline; gap: 18px; margin: 14px 0 34px; }
.bc-ad-total b { font-size: 96px; line-height: 1; font-weight: 800; letter-spacing: -2px; }
.bc-ad-total span { font-size: 25px; line-height: 1.3; color: #d7dbe9; }
.bc-ad-cual { border-top: 1.5px solid rgba(255,255,255,.15); padding-top: 26px; min-height: 170px; }
.bc-ad-cual b { display: block; font-size: 40px; line-height: 1.15; font-weight: 800; }
.bc-ad-cual span { display: block; font-size: 24px; color: #c3c9de; margin-top: 10px; }
.bc-ad-cual.cambia { animation: bc-entra .5s ease both; }
.bc-ad-puntos { display: flex; gap: 10px; margin-top: 30px; }
.bc-ad-puntos i { width: 34px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.bc-ad-puntos i.on { background: #fff; }
.bc-ad-puntos i.ya { background: rgba(255,255,255,.55); }
.bc-esc .bc-sub-claro { color: var(--azul); }

/* ---------------------------------------------------------------- Migue: el chat dentro de Ciudad Digital */
.bc-migue-boton { position: absolute; z-index: 6; width: 92px; height: 92px; border-radius: 50%; background: #fff url(img/migue/migue-cara.png) center 30% / 120% no-repeat; box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 4px #fff; }
.bc-migue-boton.late { animation: bc-late 1.2s ease-in-out infinite; }
@keyframes bc-late { 50% { box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 4px #fff, 0 0 0 16px rgba(26,118,210,.25); } }
.bc-esc .bc-vp::after { content: ''; position: absolute; inset: 0; background: rgba(17, 26, 59, .55); opacity: 0; transition: opacity .6s; pointer-events: none; }
.bc-esc.atenua .bc-vp::after { opacity: 1; }
.bc-chat-nota { position: absolute; left: 70px; top: 50%; width: 690px; z-index: 8; color: #fff; opacity: 0; transform: translateY(-46%); transition: opacity .5s, transform .5s; }
.bc-chat-nota.ver { opacity: 1; transform: translateY(-50%); }
.bc-chat-nota .ceja { color: #c7cde3; }
.bc-chat-nota b { display: block; font-size: 52px; line-height: 1.08; font-weight: 800; margin: 12px 0 20px; letter-spacing: -1px; }
.bc-chat-nota p { font-size: 28px; line-height: 1.35; color: #e4e8f4; }
.bc-chat { position: absolute; z-index: 8; right: 60px; top: 66px; bottom: 26px; width: 860px; background: #fff; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,.35); opacity: 0; transform: translateY(30px) scale(.97); transform-origin: 100% 100%; transition: opacity .45s, transform .45s; }
.bc-chat.ver { opacity: 1; transform: none; }
.bc-chat .bc-burbuja { font-size: 23px; }
.bc-chat .bc-burbuja.migue.chica { font-size: 19px; }
.bc-chat-cab { height: 84px; flex: none; background: #1a76d2; color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.bc-chat-cab img { width: 56px; height: 56px; border-radius: 50%; background: #fff; object-fit: cover; object-position: center 20%; }
.bc-chat-cab b { display: block; font-size: 22px; font-weight: 700; }
.bc-chat-cab small { font-size: 14px; opacity: .9; }
.bc-chat-cab small::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; margin-right: 7px; }
.bc-chat-hilo { flex: 1; overflow: hidden; background: #f3f5f8; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bc-burbuja { max-width: 86%; padding: 14px 18px; border-radius: 18px; font-size: 19px; line-height: 1.45; animation: bc-entra .35s ease both; }
.bc-burbuja.migue { align-self: flex-start; background: #fff; color: #1f2937; border-bottom-left-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.bc-burbuja.migue.chica { font-size: 16px; }
.bc-burbuja.vecino { align-self: flex-end; background: #1a76d2; color: #fff; border-bottom-right-radius: 6px; }
.bc-puntos { display: inline-flex; gap: 6px; }
.bc-puntos i { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; animation: bc-punto 1.2s infinite; }
.bc-puntos i:nth-child(2) { animation-delay: .2s; } .bc-puntos i:nth-child(3) { animation-delay: .4s; }
@keyframes bc-punto { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.bc-chat-pie { height: 78px; flex: none; border-top: 1px solid #e5e7eb; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.bc-chat-pie > span { flex: 1; height: 50px; border-radius: 25px; background: #f3f5f8; display: flex; align-items: center; padding: 0 20px; font-size: 18px; color: #9ca3af; white-space: nowrap; overflow: hidden; }
.bc-chat-pie > span.lleno { color: #111827; }
.bc-chat-pie > i { width: 50px; height: 50px; border-radius: 50%; background: #1a76d2; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 22px; }

/* ---------------------------------------------------------------- Generador de Notas: antes, cada uno con su chat */
.gd-antes { position: absolute; inset: 0; display: grid; grid-template-columns: 560px 1fr; gap: 50px; align-items: center; padding: 0 60px 70px; background: radial-gradient(circle at 25% 35%, #f6f8fb, #e3e8ef); }
.gd-antes-txt h3 { font-size: 52px; line-height: 1.08; font-weight: 800; color: var(--azul); margin: 10px 0 26px; letter-spacing: -1px; }
.gd-antes-txt ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.gd-antes-txt li { display: flex; align-items: center; gap: 16px; font-size: 25px; font-weight: 600; color: var(--azul2); background: #fff; border: 1.5px solid var(--borde); border-radius: 16px; padding: 13px 20px; opacity: .3; transition: opacity .4s, border-color .4s; }
.gd-antes-txt li.on { opacity: 1; border-color: #d6453d; }
.gd-chats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gd-chat { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(17,26,59,.18); opacity: 0; transform: translateY(24px) rotate(calc((var(--i) - 1) * 1.6deg)); transition: opacity .45s, transform .45s; min-height: 400px; }
.gd-chat.ver { opacity: 1; transform: rotate(calc((var(--i) - 1) * 1.6deg)); }
.gd-chat header { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #f1efeb; font-size: 17px; font-weight: 700; color: #374151; }
.gd-chat header i { width: 28px; height: 28px; border-radius: 50%; background: #c9c3b8; flex: none; }
.gd-chat header small { margin-left: auto; font-size: 12px; font-weight: 700; color: #b4231a; background: #fde8e4; border-radius: 6px; padding: 2px 8px; }
.gd-chat-hilo { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.gd-chat-hilo p { font-size: 17px; line-height: 1.45; padding: 12px 15px; border-radius: 14px; }
.gd-chat-hilo .q { align-self: flex-end; max-width: 90%; background: #6b7280; color: #fff; border-bottom-right-radius: 5px; }
.gd-chat-hilo .r { background: #f3f4f6; color: #1f2937; border-bottom-left-radius: 5px; min-height: 120px; }

/* ---------------------------------------------------------------- Generador de Notas: la herramienta (lienzo 1300 × 980) */
.gd { position: absolute; inset: 0; background: #f4f7fb; color: #0f172a; font-size: 14px; line-height: 1.4; }
.gd-cab { height: 74px; background: linear-gradient(90deg, #0b4fd1, #2f86f0); color: #fff; display: flex; align-items: center; gap: 22px; padding: 0 30px; border-bottom: 5px solid; border-image: linear-gradient(90deg, #f5c400 40%, #4aa3ff 40%) 1; }
.gd-logo { display: flex; align-items: center; gap: 8px; padding-right: 22px; border-right: 1px solid rgba(255,255,255,.35); }
.gd-logo i { width: 30px; height: 40px; border-radius: 50% 50% 46% 46%; background: #fff; }
.gd-logo b { font-size: 26px; font-weight: 900; line-height: .95; }
.gd-logo small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.gd-tit b { display: block; font-size: 22px; font-weight: 800; }
.gd-tit small { font-size: 14px; opacity: .92; }
.gd-dia { margin-left: auto; background: #fff; color: #0b4fd1; border-radius: 10px; padding: 7px 14px; font-size: 16px; font-weight: 900; line-height: 1; }
.gd-dia small { display: block; font-size: 8px; letter-spacing: .5px; }
.gd-pasos { display: flex; align-items: center; gap: 16px; padding: 20px 0 0 150px; font-size: 16px; font-weight: 700; color: #94a3b8; }
.gd-pasos span { display: flex; align-items: center; gap: 10px; }
.gd-pasos span b { width: 34px; height: 34px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: grid; place-items: center; font-size: 15px; }
.gd-pasos span.on { color: #0f172a; }
.gd-pasos span.on b { background: #1463ff; color: #fff; }
.gd-pasos > i { width: 90px; height: 2px; background: #cbd5e1; }
.gd-main { width: 1000px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 14px; transition: opacity .5s; }
.gd-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.gd-card h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.gd-card h4 i { width: 32px; height: 32px; border-radius: 9px; background: #eef4ff; display: grid; place-items: center; font-style: normal; font-size: 16px; }
.gd-dicta { display: flex; align-items: flex-start; gap: 14px; background: #f7fbff; border-color: #cfe2ff; transition: box-shadow .3s; }
.gd-dicta.dictando { box-shadow: 0 0 0 4px rgba(20,99,255,.18); }
.gd-mic { width: 40px; height: 40px; border-radius: 50%; background: #1463ff; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 18px; flex: none; }
.gd-dicta.dictando .gd-mic { animation: bc-late 1s ease-in-out infinite; }
.gd-dicta > div { flex: 1; }
.gd-dicta b { display: block; font-size: 16px; font-weight: 800; }
.gd-dicta small { font-size: 13px; color: #64748b; }
.gd-dictado { margin-top: 8px; font-size: 15px; color: #0f172a; min-height: 21px; }
.gd-dictado:empty { display: none; }
.gd-dictar { flex: none; border: 1.5px solid #bcd3ff; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 800; color: #1452d6; background: #fff; }
.gd-tipos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gd-tipos span { height: 38px; border: 1px solid #e2e8f0; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 600; transition: background .3s, color .3s; }
.gd-tipos span.on { background: #1463ff; border-color: #1463ff; color: #fff; }
.gd-desc { margin-top: 10px; font-size: 13px; color: #64748b; opacity: 0; transition: opacity .4s; }
.gd-desc.ver { opacity: 1; }
.gd-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gd-seg { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.gd-seg span { height: 32px; display: grid; place-items: center; font-size: 14px; color: #475569; border-radius: 8px; }
.gd-seg span.on { background: #fff; color: #1452d6; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.gd-card label { display: block; font-size: 13px; font-weight: 700; margin: 8px 0 5px; }
.gd-card label em { font-style: normal; font-weight: 400; color: #64748b; }
.gd-campo { min-height: 38px; border: 1px solid #e2e8f0; border-radius: 9px; display: flex; align-items: center; padding: 6px 12px; font-size: 14px; color: #94a3b8; transition: border-color .3s, background .3s; }
.gd-campo.lleno { color: #0f172a; }
.gd-dest .gd-campo.lleno, .gd-texto.lleno { border-color: #1463ff; background: #f7fbff; }
.gd-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gd-rec { position: absolute; }
.gd-firma { position: relative; }
.gd-firma .gd-rec { right: 20px; top: 22px; font-size: 12px; color: #64748b; }
.gd-texto { min-height: 60px; align-items: flex-start; }
.gd-pie { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 16px; font-size: 14px; }
.gd-pie > span { font-weight: 700; color: #334155; }
.gd-pie em { font-style: normal; color: #64748b; }
.gd-redactar { margin-left: auto; background: #a7c1f2; color: #fff; border-radius: 10px; padding: 12px 20px; font-size: 16px; font-weight: 800; transition: background .3s; }
.gd-redactar.lista { background: #1463ff; }
.gd-hoja { position: absolute; left: 110px; right: 110px; top: 120px; display: grid; grid-template-columns: 1fr 290px; gap: 24px; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; pointer-events: none; }
.gd.redactada .gd-main { opacity: 0; }
.gd.redactada .gd-hoja { opacity: 1; transform: none; }
.gd-papel { background: #fff; border-radius: 6px; box-shadow: 0 18px 50px rgba(15,23,42,.18); padding: 36px 56px 30px; font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.55; text-align: justify; color: #111827; }
.gd-papel header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; padding-bottom: 14px; margin-bottom: 20px; font-family: Inter, system-ui, sans-serif; }
.gd-papel header img { height: 40px; }
.gd-papel header span { font-size: 14px; font-weight: 800; letter-spacing: .5px; color: #1f2937; }
.gd-l { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; margin-bottom: 12px; }
.gd-l.ver { opacity: 1; transform: none; }
.gd-ref { text-align: right; font-weight: 700; }
.gd-a { font-weight: 700; }
.gd-firma-lugar { position: relative; margin: 30px 0 0 auto; width: 300px; text-align: center; font-family: Inter, system-ui, sans-serif; }
.gd-firma-lugar > i { display: block; height: 48px; border-bottom: 1.5px solid #111827; margin-bottom: 8px; background: no-repeat center bottom / 80% 70%; }
.gd-firma-lugar.firmada > i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50'%3E%3Cpath d='M8 38 C 30 6, 40 6, 46 30 S 70 46, 82 18 S 110 10, 116 34 S 150 40, 160 14 L 192 22' fill='none' stroke='%231e3a8a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.gd-firma-lugar b { display: block; font-size: 15px; }
.gd-firma-lugar small { font-size: 13px; color: #4b5563; }
.gd-sello { display: block; margin-top: 10px; font-size: 13px; font-weight: 800; color: #15803d; background: #dcfce7; border-radius: 8px; padding: 6px 10px; opacity: 0; transform: scale(.9); transition: opacity .4s, transform .4s; }
.gd-firma-lugar.firmada .gd-sello { opacity: 1; transform: none; }
.gd-acciones { align-self: end; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; font-family: Inter, system-ui, sans-serif; }
.gd-acciones .ceja { font-size: 12px; }
.gd-acciones > b { font-size: 24px; font-weight: 800; color: #0f172a; margin-top: -8px; }
.gd-check { display: flex !important; align-items: center; gap: 10px; font-size: 15px !important; font-weight: 600 !important; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin: 0 !important; }
.gd-check i { width: 22px; height: 22px; border: 2px solid #94a3b8; border-radius: 6px; display: grid; place-items: center; font-style: normal; color: #fff; flex: none; transition: background .3s, border-color .3s; }
.gd-check.on { border-color: #16a34a; background: #f0fdf4; }
.gd-check.on i { background: #16a34a; border-color: #16a34a; }
.gd-check.on i::after { content: '✓'; font-size: 14px; font-weight: 800; }
.gd-firmar { display: block; text-align: center; background: #0f172a; color: #fff; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 800; }
.gd-acciones small { font-size: 13px; color: #64748b; line-height: 1.4; }
.gd-final { position: absolute; left: 50%; top: 46%; z-index: 45; width: 900px; transform: translate(-50%, -44%) scale(.97); opacity: 0; transition: opacity .45s, transform .45s;
  background: #fff; border-radius: 24px; padding: 38px 50px; box-shadow: 0 30px 80px rgba(17,26,59,.4); }
.gd-final.ver { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gd-final > b { display: block; font-size: 50px; line-height: 1.05; font-weight: 800; color: var(--azul); margin: 8px 0 22px; letter-spacing: -1px; }
.gd-final ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.gd-final li { display: flex; align-items: center; gap: 16px; font-size: 27px; font-weight: 600; color: var(--azul2); }
.gd-final li i { font-style: normal; font-size: 30px; width: 40px; text-align: center; }
.gd-final p { margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--borde); font-size: 24px; color: var(--gris); }
.gd-final p b { color: var(--verde); font-weight: 800; }

/* ---------------------------------------------------------------- Migue se defiende: la vista Conversaciones del tablero */
.md { position: absolute; inset: 0; display: grid; grid-template-columns: 430px 1fr; gap: 22px; padding: 24px 28px 84px; background: #0b1020; color: #e5e9f5; }
.md-lista { background: #111829; border: 1px solid #1f2a44; border-radius: 18px; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.md-tit { font-size: 30px; font-weight: 800; color: #fff; }
.md-lista > small { font-size: 15px; color: #8b95b5; margin-bottom: 8px; }
.md-busca { height: 46px; border-radius: 12px; background: #0b1020; border: 1px solid #1f2a44; display: flex; align-items: center; padding: 0 16px; font-size: 18px; color: #cfd6ea; }
.md-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; transition: background .3s; }
.md-item.on { background: #1c2547; box-shadow: inset 4px 0 0 #6d6ff2; }
.md-item > b { width: 52px; height: 52px; border-radius: 50%; background: #6d6ff2; color: #fff; display: grid; place-items: center; font-size: 19px; flex: none; }
.md-item strong { display: block; font-size: 19px; color: #fff; }
.md-item span { display: block; font-size: 15px; color: #aab3cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.md-chat { background: #111829; border: 1px solid #1f2a44; border-radius: 18px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.md-chat header { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #1f2a44; }
.md-av { width: 56px; height: 56px; border-radius: 50%; background: #6d6ff2; color: #fff; display: grid; place-items: center; font-size: 20px; }
.md-id { display: block; font-size: 24px; color: #fff; }
.md-info { font-size: 15px; color: #8b95b5; }
.md-hilo { flex: 1; overflow: hidden; padding: 20px 26px; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.md-b { max-width: 78%; padding: 14px 20px; border-radius: 18px; font-size: 22px; line-height: 1.4; animation: bc-entra .35s ease both; }
.md-b small { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
.md-b small em { font-style: normal; }
.md-b.v { align-self: flex-end; background: linear-gradient(135deg, #5b5ef0, #8487f7); color: #fff; border-bottom-right-radius: 6px; }
.md-b.m { align-self: flex-start; background: #1d2638; color: #e9edf7; border: 1px solid #2a3550; border-bottom-left-radius: 6px; }
.md-b.spam { font-size: 14px; line-height: 1.35; max-height: 210px; overflow: hidden; }
.md-b.viejo { opacity: .35; font-size: 16px; max-height: 64px; overflow: hidden; animation: none; }
.md-b.m.paso { font-size: 30px; font-weight: 700; }
.md-b.marca { border-color: #f5b800; box-shadow: 0 0 0 5px rgba(245,184,0,.35); }
.md-fin { position: absolute; inset: 0; padding: 40px 70px 90px; background: radial-gradient(circle at 25% 30%, #f6f8fb, #e3e8ef); }
.md-fin h3 { font-size: 54px; line-height: 1.05; font-weight: 800; color: var(--azul); letter-spacing: -1px; margin: 8px 0 30px; }
.md-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.md-cols > div { background: #fff; border: 1.5px solid var(--borde); border-radius: 22px; padding: 26px 24px; opacity: 0; transform: translateY(20px); transition: opacity .45s, transform .45s; }
.md-cols > div.ver { opacity: 1; transform: none; }
.md-cols i { display: block; font-style: normal; font-size: 46px; margin-bottom: 12px; }
.md-cols b { display: block; font-size: 28px; font-weight: 800; color: var(--azul); margin-bottom: 10px; }
.md-cols p { font-size: 23px; line-height: 1.35; color: var(--azul2); }

.gd-fecha { text-align: right; font-style: italic; }
.gd-ref { text-decoration: underline; }
