/* Estilos de componentes modulares, tarjetas y simulador Power BI */

.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 25, 50, 0.08);
}

.step {
  display: flex;
  gap: 14px;
  margin: 16px 0;
  align-items: flex-start;
}

.num {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(51, 75, 154, 0.25);
}

.note, .case, .exercise {
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}

.note {
  background: #eef3ff;
  border-left: 5px solid var(--blue);
}

.case {
  background: #fff9eb;
  border: 1px solid #ead79f;
  border-left: 5px solid #d4a72c;
}

.exercise {
  background: #f6f7fb;
  border: 1px dashed #9aa5c6;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

th, td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #eef1fa;
  color: var(--navy);
  font-weight: 600;
}

tr:nth-child(even) td {
  background: #fafbfe;
}

code {
  background: #eef0f5;
  color: #273154;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

/* Simulador de interfaz de Power BI */
.shot {
  border: 1px solid #cfd5e3;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f5f8;
  margin: 26px 0;
  box-shadow: 0 8px 24px rgba(17, 21, 44, 0.08);
}

.shotbar {
  height: 36px;
  background: #22263a;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6a718c;
}

.dot:nth-child(1) { background: #ff5f56; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.apptitle {
  margin-left: 10px;
  color: #d1d6e8;
  font-weight: 500;
}

.ribbon {
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #d8dce6;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  font-size: 12px;
  overflow-x: auto;
}

.ribbonbtn {
  padding: 8px 14px;
  border-radius: 6px;
  background: #eef0f5;
  white-space: nowrap;
  font-size: 12.5px;
}

.ribbonbtn.hi {
  outline: 2.5px solid var(--red);
  background: #fff0f1;
  color: #a82731;
  font-weight: bold;
}

.workspace {
  display: flex;
  min-height: 260px;
  background: #f4f5f8;
}

.leftbar {
  width: 48px;
  background: #ffffff;
  border-right: 1px solid #d8dce6;
  text-align: center;
  color: #5d6783;
}

.leftbar div {
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.leftbar div:hover {
  background: #f0f2f8;
}

.canvas {
  flex: 1;
  padding: 20px;
  position: relative;
}

.fake-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}

.fields {
  width: 215px;
  background: #ffffff;
  border-left: 1px solid #d8dce6;
  padding: 16px;
  font-size: 12px;
}

.menu, .dialog {
  background: #ffffff;
  border: 1px solid #cbd1df;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(17, 21, 44, 0.16);
  padding: 20px;
  max-width: 440px;
  margin: 20px auto;
}

.menuitem {
  padding: 10px 14px;
  margin-top: 8px;
  border-radius: 6px;
  background: #f1f3f7;
  font-size: 13.5px;
}

.menuitem:first-of-type {
  outline: 2.5px solid var(--red);
}

button {
  background: var(--blue);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 9px 18px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #253978;
}

button.secondary {
  background: #687086;
  margin-left: 8px;
}

button.secondary:hover {
  background: #525a6f;
}

.selected {
  padding: 12px;
  background: #eef3ff;
  border: 2px solid var(--blue);
  border-radius: 8px;
}

.source {
  padding: 12px 0;
}

.columns {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
}

.preview {
  background: #f7f8fb;
  padding: 14px;
  border-radius: 8px;
}

.pq {
  display: flex;
  height: 230px;
}

.queries {
  width: 180px;
  background: #ffffff;
  border-right: 1px solid #ddd;
  padding: 14px;
}

.queries p {
  padding: 8px 10px;
  background: #eef3ff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.pqdata {
  flex: 1;
  padding: 14px;
  overflow: auto;
}

.steps {
  font-size: 11.5px;
  background: #ffffff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #e2e6f0;
}

.pqdata table {
  font-size: 11.5px;
  margin: 0;
}

/* Dashboards Interactivos con Chart.js (Estilo Power BI) */
.dash {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(20, 25, 50, 0.07);
}

.dash .title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dash .kpi {
  background: #f8f9fd;
  border: 1px solid #e1e6f2;
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.dash .kpi b {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dash .kpi strong {
  display: block;
  font-size: 20px;
  color: var(--navy);
  font-weight: 800;
}

.dash .charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.dash .chart-card {
  background: #ffffff;
  border: 1px solid #e1e6f2;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.dash .chart-card b {
  display: block;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.dash .chart-container {
  position: relative;
  height: 220px;
  width: 100%;
}

/* Herramientas, tareas, desafíos y flujos interactivos */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.tool {
  background: #eef3ff;
  border: 1px solid #ccd5f0;
  color: #263b7d;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
}

.task {
  background: #f5f7fc;
  border: 1px dashed #9ba7c6;
  padding: 18px 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.challenge {
  background: #fff0f1;
  border-left: 5px solid #e64b55;
  padding: 18px 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.bar {
  height: 13px;
  background: #e0e5f0;
  border-radius: 5px;
  margin: 8px 0;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--blue, #6377b7);
  border-radius: 5px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.flow div {
  background: #eef3ff;
  border: 1px solid #ccd5f0;
  padding: 11px;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  color: var(--navy);
}

.objective {
  background: #eef3ff;
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}



