/* ADpersonam · miniaturas del catálogo y demos de efectos */

/* ── Paleta ──────────────────────────────────────────────────────────── */
.pv-paleta { height: 100%; padding: 12px; display: grid; grid-template-rows: 1fr auto auto; gap: 8px; border-radius: 10px; }
.pv-pal-tarjeta { border-radius: 8px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.pv-pal-tarjeta b { font: 800 22px/1 var(--f-titulo); margin-right: auto; }
.pv-pal-tarjeta span { width: 30px; height: 12px; border-radius: 6px; }
.pv-tiras { display: grid; grid-template-columns: repeat(5, 1fr); height: 14px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.pv-paleta code { font: 500 11px/1 ui-monospace, Consolas, monospace; color: var(--soft); background: rgba(0, 0, 0, .45); justify-self: start; padding: 4px 7px; border-radius: 5px; }

/* ── Tipografía ──────────────────────────────────────────────────────── */
.pv-fuente { height: 100%; padding: 14px 16px; display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 10px; }
.pv-fuente > b { font-size: 46px; line-height: 1; color: var(--gold); }
.pv-fuente strong { display: block; font-size: 19px; line-height: 1.1; margin-bottom: 5px; }
.pv-fuente p { font-size: 13px; color: var(--soft); }

/* ── Estilos de diseño (cada uno su mini tarjeta) ────────────────────── */
.pv-estilo { height: 100%; display: grid; place-items: center; border-radius: 10px; padding: 14px; }
.pv-est-card { width: 78%; height: 78%; display: grid; align-content: center; gap: 7px; padding: 12px 14px; position: relative; }
.pv-est-card i { display: block; height: 7px; border-radius: 4px; }
.pv-est-card .l1 { width: 62%; height: 10px; }
.pv-est-card .l2 { width: 88%; } .pv-est-card .l3 { width: 70%; }
.pv-est-btn { width: 46%; height: 16px; margin-top: 4px; }

.est-minimalista { background: #F6F5F2; }
.est-minimalista .pv-est-card { background: #fff; border: 1px solid #E4E2DD; border-radius: 6px; }
.est-minimalista i { background: #D9D6CF; } .est-minimalista .l1 { background: #1d1d1d; }
.est-minimalista .pv-est-btn { background: #1d1d1d; border-radius: 3px; }

.est-glass { background: linear-gradient(135deg, #3B4C6B, #6B4C77 55%, #C98A5E); }
.est-glass .pv-est-card { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.est-glass i { background: rgba(255, 255, 255, .45); } .est-glass .l1 { background: #fff; }
.est-glass .pv-est-btn { background: rgba(255, 255, 255, .85); border-radius: 999px; }

.est-neu { background: #E3E6EC; }
.est-neu .pv-est-card { background: #E3E6EC; border-radius: 14px; box-shadow: 6px 6px 12px #BEC3CC, -6px -6px 12px #FFFFFF; }
.est-neu i { background: #C9CED8; } .est-neu .l1 { background: #5A6477; }
.est-neu .pv-est-btn { background: #E3E6EC; border-radius: 999px; box-shadow: 3px 3px 6px #BEC3CC, -3px -3px 6px #fff; }

.est-brutal { background: #FFE14D; }
.est-brutal .pv-est-card { background: #fff; border: 2.5px solid #111; box-shadow: 6px 6px 0 #111; }
.est-brutal i { background: #111; border-radius: 0; } .est-brutal .l2, .est-brutal .l3 { background: #888; }
.est-brutal .pv-est-btn { background: #FF5A36; border: 2.5px solid #111; }

.est-corp { background: #EEF2F6; }
.est-corp .pv-est-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(20, 40, 70, .12); border-top: 4px solid #1F4E8C; }
.est-corp i { background: #D3DBE6; } .est-corp .l1 { background: #1F2D3D; }
.est-corp .pv-est-btn { background: #1F4E8C; border-radius: 5px; }

.est-futuro { background: #07090F; }
.est-futuro .pv-est-card { background: #0D1220; border: 1px solid rgba(120, 200, 255, .5); box-shadow: 0 0 14px rgba(80, 170, 255, .25), inset 0 0 12px rgba(80, 170, 255, .08); }
.est-futuro i { background: rgba(120, 200, 255, .35); height: 2px; } .est-futuro .l1 { background: #9AD8FF; height: 3px; }
.est-futuro .pv-est-btn { background: transparent; border: 1px solid #9AD8FF; height: 14px; }

.est-clay { background: #F4D9C6; }
.est-clay .pv-est-card { background: #FBE9DD; border-radius: 22px; box-shadow: inset -4px -6px 10px rgba(190, 120, 90, .35), inset 4px 5px 8px rgba(255, 255, 255, .8), 6px 10px 18px rgba(170, 100, 70, .3); }
.est-clay i { background: #E9B99B; } .est-clay .l1 { background: #9D5B3C; }
.est-clay .pv-est-btn { background: #F08A5D; border-radius: 999px; box-shadow: inset -2px -3px 5px rgba(150, 60, 30, .4), inset 2px 2px 4px rgba(255, 255, 255, .6); }

.est-editorial { background: #fff; }
.est-editorial .pv-est-card { background: transparent; border-top: 3px solid #111; border-radius: 0; padding-top: 10px; }
.est-editorial .l1 { background: #111; height: 18px; width: 90%; border-radius: 0; }
.est-editorial i { background: #BDBDBD; border-radius: 0; height: 4px; }
.est-editorial .pv-est-btn { background: #E4002B; height: 4px; width: 30%; }

/* ── Componentes ─────────────────────────────────────────────────────── */
.pv-comp { height: 100%; display: grid; place-items: center; background: var(--bg); border-radius: 10px; }
.mb { display: inline-grid; place-items: center; min-width: 86px; height: 34px; font: 700 13px/1 var(--f-titulo); }
.mb-pastilla { background: var(--gold); color: var(--gold-ink); border-radius: 999px; }
.mb-contorno { border: 1.5px solid var(--gold); color: var(--gold); border-radius: 10px; }
.mb-degradado { border: 2px solid transparent; border-radius: 999px; color: var(--text);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(120deg, var(--gold), var(--copper)) border-box; }
.mc { display: grid; gap: 7px; width: 110px; height: 64px; padding: 12px; border-radius: 12px; }
.mc i { display: block; height: 7px; border-radius: 4px; background: var(--line); } .mc i:first-child { width: 60%; background: var(--soft); }
.mc-plana { border: 1px solid var(--line); }
.mc-elevada { background: var(--surf2); box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 24px rgba(0, 0, 0, .35); }
.mc-fondo { display: grid; place-items: center; width: 150px; height: 92px; border-radius: 10px; background: linear-gradient(135deg, #3B4C6B, #C98A5E); }
.mc-vidrio { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.mc-vidrio i { background: rgba(255, 255, 255, .4); } .mc-vidrio i:first-child { background: #fff; }
.mm { display: flex; gap: 10px; align-items: center; }
.mm i { width: 14px; height: 14px; border-radius: 4px; background: var(--soft); opacity: .6; } .mm i:first-child { background: var(--gold); opacity: 1; }
.mm-inferior { width: 140px; height: 34px; justify-content: space-around; border-radius: 10px; background: var(--surf2); align-self: end; }
.mm-lateral { flex-direction: column; width: 40px; height: 90px; justify-content: center; border-radius: 10px; background: var(--surf2); }
.mm-superior { width: 150px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surf2); }
.mm-superior b { width: 22px; height: 12px; border-radius: 3px; background: var(--text); margin-right: auto; }
.mm-superior i { width: 18px; height: 5px; }
.mf { display: grid; gap: 4px; width: 140px; }
.mf i { display: block; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surf); }
.mf small { font-size: 10px; color: var(--gold); padding-left: 10px; margin-bottom: -10px; position: relative; z-index: 1; background: var(--bg); justify-self: start; margin-left: 8px; padding: 0 4px; }
.mf-encendido i { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 195, 141, .18), 0 0 14px rgba(227, 195, 141, .35); }
.mf-pasos { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mf-pasos em { height: 4px; border-radius: 2px; background: var(--gold); } .mf-pasos em.off { background: var(--line); }
.mf-pasos i { grid-column: 1 / -1; margin-top: 6px; }

/* ── Estructura (layout) ─────────────────────────────────────────────── */
.pv-layout { width: 100%; height: 100%; background: var(--bg); border-radius: 10px; padding: 10px; }
.pv-layout .ly-0 { fill: var(--surf2); }
.pv-layout .ly-1 { fill: var(--gold); opacity: .85; }
.pv-layout .ly-2 { fill: var(--copper); opacity: .8; }

/* ── Iconos ──────────────────────────────────────────────────────────── */
.pv-iconos { height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; background: var(--bg); border-radius: 10px; color: var(--text); }
.pv-ico { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.tr-linea .pv-ico { stroke-width: 1.5; }
.tr-grueso .pv-ico { stroke-width: 2.6; }
.tr-relleno .pv-ico { fill: currentColor; stroke-width: 1; }
.tr-duotono .pv-ico { fill: rgba(227, 195, 141, .3); stroke-width: 1.7; }
.tr-ilustracion .pv-ico { stroke: var(--gold); stroke-width: 1.2; fill: rgba(224, 122, 95, .25); width: 40px; height: 40px; }
.tr-3d .pv-ico { stroke: rgba(255, 255, 255, .9); stroke-width: 1.6; fill: none; padding: 6px; width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, #fff 0 8%, #F2B48F 30%, #C86E45 80%); border-radius: 12px; box-shadow: inset -3px -4px 6px rgba(120, 50, 20, .4), 0 6px 12px rgba(0, 0, 0, .35); }

/* ── Módulos y tono ──────────────────────────────────────────────────── */
.pv-modulo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surf2); color: var(--gold); flex: none; }
.pv-modulo .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pv-tono { margin: 0; height: 100%; display: flex; align-items: center; padding: 16px 18px; background: var(--bg); border-radius: 10px; border-left: 3px solid var(--gold); font-size: 15px; line-height: 1.45; color: var(--text); }

/* ══ Demos de efectos ═══════════════════════════════════════════════════ */
.pv-demo { position: relative; height: 100%; overflow: hidden; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--gold); perspective: 500px; }
.pv-play {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.pv-play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.pv-play:active { transform: scale(.92); }

/* revelado */
.dm-revelado { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.dm-revelado i { display: block; width: 130px; height: 14px; border-radius: 6px; background: var(--surf2); }
.dm-revelado i:first-child { background: var(--gold); width: 90px; }
.dm-revelado.go i { animation: dm-sube .6s cubic-bezier(.2, .8, .2, 1) both; }
.dm-revelado.go i:nth-child(2) { animation-delay: .15s; } .dm-revelado.go i:nth-child(3) { animation-delay: .3s; }
@keyframes dm-sube { from { opacity: 0; transform: translateY(18px); } }

/* parallax */
.dm-parallax i { position: absolute; border-radius: 50%; transition: transform .25s ease-out; }
.dm-parallax .p1 { width: 120px; height: 120px; background: var(--surf2); }
.dm-parallax .p2 { width: 62px; height: 62px; background: var(--copper); opacity: .8; left: 30%; top: 22%; }
.dm-parallax .p3 { width: 26px; height: 26px; background: var(--gold); right: 28%; bottom: 24%; }
.dm-parallax.go .p2 { animation: dm-deriva 1.6s ease-in-out; } .dm-parallax.go .p3 { animation: dm-deriva 1.6s ease-in-out reverse; }
@keyframes dm-deriva { 25% { translate: 16px -8px; } 75% { translate: -14px 8px; } }

/* tilt */
.dm-tilt .tl { width: 120px; height: 80px; border-radius: 12px; background: var(--surf2); position: relative; transform-style: preserve-3d; transition: transform .15s ease-out; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.dm-tilt .tl i { position: absolute; inset: 14px 40px 40px 14px; border-radius: 6px; background: var(--gold); transform: translateZ(30px); }
.dm-tilt .tl b { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 8px; border-radius: 4px; background: var(--soft); transform: translateZ(18px); }
.dm-tilt.go .tl { animation: dm-inclina 1.6s ease-in-out; }
@keyframes dm-inclina { 25% { transform: rotateX(14deg) rotateY(-20deg); } 70% { transform: rotateX(-12deg) rotateY(22deg); } }

/* magnético */
.dm-magnetico .mg { padding: 12px 26px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font: 800 14px/1 var(--f-titulo); transition: transform .2s ease-out; }
.dm-magnetico.go .mg { animation: dm-iman 1.4s ease-in-out; }
@keyframes dm-iman { 30% { transform: translate(14px, -6px) scale(1.05); } 65% { transform: translate(-10px, 5px); } }

/* titular */
.dm-titular p { font: 800 24px/1.1 var(--f-titulo); color: var(--text); text-align: center; }
.dm-titular span { display: inline-block; }
.dm-titular.go span { animation: dm-palabra .55s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; }
.dm-titular.go span:nth-child(2) { animation-delay: .14s; } .dm-titular.go span:nth-child(3) { animation-delay: .28s; }
@keyframes dm-palabra { from { opacity: 0; transform: translateY(22px) rotateX(70deg); } }

/* máquina y palabra que rota */
.dm-maquina .mq, .dm-rota p { font: 700 22px/1 var(--f-titulo); color: var(--text); }
.dm-maquina .mq span:empty::before { content: '\200b'; }
.dm-maquina i { display: inline-block; width: 2px; height: 22px; background: var(--gold); margin-left: 3px; vertical-align: -3px; animation: dm-cursor 1s steps(1) infinite; }
@keyframes dm-cursor { 50% { opacity: 0; } }
.dm-rota .rt { display: inline-block; min-width: 4.6em; overflow: hidden; vertical-align: bottom; }
.dm-rota b { display: inline-block; color: var(--gold); transition: transform .25s, opacity .25s; }
.dm-rota b.sale { transform: translateY(-100%); opacity: 0; }
.dm-rota b.entra { animation: dm-entra .3s ease-out; }
@keyframes dm-entra { from { transform: translateY(100%); opacity: 0; } }

/* esqueleto */
.dm-esqueleto .sk { display: grid; gap: 8px; width: 150px; }
.dm-esqueleto .sk i { height: 12px; border-radius: 6px; background: var(--surf2); }
.dm-esqueleto .sk i:first-child { width: 60%; }
.dm-esqueleto.cargando .sk i { background: linear-gradient(90deg, var(--surf2) 30%, #45454C 50%, var(--surf2) 70%) 0 0 / 300% 100%; animation: dm-barre 1s linear infinite; }
@keyframes dm-barre { from { background-position: 100% 0; } to { background-position: 0 0; } }
.dm-esqueleto .sk-real { display: none; color: var(--text); font-weight: 700; font-size: 15px; text-align: center; animation: dm-sube .4s ease both; }
.dm-esqueleto .sk-real small { color: var(--soft); font-weight: 400; }
.dm-esqueleto.listo .sk { display: none; } .dm-esqueleto.listo .sk-real { display: block; }

/* hoja que sube */
.dm-hoja { align-items: end; }
.dm-hoja .hj { width: 86%; height: 62%; border-radius: 14px 14px 0 0; background: var(--surf2); display: grid; align-content: start; gap: 8px; padding: 14px; transform: translateY(105%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.dm-hoja .hj i { height: 10px; border-radius: 5px; background: var(--line); } .dm-hoja .hj i:first-child { width: 30%; justify-self: center; height: 4px; }
.dm-hoja.abierta .hj { transform: none; }

/* barra que se vuelve vidrio */
.dm-barra { place-items: stretch; }
.dm-barra .br-bar { position: absolute; top: 0; left: 0; right: 0; height: 28px; z-index: 2; transition: background .3s, box-shadow .3s; }
.dm-barra.bajando .br-bar { background: rgba(37, 37, 40, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 1px 0 rgba(255, 255, 255, .12); }
.dm-barra .br-pag { display: grid; gap: 10px; padding: 36px 16px 0; transition: transform 1.2s ease-in-out; }
.dm-barra .br-pag i { height: 40px; border-radius: 8px; background: var(--surf2); } .dm-barra .br-pag i:first-child { background: linear-gradient(120deg, var(--gold), var(--copper)); height: 60px; }
.dm-barra.bajando .br-pag { transform: translateY(-70px); }

/* anillo de luz */
.dm-anillo .an { position: relative; width: 120px; height: 70px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.dm-anillo .an::before { content: ''; position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 0 75%, var(--gold) 88%, transparent 100%); }
.dm-anillo.go .an::before { animation: dm-gira 1.4s linear 2; }
.dm-anillo .an-in { position: absolute; inset: 1.5px; border-radius: 13px; background: var(--surf2); display: grid; place-items: center; font: 800 15px/1 var(--f-titulo); color: var(--text); }
@keyframes dm-gira { to { transform: rotate(1turn); } }

/* destello */
.dm-destello .ds { position: relative; overflow: hidden; padding: 10px 22px; border-radius: 10px; background: var(--surf2); font: 800 34px/1 var(--f-titulo); color: var(--text); }
.dm-destello .ds::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 245, 220, .75), transparent); transform: skewX(-18deg); }
.dm-destello.go .ds::after { animation: dm-cruza .9s ease-in-out; }
@keyframes dm-cruza { to { left: 130%; } }

/* curvas de nivel */
.dm-curvas svg { width: 100%; height: 100%; }
.dm-curvas ellipse { fill: none; stroke: var(--gold); stroke-width: .5; opacity: .55; transform-origin: 62px 44px; }
.dm-curvas.go ellipse { animation: dm-respira 2.4s ease-in-out; }
.dm-curvas.go ellipse:nth-child(odd) { animation-delay: .2s; }
@keyframes dm-respira { 50% { transform: scale(1.08) rotate(4deg); } }

/* medidor */
.dm-medidor svg { width: 70%; }
.dm-medidor path { fill: none; stroke-width: 8; stroke-linecap: round; }
.dm-medidor .md-fondo { stroke: var(--surf2); }
.dm-medidor .md-arco { stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: 22; }
.dm-medidor.go .md-arco { animation: dm-llena 1.2s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes dm-llena { from { stroke-dashoffset: 100; } }
.dm-medidor b { position: absolute; bottom: 18%; font: 800 18px/1 var(--f-titulo); color: var(--text); }

/* transición entre pantallas */
.dm-transicion > div { position: absolute; inset: 14px; border-radius: 10px; display: grid; place-items: center; font: 800 30px/1 var(--f-titulo); transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.dm-transicion .tr-a { background: var(--surf2); color: var(--text); }
.dm-transicion .tr-b { background: var(--gold); color: var(--gold-ink); transform: translateX(110%); }
.dm-transicion.en-b .tr-a { transform: translateX(-30%); opacity: 0; }
.dm-transicion.en-b .tr-b { transform: none; }

/* partículas */
.dm-particulas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-particulas { color: var(--gold); }
