/* =========================================================
   Propuesta MOO CHUU · hub con menú
   ========================================================= */

:root {
  --ink: #141416;
  --ink-soft: #57535e;
  --cream: #fff7ef;
  --blush: #ffe4ee;
  --pink: #ff3d8b;
  --pink-deep: #d6176c;
  --yellow: #ffd23f;
  --lime: #a3e05a;
  --navy: #1e2f6e;
  --line: rgba(20, 20, 22, .12);
  --white: #fff;
  --side: 300px;

  --display: "Anton", Impact, sans-serif;
  --script: "Caveat", cursive;
  --sans: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.02; margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .01em; }
h1 em, h2 em { font-family: var(--script); font-style: normal; text-transform: none; color: var(--pink); font-weight: 700; letter-spacing: 0; }
strong { font-weight: 700; color: var(--ink); }

.eyebrow {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

/* ---------- Logo MOO CHUU (isotipo + texto) ---------- */
.mc-logo { display: inline-flex; align-items: center; gap: 12px; }
.mc-logo img { width: 52px; padding: 7px; border-radius: 50%; background: var(--white); }
.mc-logo b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: .95; letter-spacing: .02em; color: var(--white); }
.mc-logo b small { display: block; font-size: .62em; letter-spacing: .14em; }

/* ---------- Menú lateral ---------- */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  padding: 34px 26px 26px;
  background: var(--ink);
  color: rgba(255, 255, 255, .65);
  z-index: 40;
  overflow-y: auto;
}
.side__brand p { margin: 14px 0 0; font-size: .84rem; line-height: 1.5; }

.menu { display: grid; gap: 4px; margin: 40px 0 auto; }
.menu a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .82);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.menu a span { font-family: var(--display); font-size: .95rem; color: var(--yellow); }
.menu a:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.menu a.is-active { background: var(--pink); color: var(--white); }
.menu a.is-active span { color: var(--white); }

.side__foot { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }
.side__foot p { margin: 0; letter-spacing: .2em; text-transform: uppercase; font-size: .62rem; }
.side__agency { width: 150px; height: auto; margin: 10px 0 8px; }

.menu-btn { display: none; }

/* ---------- Contenido ---------- */
.main { margin-left: var(--side); min-height: 100vh; }
.view[hidden] { display: none; }

/* Portada */
.hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 22, 0) 25%, rgba(20, 20, 22, .82)); }
.hero__in { position: relative; z-index: 1; padding: 60px 64px 54px; max-width: 1000px; }
.hero__mark { width: 92px; margin-bottom: 22px; padding: 14px; border-radius: 50%; background: var(--white); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 5vw, 4.6rem); max-width: 13em; margin: 0; }
.hero h1 em { color: var(--yellow); font-size: 1.12em; }

.intro { max-width: 1080px; padding: 56px 64px 90px; }
.intro__lead { font-size: 1.12rem; max-width: 46em; margin: 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.facts div { padding: 20px 20px 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; white-space: nowrap; line-height: 1; color: var(--ink); }
.facts span { display: block; margin-top: 8px; font-size: .86rem; line-height: 1.4; }
.facts div:nth-child(1) b { color: var(--pink-deep); }
.facts div:nth-child(2) b { color: var(--navy); }

.deal { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin-top: 44px; }
.deal__col { padding: 30px 32px; background: var(--ink); color: rgba(255, 255, 255, .85); border-radius: 22px; }
.deal__col .eyebrow { color: var(--yellow); }
.deal__col--you { background: var(--blush); color: var(--ink-soft); }
.deal__col--you .eyebrow { color: var(--pink-deep); }
.deal ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.deal li { position: relative; padding-left: 24px; }
.deal li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.deal__col--you li::before { color: var(--pink); }
.deal__plus { display: grid; place-items: center; width: 54px; font-family: var(--display); font-size: 2.2rem; color: var(--pink); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 54px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 60px -30px rgba(214, 23, 108, .35); border-color: var(--pink); }
.card__n { position: absolute; top: 18px; right: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.card:nth-child(2n) .card__n { background: var(--lime); }
.card:nth-child(3n) .card__n { background: var(--blush); }
.card h2 { font-size: 1.7rem; padding-right: 54px; }
.card p { margin: 0 0 22px; font-size: .95rem; }
.card__go { margin-top: auto; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pink-deep); }
.card__go::after { content: " →"; }

/* Vistas con iframe */
.view--frame { display: flex; flex-direction: column; height: 100vh; }
.view__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 40px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.view__bar h2 { font-size: 1.7rem; margin: 0; }
.view__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.device { display: inline-flex; border: 1px solid var(--line); border-radius: 40px; padding: 3px; background: var(--white); }
.device button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: .3s var(--ease);
}
.device button.is-active { background: var(--ink); color: var(--white); }

.btn-line {
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 40px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: .3s var(--ease);
}
.btn-line:hover { background: var(--ink); color: var(--white); }

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  background: var(--blush);
  transition: padding .4s var(--ease);
}
.stage iframe { width: 100%; height: 100%; border: 0; background: var(--white); display: block; }

.stage.is-mobile { padding: 28px 0; }
.stage.is-mobile iframe {
  width: 390px;
  max-width: calc(100% - 32px);
  border-radius: 38px;
  border: 10px solid var(--ink);
  box-shadow: 0 40px 80px -40px rgba(20, 20, 22, .5);
}

/* ---------- Navegación de presentación ---------- */
.pager {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  border-radius: 40px;
  box-shadow: 0 20px 40px -20px rgba(20, 20, 22, .5);
  font-size: .8rem;
  overflow: hidden;
}
.pager button {
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: 1rem;
  transition: background .3s var(--ease), opacity .3s;
}
.pager button:hover:not(:disabled) { background: var(--pink); }
.pager button:disabled { opacity: .3; cursor: default; }
.pager__count strong { font-family: var(--display); font-weight: 400; color: var(--white); font-size: 1.05rem; }
.pager__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .1); }
.pager__bar span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .5s var(--ease); }

.has-frame .pager { top: 22px; bottom: auto; right: 32px; box-shadow: none; }
.has-frame .view__bar { padding-right: 230px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .side {
    transform: translateX(-100%);
    transition: transform .45s var(--ease);
    width: min(320px, 86vw);
  }
  .side.is-open { transform: none; box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .4); }
  .main { margin-left: 0; }

  .menu-btn {
    display: block;
    position: fixed;
    top: 14px; right: 14px;
    z-index: 50;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--pink);
  }
  .menu-btn span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--white); transition: .35s var(--ease); }
  .menu-btn span:first-child { top: 18px; }
  .menu-btn span:last-child { top: 26px; }
  .menu-btn[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

  .hero__in { padding: 90px 24px 40px; }
  .intro { padding: 40px 24px 60px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .view__bar { padding: 22px 76px 18px 20px; }
  .has-frame .view__bar { padding-right: 76px; }
  .has-frame .pager { top: auto; bottom: 16px; right: 16px; transform: scale(.88); transform-origin: bottom right; }
  .view--frame { height: 100dvh; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .deal { grid-template-columns: 1fr; }
  .deal__plus { width: auto; height: 44px; }
  .view__bar h2 { font-size: 1.35rem; }
  .device { display: none; }
  .stage.is-mobile { padding: 0; }
  .stage.is-mobile iframe { width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
}
