/* Michi Focus — estilo pixel de la app. Sin dependencias externas (fuentes alojadas aquí). */
@font-face { font-family: 'Press Start 2P'; src: url('fonts/PressStart2P.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url('fonts/VT323.woff') format('woff'); font-display: swap; }

:root {
  --cream: #FFF4E0;
  --paper: #FFFBF3;
  --ink: #3B2A2A;
  --soft: #7A6358;
  --orange: #F28C38;
  --orange-dark: #C96A1F;
  --green: #6BBF59;
  --green-dark: #4A9139;
  --purple: #3E3A5C;
  --purple-light: #6A6491;
  --pink: #F4A3B4;
  --gold: #F2C14B;
  --gold-dark: #C98A1F;
  --sky: #7EC8F2;
  --locked: #E6D8C6;
  --pixel: 'Press Start 2P', monospace;
  --retro: 'VT323', monospace;
  --text: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Páginas bilingües: se muestra solo el idioma activo (igual que el resto de Prio Labs) */
/* Se oculta solo el idioma inactivo; el activo conserva su display normal (flex, list-item…) */
html[data-lang="en"] [data-l="es"],
html[data-lang="es"] [data-l="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--retro);
  font-size: 22px;
  line-height: 1.25;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; margin: 0; line-height: 1.5; }
p { margin: 0; }
::selection { background: var(--pink); color: var(--ink); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* ---------- Barra superior ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 3px solid var(--ink); }
.nav .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border: 2px solid var(--ink); }
.brand span { font-family: var(--pixel); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 14px; font-size: 20px; }
.nav-links a { text-decoration: none; color: var(--soft); }
.nav-links a:hover { color: var(--orange-dark); }
.lang { display: inline-flex; border: 2px solid var(--ink); }
.lang button {
  font-family: var(--pixel); font-size: 9px; padding: 7px 8px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer;
}
.lang button + button { border-left: 2px solid var(--ink); }
html[data-lang="en"] .lang [data-set="en"], html[data-lang="es"] .lang [data-set="es"] { background: var(--purple); color: #fff; }

/* ---------- Botones y paneles ---------- */
.btn {
  display: inline-block; font-family: var(--pixel); font-size: 11px; line-height: 1.6; text-decoration: none; text-align: center;
  padding: 13px 18px; border: 3px solid var(--ink); background: var(--orange); color: #fff;
  box-shadow: inset 0 -5px 0 var(--orange-dark), 3px 3px 0 var(--ink);
}
.btn:hover { transform: translateY(1px); box-shadow: inset 0 -4px 0 var(--orange-dark), 2px 2px 0 var(--ink); }
.btn.plain { background: var(--paper); color: var(--ink); box-shadow: inset 0 -5px 0 var(--locked), 3px 3px 0 var(--ink); }
.btn.soon { background: var(--locked); color: var(--soft); box-shadow: 3px 3px 0 var(--ink); cursor: default; }
.btn.soon:hover { transform: none; }
.panel { background: var(--paper); border: 3px solid var(--ink); padding: 18px; }
.badge-plus {
  display: inline-block; font-family: var(--pixel); font-size: 8px; color: #fff; background: var(--gold-dark);
  border: 2px solid var(--ink); padding: 4px 6px; vertical-align: middle;
}

/* ---------- Secciones ---------- */
section { padding: 56px 0; }
.alt { background: var(--paper); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.kicker { font-family: var(--pixel); font-size: 10px; color: var(--orange-dark); margin-bottom: 12px; text-transform: uppercase; }
.title { font-size: clamp(16px, 4.4vw, 24px); margin-bottom: 14px; }
.lead { color: var(--soft); font-size: 23px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Portada ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(22px, 6vw, 38px); margin: 14px 0; }
.hero .tag { font-size: 28px; }
.hero .lead { margin: 12px 0 24px; }
.hero-icon { width: 76px; height: 76px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 19px; color: var(--soft); margin-top: 14px; }

/* Escena: habitación + gato (las posiciones copian las de la app) */
.scene { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 3px solid var(--ink); overflow: hidden; box-shadow: 6px 6px 0 var(--ink); }
.scene .bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .cat { position: absolute; left: 22%; top: 38.5%; width: 56%; height: auto; transform-origin: bottom center; }
.scene .cat.sleep { animation: breathe 3.6s ease-in-out infinite; }
.zzz {
  position: absolute; left: 36%; top: 30%; font-family: var(--pixel); color: var(--paper); font-size: clamp(10px, 2.2vw, 16px);
  animation: zzz 2.6s linear infinite;
}
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.035) translateY(-0.5%); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 20%, 80% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -46px); } }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; gap: 18px; margin-top: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .art { background: var(--cream); border: 3px solid var(--ink); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.step .art.night { background: var(--purple); }
.step .art img { width: 78%; }
.step .art img.tall { width: auto; height: 82%; }
.step .num { font-family: var(--pixel); font-size: 10px; color: var(--orange-dark); }
.step h3 { font-size: 12px; }
.step p { color: var(--soft); }

/* ---------- Capturas ---------- */
.screens { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; margin-top: 28px; }
.phone {
  flex: 0 0 230px; margin: 0; scroll-snap-align: center; border: 3px solid var(--ink); background: var(--ink); padding: 8px; box-shadow: 5px 5px 0 var(--ink);
}
.phone img { width: 100%; border: 2px solid var(--ink); }
.phone figcaption { font-family: var(--pixel); font-size: 9px; color: var(--paper); text-align: center; padding: 10px 0 4px; }

/* ---------- Colección ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.cat-card { position: relative; background: var(--paper); border: 2px solid var(--ink); padding: 8px 4px 6px; text-align: center; }
.cat-card img { width: 100%; }
.cat-card .name { font-family: var(--pixel); font-size: 7px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card .rar { font-size: 17px; }
.cat-card .badge-plus { position: absolute; top: -2px; right: -2px; font-size: 6px; padding: 3px 4px; }
.r-common { color: var(--soft); } .r-rare { color: #3F84C4; } .r-epic { color: #8A4FC2; } .r-legendary { color: var(--gold-dark); }
.odds { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 20px; }

.split { display: grid; gap: 28px; align-items: center; }
.list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list li::before { content: ''; flex: 0 0 10px; height: 10px; margin-top: 8px; background: var(--orange); border: 2px solid var(--ink); }

/* ---------- Funciones ---------- */
.features { display: grid; gap: 14px; margin-top: 28px; }
.features h3 { font-size: 11px; margin-bottom: 8px; }
.features p { color: var(--soft); font-size: 20px; }

/* ---------- Plus ---------- */
.plus { background: #FFF1CF; border: 3px solid var(--ink); padding: 24px; box-shadow: 6px 6px 0 var(--ink); }
.plus-cats { display: flex; gap: 4px; margin: 14px 0; }
.plus-cats img { width: 25%; max-width: 110px; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { background: var(--paper); border: 3px solid var(--ink); padding: 14px 16px; }
.faq summary { font-family: var(--pixel); font-size: 11px; line-height: 1.6; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+ '; color: var(--orange-dark); }
.faq details[open] summary::before { content: '- '; }
.faq details p { color: var(--soft); margin-top: 10px; font-size: 21px; }

/* ---------- Pie ---------- */
footer { border-top: 3px solid var(--ink); background: var(--paper); padding: 28px 0; font-size: 19px; color: var(--soft); }
footer .wrap { display: flex; flex-direction: column; gap: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--orange-dark); }

/* ---------- Páginas de texto (soporte, privacidad, términos) ---------- */
.doc { padding: 44px 0 64px; }
.doc h1 { font-size: clamp(18px, 5vw, 26px); margin-bottom: 10px; }
.doc .meta { color: var(--soft); font-size: 20px; margin-bottom: 26px; }
.doc .body { font-family: var(--text); font-size: 17px; line-height: 1.65; }
.doc .body h2 { font-family: var(--pixel); font-size: 12px; margin: 30px 0 10px; }
.doc .body p, .doc .body ul { margin: 0 0 12px; }
.doc .body ul { padding-left: 22px; }
.doc .body li { margin-bottom: 6px; }
.doc .body a { color: #B04440; font-weight: 600; }
.doc .faq details p { font-family: var(--text); font-size: 17px; line-height: 1.6; }
.doc .faq summary { font-size: 10px; }
.contact-box { margin-top: 30px; }

@media (min-width: 760px) {
  body { font-size: 23px; }
  section { padding: 76px 0; }
  .hero { padding: 64px 0 76px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 44px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .cat-card .name { font-size: 8px; }
  .split { grid-template-columns: 1fr 1fr; gap: 44px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .screens { justify-content: center; overflow-x: visible; }
  .phone { flex: 0 0 200px; }
  footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scene .cat.sleep, .zzz { animation: none; }
  html { scroll-behavior: auto; }
}
