/* Wonderland Essentials — Espacios */
.wl.wl-spaces {
  background: var(--wl-cream);
  padding: 88px 0 108px;
}
.wl.wl-spaces > .wl-wrap { padding-left: 56px; padding-right: 56px; }

.wl .wl-spaces__head {
  display: grid;
  grid-template-columns: 560px 458px;
  justify-content: start;
  gap: 110px;
  align-items: start;
  margin-bottom: 40px;
}
.wl .wl-spaces__eyebrow { margin-bottom: 16px; color: var(--wl-gold-deep); }
.wl .wl-spaces__title { color: var(--wl-blue); max-width: 560px; }
.wl .wl-spaces__intro { padding-top: 14px; }
.wl .wl-spaces__text { color: #BE952E; max-width: 458px; }
.wl .wl-spaces__text p { margin: 0; }
.wl .wl-spaces__text p + p { margin-top: 16px; }
.wl .wl-spaces__text strong { color: var(--wl-blue); font-weight: 700; }

/* ---------- Rejilla de tarjetas ---------- */
.wl .wl-spaces__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--wl-line);
  border: 1px solid var(--wl-line);
  align-items: stretch;
}
.wl .wl-spaces__card {
  color: inherit;
  --wl-card-accent: var(--wl-gold-deep);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #FBF8F0;
  border-top: 2px solid var(--wl-card-accent);
  transition: background .2s ease;
}
.wl .wl-spaces__card:hover { background: #F4ECD8; }
.wl .wl-spaces__image { height: 220px; overflow: hidden; position: relative; background: #ddd; }
.wl .wl-spaces__image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .35s ease;
}
.wl .wl-spaces__card:hover .wl-spaces__image img { transform: scale(1.018); }
.wl .wl-spaces__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 22px 14px;
  min-height: 250px;
}
.wl .wl-spaces__card-title {
  font-family: var(--wl-font-display);
  font-size: clamp(1.375rem, 2vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--wl-gold-deep);
}
.wl .wl-spaces__card-text { display: flex; flex-direction: column; gap: 10px; }
.wl .wl-spaces__card-text p {
  margin: 0;
  font-family: var(--wl-font-body);
  font-size: 15px;
  line-height: 1.42;
  color: #4B4942;
}
/* Las etiquetas van SIEMPRE pegadas al final del texto de cada espacio */
.wl .wl-spaces__tags {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
}
.wl .wl-spaces__tag {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--wl-font-body);
  font-size: 7.6px;
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
  padding: 4px 7px;
  min-height: 20px;
  border-radius: 999px;
  background: #EDE3C4;
  color: #5D5747;
}

@media (max-width: 1180px) {
  .wl.wl-spaces > .wl-wrap { padding-left: 44px; padding-right: 44px; }
  .wl .wl-spaces__head { grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr); gap: 56px; }
  .wl .wl-spaces__title { max-width: none; }
  .wl .wl-spaces__text { max-width: 420px; }
  .wl .wl-spaces__image { height: 200px; }
  .wl .wl-spaces__body { padding: 15px 18px 14px; }
  .wl .wl-spaces__tag { font-size: 7px; padding: 4px 6px; }
}
@media (max-width: 960px) {
  .wl .wl-spaces__grid { grid-template-columns: repeat(2, 1fr); }
  .wl .wl-spaces__tags { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 920px) {
  .wl.wl-spaces > .wl-wrap { padding-left: 30px; padding-right: 30px; }
  .wl .wl-spaces__head { grid-template-columns: 1fr; gap: 24px; }
  .wl .wl-spaces__intro { padding-top: 0; }
  .wl .wl-spaces__text { max-width: 640px; }
}
@media (max-width: 620px) {
  .wl.wl-spaces { padding-top: 74px; padding-bottom: 84px; }
  .wl.wl-spaces > .wl-wrap { padding-left: 22px; padding-right: 22px; }
  .wl .wl-spaces__head { gap: 20px; margin-bottom: 34px; }
  .wl .wl-spaces__title { line-height: 1; }
  .wl .wl-spaces__text { max-width: none; }
  .wl .wl-spaces__grid { grid-template-columns: 1fr; }
  .wl .wl-spaces__image { height: 230px; }
  .wl .wl-spaces__body { min-height: auto; padding: 18px 20px 16px; }
  .wl .wl-spaces__tag { font-size: 9px; padding: 5px 8px; }
}
