/* ===== Estilos generales ===== */
.agenda-dinamica-wrapper {
  /*font-family: "Segoe UI", Roboto, Arial, sans-serif;*/
  margin: 20px 0;
  overflow-x: auto;
}

.agenda-dinamica {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-fondo, #fff);
  color: var(--color-texto, #333);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius:10px;
  overflow: hidden;
}

.agenda-dinamica th {
  background: var(--color-header, #222);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #fff;
}

.agenda-dinamica td {
  padding: 12px;
  border-bottom: 1px solid #263045;
  font-size: 13px;
  vertical-align: middle;
  transition: background .25s ease;
  text-align: left;
}

/* Hover */
.agenda-dinamica tbody tr:hover {
  /*background: rgba(0, 102, 204, 0.05);*/
  background: #0354b887;
  transition: 0.4s;
  color:#fff;
}

/* ===== Dark mode ===== */
.agenda-dinamica-wrapper.dark {
  --color-header: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  --color-texto: #f1f1f1;
  --color-fondo: #1c1c1c;
}

.agenda-dinamica-wrapper.dark .agenda-dinamica {
  border: 1px solid #444;
}

.agenda-dinamica-wrapper.dark th {
  color: #fff;
}

.agenda-dinamica-wrapper.dark td {
  border-bottom: 1px solid #444;
}

/* ===== Responsividad ===== */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .agenda-dinamica th, .agenda-dinamica td {
    font-size: 13px;
    padding: 10px;
  }
}

/* Móviles (<= 768px) → Modo tarjetas */
@media (max-width: 768px) {
  .agenda-dinamica,
  .agenda-dinamica thead,
  .agenda-dinamica tbody,
  .agenda-dinamica th,
  .agenda-dinamica td,
  .agenda-dinamica tr {
    display: block;
    width: 100%;
  }

  .agenda-dinamica thead {
    display: none;
  }

  .agenda-dinamica tr {
    margin-bottom: 15px;
    background: var(--color-fondo, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
  }

  .agenda-dinamica td {
    padding: 10px;
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .agenda-dinamica td:last-child {
    border-bottom: none;
  }

  .agenda-dinamica td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: var(--color-header, #222);
  }
}

.agenda-dinamica th.col-tema,
.agenda-dinamica td.col-tema {
    font-weight: bold;
    color: #0056b3;
	font-size: 14px;/* ejemplo */
}

