/* Portal de ventas (BORRADOR) — piezas propias sobre estilos.css de Selección. */
:root { --fort: #5FBBA0; --fort-bg: #E8F6F1; --desa: #C9A43A; --desa-bg: #FBF4DD; --vac: #E07A6E; --vac-bg: #FBEAE7; --pend: #9AA1A7; --pend-bg: #F0F2F4; }

.borrador-cinta { background: #01516A; color: #fff; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 6px 12px; }
.entrada-card { padding: 34px 34px 28px; }
.entrada-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.entrada-logo img { max-height: 80px; width: auto; height: auto; object-fit: contain; }

/* Navegación por pastillas bajo el encabezado (como Crece) */
.nav-pills { max-width: 1180px; margin: 0 auto; padding: 0 16px 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.nav-pills a { text-decoration: none; color: #55595e; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: #F0F2F4; }
.nav-pills a.on { background: var(--oscuro); color: #fff; }
.nav-pills a:hover:not(.on) { background: var(--primary-soft); color: var(--oscuro); }

/* Héroe */
.heroe { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.heroe .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); color: var(--oscuro); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.heroe h1 { margin: 0; }
.heroe .sub { color: var(--gris); font-size: 14px; }

/* Estados de competencia */
.est { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.est::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.est.fortaleza { background: var(--fort-bg); color: #2E8B72; }
.est.desarrollo { background: var(--desa-bg); color: #8C6D12; }
.est.vacio { background: var(--vac-bg); color: #B3483C; }
.est.pendiente { background: var(--pend-bg); color: #6C737A; }
.est.estilo { background: var(--primary-soft); color: var(--oscuro); }

.comp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .comp-grid { grid-template-columns: 1fr; } }
.comp { border: 1px solid var(--borde); border-radius: 14px; padding: 14px 16px; background: #fff; }
.comp h3 { font-size: 14px; margin: 0 0 6px; }
.comp .det { font-size: 13px; color: var(--gris); margin-top: 8px; line-height: 1.4; }
.comp .val { font-weight: 700; color: var(--oscuro); font-size: 13px; }
.grupo-tit { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); font-weight: 700; margin: 16px 0 8px; }

.resumen-fd { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.resumen-fd .n { font-size: 26px; font-weight: 800; color: var(--oscuro); line-height: 1; }
.cifra { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; }
.cifra .n { font-size: 30px; font-weight: 800; color: var(--oscuro); line-height: 1.1; }
.cifra .t { font-size: 13px; color: var(--gris); }

/* Ruta */
.etapa { border: 1px solid var(--borde); border-radius: 16px; background: #fff; margin-bottom: 14px; overflow: hidden; }
.etapa-cab { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #FAFBFB; border-bottom: 1px solid var(--borde); }
.etapa-cab .num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.etapa.cerrada .etapa-cab .num { background: #C5CBD0; }
.etapa.cerrada .modulo { opacity: .55; }
.etapa-cab h3 { margin: 0; flex: 1; }
.modulo { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #F1F3F4; }
.modulo:last-child { border-bottom: 0; }
.modulo .ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--primary-soft); }
.modulo.hecho .ico { background: var(--fort-bg); }
.modulo .tit { font-weight: 600; font-size: 14px; }
.modulo .tipo { font-size: 12px; color: var(--gris); }
.modulo .det { font-size: 13px; color: var(--gris); }

/* Tablero */
.tabla-eq { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla-eq th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--borde); }
.tabla-eq td { padding: 10px 8px; border-bottom: 1px solid #F1F3F4; vertical-align: middle; }
.tabla-eq tr.click { cursor: pointer; }
.tabla-eq tr.click:hover td { background: #F7FAFB; }
.celda { display: inline-block; width: 22px; height: 22px; border-radius: 6px; }
.celda.fortaleza { background: var(--fort); }
.celda.desarrollo { background: #EBC96A; }
.celda.vacio { background: var(--vac); }
.celda.pendiente { background: #E6E9EB; }
.celda.estilo { background: var(--azul-4); }
.matriz th.rot { height: 120px; white-space: nowrap; vertical-align: bottom; padding-bottom: 6px; }
.matriz th.rot > div { transform: rotate(-50deg); transform-origin: left bottom; width: 26px; font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--oscuro); }
.matriz td.c { text-align: center; padding: 6px 4px; }
.puntos { display: inline-flex; gap: 4px; }
.puntos i { width: 9px; height: 9px; border-radius: 50%; background: #E1E5E8; display: inline-block; }
.puntos i.si { background: var(--primary); }
.mini-barra { display: inline-block; width: 90px; height: 8px; background: #EEF1F3; border-radius: 99px; overflow: hidden; vertical-align: middle; }
.mini-barra span { display: block; height: 100%; background: var(--primary); }
.leyenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--gris); align-items: center; }
.leyenda span { display: inline-flex; gap: 6px; align-items: center; }
.leyenda .celda { width: 14px; height: 14px; border-radius: 4px; }
.nota-sector { background: var(--mid-bg); color: #6E5612; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 6px 0 10px; }

/* Chat (coach y simulador) */
.chat { display: flex; flex-direction: column; height: min(68vh, 640px); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 6px 2px 12px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: normal; }
.msg.yo { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.ia { align-self: flex-start; background: #F2F5F7; color: var(--texto); border-bottom-left-radius: 4px; }
.msg.cliente { align-self: flex-start; background: #FFF4E5; color: #4A3A1E; border-bottom-left-radius: 4px; }
.msg .quien-msg { font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .05em; }
.chat-in { display: flex; gap: 8px; border-top: 1px solid var(--borde); padding-top: 12px; }
.chat-in textarea { min-height: 46px; height: 46px; flex: 1; }
.sugerencias { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sugerencias button { border: 1px solid var(--borde); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--oscuro); }
.sugerencias button:hover { background: var(--primary-soft); }
.aviso-conf { background: var(--primary-soft); color: var(--oscuro); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.escribiendo { align-self: flex-start; color: var(--gris); font-size: 13px; font-style: italic; }

/* Prueba técnica */
.preg { border: 1px solid var(--borde); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.preg .enun { font-weight: 600; margin-bottom: 10px; }
.preg label.op { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--texto); font-size: 14px; padding: 8px 10px; border-radius: 10px; cursor: pointer; margin: 4px 0; border: 1px solid transparent; }
.preg label.op:hover { background: #F7FAFB; }
.preg label.op.bien { background: var(--fort-bg); border-color: var(--fort); }
.preg label.op.mal { background: var(--vac-bg); border-color: var(--vac); }
.preg .expl { font-size: 13px; color: var(--gris); margin-top: 8px; }

/* Armador */
.arm-etapa { border: 1px dashed #C8D3D8; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; background: #FCFDFD; }
.arm-fila { display: grid; grid-template-columns: 150px 1fr 1fr 130px auto; gap: 8px; align-items: center; margin: 6px 0; }
.arm-fila input, .arm-fila select { padding: 7px 9px; font-size: 13px; }
.subtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .arm-fila { grid-template-columns: 1fr 1fr; } .msg { max-width: 92%; } .matriz th.rot { height: 90px; } }

.fab-coach { position: fixed; bottom: 28px; right: 28px; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,129,167,0.18); border: 1px solid #ECEBEB; z-index: 40; text-decoration: none; }
.fab-coach img { max-height: 40px; max-width: 40px; width: auto; height: auto; object-fit: contain; display: block; }

.topbar .saltos[hidden] { display: none; }
