/* ============================================================
   Marco de manumoleo webs para las webs de ejemplo
   ------------------------------------------------------------
   Dos piezas que aparecen IGUAL en las 3 demos y SIEMPRE con
   el aspecto de la agencia, no el de la demo:
     .mmw-ribbon  — barra superior fija (sticky) con la marca
     .mmw-badge   — distintivo flotante abajo a la derecha
   Valores fijos a propósito (no usan las variables de la demo).
   ============================================================ */

/* el ancla de scroll deja hueco para la barra fija + el menú de la demo */
html { scroll-padding-top: 120px; }

/* ---------- barra superior fija ---------- */
.mmw-ribbon {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #12151b;
  color: #c9ced8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: .8rem;
  line-height: 1;
}
.mmw-ribbon * { box-sizing: border-box; }
.mmw-ribbon__in {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 40px;
  padding: 0 clamp(12px, 4vw, 26px);
  display: flex;
  align-items: center;
  gap: 8px 14px;
  white-space: nowrap;
  overflow: hidden;
}
.mmw-ribbon__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  flex: none;
}
.mmw-ribbon__brand b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #2f5bea, #6d8bff);
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
}
.mmw-ribbon__note {
  color: #949cab;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mmw-ribbon__nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.mmw-ribbon__nav a {
  color: #e7eaef;
  text-decoration: none;
  font-weight: 600;
}
.mmw-ribbon__nav a:hover { color: #fff; }

/* el CTA sí destaca: pastilla naranja de la marca */
.mmw-ribbon__nav a.mmw-ribbon__cta {
  color: #fff;
  background: #ff7a45;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(255, 122, 69, .45);
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}
.mmw-ribbon__nav a.mmw-ribbon__cta:hover {
  color: #fff;
  background: #ff8c5c;
  box-shadow: 0 3px 14px rgba(255, 122, 69, .6);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .mmw-ribbon__note { display: none; }
}
@media (max-width: 470px) {
  .mmw-ribbon__nav a:not(.mmw-ribbon__cta) { display: none; }
}

/* ---------- distintivo flotante ---------- */
.mmw-badge {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px 7px 12px;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1d24;
  line-height: 1;
  max-width: calc(100vw - 40px);
  animation: mmw-badge-in .4s ease .8s both;
}
.mmw-badge * { box-sizing: border-box; }

@keyframes mmw-badge-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.mmw-badge__mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2f5bea, #6d8bff);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  display: grid;
  place-items: center;
}

.mmw-badge__brand {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: -0.01em;
  color: #1a1d24;
  white-space: nowrap;
}

.mmw-badge__q {
  font-size: .8rem;
  color: #5b6270;
  white-space: nowrap;
  padding-left: 11px;
  border-left: 1px solid #e3e7ee;
}

.mmw-badge__btn {
  flex: none;
  background: #ff7a45;
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  padding: .5rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease, transform .12s ease;
}
.mmw-badge__btn:hover { background: #e85f27; transform: translateY(-1px); }
.mmw-badge__btn:focus-visible { outline: 3px solid #2f5bea; outline-offset: 2px; }

/* pantallas medianas: se cae la pregunta, queda marca + botón */
@media (max-width: 820px) {
  .mmw-badge__q { display: none; }
}
/* móvil estrecho: solo la "m" y el botón */
@media (max-width: 430px) {
  .mmw-badge { right: 12px; bottom: 12px; }
  .mmw-badge__brand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mmw-badge { animation: none; }
}
