/*
Theme Name: Las Milpitas
Theme URI: https://lasmilpitas.com
Description: Joyful kids-brand child theme for Las Milpitas. Parent: Astra.
Author: Latin Digital Network
Template: astra
Version: 1.1.0
Text Domain: lasmilpitas
*/

/* -------------------------------------------------------------------------- */
/* Tokens                                                                      */
/* -------------------------------------------------------------------------- */
:root {
  --lm-corn: #F5C518;
  --lm-sun: #FEE66F;
  --lm-marigold: #F08A24;
  --lm-marigold-deep: #C46A12;
  --lm-chile: #E23D28;
  --lm-chile-deep: #B22A1A;
  --lm-nopal: #7CB342;
  --lm-nopal-deep: #5A8F28;
  --lm-turquoise: #4EC4D4;
  --lm-turquoise-deep: #2A9AAB;
  --lm-sky: #A7E0F3;
  --lm-sky-deep: #8EC8F0;
  --lm-cream: #FFF8E7;
  --lm-cream-deep: #FBF4D6;
  --lm-pink: #F49AB4;
  --lm-ink: #593510;
  --lm-ink-soft: #7A4A1C;
  --lm-white: #FFFDF8;
  --lm-shadow: 0 12px 28px rgba(89, 53, 16, 0.14);
  --lm-radius: 28px;
  --lm-header-h: 108px;
  --font-display: "Baloo 2", "Trebuchet MS", "Comic Sans MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", Tahoma, sans-serif;
}

@media (max-width: 700px) {
  :root { --lm-header-h: 118px; }
}

/* -------------------------------------------------------------------------- */
/* Hide default Astra chrome                                                   */
/* -------------------------------------------------------------------------- */
.lm-site #masthead,
.lm-site .ast-mobile-header-wrap,
.lm-site .main-header-bar,
.lm-site .ast-primary-header-bar,
.lm-site .ast-above-header,
.lm-site .ast-below-header,
.lm-site .site-header,
.lm-site .site-footer,
.lm-site .ast-footer-overlay,
.lm-site .ast-small-footer,
.lm-site #colophon,
.lm-site .entry-header,
.lm-site .ast-archive-title,
.lm-site .ast-breadcrumbs-wrapper,
.lm-site .ast-builder-grid-row,
.lm-site header.site-header,
.lm-site #ast-scroll-top {
  display: none !important;
}

html,
body.lm-site,
.lm-site #page {
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden;
}

.lm-site #page,
.lm-site #content,
.lm-site .site-content,
.lm-site .ast-container,
.lm-site #primary,
.lm-site .entry-content,
.lm-site article.page,
.lm-site .ast-page-builder-template .site-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.lm-site .entry-content > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.lm-site,
.lm-site body,
body.lm-site,
body.theme-lasmilpitas {
  background: var(--lm-cream);
  font-family: var(--font-body);
  color: var(--lm-ink);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-top: var(--lm-header-h);
}

body.admin-bar {
  padding-top: calc(var(--lm-header-h) + 32px);
}
@media (max-width: 782px) {
  body.admin-bar { padding-top: calc(var(--lm-header-h) + 46px); }
}

.lm-site a {
  color: var(--lm-chile-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.lm-site a:hover { color: var(--lm-marigold-deep); }

.lm-site :focus-visible {
  outline: 3px solid var(--lm-turquoise-deep);
  outline-offset: 3px;
}

.lm-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lm-ink);
  color: #fff !important;
  padding: 8px 16px;
  z-index: 2000;
  border-radius: 0 0 12px 0;
}
.lm-skip:focus { left: 0; }

/* -------------------------------------------------------------------------- */
/* Sticky header + papel picado                                                */
/* -------------------------------------------------------------------------- */
.lm-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--lm-cream);
  box-shadow: 0 8px 22px rgba(89, 53, 16, 0.12);
}
body.admin-bar .lm-chrome { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .lm-chrome { top: 46px; }
}

.lm-papel {
  height: 30px;
  background-color: var(--lm-cream);
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 288px 36px;
  box-shadow: inset 0 5px 0 #6B4316;
}
.lm-footer .lm-papel,
.lm-papel-footer {
  background-color: #3E6B1C;
  box-shadow: inset 0 5px 0 #2A4A12;
}

.lm-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 6px 20px 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.lm-logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.lm-logo img {
  display: block;
  height: 96px;
  width: auto;
  max-width: 250px;
}

.lm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.lm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none !important;
  color: var(--lm-ink) !important;
  background: var(--lm-white);
  border: 2px solid rgba(89, 53, 16, 0.12);
  box-shadow: 0 4px 0 rgba(89, 53, 16, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.lm-pill.is-current,
.lm-pill-shop {
  border-color: transparent;
}
.lm-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(89, 53, 16, 0.18);
  color: var(--lm-ink) !important;
}
.lm-pill:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(89, 53, 16, 0.18);
}
.lm-pill-home.is-current,
.lm-pill-home:hover { background: var(--lm-turquoise); color: #fff !important; }
.lm-pill-videos.is-current,
.lm-pill-videos:hover { background: var(--lm-marigold); color: #fff !important; }
.lm-pill-shop { background: var(--lm-chile); color: #fff !important; }
.lm-pill-shop:hover { background: var(--lm-chile-deep); color: #fff !important; }

.lm-label-short { display: none; }

@media (max-width: 700px) {
  .lm-header-bar {
    padding: 4px 8px 10px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .lm-logo img {
    height: 58px;
    max-width: 118px;
  }
  .lm-pill {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  .lm-nav { flex-wrap: nowrap; gap: 6px; }
  .lm-label-full { display: none; }
  .lm-label-short { display: inline; }
  .lm-papel { height: 22px; background-size: 216px 27px; }
}



/* -------------------------------------------------------------------------- */
/* Shared layout                                                               */
/* -------------------------------------------------------------------------- */
.lm-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.lm-wave {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  line-height: 0;
  color: var(--lm-cream);
}
.lm-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lm-wave-sky { color: var(--lm-sky); }
.lm-wave-cream { color: var(--lm-cream); }
.lm-wave-yellow { color: #FFF3BF; }
.lm-wave-mint { color: #E8F6D4; }
.lm-wave-invert { transform: scaleY(-1); }

.lm-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  text-align: center;
  color: var(--lm-ink);
  margin: 0 0 8px;
}
.lm-section-title span {
  display: block;
  font-weight: 700;
  font-size: 0.62em;
  color: var(--lm-ink-soft);
  margin-top: 4px;
}
.lm-section-lead {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 28px;
  color: var(--lm-ink-soft);
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */
.lm-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, #FEE66F 0 70px, rgba(254, 230, 111, 0) 71px),
    radial-gradient(circle at 92% 8%, rgba(254, 230, 111, 0.45) 0 100px, rgba(254, 230, 111, 0) 101px),
    linear-gradient(180deg, #7ED0EC 0%, #A7E0F3 48%, #D8F3FA 100%);
  padding: 20px 0 0;
}
.lm-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  padding: 8px 0 8px;
}
.lm-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: var(--lm-white);
  color: var(--lm-chile);
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0 0 10px;
  box-shadow: 0 3px 0 rgba(89, 53, 16, 0.12);
}
.lm-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--lm-chile);
  margin: 0 0 14px;
  text-wrap: balance;
}
.lm-hero h1 span {
  display: block;
  color: var(--lm-turquoise-deep);
  font-size: 0.7em;
  font-weight: 700;
  margin-top: 4px;
}
.lm-lead {
  font-size: 1.08rem;
  color: var(--lm-ink);
  margin: 0 0 22px;
  max-width: 36rem;
}
.lm-lead em {
  font-style: normal;
  display: block;
  color: var(--lm-ink-soft);
  margin-top: 6px;
}

.lm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--lm-marigold);
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 7px 0 var(--lm-marigold-deep), 0 12px 20px rgba(89, 53, 16, 0.18);
  animation: lm-bounce 1.7s ease-in-out infinite;
  transform-origin: center;
}
.lm-cta:hover {
  background: #f59a2e;
  color: #fff !important;
  animation: none;
  transform: translateY(2px);
  box-shadow: 0 5px 0 var(--lm-marigold-deep), 0 8px 14px rgba(89, 53, 16, 0.16);
}
.lm-cta:active {
  transform: translateY(7px);
  box-shadow: 0 0 0 var(--lm-marigold-deep);
}

@keyframes lm-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.lm-hero-art {
  position: relative;
  line-height: 0;
}
.lm-hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
  border: 6px solid var(--lm-white);
  box-shadow: var(--lm-shadow), 0 8px 0 rgba(42, 154, 171, 0.35);
  background: var(--lm-cream-deep);
}

@media (min-width: 860px) {
  .lm-hero-inner {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 32px;
    padding: 20px 0 12px;
    min-height: 480px;
  }
  .lm-hero-art img { border-radius: 40px; }
}

/* -------------------------------------------------------------------------- */
/* Characters                                                                  */
/* -------------------------------------------------------------------------- */
.lm-characters {
  background: var(--lm-cream);
  padding: 36px 0 20px;
}
.lm-char-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 900px) {
  .lm-char-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

.lm-char {
  --char-color: var(--lm-turquoise);
  background: var(--lm-white);
  border-radius: 28px;
  padding: 8px 12px 16px;
  border: 4px solid var(--char-color);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--char-color) 72%, #593510), var(--lm-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lm-char--celes { --char-color: #8EC8F0; }
.lm-char--lotita { --char-color: #F5C518; }
.lm-char--perla { --char-color: #D4A574; }
.lm-char--la-rosita { --char-color: #E85A7A; }
.lm-char--guaco { --char-color: #5BA84A; }
.lm-char--chapu { --char-color: #8BC34A; }

.lm-char-art {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--char-color) 55%, white) 0 70px, transparent 71px);
  margin-bottom: 6px;
}
.lm-char-art img {
  height: 195px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.lm-char h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  margin: 0 0 2px;
  color: var(--lm-ink);
  line-height: 1.1;
}
.lm-char .lm-role {
  font-size: 0.88rem;
  color: var(--lm-ink-soft);
  margin: 0 0 8px;
}
.lm-char .lm-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--lm-ink);
  margin: 0;
  line-height: 1.25;
}
.lm-char .lm-line span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--lm-ink-soft);
  margin-top: 2px;
}

@media (max-width: 700px) {
  .lm-char { padding: 6px 8px 12px; border-radius: 22px; border-width: 3px; }
  .lm-char-art { height: 150px; }
  .lm-char-art img { height: 146px; }
  .lm-char h3 { font-size: 1.15rem; }
  .lm-char .lm-line { font-size: 0.82rem; }
  .lm-char .lm-role { font-size: 0.75rem; }
}
@media (min-width: 900px) {
  .lm-char-art { height: 250px; }
  .lm-char-art img { height: 244px; }
}

/* -------------------------------------------------------------------------- */
/* Videos                                                                      */
/* -------------------------------------------------------------------------- */
.lm-videos {
  background: #FFF3BF;
  padding: 12px 0 28px;
}
.lm-videos-head { padding-top: 8px; }

.lm-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.lm-video {
  --vcolor: var(--lm-turquoise);
  background: var(--lm-white);
  border-radius: 24px;
  border: 5px solid var(--vcolor);
  padding: 10px 10px 16px;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--vcolor) 70%, #593510), 0 14px 24px rgba(89, 53, 16, 0.12);
  transition: transform 0.25s ease;
  min-width: 0;
}
.lm-video:nth-child(6n+1) { --vcolor: #E23D28; }
.lm-video:nth-child(6n+2) { --vcolor: #F08A24; }
.lm-video:nth-child(6n+3) { --vcolor: #F5C518; }
.lm-video:nth-child(6n+4) { --vcolor: #7CB342; }
.lm-video:nth-child(6n+5) { --vcolor: #4EC4D4; }
.lm-video:nth-child(6n+6) { --vcolor: #F49AB4; }

.lm-video h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--lm-ink);
  text-wrap: balance;
}
.lm-embed-short {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1208;
}
.lm-embed-short iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lm-video:hover {
  animation: lm-wiggle 0.5s ease-in-out;
}
@keyframes lm-wiggle {
  0%, 100% { transform: rotate(0) translateY(0); }
  25% { transform: rotate(-1.5deg) translateY(-4px); }
  75% { transform: rotate(1.5deg) translateY(-4px); }
}

@media (max-width: 699px) {
  .lm-video-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 4px 4px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--lm-marigold) var(--lm-cream-deep);
  }
  .lm-video {
    flex: 0 0 min(270px, 78vw);
    scroll-snap-align: start;
  }
}
@media (min-width: 700px) {
  .lm-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .lm-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.lm-more {
  text-align: center;
  margin: 28px 0 8px;
}

.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--lm-turquoise);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--lm-turquoise-deep), 0 10px 16px rgba(89, 53, 16, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lm-btn:hover {
  color: #fff !important;
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--lm-turquoise-deep), 0 6px 12px rgba(89, 53, 16, 0.12);
}
.lm-btn-chile {
  background: var(--lm-chile);
  box-shadow: 0 6px 0 var(--lm-chile-deep), 0 10px 16px rgba(89, 53, 16, 0.14);
}
.lm-btn-chile:hover {
  box-shadow: 0 4px 0 var(--lm-chile-deep), 0 6px 12px rgba(89, 53, 16, 0.12);
}

.lm-note {
  text-align: center;
  color: var(--lm-ink-soft);
  margin: 18px 0 8px;
  font-size: 0.98rem;
}

/* -------------------------------------------------------------------------- */
/* Shop teaser                                                                 */
/* -------------------------------------------------------------------------- */
.lm-shop {
  background: linear-gradient(180deg, #E8F6D4 0%, #D5F0C0 100%);
  padding: 12px 0 56px;
}
.lm-shop-card {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  background: var(--lm-white);
  border: 5px solid var(--lm-nopal);
  border-radius: 32px;
  box-shadow: 0 8px 0 var(--lm-nopal-deep), var(--lm-shadow);
  padding: 28px 24px 32px;
  text-align: center;
}
.lm-sticker-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.lm-sticker {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--lm-cream);
  border: 4px solid var(--lm-white);
  box-shadow: 0 4px 0 rgba(89, 53, 16, 0.15), 0 8px 16px rgba(89, 53, 16, 0.1);
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
}
.lm-sticker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.lm-sticker:nth-child(1) { --tilt: -8deg; border-color: #8EC8F0; }
.lm-sticker:nth-child(2) { --tilt: 6deg; border-color: #F5C518; }
.lm-sticker:nth-child(3) { --tilt: -4deg; border-color: #E8D0B0; }
.lm-sticker:nth-child(4) { --tilt: 8deg; border-color: #E85A7A; }
.lm-sticker:nth-child(5) { --tilt: -6deg; border-color: #5BA84A; }
.lm-sticker:nth-child(6) { --tilt: 5deg; border-color: #8BC34A; }

.lm-shop-card h2 { margin-bottom: 8px; }
.lm-shop-card p {
  margin: 0 0 20px;
  color: var(--lm-ink-soft);
  font-size: 1.08rem;
}

@media (max-width: 700px) {
  .lm-sticker { width: 64px; height: 64px; border-width: 3px; }
  .lm-shop-card { padding: 22px 16px 26px; border-radius: 24px; }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.lm-footer {
  background: #3E6B1C;
  color: var(--lm-cream);
  padding: 0 0 36px;
  margin-top: 0;
}
.lm-footer .lm-papel {
  height: 28px;
  margin-bottom: 22px;
  background-color: #3E6B1C;
}
.lm-footer-inner {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}
.lm-footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 4px;
  color: #fff;
}
.lm-footer-tag {
  margin: 0 0 16px;
  color: #FBF4D6;
  font-size: 1rem;
}
.lm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.lm-footer-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
}
.lm-footer-nav a:hover { background: var(--lm-marigold); color: #fff !important; }

/* Astra may print an empty footer wrapper after ours; already hidden. */

/* -------------------------------------------------------------------------- */
/* Videos page hero strip                                                      */
/* -------------------------------------------------------------------------- */
.lm-page-hero {
  background: linear-gradient(180deg, #7ED0EC 0%, #A7E0F3 100%);
  padding: 28px 0 8px;
  text-align: center;
}
.lm-page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--lm-chile);
  margin: 8px 0 8px;
}
.lm-page-hero h1 span {
  display: block;
  font-size: 0.62em;
  color: var(--lm-turquoise-deep);
  font-weight: 700;
  margin-top: 4px;
}

/* -------------------------------------------------------------------------- */
/* Motion                                                                      */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lm-cta,
  .lm-video:hover,
  .lm-pill,
  .lm-btn,
  .lm-char {
    animation: none !important;
    transition: none !important;
  }
  .lm-cta:hover,
  .lm-btn:hover,
  .lm-pill:hover,
  .lm-video:hover {
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* WordPress / Astra leftovers                                                 */
/* -------------------------------------------------------------------------- */
.lm-site .wp-block-html,
.lm-site .entry-content .wp-block-html {
  margin: 0;
}
.lm-site h1, .lm-site h2, .lm-site h3 {
  font-family: var(--font-display);
}
