/* Pijamas Amore · demo InnovaPixel · sistema base (tokens, tipos, botones, nav, barra demo)
   Colores de la marca: lila #9F93DB y crema #F6F3CF (logo de Instagram). Noche azul de fondo;
   rojo y verde solo en lo navideño, como en sus pijamas de seda. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Instrument+Sans:wght@400..700&display=swap');

:root {
  --noche: #0E1326;
  --noche-2: #161C34;
  --noche-3: #212847;
  --crema: #F6F3CF;
  --crema-2: #FBF9EA;
  --papel: #FBF8F1;
  --papel-2: #F1ECDF;
  --lila: #9F93DB;
  --lila-2: #B9AFEA;
  --rojo: #B3192B;
  --rojo-2: #D42A3D;
  --verde: #0E5A3C;
  --verde-2: #17784F;
  --tinta: #191B2B;
  --mute: #4A4757;
  --mute-d: rgba(246, 243, 207, .66);
  --line: rgba(25, 27, 43, .10);
  --line-d: rgba(246, 243, 207, .14);
  --ok: #1D8A55;
  --warn: #A86A00;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --wrap: 1296px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f: 'Instrument Sans', system-ui, sans-serif;
  --fs: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f); color: var(--tinta); background: var(--papel); 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(--lila-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-200%); background: #fff; color: var(--tinta); padding: 10px 14px; border-radius: var(--r-s); z-index: 999; }
.skip:focus { transform: none; }
.nav :focus-visible, .pie :focus-visible { outline: 2px solid var(--crema); outline-offset: 4px; background: rgba(246, 243, 207, .2); box-shadow: 0 0 0 6px rgba(246, 243, 207, .2); }
.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-family: var(--fs); font-weight: 380; font-variation-settings: 'opsz' 144; line-height: .98; letter-spacing: -.02em; }
.display em { font-style: italic; font-weight: 340; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lila-2); box-shadow: 0 0 0 0 rgba(185, 175, 234, .6); animation: am-ping 2.4s var(--ease) infinite; }
h2.h2 { font-family: var(--fs); font-weight: 380; font-variation-settings: 'opsz' 144; font-size: clamp(40px, 5vw, 72px); line-height: 1; margin: 0; letter-spacing: -.02em; }
h2.h2 em { font-style: italic; color: var(--rojo); }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--mute); max-width: 52ch; }
@keyframes am-ping { 0% { box-shadow: 0 0 0 0 rgba(185, 175, 234, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(185, 175, 234, 0); } }

/* Botones */
.btn { --bg: var(--crema); --fg: var(--noche); 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: 600; 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 12px 26px -12px rgba(246, 243, 207, .55); }
.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: rgba(246, 243, 207, .45); }
.btn.linea:hover { box-shadow: none; background: rgba(246, 243, 207, .08); border-color: var(--crema); }
.btn.rojo { --bg: var(--rojo); --fg: #fff; }
.btn.rojo:hover { box-shadow: 0 12px 26px -12px rgba(179, 25, 43, .8); }
.btn.oscuro { --bg: var(--noche); --fg: var(--crema); }
.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, .55) 50%, transparent 65%); transform: translateX(-120%); animation: am-destello 4.5s 1.8s var(--ease) infinite; }
@keyframes am-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(--crema); }
.nav.fija { position: fixed; background: rgba(14, 19, 38, .96); 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: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img.circ { width: 42px; height: 42px; border-radius: 50%; }
.logo img.marca { height: 38px; width: auto; }
.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: 500; opacity: .86; position: relative; padding: 6px 0; }
.nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--lila-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(246, 243, 207, .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(--rojo-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(14, 19, 38, .94); color: var(--crema); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); border: 1px solid var(--line-d); }
.demo-bar span { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--lila-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(246, 243, 207, .1); }
.demo-bar a[aria-current="page"] { background: var(--crema); color: var(--noche); }

.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; falla abierto, ver inicio.js) */
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) {
  .nav .wrap { height: 68px; }
  .logo img.circ { width: 36px; height: 36px; }
  .logo img.marca { height: 30px; }
  .nav .acciones { gap: 4px; }
  .nav .acciones .solo-pc { display: none; }
  .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; }
}
@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: 80px; }
