/* =========================================================
   Valia — base mínima de las webs de ejemplo.
   Solo lo común e invisible; el diseño de cada web va en su propia hoja.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { overflow-x: clip; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea, label { min-width: 0; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Aviso de demostración (igual en todas: identifica que el negocio es ficticio) */
.demo-bar {
  position: fixed; inset: 0 0 auto; z-index: 90; height: 40px;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px;
  background: #14141a; color: #d9d9e3; font: 600 13px/1.2 "Outfit", system-ui, sans-serif; text-align: center;
}
.demo-bar strong { color: #fff; }
.demo-bar a { color: #fff; background: #4338ca; padding: 5px 12px; border-radius: 99px; text-decoration: none; white-space: nowrap; font-weight: 800; }
.demo-bar a:hover { background: #3730a3; }
@media (max-width: 620px) { .demo-bar { font-size: 11.5px; gap: 8px; } .demo-bar__long { display: none; } }

/* Formularios de demostración */
.field__error { display: block; font-size: .82rem; font-weight: 700; margin-top: 5px; color: #c53030; }
.field__error[hidden], [hidden] { display: none !important; }
.done:focus { outline: none; }

/* Galería ampliada */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(8,8,10,.92); }
.lightbox img { max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 50px; right: 18px; border: 0; background: none; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}
