.toolbar { position: sticky; top: 0; z-index: 80; background: rgba(5,8,15,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-line); }
.toolbar { top: 62px; }
.toolbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 320px; max-width: 520px; }
.search input { width: 100%; padding: 14px 18px 14px 48px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text); font: inherit; border-radius: 999px; outline: none; transition: border-color .3s; }
.search input:focus { border-color: var(--c-accent); }
.search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; stroke: var(--c-muted); fill: none; stroke-width: 2; }
.count { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--c-muted); }
.count b { color: var(--c-accent); }

.catalog { padding-block: 56px 120px; min-height: 60vh; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.pcard { position: relative; display: grid; gap: 16px; cursor: pointer; outline: none; }
.pcard__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--c-surface-2); border-radius: var(--radius); }
.pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .6s; }
.pcard__img img + img { opacity: 0; }
.pcard:hover .pcard__img img:first-child { transform: scale(1.08); }
.pcard:hover .pcard__img img + img { opacity: 1; transform: scale(1.04); }
.pcard__img::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--c-accent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pcard:hover .pcard__img::after, .pcard:focus-visible .pcard__img::after { opacity: 1; }
.pcard__body { display: grid; gap: 6px; }
.pcard h3 { font-size: 1.5rem; line-height: 1.05; }
.pcard__cta { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent); }
.pcard__cta i { display: block; width: 24px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.pcard:hover .pcard__cta i { width: 48px; }
.pcard.is-hide { display: none; }

.skeleton { aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(100deg, var(--c-surface) 30%, var(--c-surface-2) 50%, var(--c-surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; color: var(--c-muted); padding: 80px 0; grid-column: 1 / -1; }
.demo-note { background: rgba(245,163,0,.12); border: 1px solid var(--c-accent); color: var(--c-accent); padding: 10px 16px; font-size: .8rem; letter-spacing: .08em; margin-bottom: 24px; }

/* Ventana de producto */
.pdlg { width: min(1000px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); overflow: auto; }
.pdlg::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.pdlg[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pdlg__grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.pdlg__gallery { display: grid; gap: 10px; padding: 20px; align-content: start; background: var(--c-bg); }
.pdlg__main { aspect-ratio: 1; background: var(--c-surface-2); overflow: hidden; }
.pdlg__main img { width: 100%; height: 100%; object-fit: contain; }
.pdlg__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pdlg__thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; background: var(--c-surface-2); cursor: pointer; opacity: .6; transition: opacity .3s, border-color .3s; }
.pdlg__thumbs button.is-on, .pdlg__thumbs button:hover { opacity: 1; border-color: var(--c-accent); }
.pdlg__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdlg__info { padding: clamp(24px, 4vw, 48px); display: grid; gap: 20px; align-content: start; }
.pdlg__info h2 { font-size: clamp(2rem, 4vw, 3rem); }
.pdlg__info p { margin: 0; color: #cbd3e0; white-space: pre-line; }
.pdlg__close { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border: 1px solid var(--c-line); background: rgba(5,8,15,.7); color: var(--c-text); font-size: 1.3rem; cursor: pointer; z-index: 2; transition: background .3s, color .3s; }
.pdlg__close:hover { background: var(--c-accent); color: #000; }
@media (max-width: 760px) { .pdlg__grid { grid-template-columns: 1fr; } }
