/* Base compartida de los ejemplos de páginas web (marcas ficticias de DS · David Silvera).
   Barra superior, tipografías propias, revelado al hacer scroll y aviso de ejemplo. */
@font-face { font-family: 'EjManrope'; src: url('/fonts/manrope-latin-variable.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'EjSerif'; src: url('/fonts/dm-serif-display-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'EjItalic'; src: url('/fonts/instrument-serif-italic-latin.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'EjManrope', system-ui, sans-serif; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.ej-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .9rem;
  min-height: 38px; padding: .4rem 1rem;
  background: #0f1b2a; color: #e8f2fb; font: 600 .78rem/1.3 'EjManrope', system-ui, sans-serif; text-align: center;
}
.ej-bar a { color: #8fd0ff; text-decoration: underline; text-underline-offset: 3px; }
.ej-bar a:hover { color: #fff; }
body { padding-top: 38px; }
@media (max-width: 560px) { body { padding-top: 58px; } }

.ej-toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 1001; width: min(92vw, 28rem);
  padding: .85rem 1.1rem; border-radius: 14px; background: #0f1b2a; color: #fff;
  font: 600 .9rem/1.4 'EjManrope', system-ui, sans-serif; text-align: center;
  transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.ej-toast.on { transform: translate(-50%, 0); }
.ej-toast a { color: #8fd0ff; }

/* Revelado al hacer scroll: el contenido se ve siempre si no hay JavaScript o el movimiento está reducido */
.motion [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.motion [data-rv].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
