/* Estética tomada del logo: naranja #d65f00 liso, blanco roto y negro de spray */
:root {
  --orange: #d65f00;
  --orange-dark: #b44f00;
  --paper: #f7f1f1;
  --ink: #111;
  --ink-soft: #3b2a1e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  background: var(--orange);   /* mismo naranja liso del logo */
  padding-top: env(safe-area-inset-top);
}

/* ---------- Cabecera ---------- */
.hero { text-align: center; padding: 28px 16px 8px; }
.logo-stage {
  position: relative; margin: 0 auto;
  width: min(78vw, 340px);
  animation: float 3.6s ease-in-out infinite alternate;
}
.main-logo { display: block; width: 100%; height: auto; }

/* Ojo animado: capas recortadas del propio logo, colocadas en su sitio exacto
   (porcentajes sobre el logo original de 1285 x 1796 px) */
.eye {
  position: absolute;
  left: 43.658%; top: 17.929%; width: 11.206%; height: 7.684%;
}
.eye-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.eye-pupil {
  position: absolute; display: block;
  left: 9.028%; top: 32.609%; width: 39.583%; height: 45.652%;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.eye-pupil.slow { transition-duration: .7s; }
.eye-lid { clip-path: inset(0 0 100% 0); animation: blink 5.5s infinite; }
.eye.wink .eye-lid { animation: wink .32s 1; }

@keyframes float { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes blink {
  0%, 93%, 100% { clip-path: inset(0 0 100% 0); }
  95.5%, 96.5%  { clip-path: inset(0 0 0 0); }
}
@keyframes wink {
  0%, 100% { clip-path: inset(0 0 100% 0); }
  40%, 60% { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-stage, .eye-lid { animation: none; }
  .eye-pupil { transition: none; }
}
.tagline {
  display: inline-block; margin-top: 14px; padding: 6px 14px;
  background: var(--ink); color: var(--paper);
  font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: .85rem;
  transform: rotate(-1.5deg);
}

/* ---------- Tarjetas tipo sticker ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 28px 18px 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }

.card {
  position: relative; width: 100%; font: inherit; text-align: left; cursor: pointer;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; color: inherit; text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:nth-child(odd)  { transform: rotate(-.6deg); }
.card:nth-child(even) { transform: rotate(.6deg); }
.card:hover, .card:focus-visible {
  transform: translate(-2px, -3px) rotate(0);
  box-shadow: 9px 10px 0 var(--ink);
  outline: none;
}
.card:active { transform: translate(5px, 5px); box-shadow: 1px 1px 0 var(--ink); }

.icon, .icon-fallback {
  flex: 0 0 68px; width: 68px; height: 68px;
  border: 3px solid var(--ink); border-radius: 14px;
}
.icon { object-fit: cover; background: #fff; }
.icon-fallback {
  display: grid; place-items: center; font-size: 30px;
  background: var(--orange);
}
.info h2 {
  font-family: "Arial Black", Impact, system-ui, sans-serif;
  font-size: 1.12rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.3px;
  line-height: 1.1; margin: 2px 0 5px;
}
.info p { color: var(--ink-soft); font-size: .92rem; }
.arrow {
  margin-left: auto; align-self: center;
  font-size: 1.8rem; font-weight: 900; transition: transform .12s;
}
.card:hover .arrow { transform: translateX(4px); }

/* ---------- Pie ---------- */
footer {
  background: var(--ink); color: var(--paper);
  text-align: center; padding: 28px 16px calc(32px + env(safe-area-inset-bottom));
  border-top: 5px solid var(--paper);
}
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  color: var(--paper); text-decoration: none; font-weight: 700; font-size: .92rem;
  border: 2px solid var(--paper);
  transition: background .12s, color .12s;
}
.links a:hover, .links a:focus-visible { background: var(--orange); border-color: var(--orange); color: #fff; outline: none; }
.links svg { width: 20px; height: 20px; flex: 0 0 20px; }
.install { margin: 0 0 16px; }
.install button {
  background: var(--orange); color: #fff; opacity: 1; margin: 0;
  border: 2px solid var(--paper); border-radius: 999px; padding: 10px 20px;
  font-size: .95rem; font-weight: 800; cursor: pointer;
}
.install button:hover { background: var(--orange-dark); color: #fff; border-color: var(--paper); }
.install p { font-size: .88rem; opacity: .9; }
.small { font-size: .82rem; opacity: .75; }
footer button {
  margin-top: 10px; background: transparent; color: var(--paper); opacity: .8;
  border: 1px solid rgba(247,241,241,.5); border-radius: 999px; padding: 5px 14px; font-size: .78rem; cursor: pointer;
}
footer button:hover { opacity: 1; border-color: var(--orange); color: var(--orange); }

@media (max-width: 480px) {
  .grid { gap: 18px; }
  .links a { font-size: .85rem; padding: 8px 13px; }
}

/* ---------- Hoja de versiones y descargas (v11) ---------- */
body.sheet-open { overflow: hidden; }
.sheet {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 24px); margin: auto;
}
.sheet::backdrop { background: rgba(17,17,17,.62); }
.sheet[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-in {
  position: relative; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 16px; box-shadow: 8px 8px 0 var(--ink);
  padding: 18px 18px 16px; max-height: calc(100dvh - 40px); overflow: auto;
}
.sh-close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
  border: 3px solid var(--ink); border-radius: 50%; background: #fff; font-weight: 900; font-size: 1rem; cursor: pointer;
}
.sh-close:hover { background: var(--orange); color: #fff; }
.sh-head { display: flex; gap: 14px; align-items: center; padding-right: 44px; margin-bottom: 14px; }
.sh-icon {
  flex: 0 0 64px; width: 64px; height: 64px; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--orange); display: grid; place-items: center; font-size: 30px; overflow: hidden;
}
.sh-icon img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.sh-head h2 {
  font-family: "Arial Black", Impact, system-ui, sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: 1.3rem; line-height: 1.05; letter-spacing: -.3px;
}
.sh-head p { color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }
.sheet h3 {
  display: inline-block; margin: 16px 0 8px; padding: 3px 10px; background: var(--ink); color: var(--paper);
  font-size: .78rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; transform: rotate(-1deg);
}
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 56px;
  color: inherit; text-decoration: none; background: #fff;
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.opt:hover, .opt:focus-visible { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); outline: none; }
.opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.opt.primary { background: var(--orange); color: #fff; }
.opt.primary small { color: #fff; opacity: .92; }
.opt.mine { border-width: 3px; }
.o-ico { font-size: 1.5rem; flex: 0 0 30px; text-align: center; }
.o-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.o-txt b { font-size: .98rem; }
.o-txt small { color: var(--ink-soft); font-size: .8rem; }
.o-txt em {
  align-self: flex-start; margin-top: 3px; font-style: normal; font-size: .7rem; font-weight: 800; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 1px 7px; border-radius: 999px;
}
.opt.primary .o-txt em { background: #fff; color: var(--ink); }
.o-meta { font: 700 .75rem ui-monospace, Menlo, monospace; white-space: nowrap; opacity: .75; }
.sh-state { font-size: .85rem; color: var(--ink-soft); margin: 0 0 8px; }
.sh-help { margin-top: 14px; font-size: .86rem; }
.sh-help summary { cursor: pointer; font-weight: 800; }
.sh-help ul { margin: 8px 0 0 18px; display: grid; gap: 6px; color: var(--ink-soft); }
.sh-all { display: inline-block; margin-top: 12px; font-weight: 800; font-size: .86rem; color: var(--ink); }
@media (max-width: 480px) {
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 92dvh; }
  .sh-in { border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: none; max-height: 92dvh; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .o-meta { display: none; }
}

/* v14: enlace a la plataforma única SampledHead (Windows y Mac) */
.suite { display: block; max-width: 1100px; margin: 0 auto 22px; padding: 14px 18px; color: var(--paper); background: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 rgba(0,0,0,.35); text-decoration: none; transform: rotate(-.4deg); }
.suite b { display: block; font-size: 19px; }
.suite span { font-size: 14px; opacity: .9; }
.suite:hover { transform: translate(-2px,-3px) rotate(0); }

/* v21: sección de plugins para MPC Sample (Melodee) */
.sec-title { margin: 46px 0 6px; font-family: "Arial Black", Impact, system-ui, sans-serif; font-size: 1.5rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: -.3px; color: var(--paper); scroll-margin-top: 16px; }
.sec-title small { display: inline-block; margin-left: 6px; padding: 3px 10px; font-family: system-ui, sans-serif; font-size: .8rem;
  font-weight: 800; letter-spacing: .4px; background: var(--ink); color: var(--paper); transform: rotate(-1.5deg); vertical-align: middle; }
.sec-sub { margin: 0 0 18px; max-width: 760px; color: var(--paper); opacity: .92; font-size: .95rem; }
.sec-sub b, .sec-sub i { color: var(--paper); }
.mpc-link { display: inline-block; margin: -8px 0 22px; padding: 8px 14px; font-weight: 800; color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; transform: rotate(.5deg); }
.mpc-link:hover { transform: translate(-2px,-2px) rotate(0); }
