/* the demos catalog (websaite.duxels.com/demo/ and demo.websaite.duxels.com) — the same tokens as the common header's chrome.css; copied from duxels.com/mundo/mundo.css (not linked: that file is a prototype and changes often) */
:root {
  --bg: #0b1020;
  --bg2: #121a33;
  --card: #10172d;
  --fg: #e8ecf8;
  --mut: #a4adc8;
  --ia: #2a86ff;
  --ok: #22b14c;
  --line: rgba(232, 236, 248, 0.14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: radial-gradient(70% 40% at 50% 0%, var(--bg2), var(--bg) 70%) no-repeat, var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ia); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; }
.skip:focus-visible { left: 12px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }

/* The page around the cards (hero, sticky filter bar, closing band): redesigned 2026-10-24 (websaite-100 C2). The cards below are NOT part of it: they are as they always were. */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main { padding-bottom: 64px; --topbar: 56px; /* the common header is fixed over the page: the sticky bar waits under it */ }

/* Buttons of the hero and the band («Pedir mi página gratis» goes away with the panel's switch: data-cta) */
.cta, .ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.cta { background: #22c55e; color: #08210f; font-weight: 700; }
.cta:hover { background: #3ad473; }
.ghost { border: 1px solid rgba(232, 236, 248, 0.28); color: var(--fg); }
.ghost:hover { border-color: var(--fg); }

/* Portada: two columns, with the numbers of the page */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: clamp(72px, 9vw, 104px); padding-bottom: clamp(24px, 4vw, 40px); background: radial-gradient(1200px 400px at 20% 0%, rgba(42, 134, 255, 0.16), transparent 70%) no-repeat; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { color: var(--ia); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 15em; }
.lede { color: var(--mut); max-width: 36rem; font-size: clamp(1rem, 1.6vw, 1.1rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.stats { flex: 1 1 400px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.stats[hidden], .stat[hidden] { display: none; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 1.75rem; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .ok { color: #4ade80; }
.stat span { font-size: 0.78rem; color: var(--mut); }

/* Barra de filtros: fija debajo del header común */
.filters { position: sticky; top: var(--topbar); z-index: 5; background: rgba(11, 16, 32, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid rgba(232, 236, 248, 0.08); border-bottom: 1px solid rgba(232, 236, 248, 0.08); }
.filters-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.search { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--bg2); border: 1px solid rgba(232, 236, 248, 0.16); color: var(--mut); }
.search svg { flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 0.9rem; outline: none; padding: 9px 0; }
.search input::placeholder { color: var(--mut); opacity: 0.85; }
.search:focus-within { border-color: var(--ia); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg2); border: 1px solid rgba(232, 236, 248, 0.16); }
.seg-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 0.82rem; text-decoration: none; cursor: pointer; }
.seg-btn:hover { background: rgba(232, 236, 248, 0.1); }
.seg-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); font-weight: 600; }
.seg-btn[hidden] { display: none; }
.seg-btn .n { opacity: 0.6; margin-left: 5px; font-variant-numeric: tabular-nums; }
.giro { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--mut); }
.giro select { min-height: 44px; max-width: 100%; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(232, 236, 248, 0.16); background: var(--bg2); color: var(--fg); font: inherit; font-size: 0.85rem; }

.meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding-top: 20px; padding-bottom: 18px; color: var(--mut); font-size: 0.88rem; }
.meta-row p[hidden] { display: none; }
.grid-wrap { padding-bottom: 8px; }

/* on a phone the three controls stack up to ~170px: a bar that tall would eat the screen, so it scrolls away there */
@media (max-width: 720px) { .filters { position: static; } .seg { width: 100%; } }

/* Banda final */
.band { margin-top: 36px; margin-bottom: 0; }
.band-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-radius: 20px; padding: clamp(22px, 4vw, 32px); background: linear-gradient(120deg, #13306b, var(--bg2)); border: 1px solid rgba(127, 180, 255, 0.25); }
.band-copy { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.band h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; }
.band p { color: #c6d3f0; font-size: 0.95rem; }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.band-actions a[hidden] { display: none; }

/* the catalog's own 404 (src/demos/worker.js notFoundHtml) */
.notfound { padding-top: clamp(72px, 9vw, 104px); text-align: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0 14px; }
.notfound .lede { margin: 0 auto; }

/* Tarjetas */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card:hover { border-color: rgba(232, 236, 248, 0.28); } /* no lift: the card is not a link, only its buttons are */
.shot { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--accent, var(--bg2)); overflow: visible; }
.shot .desk { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.shot .phone { position: absolute; right: 14px; bottom: -22px; width: 22%; height: auto; aspect-ratio: 390 / 844; /* height:auto: the img's height="844" attribute would beat aspect-ratio */ object-fit: cover; object-position: top; border-radius: 12px; border: 3px solid #05070e; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); background: var(--accent, var(--bg2)); }
.shot .initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, 0.85); }
.shot .initial[hidden] { display: none; } /* author display:grid would beat the UA [hidden] rule */
.body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 18px; padding-right: calc(22% + 28px); min-height: 118px; }
.body h2 { font-size: 1.12rem; line-height: 1.25; }
.meta { color: var(--mut); font-size: 0.9rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--mut); }
.badge.live { color: #0b1020; background: var(--ok); border-color: var(--ok); }
.badge.lang { text-transform: uppercase; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 0 18px 18px; } /* margin-top:auto: buttons line up across a row of cards */
.cbtn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.cbtn:focus-visible { border-radius: 999px; }
.cbtn .arrow { font-size: 0.85em; opacity: 0.7; }
.btn-demo { background: rgba(232, 236, 248, 0.08); color: var(--fg); }
.btn-demo:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-live { background: var(--ok); color: #0b1020; border-color: var(--ok); }
.btn-live:hover { background: #2fc95b; border-color: #2fc95b; }
.btn-buy { background: #25d366; color: #06240f; border-color: #25d366; }
.btn-buy:hover { background: #3be07c; border-color: #3be07c; }
.btn-live .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* «Mis previews» (app host only, public/demo/_/js/mine.js): the same card, a blue edge, its badge and the green button of its state */
.card.mine { border: 2px solid var(--ia); }
.badge.mine { color: #ffd98a; background: #3a3420; border-color: #3a3420; }
.btn-mine { background: var(--ok); color: #0b1020; border-color: var(--ok); }
.btn-mine:hover { background: #2fc95b; border-color: #2fc95b; }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
