/* Anchor targets clear the sticky header */
.lm-explore,
.lm-characters,
.lm-videos,
.lm-shop,
.lm-hub,
#personajes,
#explora,
#videos,
#videos-home,
#tienda,
#categorias {
  scroll-margin-top: calc(var(--lm-header-h) + 12px);
}

/* Las Milpitas — video categories, Explore row, nav dropdown, coming soon */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------- */
/* Videos nav dropdown                                                         */
/* -------------------------------------------------------------------------- */
.lm-nav-videos {
  position: relative;
  display: flex;
  align-items: stretch;
}
.lm-nav-videos .lm-pill-videos {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-right: 12px;
  box-shadow: none;
  border-right: 0;
}
.lm-nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  padding: 0;
  margin: 0;
  border-radius: 0 999px 999px 0;
  font: inherit;
  color: var(--lm-ink);
  background: var(--lm-white);
  border: 2px solid rgba(89, 53, 16, 0.12);
  border-left: 1px solid rgba(89, 53, 16, 0.12);
  box-shadow: 0 4px 0 rgba(89, 53, 16, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lm-nav-caret svg {
  display: block;
  width: 14px;
  height: 14px;
}
.lm-nav-videos .lm-pill-videos,
.lm-nav-caret {
  position: relative;
}
.lm-nav-videos:hover .lm-pill-videos,
.lm-nav-videos:hover .lm-nav-caret,
.lm-nav-videos.is-open .lm-pill-videos,
.lm-nav-videos.is-open .lm-nav-caret,
.lm-nav-videos .lm-pill-videos.is-current,
.lm-nav-videos:has(.lm-pill-videos.is-current) .lm-nav-caret {
  background: var(--lm-marigold);
  color: #fff;
  border-color: transparent;
}
.lm-nav-videos:hover .lm-pill-videos,
.lm-nav-videos:hover .lm-nav-caret {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(89, 53, 16, 0.18);
}
.lm-nav-videos:hover .lm-pill-videos { box-shadow: none; }

.lm-videos-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  max-width: min(320px, calc(100vw - 16px));
  background: var(--lm-white);
  border: 3px solid var(--lm-marigold);
  border-radius: 22px;
  box-shadow: 0 10px 0 var(--lm-marigold-deep), var(--lm-shadow);
  padding: 10px;
  z-index: 1100;
}
.lm-videos-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none !important;
  color: var(--lm-ink) !important;
}
.lm-videos-menu a:hover,
.lm-videos-menu a:focus-visible {
  background: var(--lm-sun);
}
.lm-videos-menu a.is-current {
  background: #FFF3BF;
}
.lm-videos-menu .lm-menu-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lm-marigold-deep);
}
.lm-videos-menu a[data-cat="decorating"] .lm-menu-icon { color: var(--lm-marigold-deep); }
.lm-videos-menu a[data-cat="organize"] .lm-menu-icon { color: var(--lm-nopal-deep); }
.lm-videos-menu a[data-cat="puzzle"] .lm-menu-icon { color: var(--lm-turquoise-deep); }
.lm-videos-menu a[data-cat="adventure"] .lm-menu-icon { color: #D46A8A; }
.lm-videos-menu a em {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82em;
  color: var(--lm-ink-soft);
  display: block;
}

@media (max-width: 700px) {
  .lm-nav-caret { width: 32px; }
  .lm-videos-menu {
    right: 0;
    left: auto;
    min-width: 232px;
  }
}

/* -------------------------------------------------------------------------- */
/* Explore / category cards                                                    */
/* -------------------------------------------------------------------------- */
.lm-explore {
  background: var(--lm-sky);
  padding: 24px 0 40px;
}
.lm-hub {
  background: #FFF3BF;
  padding: 8px 0 8px;
}

.lm-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .lm-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

.lm-cat-card {
  --cat-color: var(--lm-marigold);
  --cat-deep: var(--lm-marigold-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  color: var(--lm-ink) !important;
  background: var(--lm-white);
  border: 5px solid var(--cat-color);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--cat-deep), var(--lm-shadow);
  padding: 20px 16px 18px;
  min-width: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lm-cat-card--decorating { --cat-color: var(--lm-marigold); --cat-deep: var(--lm-marigold-deep); }
.lm-cat-card--organize   { --cat-color: var(--lm-nopal); --cat-deep: var(--lm-nopal-deep); }
.lm-cat-card--puzzle     { --cat-color: var(--lm-turquoise); --cat-deep: var(--lm-turquoise-deep); }
.lm-cat-card--adventure  { --cat-color: var(--lm-pink); --cat-deep: #D46A8A; }

.lm-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 var(--cat-deep), var(--lm-shadow);
  color: var(--lm-ink) !important;
}
.lm-cat-card:active {
  transform: translateY(3px);
  box-shadow: 0 5px 0 var(--cat-deep);
}

.lm-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cat-color) 35%, #FFFDF8);
  color: var(--cat-deep);
  margin-bottom: 10px;
}
.lm-cat-icon svg { display: block; }

.lm-cat-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--lm-ink);
}
.lm-cat-card h3 span {
  display: block;
  font-weight: 700;
  font-size: 0.68em;
  color: var(--lm-ink-soft);
  margin-top: 2px;
}
.lm-cat-desc {
  margin: 0 0 12px;
  color: var(--lm-ink-soft);
  font-size: 0.98rem;
  line-height: 1.35;
}
.lm-cat-desc em {
  display: block;
  font-style: normal;
  font-size: 0.92em;
  margin-top: 2px;
}
.lm-cat-count {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  background: color-mix(in srgb, var(--cat-color) 28%, #FFFDF8);
  color: var(--lm-ink);
  border-radius: 999px;
  padding: 4px 12px;
}

/* -------------------------------------------------------------------------- */
/* Place chips                                                                 */
/* -------------------------------------------------------------------------- */
.lm-place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 16px 0 8px;
  padding: 0;
}
.lm-place-chips--static {
  margin: 0 0 12px;
  width: 100%;
}
.lm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--lm-white);
  border: 2px solid color-mix(in srgb, var(--lm-pink) 70%, #593510);
  color: var(--lm-ink) !important;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  box-shadow: 0 3px 0 #D46A8A;
}
a.lm-chip:hover,
a.lm-chip:focus-visible {
  background: #FDE4EC;
  transform: translateY(-1px);
}
.lm-chip.is-current {
  background: var(--lm-pink);
  color: #fff !important;
  border-color: transparent;
}
.lm-chip--plain {
  box-shadow: none;
  font-size: 0.75rem;
  padding: 4px 8px 4px 6px;
  pointer-events: none;
}
.lm-chip-icon {
  display: inline-flex;
  color: inherit;
}
.lm-chip-icon svg { display: block; }
.lm-chip-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.lm-chip-label em {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78em;
  opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/* Filter pills                                                                */
/* -------------------------------------------------------------------------- */
.lm-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 22px;
}
.lm-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(89, 53, 16, 0.14);
  background: var(--lm-white);
  color: var(--lm-ink);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(89, 53, 16, 0.16);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lm-filter-pill:hover { transform: translateY(-1px); }
.lm-filter-pill.is-current {
  background: var(--lm-marigold);
  color: #fff;
  border-color: transparent;
}
.lm-filter-pill--organize.is-current { background: var(--lm-nopal); }
.lm-filter-pill--puzzle.is-current { background: var(--lm-turquoise); }
.lm-filter-pill--adventure.is-current { background: #E07A9A; }
.lm-filter-n {
  display: inline-flex;
  min-width: 1.3em;
  justify-content: center;
  font-size: 0.8em;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0 6px;
}
.lm-filter-pill:not(.is-current) .lm-filter-n {
  background: var(--lm-cream-deep);
}

/* -------------------------------------------------------------------------- */
/* Video card extras                                                           */
/* -------------------------------------------------------------------------- */
.lm-video h3 a {
  color: var(--lm-ink) !important;
  text-decoration: none !important;
}
.lm-video h3 a:hover { color: var(--lm-marigold-deep) !important; text-decoration: underline !important; }

.lm-video-cat {
  margin: -4px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}
.lm-video-cat a {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lm-cream-deep);
  color: var(--lm-ink) !important;
  text-decoration: none !important;
}
.lm-video-cat a:hover { background: var(--lm-sun); }

.lm-video-thumb {
  position: absolute;
  inset: 0;
  display: block;
  background: #1a1208;
}
.lm-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.lm-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--lm-marigold);
  box-shadow: 0 6px 0 var(--lm-marigold-deep), 0 10px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.lm-play::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}
.lm-video-thumb:hover .lm-play,
.lm-video-thumb:focus-visible .lm-play {
  background: var(--lm-chile);
  box-shadow: 0 6px 0 var(--lm-chile-deep), 0 10px 18px rgba(0, 0, 0, 0.28);
}

.lm-single-video {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.lm-embed-single { margin-bottom: 8px; }
.lm-single-video .lm-more { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* -------------------------------------------------------------------------- */
/* Coming soon                                                                 */
/* -------------------------------------------------------------------------- */
.lm-soon {
  text-align: center;
  background: var(--lm-white);
  border: 5px dashed var(--lm-turquoise);
  border-radius: 32px;
  padding: 36px 20px 32px;
  box-shadow: var(--lm-shadow);
  margin: 8px auto 16px;
  max-width: 640px;
}
.lm-soon-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DFF6FA;
  color: var(--lm-turquoise-deep);
}
.lm-soon h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--lm-chile);
}
.lm-soon h2 span {
  display: block;
  font-size: 0.62em;
  color: var(--lm-turquoise-deep);
  font-weight: 700;
  margin-top: 4px;
}
.lm-soon p {
  margin: 0 auto 20px;
  max-width: 28rem;
  color: var(--lm-ink-soft);
  font-size: 1.05rem;
}
.lm-soon p em {
  display: block;
  font-style: normal;
  margin-top: 4px;
}

/* -------------------------------------------------------------------------- */
/* Category page hero tints                                                    */
/* -------------------------------------------------------------------------- */
.lm-page-hero--decorating { background: linear-gradient(180deg, #FFD18A 0%, #FFE7B8 100%); }
.lm-page-hero--organize   { background: linear-gradient(180deg, #C8E89A 0%, #E8F6D4 100%); }
.lm-page-hero--puzzle     { background: linear-gradient(180deg, #7ED0EC 0%, #A7E0F3 100%); }
.lm-page-hero--adventure  { background: linear-gradient(180deg, #F7B7C9 0%, #FDE4EC 100%); }
.lm-cat-hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 253, 248, 0.7);
  color: var(--lm-ink);
}
.lm-page-hero--decorating .lm-cat-hero-icon { color: var(--lm-marigold-deep); }
.lm-page-hero--organize .lm-cat-hero-icon { color: var(--lm-nopal-deep); }
.lm-page-hero--puzzle .lm-cat-hero-icon { color: var(--lm-turquoise-deep); }
.lm-page-hero--adventure .lm-cat-hero-icon { color: #D46A8A; }
.lm-page-hero .lm-kicker a { color: inherit; }

/* -------------------------------------------------------------------------- */
/* Motion                                                                      */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lm-cat-card,
  .lm-filter-pill,
  .lm-nav-caret,
  .lm-chip,
  .lm-play {
    transition: none !important;
  }
  .lm-cat-card:hover,
  .lm-filter-pill:hover,
  .lm-nav-videos:hover .lm-pill-videos,
  .lm-nav-videos:hover .lm-nav-caret,
  a.lm-chip:hover {
    transform: none !important;
  }
}

/* Hub and category archives: 2-up grid on phones instead of a sideways scroller */
@media (max-width: 699px) {
  .lm-video-grid--all {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    gap: 12px;
    padding: 0;
  }
  .lm-video-grid--all .lm-video {
    flex: none;
    width: auto;
    scroll-snap-align: unset;
    padding: 8px 8px 12px;
    border-width: 4px;
    border-radius: 18px;
  }
  .lm-video-grid--all .lm-video h3 {
    font-size: 0.88rem;
    min-height: 2.6em;
  }
}

.lm-footer-tag {
  text-wrap: pretty;
  padding: 0 8px;
}

/* Archives and singles: Astra uses a row flex container, which shrinks .lm-page to content width. */
.lm-site #page,
.lm-site .site-content,
.lm-site .ast-container {
  display: block !important;
}
.lm-page {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}

.lm-soon--decorating { border-color: var(--lm-marigold); }
.lm-soon--decorating .lm-soon-icon { background: #FFE7B8; color: var(--lm-marigold-deep); }
.lm-soon--organize { border-color: var(--lm-nopal); }
.lm-soon--organize .lm-soon-icon { background: #E8F6D4; color: var(--lm-nopal-deep); }
.lm-soon--puzzle { border-color: var(--lm-turquoise); }
.lm-soon--puzzle .lm-soon-icon { background: #DFF6FA; color: var(--lm-turquoise-deep); }
.lm-soon--adventure { border-color: var(--lm-pink); }
.lm-soon--adventure .lm-soon-icon { background: #FDE4EC; color: #D46A8A; }

/* -------------------------------------------------------------------------- */
/* Christmas featured row, breadcrumbs, HTML5 player                           */
/* -------------------------------------------------------------------------- */
.lm-xmas {
  background: linear-gradient(180deg, #FFD18A 0%, #FFE7B8 55%, #FFF3BF 100%);
  padding: 28px 0 36px;
  scroll-margin-top: calc(var(--lm-header-h) + 12px);
}
.lm-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--lm-ink);
}
.lm-crumbs a { color: var(--lm-ink) !important; text-decoration: none !important; }
.lm-crumbs a:hover { text-decoration: underline !important; }
.lm-crumbs-sep { opacity: 0.5; }

.lm-cat-grid--sub { margin: 18px 0 6px; }

.lm-embed-short video.lm-html5 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1208;
}
.lm-watch-here {
  text-align: center;
  margin: 8px 0 0;
}
.lm-mp4-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid rgba(89, 53, 16, 0.14);
  background: var(--lm-white);
  color: var(--lm-ink);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(89, 53, 16, 0.16);
}
.lm-mp4-fallback:hover { background: var(--lm-sun); }
.lm-video-dur {
  margin-left: 8px;
  font-weight: 600;
  opacity: 0.75;
}
.lm-video-desc {
  max-width: 36rem;
  margin: 16px auto 8px;
  text-align: center;
  color: var(--lm-ink-soft);
}
.lm-page-hero--holidays,
.lm-page-hero--christmas,
.lm-page-hero--birthday,
.lm-page-hero--halloween,
.lm-page-hero--dia-de-muertos,
.lm-page-hero--rooms { background: linear-gradient(180deg, #FFD18A 0%, #FFE7B8 100%); }
.lm-page-hero--spaces,
.lm-page-hero--bedroom,
.lm-page-hero--kitchen,
.lm-page-hero--toys { background: linear-gradient(180deg, #C8E89A 0%, #E8F6D4 100%); }
.lm-page-hero--shapes,
.lm-page-hero--colors,
.lm-page-hero--sizes { background: linear-gradient(180deg, #7ED0EC 0%, #A7E0F3 100%); }
.lm-page-hero--places { background: linear-gradient(180deg, #F7B7C9 0%, #FDE4EC 100%); }

@media (prefers-reduced-motion: reduce) {
  .lm-mp4-fallback { transition: none !important; }
}
