/* Estilos compartidos de las páginas públicas de Mozō (install.html, creador.html). */
:root { --bg: #0c0e38; --fg: #fff; --muted: rgba(255, 255, 255, .85); --soft: rgba(255, 255, 255, .6);
  --brand: #0d99ff; --on-brand: #ffffff;
  --card: rgba(12, 14, 56, .6); --card-border: rgba(255, 255, 255, .12); color-scheme: dark; }
body { position: relative; margin: 0; padding: 24px 16px 48px; min-height: 100vh; box-sizing: border-box; color: var(--fg);
  font: 16px/1.6 'Sansation', system-ui, sans-serif; background: var(--bg); }
a { color: inherit; }
p, li { color: var(--muted); }
strong, code { color: var(--fg); }
code { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Fondo con parallax: capas del mismo tamaño apiladas; landing.js las desplaza según su profundidad. */
.backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.scene { position: absolute; top: 0; left: 50%; width: max(100%, 1100px); aspect-ratio: 16 / 9; translate: -50% 0; overflow: hidden; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.08); will-change: transform; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); }
.fireflies { position: fixed; inset: 0; width: 100%; height: 100%; }

/* Barra superior */
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 880px; margin: 0 auto; min-height: 40px; }
.topbar .back { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); text-decoration: none; font-size: 14px; }
.topbar .back:hover { color: var(--fg); }

/* Hero */
.hero { position: relative; max-width: 720px; margin: 0 auto 64px; padding: 24px 0 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center; }
.logo img { height: 48px; width: auto; display: block; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.1; letter-spacing: -.02em; margin: 40px 0 16px; text-wrap: balance; }
.hero .eyebrow + h1 { margin-top: 20px; }
.hero .lead { font-size: clamp(17px, 2.4vw, 20px); max-width: 600px; margin: 0 0 40px; text-wrap: balance; }
.hero .hint { margin: 0; font-size: 15px; }
.backdrop + .hero { padding-top: 64px; } /* sin barra superior (landing) */
.eyebrow { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--card-border);
  background: var(--card); color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Entrada estilo «Blur Text»: cada palabra cae desde arriba desenfocada y se enfoca.
   landing.js parte el texto de los [data-blur] en palabras y les da su retraso en --delay. */
@keyframes blur-in {
  0% { filter: blur(10px); opacity: 0; transform: translateY(-50px); }
  50% { filter: blur(5px); opacity: .5; transform: translateY(5px); }
  100% { filter: blur(0); opacity: 1; transform: none; }
}
.blur-in { animation: blur-in .4s var(--delay, 0ms) both; }
span.blur-in { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .blur-in { animation: none; } }

/* Botones */
.bookmarklet { margin: 20px 0 14px; padding: 16px 28px 16px 18px; border-radius: 14px;
  background: #b33cfa; color: #fff; font-weight: 700; text-decoration: none; cursor: grab; /* morado claro del logotipo */
  display: inline-flex; align-items: center; gap: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bookmarklet .mozo-mark { width: 44px; height: 44px; border-radius: 10px; flex: none; }
/* El subtítulo va en ::after para que el marcador, al arrastrarlo, se llame solo «Mozō». */
.bookmarklet-label { display: flex; flex-direction: column; align-items: flex-start; font-size: 24px; line-height: 1.1; }
.bookmarklet-label::after { content: attr(data-sub); font-size: 14px; font-weight: 400; line-height: 1.3; opacity: .85; margin-top: 2px; }
/* Flecha dibujada a mano que invita a arrastrar el botón hacia la barra de marcadores (arriba). */
.bookmarklet-wrap { position: relative; display: inline-block; }
.sketch-arrow { position: absolute; left: calc(100% + 4px); bottom: 50%; width: 170px; pointer-events: none; }
.sketch-arrow svg { display: block; width: 100%; height: auto; overflow: visible; }
.sketch-arrow .stroke { stroke: #d9a6ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: sketch-draw .6s .75s ease-out forwards; }
.sketch-arrow .head { animation-delay: 1.3s; animation-duration: .25s; }
.sketch-label { position: absolute; left: 118px; bottom: calc(100% - 6px); width: 170px; text-align: left;
  font: 600 22px/1.05 Caveat, cursive; color: #d9a6ff; transform: rotate(-6deg); transform-origin: left bottom;
  opacity: 0; animation: sketch-fade .3s 1.45s ease-out forwards; }
@keyframes sketch-draw { to { stroke-dashoffset: 0; } }
@keyframes sketch-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sketch-arrow .stroke { animation: none; stroke-dashoffset: 0; }
  .sketch-label { animation: none; opacity: 1; }
}
/* En móvil no hay barra de marcadores a la que arrastrar. */
@media (max-width: 760px) { .sketch-arrow { display: none; } }
.hero .note { max-width: 420px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--soft); text-wrap: balance; }
.download, .button { display: inline-block; margin: 16px 0; padding: 12px 20px; border-radius: 10px;
  border: 2px solid var(--brand); color: var(--fg); font-weight: 700; text-decoration: none; }
.button { margin: 0; padding: 8px 16px; border-width: 1px; border-color: var(--card-border); font-size: 14px; transition: border-color .2s; }
.button:hover { border-color: var(--brand); }

/* Contenido */
main { position: relative; max-width: 560px; margin: auto; }
main.wide { max-width: 880px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 4px 20px; margin-top: 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
h2 { font-size: 20px; margin: 40px 0 0; }
h3 { font-size: 16px; margin: 16px 0 0; }
.section-head { text-align: center; margin: 96px auto 0; max-width: 600px; }
.section-head h2 { font-size: clamp(26px, 4.5vw, 36px); line-height: 1.2; letter-spacing: -.01em; margin: 16px 0 8px; text-wrap: balance; }
.section-head p { margin: 0; text-wrap: balance; }

/* El Creador */
.kicker { margin: 0; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.creator { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; margin-top: 0; padding: 24px; }
.creator h2, .partner h2 { font-size: 28px; line-height: 1.2; margin: 6px 0 4px; }
.creator .role { margin: 0 0 12px; color: var(--soft); font-size: 13px; }
.photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--card-border); background: linear-gradient(160deg, #2b2f80, #12143f); }
.photo span { color: var(--soft); font-size: 48px; font-weight: 700; letter-spacing: .04em; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; padding: 0; list-style: none; }
.tags li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--card-border); color: var(--soft); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.partner { margin-top: 24px; padding: 24px; }
.creator, .partner { border: none; }
.partner-logo { display: block; height: 44px; width: auto; margin: 12px 0 8px; }
.partner p:not(.kicker) { margin: 0 0 16px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.principle { margin-top: 0; padding: 24px; }
.principle .num { margin: 0; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.principle h3 { margin: 8px 0; font-size: 18px; line-height: 1.3; }
.principle p:not(.num) { margin: 0; font-size: 15px; }
@media (max-width: 680px) {
  .creator { grid-template-columns: 1fr; gap: 20px; }
  .photo { width: 100%; max-width: 260px; }
}

/* Pie de la landing: enlace a El Creador */
.site-footer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 560px; margin: 96px auto 0; padding-top: 40px; border-top: 1px solid var(--card-border); text-align: center; }
.site-footer p { margin: 0; color: var(--fg); font-size: 18px; font-weight: 700; }
.site-footer .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 30%;
  border: 2px solid var(--card-border); }
