/* =================================================================
   Base compartida de las demos (proyectos conceptuales de Vanmard).
   Cada demo define su paleta y tipografía en su propio <style>.
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; padding-top: 40px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* Banner de Vanmard */
.vm-banner { position: fixed; inset: 0 0 auto 0; z-index: 200; height: 40px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 14px; background: #111111; color: #FFFFFF; font: 500 13px/1.2 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
.vm-banner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-banner a { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); white-space: nowrap; transition: background-color .3s, color .3s; }
.vm-banner a:hover { background: #FFFFFF; color: #111111; }

/* Encabezado de cada demo */
.site-header { position: sticky; top: 40px; z-index: 100; transition: background-color .4s, box-shadow .4s, backdrop-filter .4s; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.site-logo { margin-right: auto; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color .3s, color .3s; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: transparent; place-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; }
@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); flex-direction: column; padding: 10px; border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 17px; }
  .site-header .hide-mobile { display: none; }
}

/* Modo vista previa (dentro de los mockups del sitio de Vanmard) */
.embed { scroll-behavior: auto; scrollbar-width: none; }
.embed::-webkit-scrollbar { display: none; }
.embed body { padding-top: 0; pointer-events: none; }
.embed .vm-banner { display: none; }
.embed .site-header { top: 0; }

/* Entradas */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js .rv.in { opacity: 1; transform: none; }

/* Formularios */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.field input, .field select { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid currentColor; background: transparent; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots label { cursor: pointer; }
.slots input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slots span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid currentColor; font-size: 14px; font-weight: 500; transition: background-color .25s, color .25s; }
.slots input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 3px; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-msg[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
