/* mutashop.css — standalone Mutashop styles for production */

:root {
  --mo: #9D67FF;
  --na: #FB6200;
  --ve: #AFF757;
  --ro: #FFD4FC;
  --ne: #000000;
  --bl: #FFFFFF;
  --fo: #FAFAFA;
  --ft: 'Space Grotesk', sans-serif;
  --fc: 'DM Sans', sans-serif;
}

/* ============================================
   MUTASHOP — Variables de animación
   ============================================ */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.45s;
  --dur-slow: 0.65s;
}

/* ============================================
   MUTASHOP — Todo el bloque aislado
   ============================================ */

.page-mutashop .mo-shop-hero {
  background: var(--mo);
  padding: 36px 70px 48px;
  text-align: center;
}
.page-mutashop .mo-shop-hero__title {
  font-size: 160px;
  font-weight: 600;
  line-height: 1;
  color: white;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.page-mutashop .mo-shop-hero__o {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: -0.06em;
}
.page-mutashop .mo-shop-hero__o img {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  vertical-align: middle;
}

/* ============================================
   MUTASHOP — Marquee
   ============================================ */
.page-mutashop .mo-marquee {
  background: var(--ve);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  border-top: 1.5px solid rgba(0,0,0,0.08);
  border-bottom: 1.5px solid rgba(0,0,0,0.08);
}
.page-mutashop .mo-marquee__track {
  display: inline-flex;
  animation: marquee-scroll 22s linear infinite;
}
.page-mutashop .mo-marquee__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--ne);
  padding-right: 4px;
  white-space: nowrap;
}

/* @keyframes extracted */


/* ============================================
   MUTASHOP — Transitions
   ============================================ */
/* variables ya declaradas en :root al inicio del bloque Mutashop */

/* ============================================
   MUTASHOP — Stage
   ============================================ */
.page-mutashop .mo-stage-wrap {
  position: relative;
  background: var(--fo);
  cursor: default;
}
.page-mutashop .mo-stage {
  position: relative;
  width: 1440px;
  max-width: 100%;
  height: 814px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--fo);
}
/* Black floor */
.page-mutashop .mo-stage::after {
  content: '';
  position: absolute;
  top: 363px;
  left: 0; right: 0;
  height: 451px;
  background: var(--ne);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.page-mutashop .mo-stage.state-2::after,
.page-mutashop .mo-stage.state-3::after { opacity: 1; }

/* ============================================
   MUTASHOP — Products base
   ============================================ */
.page-mutashop .mo-product {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  user-select: none;
  transform-origin: bottom center;
  transition: transform 0.2s var(--ease-spring);
}

/* Mutito XL — hero product */
.page-mutashop .mo-product--mutito-xl {
  left: 548px;
  top: 80px;
  width: 344px;
  height: 324px;
  z-index: 5;
  transition: left 300ms ease, top 300ms ease;
}
.page-mutashop .mo-product--mutito-xl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.page-mutashop .mo-stage.state-2 .mo-product--mutito-xl,
.page-mutashop .mo-stage.state-3 .mo-product--mutito-xl {
  left: 959px;
  top: 80px;
}

/* Mutito XL — fill control (inline SVG) */
.mo-product--mutito-xl .fill-body { fill: var(--ro); stroke: none; }
.mo-stage.state-2 .mo-product--mutito-xl .fill-body,
.mo-stage.state-3 .mo-product--mutito-xl .fill-body {
  fill: white;
  stroke: black;
  stroke-width: 0.332889px;
}

/* Secondary products — hidden in state1 */
.page-mutashop .mo-product--secondary {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.94);
  transition:
    opacity  420ms ease-out,
    transform 420ms cubic-bezier(0.2, 0, 0.1, 1);
}
.page-mutashop .mo-product--secondary.revealed {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Exact bodegón positions (1440×814) */
.page-mutashop .mo-product--mutote-bag { left: 540px;  top: 203px; width: 278px; height: 402px; }
.page-mutashop .mo-product--mutaza-colapso { left: 126px;  top: 272px; width: 148px; height: 131px; }
.page-mutashop .mo-product--mutarot-2025 { left: 196px;  top: 495px; width: 281px; height: 141px; }
.page-mutashop .mo-product--mutito-l { left: 1186px; top: 280px; width: 180px; height: 164px; }
.page-mutashop .mo-product--workbook-mutante { left: 316px;  top: 169px; width: 306px; height: 216px; }
.page-mutashop .mo-product--mutito-portatil-m { left: 805px;  top: 405px; width: 119px; height: 184px; }
.page-mutashop .mo-product--mutalibreta { left: 870px;  top: 216px; width: 149px; height: 188px; }
.page-mutashop .mo-product--mutaza-pasivo-agresiva { left: 1162px; top: 493px; width: 148px; height: 131px; }
.page-mutashop .mo-product--mutito-portatil-o { left: 55px;   top: 383px; width: 96px;  height: 182px; }
.page-mutashop .mo-product--mutastickers { left: 938px;  top: 431px; width: 163px; height: 116px; }

/* Hover image swap (state3) */
.page-mutashop .mo-product__hover-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 2;
}
.page-mutashop .mo-stage.state-3 .mo-product:hover .mo-product__hover-img { opacity: 1; }
.page-mutashop .mo-stage.state-3 .mo-product:hover > img:not(.mo-product__hover-img) {
  opacity: 0;
  transition: opacity 0.15s;
}
.page-mutashop .mo-stage.state-3 .mo-product--mutito-xl:hover > svg {
  opacity: 0;
  transition: opacity 0.15s;
}

/* Hover in state3 */
.page-mutashop .mo-stage.state-3 .mo-product:hover {
  transform: scale(1.04) translateY(-4px);
  z-index: 50;
}

/* Product name tooltip */
.page-mutashop .mo-product__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ne);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 40;
}
.page-mutashop .mo-stage.state-3 .mo-product:hover .mo-product__label { opacity: 1; }

/* Intro text + catalog button */
.page-mutashop .mo-stage__intro {
  position: absolute;
  top: 430px;
  left: 0; right: 0;
  text-align: center;
  z-index: 20;
  transition: top 400ms var(--ease-out), opacity 300ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--fc);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #666;
}
/* When products appear, slide text up to clear upper area */
.page-mutashop .mo-stage.state-2 ~ .mo-stage__intro,
.page-mutashop .mo-stage.state-3 ~ .mo-stage__intro {
  top: 70px;
}
.page-mutashop .mo-stage__intro p {
  font-family: var(--fc);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #666;
  transition: opacity 300ms ease;
}
.page-mutashop .mo-stage:not(.state-1) .mo-stage__intro p {
  opacity: 0;
  pointer-events: none;
}

/* CTA (state3) */
.page-mutashop .mo-stage__cta {
  position: absolute;
  bottom: 462px;
  left: 0; right: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.3);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow);
}
.page-mutashop .mo-stage.state-3 .mo-stage__cta { opacity: 1; }

/* ============================================
   MUTASHOP — Modal
   ============================================ */
.page-mutashop .mo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med), visibility var(--dur-med);
  padding: 32px;
}
.page-mutashop .mo-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.page-mutashop .mo-modal {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  width: 858px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--dur-med) var(--ease-spring);
}
.page-mutashop .mo-modal-overlay.open .mo-modal {
  transform: translateY(0) scale(1);
}
.page-mutashop .mo-modal__accent {
  height: 52px;
  background: var(--mo);
  flex-shrink: 0;
  position: relative;
}
.page-mutashop .mo-modal__body {
  display: flex;
  flex: 1;
  min-height: 434px;
}
.page-mutashop .mo-modal__photo-col {
  width: 50.4%;
  flex-shrink: 0;
  background: var(--ro);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-mutashop .mo-modal__photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-mutashop .mo-modal__info {
  flex: 1;
  padding: 30px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.page-mutashop .mo-modal__name {
  font-family: var(--ft);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #333333;
  margin-bottom: 30px;
}
.page-mutashop .mo-modal__badge {
  display: inline-block;
  background: var(--ro);
  font-family: var(--ft);
  font-size: 20px;
  font-weight: 500;
  color: var(--ne);
  padding: 6px 16px;
  border-radius: 0;
  margin-bottom: 30px;
  line-height: 1.4;
}
.page-mutashop .mo-modal__desc {
  font-family: var(--fc);
  font-size: 16px;
  line-height: 1.65;
  color: #444;
  flex: 1;
  margin-bottom: 30px;
}
.page-mutashop .mo-modal__cta {
  font-family: var(--fc);
  font-size: 16px;
  font-weight: 400;
  color: var(--mo);
  align-self: flex-start;
  transition: opacity 0.15s;
}
.page-mutashop .mo-modal__cta strong {
  font-weight: 700;
  color: var(--mo);
  text-decoration: underline;
}
.page-mutashop .mo-modal__cta:hover { opacity: 0.75; }
.page-mutashop .mo-modal__close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}
.page-mutashop .mo-modal__close:hover { background: rgba(255,255,255,0.35); }
.page-mutashop .mo-modal__close svg { pointer-events: none; }

/* ============================================
   MUTASHOP — Mobile Sequence + Bodegón (hidden on desktop)
   ============================================ */
.mo-sequence { display: none; }

/* ============================================
   MUTASHOP — Mobile ≤ 768px
   ============================================ */
@media (max-width: 768px) {
  /* Shop hero */
  .page-mutashop .mo-shop-hero { padding: 24px 20px 28px; overflow: hidden; }
  .page-mutashop .mo-shop-hero__title { font-size: clamp(36px, 11vw, 58px); letter-spacing: -0.03em; }

  /* Marquee */
  .mo-marquee__text { font-size: 16px; }

  /* Stage desktop → hidden */
  .mo-stage-wrap { display: none; }

  /* Mobile sequence */
  .mo-sequence {
    display: block;
    background: var(--ne);
  }
  .mo-sequence__viewer {
    width: 100%;
    aspect-ratio: 390 / 560;
    overflow: hidden;
    line-height: 0;
    background: var(--ne);
  }
  .mo-sequence__frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mo-sequence__frame:not([src]) { visibility: hidden; }
  .mo-sequence__bodegon { display: none; }
  .mo-sequence__bodegon.mo-visible { display: block; }

  /* Bodegón — imagen completa + enlace solo sobre el texto */
  .mo-bodegon {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
  }
  .mo-bodegon__bg {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
  }
  .mo-bodegon__link {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 66%;
    height: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
    text-decoration: none;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
  }

  /* Modal → bottom sheet */
  .mo-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .mo-modal {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  .mo-modal-overlay.open .mo-modal {
    transform: translateY(0);
  }
  .mo-modal__accent {
    height: 40px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: grab;
  }
  .mo-modal__accent::before {
    content: '';
    width: 40px;
    height: 4px;
    background: rgba(0,0,0,0.18);
    border-radius: 2px;
  }
  .mo-modal__close {
    background: rgba(0,0,0,0.07);
    top: 50%;
    right: 12px;
    width: 28px;
    height: 28px;
  }
  .mo-modal__close:hover { background: rgba(0,0,0,0.14); }
  .mo-modal__close svg path { stroke: #444; }
  .mo-modal__body {
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mo-modal__photo-col {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
  }
  .mo-modal__info {
    padding: 20px 20px 32px;
    overflow-y: visible;
  }
  .mo-modal__name  { font-size: 26px; margin-bottom: 12px; }
  .mo-modal__badge { font-size: 16px; margin-bottom: 16px; }
  .mo-modal__desc  { font-size: 15px; margin-bottom: 24px; }
  .mo-modal__cta {
    display: block;
    text-align: center;
    background: var(--mo);
    color: white !important;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    align-self: stretch;
  }
  .mo-modal__cta strong {
    color: white;
    text-decoration: none;
  }
  .mo-modal__cta:hover { opacity: 0.85; }
}

/* ============================================
   LLUVIA DE MUTITOS — confetti animation
   ============================================ */
.page-mutashop .mo-lluvia-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
.page-mutashop .mo-lluvia-el {
  position: absolute;
  transform-origin: center;
}

/* @keyframes extracted */

.page-mutashop .mo-lluvia-overlay--out {
  animation: lluvia-fade 0.45s ease forwards;
}

/* @keyframes extracted */


@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes lluvia-burst {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 1; }
}
@keyframes lluvia-fade { to { opacity: 0; } }
.mo-lluvia-overlay--out {
  animation: lluvia-fade 0.45s ease forwards;
}
