[hidden] { display: none !important; }
/* Sitio oficial de EL MÍSTER: paleta de marca (docs/MARCA.md) y tipografía del sistema. Sin fuentes ni recursos externos. */
:root {
  --bg: #061a13; --bg2: #0a231a; --card: #0f2c21; --card2: #143728; --line: #224a39;
  --text: #f4f1e8; --muted: #a9bfb4; --green: #2ecc71; --green-d: #1f9d55; --yellow: #f4c430; --blue: #3b9be0; --red: #e5534b;
  --gold: #d4af37; --gold-hi: #f0d27a; --brand: #0b3d2e;
  --r: 16px; --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--green); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* cabecera */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(6,26,19,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .04em; font-size: 19px; }
.brand img { width: 30px; height: 35px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--card); }
.nav a.cta { background: var(--green); color: #06210f; }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--gold); }
.menu-btn { display: none; margin-left: auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 15px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* portada */
.hero { padding: 56px 0 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 14px 0 12px; letter-spacing: -1px; }
.hero h1 span { color: var(--gold); }
.hero .slogan { color: var(--gold); font-weight: 800; letter-spacing: .02em; margin: 0 0 6px; font-size: 18px; }
.hero .lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero-logo { width: min(420px, 100%); height: auto; display: block; }
@media (max-width: 860px) { .hero-logo { margin: 0 auto; width: min(300px, 80%); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 14px; font-weight: 800; font-size: 18px; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn.primary { background: var(--green); color: #06210f; border-color: transparent; }
.btn.primary:hover { background: #3ad97f; }
.soon { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 18px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; line-height: 1.25; text-decoration: none; }
.soon b { color: var(--text); font-size: 16px; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.phones { display: flex; justify-content: center; gap: 18px; }
.phone { width: min(260px, 44vw); border-radius: 34px; padding: 9px; background: #0f2c21; border: 1px solid rgba(212,175,55,.45); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.phone img { display: block; width: 100%; border-radius: 26px; }
.phones .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 28px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .phone { width: min(200px, 42vw); }
}

/* secciones */
section { padding: 36px 0; }
h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.4px; margin: 0 0 18px; }
section > .wrap > h2::after { content: ''; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.sub { color: var(--muted); margin: -8px 0 22px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { font-size: 24px; display: block; margin-bottom: 6px; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; border-radius: 20px; border: 1px solid var(--line); }
.gallery figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }
.disclaimer { color: var(--muted); font-size: 13px; margin-top: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.faq details p, .faq details ul { color: var(--muted); margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablebox { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; background: var(--bg2); }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; } .no { color: var(--muted); } .plan { color: var(--yellow); font-weight: 700; }

/* páginas de texto */
.page { padding-top: 40px; padding-bottom: 24px; max-width: 820px; }
.page h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.6px; margin: 0 0 8px; }
.page h2 { font-size: 24px; margin: 32px 0 10px; }
.page p, .page li { color: #d6dee8; }
.page .meta { color: var(--muted); font-size: 15px; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--yellow); background: var(--card); border-radius: 12px; padding: 12px 16px; margin: 18px 0; color: var(--muted); font-size: 15px; }
.todo { background: rgba(244,196,48,.14); color: var(--yellow); border-radius: 4px; padding: 0 4px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--green); font-size: 15px; }
kbd { background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font: inherit; font-size: 14px; }

/* pie */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 12px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* en móvil la galería es una tira deslizable en lugar de ocho capturas apiladas */
@media (max-width: 640px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 62%; scroll-snap-align: center; }
}

.foot-slogan { color: var(--gold); font-weight: 700; margin: 0 0 6px; }
.card h3 { color: var(--text); }
.card { border-top: 2px solid rgba(212,175,55,.35); }

/* ---- «Ayúdanos a mejorar» (formulario compartido por la app y la web) */
.fb { display: grid; gap: 6px; text-align: left; }
.fb-intro { margin: 0 0 6px; color: var(--muted, #b9c4be); line-height: 1.5; }
.fb-l { font-size: 13px; font-weight: 700; margin-top: 6px; }
.fb-opt { font-weight: 400; color: var(--muted, #9aa8a0); font-size: 12px; }
.fb input:not([type=checkbox]):not([type=file]), .fb select, .fb textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line, rgba(255,255,255,.14)); background: var(--bg2, #0b241b); color: var(--text, #f4f1e8); }
.fb textarea { resize: vertical; min-height: 90px; }
.fb input[type=file] { font-size: 14px; color: var(--muted, #b9c4be); }
.fb :focus-visible { outline: 2px solid var(--gold, #d4af37); outline-offset: 1px; }
.fb .fb-bad { border-color: #e5534b !important; box-shadow: 0 0 0 2px rgba(229,83,75,.25); }
.fb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .fb-2 { grid-template-columns: 1fr; } }
.fb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fb-prev img { max-width: 160px; max-height: 120px; border-radius: 8px; margin-top: 6px; border: 1px solid var(--line, rgba(255,255,255,.14)); }
.fb-tech { font-size: 13px; background: rgba(212,175,55,.06); border: 1px solid rgba(212,175,55,.25); border-radius: 10px; padding: 8px 10px; margin-top: 6px; }
.fb-tech summary { cursor: pointer; }
.fb-tech ul { margin: 8px 0; padding-left: 18px; } .fb-tech li span { color: var(--muted, #9aa8a0); }
.fb-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; margin-top: 8px; }
.fb-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #d4af37; }
.fb-check.fb-bad, .fb-check:has(.fb-bad) { color: #ff8b84; }
.fb-status { font-size: 14px; min-height: 1px; } .fb-status.bad { color: #ff8b84; } .fb-status a { color: #d4af37; }
.fb-send { margin-top: 6px; }
.fb-alt { font-size: 13px; color: var(--muted, #9aa8a0); text-align: center; } .fb-alt a { color: #d4af37; }
.fb-done { text-align: center; padding: 18px 6px; }
.fb-done-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 28px; font-weight: 900; background: #d4af37; color: #061a13; }
.fb-done h3 { font-size: 22px; margin: 0 0 6px; } .fb-ref { color: var(--muted, #9aa8a0); }
/* ---- V5: perfiles, novedades y «Invítame a un café» */
.profiles .card h3 { color: var(--gold-hi); }
section.alt { background: rgba(255,255,255,.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-list { padding-left: 20px; } .news-list li { margin: 6px 0; }
.coffee { padding: 28px 0; scroll-margin-top: 76px; }   /* al llegar desde «Apoya», la cabecera fija no tapa el título */
.coffee-card { border: 1px solid rgba(212,175,55,.45); background: linear-gradient(160deg, rgba(212,175,55,.08), transparent 60%), var(--card); max-width: 760px; margin: 0 auto; text-align: center; }
.coffee-card .actions { justify-content: center; flex-wrap: wrap; }
.coffee-amt { min-width: 72px; }
.page.narrow { max-width: 760px; }
.fb-off { background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.5); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.fb-send[disabled] { opacity: .55; cursor: not-allowed; }
.beta-chip { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #061a13; background: #d4af37; vertical-align: middle; }
.coffee-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
@media (max-width: 640px) { .coffee-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coffee-tier { display: grid; gap: 2px; justify-items: center; padding: 12px 8px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(212,175,55,.45); background: rgba(212,175,55,.06); color: var(--text); transition: background .15s, transform .15s; }
.coffee-tier:hover, .coffee-tier:focus-visible { background: rgba(212,175,55,.16); transform: translateY(-1px); }
.coffee-tier b { color: var(--gold-hi); font-size: 20px; }
.coffee-name { font-size: 13px; color: var(--muted); }

/* ---- 1.0: portada, dispositivos, plataformas y descargas ---- */
.hero-v1 { background: radial-gradient(ellipse at 70% 0%, rgba(30,122,79,.35), transparent 60%), linear-gradient(180deg, #061a13, #0a231a); border-bottom: 1px solid var(--line); }
.release { display: inline-block; margin: 18px 0 0; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.release span { color: #061a13; background: var(--gold); border-radius: 999px; padding: 3px 12px; margin-right: 4px; }
.hero h1.slogan-big { font-size: clamp(34px, 5.4vw, 56px); color: var(--text); }
.btn.big { min-height: 58px; padding: 0 30px; font-size: 19px; }
.btn.ghost { background: transparent; }
.devices { position: relative; min-height: 360px; }
.laptop { width: 100%; border-radius: 14px; padding: 8px 8px 14px; background: #0f2c21; border: 1px solid rgba(212,175,55,.45); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.laptop img { display: block; width: 100%; border-radius: 8px; }
.devices .phone { position: absolute; right: -10px; bottom: -40px; width: min(170px, 30vw); padding: 6px; border-radius: 24px; }
.devices .phone img { border-radius: 18px; }
.features .card h3, .philosophy .card h3 { margin-top: 0; }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gallery.wide img { border-radius: 12px; }
.platforms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.plat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); text-decoration: none; }
.plat b { color: var(--text); font-size: 17px; }
.plat.on { border-style: solid; border-color: var(--green); }
.plat.on span { color: var(--green); font-weight: 800; }
.downloads { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin: 24px 0; align-items: start; }
.card.dl { display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; align-self: start; }
.card.dl.soon { opacity: .9; border-style: dashed; }
.card.dl.live { border-color: var(--green); }
.dl-head { display: flex; gap: 12px; align-items: center; }
.dl-head h2 { margin: 0; font-size: 22px; }
.dl-icon { font-size: 30px; }
.dl-what { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.soon-chip { align-self: flex-start; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); font-weight: 800; }
.dl-meta { width: 100%; border-collapse: collapse; font-size: 14px; }
.dl-meta th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 8px 4px 0; vertical-align: top; width: 38%; }
.dl-meta td { padding: 4px 0; }
.dl-meta code { word-break: break-all; font-size: 12px; }
.card.dl details summary { cursor: pointer; color: var(--gold); font-weight: 700; }
@media (max-width: 860px) { .devices { min-height: 0; margin-bottom: 40px; } .devices .phone { right: 0; bottom: -30px; width: 32vw; } }
.downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.downloads .card.dl#web { grid-column: 1 / -1; }
@media (max-width: 640px) { .downloads { grid-template-columns: 1fr; } }

/* ---- Momentos decisivos (portada y páginas) ---- */
.dm-show h2 { font-size: clamp(24px, 4.2vw, 38px); line-height: 1.15; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin: 0 0 6px; }
.dm-steps { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 26px; }
.dm-steps figure { margin: 0; }
.dm-steps img { display: block; width: 100%; max-width: 330px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--line); }
.dm-steps figcaption { font-size: 15px; margin-top: 10px; color: var(--muted); }
.dm-steps figcaption b { color: var(--text, inherit); display: block; }
@media (max-width: 760px) {
  .dm-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; }
  .dm-steps figure { flex: 0 0 72%; scroll-snap-align: center; }
}
