/* Base común de los cuatro demos: fuentes y paleta de Codenant, accesibilidad y la franja de aviso.
   El estilo de cada demo vive en su propia carpeta. */
@font-face { font-family: 'Urbanist'; src: url('fuentes/Urbanist-VariableFont_wght.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fuentes/Figtree-VariableFont_wght.ttf') format('truetype'); font-weight: 300 900; font-display: swap; }

:root {
  /* Paleta oficial de Codenant */
  --coral: #ff7e67; --teal: #00a8a8; --azul: #1f3c88; --azul-oscuro: #1b3368; --lavanda: #8085b7;
  /* Nunca texto blanco sobre coral (2.5:1) ni sobre teal (2.9:1): usar --tinta-acento */
  --tinta-acento: #1b3368;
  --titulos: 'Urbanist', system-ui, sans-serif;
  --texto: 'Figtree', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texto); line-height: 1.45; }
h1, h2, h3, h4 { font-family: var(--titulos); margin: 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* Franja de aviso: igual en los cuatro para que nadie confunda el demo con un sitio en operación */
.franja-demo { display: flex; align-items: center; gap: 10px; padding: 7px 14px; background: #0a0f1f; color: #dfe4f5;
  font: 400 12.5px/1.35 var(--texto); border-bottom: 1px solid #263056; position: relative; z-index: 50; }
.franja-demo img { width: 16px; height: 16px; flex: none; }
.franja-demo p { margin: 0; flex: 1; min-width: 0; }
.franja-demo b { font-weight: 700; color: #fff; }
.franja-demo button { position: relative; flex: none; min-height: 30px; padding: 4px 12px; border-radius: 999px; border: 1px solid #5fd6cf; background: transparent; color: #5fd6cf; font-weight: 600; font-size: 12px; }
.franja-demo button::after { content: ''; position: absolute; inset: -8px -6px; }   /* zona táctil de 44 px sin engordar la franja */
.franja-demo button:hover { background: #5fd6cf; color: #0a0f1f; }
.franja-demo button:focus-visible { outline: 3px solid #5fd6cf; outline-offset: 2px; }
