/* Tipografía cinética (js/kinetic.js): etiqueta HELLO, pastillas que crecen, cursor de texto, remate en Kalam,
   avalancha de caritas y cierre de marca sobre el tapete. Todo hecho con CSS / SVG propio de la web. */

/* colores de pastilla extra del lema del video: naranja y café */
.mk.o { background: #ffad3b; }
.mk.c { background: #d9b58c; }
.mk.hand { font-family: var(--hand); font-weight: 400; letter-spacing: -.01em; line-height: .73; padding-top: .291em; padding-bottom: 0; }
.mk.hand.mk-dsc { padding-bottom: .217em; }

/* ── etiqueta «HELLO, I'M» (CSS): marco rojo, franja superior con el rótulo, palabra en Kalam ── */
.hello { position: relative; display: inline-block; background: #fff; color: var(--ink); border: .1em solid #d3242c; border-top-width: .34em; border-radius: .18em;
  padding: .02em .2em .04em; font: 700 .9em/1 var(--hand); letter-spacing: -.01em; box-shadow: 0 1px 2px rgba(20, 20, 20, .1), 0 6px 14px -8px rgba(20, 20, 20, .35); margin-bottom: .08em; }
.hello::before { content: "HELLO, I'M"; content: "HELLO, I'M" / ""; position: absolute; left: .4em; top: -1.72em; font: 700 .19em/1 var(--sans); letter-spacing: .06em; color: #fff; white-space: nowrap; }

/* ── frase cinética ── */
.kin .kin-w, .kin .kin-mk, .kin .stk, .kin .hello, .kin .big { display: inline-block; }
.kin-mk { position: relative; isolation: isolate; background: transparent !important; }
.kin-pill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform-origin: 0 50%; pointer-events: none; }
.kin-ch { display: inline; }
.kin-caret { position: absolute; left: 0; top: .04em; bottom: .02em; width: .065em; background: #2f6bff; pointer-events: none; }
.kin-caret::after { content: ""; position: absolute; left: 100%; top: -.16em; width: .4em; height: .28em; background: #2f6bff; border-radius: 0 .06em .06em 0; }
.kin-wait .kin-w, .kin-wait .kin-mk, .kin-wait .stk, .kin-wait .hello, .kin-wait .big { opacity: 0; }

/* «porque organizar tu vida también puede ser DIVERTIDO»: fondo blanco como en el video, líneas apretadas */
.fun { background: #fff; overflow: clip; }
.fun .fun-h { font-size: clamp(2.2rem, min(10vw, 12.5svh), 7.4rem); line-height: .9; }   /* ≈1,45–1,7× en escritorio (según alto de ventana), cabe entera en pantalla */
.fun .fun-h .big { font-size: min(1.9em, 17vw); }   /* DIVERTIDO dominante sin desbordar */
.fun-h .ln { margin: .02em 0; }
.fun-h .stk { height: 1.08em; vertical-align: -.2em; margin: 0 -.1em; }   /* con espacios reales alrededor (lectores de pantalla: «tu vida», no «tuvida») */
.fun-h .hello { font-size: .86em; margin-bottom: .12em; }
.fun-h .big { margin-top: .06em; }

/* ── cierre de marca sobre blanco: lema con pastillas → nota que dibuja la carita → «Happy Notes» ── */
.kin-brand { padding: clamp(24px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); background: #fff; }
.kb-stage { position: relative; height: clamp(440px, 64svh, 620px); overflow: clip; }
.kb-lema { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; z-index: 2; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; white-space: nowrap; }
.kb-mat { position: absolute; inset: 0 var(--pad); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 22px); padding: 24px 18px; color: var(--ink); text-align: center; z-index: 3; }
.kb-notewrap { position: relative; width: clamp(92px, 11vw, 134px); aspect-ratio: 1; }
.kb-note { position: absolute; inset: 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28)); }
.kb-note::before { content: ""; position: absolute; inset: 0; background: var(--sun); clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%); }
.kb-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 20%; height: 20%; background: #f08c25; clip-path: polygon(0 0, 100% 0, 0 100%); }
.kb-note svg { position: absolute; inset: 9%; width: 82%; height: 82%; overflow: visible; }
.kb-note path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.kb-logo { font: 700 clamp(2.7rem, 6.4vw, 4.9rem)/1 var(--hand); letter-spacing: -.01em; margin: 0; }
.kb-tag { font: 500 clamp(1.25rem, 2.6vw, 2.1rem)/1.35 var(--sans); letter-spacing: -.03em; max-width: 30ch; }
.kb-wait .kb-lema, .kb-wait .kb-mat { opacity: 0; }
.kb-static .kb-lema { display: none; }

@media (max-width: 560px) {
  .kb-stage { height: 480px; }
  .kb-lema { font-size: clamp(1.9rem, 9.5vw, 2.5rem); }
  .kb-mat { inset: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .kin-wait .kin-w, .kin-wait .kin-mk, .kin-wait .stk, .kin-wait .hello, .kin-wait .big, .kb-wait .kb-mat { opacity: 1; }
}
