/* Prestigio Flex · demo InnovaPixel · sistema base (tokens, tipos, botones, nav, barra demo) */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,100..900;1,62..125,100..900&display=swap');

:root {
  --ink: #0B0B0C;
  --ink-2: #151517;
  --ink-3: #222226;
  --paper: #F3F1EC;
  --paper-2: #E9E6DF;
  --white: #FFFFFF;
  --red: #C8102E;
  --red-2: #E8223F;
  --red-soft: #FBE7EA;
  --mute: #6F6A64;
  --mute-d: #A39E97;
  --line: rgba(11, 11, 12, .10);
  --line-d: rgba(255, 255, 255, .12);
  --ok: #138A4B;
  --warn: #B86E00;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --wrap: 1296px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f); font-stretch: 100%; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--r-s); z-index: 999; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipos */
.display { font-stretch: 68%; font-weight: 850; font-style: italic; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 rgba(232, 34, 63, .55); animation: pf-ping 2.4s var(--ease) infinite; }
h2.h2 { font-stretch: 72%; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(40px, 5.4vw, 76px); line-height: .92; margin: 0; letter-spacing: -.005em; }
h2.h2 em { font-style: italic; color: var(--red); }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--mute); max-width: 52ch; }
@keyframes pf-ping { 0% { box-shadow: 0 0 0 0 rgba(232, 34, 63, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(232, 34, 63, 0); } }

/* Botones */
.btn { --bg: var(--red); --fg: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); font-weight: 650; font-size: 16px; text-decoration: none; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(200, 16, 46, .7); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .flecha { transition: transform .25s var(--ease); }
.btn:hover .flecha { transform: translateX(4px); }
.btn.linea { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn.linea:hover { box-shadow: none; background: rgba(255, 255, 255, .08); }
.btn.oscuro { --bg: var(--ink); --fg: var(--white); }
.btn.oscuro:hover { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.btn.chico { min-height: 40px; padding: 0 16px; font-size: 14px; }
/* destello que cruza el botón principal (web-con-vida: botón con destello) */
.btn.destello::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); animation: pf-destello 4.5s 1.8s var(--ease) infinite; }
@keyframes pf-destello { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 40; color: var(--white); }
.nav.fija { position: fixed; background: rgba(11, 11, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-d); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 26px; width: auto; }
.logo b { font-stretch: 75%; font-weight: 850; font-style: italic; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 auto; padding: 0; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 550; opacity: .86; position: relative; padding: 6px 0; }
.nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover { opacity: 1; }
.nav ul a:hover::after { transform: scaleX(1); }
.nav .acciones { display: flex; gap: 8px; }
.ico-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-d); background: transparent; color: inherit; position: relative; transition: background .2s, transform .2s; text-decoration: none; }
.ico-btn:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.ico-btn svg { width: 20px; height: 20px; }
.ico-btn .num { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--red-2); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; }

/* Barra demo (fija abajo a la izquierda) */
.demo-bar { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(11, 11, 12, .92); color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); }
.demo-bar span { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--red-2); padding: 0 10px 0 12px; }
.demo-bar a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.demo-bar a:hover { background: rgba(255, 255, 255, .1); }
.demo-bar a[aria-current="page"] { background: var(--white); color: var(--ink); }

.nota-demo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: #FFF4DF; border-radius: 999px; padding: 5px 11px; }

/* Revelar al bajar (web-con-vida: solo con JS y movimiento permitido) */
html.wv-on [data-rev] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.wv-on [data-rev].visto { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav ul { display: none; }
  .menu-btn { display: grid; }
  .nav .wrap { gap: 12px; }
  .nav .acciones { margin-left: auto; }
}
@media (max-width: 640px) {
  .demo-bar { left: 50%; transform: translateX(-50%); bottom: 12px; }
  .demo-bar a { padding: 9px 11px; font-size: 13px; white-space: nowrap; }
  .demo-bar span { display: none; }
  .logo b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.wv-on [data-rev] { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn.destello::after, .kicker::before { display: none; }
}
section[id] { scroll-margin-top: 76px; }
