/* Franja compacta del directorio para la portada. */
.dt-home-strip {
  --dt-home-blue: #103f8c;
  --dt-home-ink: #133a78;
  --dt-home-muted: #59709a;
  --dt-home-line: #c8d9f0;
  --dt-home-paper: #fff;
  background: var(--dt-home-paper);
  border: 1px solid var(--dt-home-line);
  box-shadow: 0 1px 0 rgb(16 63 140 / 7%);
  color: var(--dt-home-ink);
  font-family: inherit;
  overflow: hidden;
}

.dt-home-strip *,
.dt-home-strip *::before,
.dt-home-strip *::after {
  box-sizing: border-box;
}

.dt-home-strip__head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d8e3f2;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(190px, 1fr);
  gap: 12px;
  min-height: 45px;
  overflow: hidden;
  padding: 4px 11px;
  position: relative;
}

.dt-home-strip__head::before,
.dt-home-strip__head::after {
  background-color: #eeb42f;
  background-image: url('../images/greca-talaverana-v1.png');
  /* El original contiene margen blanco arriba y abajo: encuadramos sólo el
     motivo vegetal de la greca para que la franja se lea como cerámica. */
  background-position: center 35%;
  background-repeat: repeat-x;
  background-size: 420px auto;
  content: "";
  height: 100%;
  position: absolute;
  top: 0;
  width: 22%;
}

.dt-home-strip__head::before { left: 0; }
.dt-home-strip__head::after { right: 0; transform: scaleX(-1); }

.dt-home-strip__head-copy {
  grid-column: 2;
  position: relative;
  text-align: center;
  z-index: 1;
}

.dt-home-strip__head h2 {
  color: var(--dt-home-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.dt-home-strip__head p {
  color: #516c9d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 2px 0 0;
}

.dt-home-strip__cta {
  align-items: center;
  background: var(--dt-home-blue);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%);
  color: #fff !important;
  display: inline-flex;
  font-size: .67rem;
  font-weight: 800;
  gap: 5px;
  grid-column: 3;
  justify-self: end;
  line-height: 1;
  min-height: 25px;
  padding: 6px 8px;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
}

.dt-home-strip__cta:hover,
.dt-home-strip__cta:focus-visible {
  background: #3d16db;
  color: #fff !important;
}

.dt-home-strip__cta:focus-visible,
.dt-home-strip__shortcuts a:focus-visible,
.dt-home-strip__card a:focus-visible,
.dt-home-strip__empty:focus-visible {
  outline: 3px solid #6336ff;
  outline-offset: 2px;
}

.dt-home-strip__body {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.75fr);
}

.dt-home-strip__shortcuts {
  align-items: start;
  background: linear-gradient(180deg, #f9fbff, #f3f7fd);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 8px 7px 7px;
}

.dt-home-strip__shortcuts a {
  align-items: center;
  color: var(--dt-home-ink);
  display: flex;
  flex-direction: column;
  font-size: .62rem;
  font-weight: 800;
  gap: 4px;
  line-height: 1.1;
  min-width: 0;
  padding: 0 2px;
  text-align: center;
  text-decoration: none;
}

.dt-home-strip__shortcuts a:hover { color: #4018d5; }

.dt-home-strip__icon {
  align-items: center;
  background: #e8efff;
  border-radius: 50%;
  color: #1755c6;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: transform .16s ease;
  width: 34px;
}

.dt-home-strip__shortcuts a:hover .dt-home-strip__icon { transform: translateY(-2px); }
.dt-home-strip__icon svg { display: block; height: 18px; width: 18px; }
.dt-home-strip__shortcuts a:nth-child(1) .dt-home-strip__icon { background: #fff0df; color: #e56d18; }
.dt-home-strip__shortcuts a:nth-child(2) .dt-home-strip__icon { background: #ffe5ec; color: #e81944; }
.dt-home-strip__shortcuts a:nth-child(3) .dt-home-strip__icon { background: #e8f0ff; color: #2162d5; }
.dt-home-strip__shortcuts a:nth-child(4) .dt-home-strip__icon { background: #efe7ff; color: #6541bd; }
.dt-home-strip__shortcuts a:nth-child(5) .dt-home-strip__icon { background: #ddf5e9; color: #287f60; }
.dt-home-strip__shortcuts a:nth-child(6) .dt-home-strip__icon { background: #fff0c8; color: #cb8a09; }

.dt-home-strip__cards {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  padding: 6px;
}

.dt-home-strip__card {
  border: 1px solid #d7e2f0;
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  overflow: hidden;
}

.dt-home-strip__image {
  background: #edf3fa;
  display: block;
  overflow: hidden;
}

.dt-home-strip__image img,
.dt-home-strip__image-fallback {
  aspect-ratio: 2 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.dt-home-strip__image img { transition: transform .2s ease; }
.dt-home-strip__card:hover .dt-home-strip__image img { transform: scale(1.035); }

.dt-home-strip__image-fallback {
  align-items: center;
  background: linear-gradient(135deg, #eaf1fb, #fdf7e9);
  color: #4770b0;
  display: flex;
  justify-content: center;
}

.dt-home-strip__image-fallback svg { height: 25px; width: 25px; }

.dt-home-strip__card > div { min-width: 0; padding: 5px 6px 6px; }

.dt-home-strip__card p {
  color: #3563aa;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.05;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dt-home-strip__card h3 {
  color: var(--dt-home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  min-height: 2.1em;
}

.dt-home-strip__card h3 a { color: inherit; text-decoration: none; }
.dt-home-strip__card h3 a:hover { color: #3e17df; }

.dt-home-strip__location {
  color: #62799f;
  display: block;
  font-size: .54rem;
  line-height: 1.1;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-home-strip__location::before { content: "⌖ "; color: #245aa9; }

.dt-home-strip__empty {
  align-items: center;
  background: #f8fbff;
  border: 1px dashed #a9c2e2;
  color: var(--dt-home-blue);
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 80px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
}

.dt-home-strip__empty strong { font-family: Georgia, "Times New Roman", serif; font-size: .84rem; }
.dt-home-strip__empty span { color: var(--dt-home-muted); font-size: .67rem; }

@media (max-width: 880px) {
  .dt-home-strip__body { grid-template-columns: 1fr; }
  .dt-home-strip__shortcuts { border-bottom: 1px solid #d8e3f2; padding: 8px 14px; }
}

@media (max-width: 620px) {
  .dt-home-strip__head { grid-template-columns: 1fr auto; }
  .dt-home-strip__head::before,
  .dt-home-strip__head::after { display: none; }
  .dt-home-strip__head-copy { grid-column: 1; text-align: left; }
  .dt-home-strip__cta { grid-column: 2; }
  .dt-home-strip__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-home-strip__card h3 { font-size: .78rem; }
}

@media (max-width: 430px) {
  .dt-home-strip__head p { display: none; }
  .dt-home-strip__head h2 { font-size: .98rem; }
  .dt-home-strip__cta { font-size: .59rem; padding: 6px; }
  .dt-home-strip__shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .dt-home-strip__icon { height: 31px; width: 31px; }
}
