:root {
  --azul: #092f57;
  --cielo: #399bd4;
  --vinotinto: #7b1836;
  --oro: #ffcf33;
  --papel: #fffaf2;
  --linea: rgba(9,47,87,.16);
  --texto: #1f252b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: transparent;
  color: var(--texto);
}
.itemsa-schedule-embed {
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 6px;
  background: #f8fbff;
}
.embed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--azul);
  color: white;
}
.embed-head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 5px;
  background: white;
  padding: 2px;
}
.embed-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.embed-head strong {
  font-size: 17px;
  line-height: 1.1;
}
.embed-head span {
  color: var(--oro);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}
.schedule-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 6px;
  background: var(--papel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(9,47,87,.08);
}
.schedule-card:hover,
.schedule-card:focus-visible {
  outline: 2px solid var(--cielo);
  outline-offset: 2px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #6d4a2f;
  color: white;
  font-weight: 900;
}
.card-title small {
  color: var(--oro);
  font-size: 11px;
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 470px;
  table-layout: fixed;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid rgba(9,47,87,.16);
  padding: 2px 1px;
  text-align: center;
  vertical-align: middle;
  font-size: 9px;
}
th {
  background: #ead5b4;
  color: var(--azul);
}
td:first-child,
th:first-child {
  width: 34px;
  background: #f7eddc;
  color: var(--azul);
  font-weight: 900;
}
.cell {
  display: grid;
  place-items: center;
  min-height: 18px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 3px;
  padding: 1px;
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
}
.empty { color: #9d9284; }
.break-cell,
.break-head {
  background: #dcc6a4 !important;
  color: #6d4a2f !important;
  font-weight: 900;
}
.active-day,
.active-period,
.active-cell {
  outline: 2px solid var(--vinotinto);
  outline-offset: -2px;
  background: #fff1bd !important;
  box-shadow: inset 0 0 0 1px var(--vinotinto), inset 0 0 0 2px var(--oro);
}
th.active-day,
td.active-period {
  background: var(--vinotinto) !important;
  color: var(--oro) !important;
}
.notice {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid var(--linea);
  border-radius: 6px;
  background: var(--papel);
  color: var(--vinotinto);
  font-weight: 900;
}
@media (max-width: 760px) {
  .schedule-grid { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .embed-head { padding: 8px; }
  .embed-head img { width: 34px; height: 34px; }
  .embed-head strong { font-size: 15px; }
  table { min-width: 420px; }
  th,
  td { font-size: 8px; }
  .cell { min-height: 16px; }
}
