/* Deck web de Kinnai: las láminas son las mismas del deck Slides (1920×1080), escaladas al ancho disponible. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF7F1;
  --surface: #FFFFFF;
  --border: #E3D9C4;
  --ink: #232019;
  --ink-3: #665F4E;
  --brand: #15805F;
  --brand-dark: #106B4F;
  --brand-tint: #E7F4EE;
  --brand-deep: #0C543E;
  --brand-darkest: #06271E;
  --neon: #05CE7E;
  --amber: #FBBF24;
  --pad: 32px;
  --gap: 28px;
  --bar-h: 64px;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'Plus Jakarta Sans', Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Barra superior */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; min-height: var(--bar-h); padding: 10px var(--pad); background: var(--bg); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 34px; height: 34px; border-radius: 10px; }
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.wordmark span { color: var(--neon); }
.event { padding-left: 16px; border-left: 1px solid var(--border); font-size: 14px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: flex; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.lang a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.6px; color: var(--ink-3); text-decoration: none; }
.lang a[aria-current="page"] { background: var(--ink); color: #FFFFFF; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.rotate-hint { display: none; margin: 12px var(--pad) 0; padding: 10px 14px; background: var(--brand-tint); color: var(--brand-deep); border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Láminas */
.deck { display: flex; flex-direction: column; align-items: center; gap: var(--gap); padding: var(--gap) var(--pad) 40px; }
.slide { --k: 0.5; position: relative; width: 100%; max-width: 1600px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; scroll-margin-top: calc(var(--bar-h) + 16px); }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform: scale(var(--k)); transform-origin: 0 0; }
.stage section { position: relative; width: 1920px; height: 1080px; overflow: hidden; font-size: 32px; }
/* Igual que en el deck: lo que fluye se pinta encima de los fondos absolutos. */
.stage section > :not([style*="position:absolute"]) { position: relative; }
.stage h1 { font-size: 96px; font-weight: 600; line-height: 1.1; }
.stage h2 { font-size: 64px; font-weight: 600; line-height: 1.15; }
.stage h3 { font-size: 44px; font-weight: 600; line-height: 1.2; }
.stage p, .stage li { line-height: 1.4; }
.stage img { display: block; }
.stage ul, .stage ol { padding-left: 1.15em; }
.foot { padding: 4px var(--pad) 40px; text-align: center; font-size: 14px; color: var(--ink-3); }
.foot a { color: inherit; }

/* Modo presentación: una lámina a pantalla completa */
.close { display: none; position: fixed; top: 14px; right: 14px; z-index: 30; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: #FFFFFF; font: inherit; font-size: 24px; line-height: 40px; cursor: pointer; opacity: 0.6; }
.close:hover { opacity: 1; }
.hint { position: fixed; left: 50%; bottom: 24px; z-index: 30; padding: 10px 18px; background: rgba(6, 39, 30, 0.92); color: #FFFFFF; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity 0.3s; }
.hint.show { opacity: 1; }
html.presenting, html.presenting body { background: #000000; overflow: hidden; }
html.presenting .bar, html.presenting .rotate-hint, html.presenting .foot { display: none; }
html.presenting .deck { padding: 0; }
html.presenting .slide { display: none; }
html.presenting .slide.current { display: block; position: fixed; left: 50%; top: 50%; z-index: 20; max-width: none; border: 0; border-radius: 0; transform: translate(-50%, -50%); cursor: pointer;
  width: min(100vw, 100vh * 16 / 9); height: min(100vw * 9 / 16, 100vh);
  width: min(100vw, 100dvh * 16 / 9); height: min(100vw * 9 / 16, 100dvh); }
html.presenting .close { display: block; }

@media (max-width: 760px) {
  :root { --pad: 12px; --gap: 14px; --bar-h: 56px; }
  .bar { gap: 10px; }
  .event, .present, .long { display: none; }
  .wordmark { font-size: 22px; }
  .slide { border-radius: 10px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .rotate-hint { display: block; }
}
@media print {
  .bar, .rotate-hint, .foot, .close, .hint { display: none; }
  .deck { padding: 0; gap: 0; }
  .slide { border: 0; border-radius: 0; break-after: page; }
}
