:root {
	--bg: #161618;
	--panel: #1e1e20;
	--panel-2: #2a2a2d;
	--line: rgba(255,255,255,.08);
	--text: #e6e6e8;
	--muted: #98989d;
	--ok: #3ec86a;
	--err: #f5574b;
	--warn: #f1a22b;
	--navy: #1b2e41;
	--accent: #1f6b3c;
	--accent-2: #c9a53a;
	--accent-hi: color-mix(in srgb, var(--accent) 55%, #ffffff);
	--accent-2-hi: color-mix(in srgb, var(--accent-2) 75%, #ffffff);
	--radius: 20px;
	--mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	-webkit-user-select: none;
	user-select: none;
}
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3, .wd-h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
code { font-family: var(--mono); font-size: .9em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-2-hi); outline-offset: 3px; border-radius: 6px; }

.wd-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wd-section { padding: 96px 0; position: relative; }

/* nav */
.wd-nav {
	position: sticky; top: 0; z-index: 50;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.wd-nav.is-scrolled {
	background: rgba(22,22,24,.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-color: var(--line);
}
.wd-nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.wd-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.wd-brand:hover { text-decoration: none; }
.wd-brand img { border-radius: 10px; }
.wd-links { display: flex; gap: 28px; margin-left: auto; }
.wd-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.wd-links a:hover { color: var(--text); text-decoration: none; }
.wd-lang { position: relative; }
.wd-lang summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
	padding: 6px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted);
}
.wd-lang summary::-webkit-details-marker { display: none; }
.wd-lang summary:hover, .wd-lang[open] summary { color: var(--text); background: var(--panel-2); }
.wd-lang ul {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; margin: 0; padding: 6px; list-style: none;
	border-radius: 14px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.wd-lang a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: .9rem; }
.wd-lang a:hover { background: var(--panel-2); text-decoration: none; }
.wd-lang a[aria-current] { color: var(--accent-hi); font-weight: 600; }
.wd-burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* buttons */
.wd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
	background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem;
	box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
	transition: transform .2s, background .3s, box-shadow .3s;
	cursor: pointer;
}
.wd-btn:hover { text-decoration: none; transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 85%, #fff); }
.wd-btn-sm { padding: 8px 16px; font-size: .88rem; }
.wd-btn-lg { padding: 15px 28px; font-size: 1rem; }
.wd-btn-ghost { background: transparent; border-color: var(--line); box-shadow: none; color: var(--text); }
.wd-btn-ghost:hover { background: var(--panel-2); }

/* hero */
.wd-hero { position: relative; margin-top: -69px; padding: 181px 0 136px; overflow: hidden; min-height: 100vh; display: flex; justify-content: center; align-items: center; }
.wd-glow {
	position: absolute; inset: 0 0 auto; height: 100%;
	/* sigue el tema activo (--accent / --accent-2), como el encabezado de la app */
	background:
		radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, color-mix(in srgb, var(--accent) 10%, transparent) 45%, transparent 75%),
		radial-gradient(40% 30% at 50% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
	opacity: .9; pointer-events: none;
	transition: background .6s ease;
}
.wd-hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center; }
.wd-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; }
.wd-grad { color: var(--accent-hi); }
.wd-lead { font-size: 1.15rem; max-width: 34em; }
.wd-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
	padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--panel); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.wd-eyebrow .bi { font-size: .55rem; color: var(--ok); }
.wd-pulse { animation: wd-pulse 1.8s ease-in-out infinite; }
@keyframes wd-pulse { 50% { opacity: .35; } }
.wd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.wd-meta { font-size: .85rem; }

.wd-hero-shot { position: relative; }
.wd-duck {
	position: absolute; z-index: 2; width: 120px; left: -40px; bottom: -36px;
	border-radius: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.5);
	animation: wd-waddle 4s ease-in-out infinite;
}
@keyframes wd-waddle {
	0%, 100% { transform: rotate(-4deg) translateY(0); }
	50% { transform: rotate(4deg) translateY(-8px); }
}
.wd-window {
	border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
	box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03);
	background: var(--panel);
}
.wd-hero .wd-window { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }

/* rotador de capturas */
.wd-rotator { position: relative; }
.wd-rotator img { display: block; width: 100%; height: auto; transition: opacity .8s ease; }
.wd-rotator img:not(:first-child) { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top left; }
.wd-rotator img:not(.is-on) { opacity: 0; }

/* headings */
.wd-kicker {
	display: inline-block; margin-bottom: 12px;
	font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2-hi);
}
.wd-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.wd-inline { padding: 2px 10px; border-radius: 8px; background: var(--panel-2); color: var(--accent-2-hi); font-size: .85em; }

/* pillars */
.wd-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wd-pillar {
	padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
	background: linear-gradient(145deg, var(--panel-2), var(--panel));
}
.wd-pillar .wd-h3 { font-size: 1.4rem; }
.wd-pillar p { margin: 0; }
.wd-pillar-ic {
	display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
	border-radius: 14px; background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-hi); font-size: 1.35rem;
}

/* split */
.wd-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.wd-split-rev { grid-template-columns: 1fr 1.2fr; }
.wd-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.wd-checks .bi { color: var(--ok); margin-right: 8px; }

/* canvas demo */
.wd-canvas {
	position: relative; aspect-ratio: 13 / 8; border-radius: var(--radius); border: 1px solid var(--line);
	background-color: #171717;
	background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px);
	background-size: 16px 16px;
	overflow: hidden;
}
.wd-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.wd-edges path { fill: none; stroke: #8a8a8f; stroke-width: 1.6; stroke-dasharray: 6 5; animation: wd-flow .9s linear infinite; }
.wd-edges marker path { fill: #8a8a8f; stroke: none; animation: none; }
@keyframes wd-flow { to { stroke-dashoffset: -11; } }
.wd-node {
	position: absolute; width: 39%; padding: 11px 12px 9px;
	border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: #212123;
	box-shadow: 0 8px 22px rgba(0,0,0,.4);
	font-size: clamp(.62rem, 1.35vw, .82rem);
}
.wd-node-hd { display: flex; gap: 9px; align-items: flex-start; }
.wd-node-hd > .bi { color: var(--tint); font-size: 1.15em; line-height: 1.3; }
.wd-node b { display: block; color: #fff; font-size: 1em; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-node small { display: block; color: var(--muted); font-size: .85em; }
.wd-node-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1em; font: .85em var(--mono); color: var(--muted); }
.wd-node-ft > span { display: inline-flex; align-items: center; gap: 7px; }
.wd-node-tools { font-size: .9em; }
.wd-play {
	display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%;
	background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); font-size: 1.05em;
}
.wd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.wd-dot.ok { background: var(--ok); }
.wd-dot.run { background: var(--warn); animation: wd-pulse 1s infinite; }
.wd-node-run { animation: wd-beat 2.4s ease-in-out infinite; }
@keyframes wd-beat {
	0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 0 color-mix(in srgb, var(--tint) 40%, transparent); }
	50% { box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 8px transparent; }
}

/* panel programación */
.wd-panel {
	max-width: 440px; justify-self: center; width: 100%;
	border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: #202022;
	box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); font-size: .85rem; overflow: hidden;
}
.wd-panel, .wd-panel[data-reveal].is-in { transition: opacity .7s ease, transform .45s ease, box-shadow .45s ease; }
.wd-panel[data-reveal].is-in:hover, .wd-panel:not([data-reveal]):hover {
	transform: perspective(1200px) rotateY(4deg) rotateX(2deg) translateY(-4px);
	box-shadow: 0 40px 80px -24px rgba(0,0,0,.8);
}
.wd-panel-hd { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 10px; }
.wd-panel-hd b { display: block; color: #fff; font-size: 1.05rem; }
.wd-panel-hd small { color: var(--muted); font-size: .75rem; }
.wd-panel-hd .bi { color: var(--muted); }
.wd-panel-tabs { display: flex; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); overflow: hidden; }
.wd-panel-tabs span { padding: 8px 6px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.wd-panel-tabs .is-on { color: var(--ok); box-shadow: inset 0 -2px var(--ok); }
.wd-panel-bd { padding: 12px 18px 8px; }
.wd-panel label { display: block; margin: 10px 0 6px; color: var(--muted); font-size: .78rem; }
.wd-field {
	display: flex; justify-content: space-between; align-items: center;
	padding: 9px 12px; border-radius: 8px; background: #2a2a2d; color: var(--text); font-weight: 500;
}
.wd-field .bi { font-size: .75rem; color: var(--muted); }
.wd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wd-days { display: flex; flex-wrap: wrap; gap: 5px; }
.wd-days span { padding: 5px 10px; border-radius: 999px; background: #2a2a2d; color: var(--text); font-size: .76rem; border: 1px solid transparent; }
.wd-days .is-on { background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: color-mix(in srgb, var(--ok) 60%, transparent); color: var(--ok); }
.wd-cron { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 6px; background: #2a2a2d; color: var(--muted); font-size: .72rem; }
.wd-panel hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0 4px; }
.wd-toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.wd-toggle-row b { display: block; color: var(--text); font-weight: 600; }
.wd-toggle-row small { color: var(--muted); font-size: .72rem; }
.wd-toggle { flex-shrink: 0; position: relative; width: 34px; height: 20px; border-radius: 999px; background: #3a3a3e; }
.wd-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #9a9a9f; transition: transform .3s; }
.wd-toggle.is-on { background: color-mix(in srgb, var(--ok) 55%, #1e1e20); }
.wd-toggle.is-on::after { transform: translateX(14px); background: #d9f5e2; }
.wd-panel-ft { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.wd-panel-ft > .bi { color: var(--err); margin-right: auto; }
.wd-mini-btn { padding: 8px 16px; border-radius: 8px; background: var(--ok); color: #0f2416; font-weight: 700; }
.wd-mini-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

/* tints */
[data-tint="green"]  { --tint: #3ec86a; }
[data-tint="gold"]   { --tint: #d9b64a; }
[data-tint="purple"] { --tint: #9b7be0; }
[data-tint="wine"]   { --tint: #e0648a; }
[data-tint="teal"]   { --tint: #3fbfb0; }
[data-tint="slate"]  { --tint: #9aab8e; }
[data-tint="orange"] { --tint: #f08a4b; }
[data-tint="blue"]   { --tint: #5b9be6; }

/* feature cards */
.wd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wd-card {
	position: relative; overflow: hidden; padding: 26px 24px;
	border-radius: var(--radius);
	border: 1px solid color-mix(in srgb, var(--tint) 22%, transparent);
	background: linear-gradient(145deg, color-mix(in srgb, var(--tint) 16%, var(--panel)), color-mix(in srgb, var(--tint) 4%, var(--bg)));
	transition: transform .25s, border-color .25s;
}
.wd-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tint) 45%, transparent); }
.wd-card h3 { color: #fff; }
.wd-card p { margin: 0; font-size: .9rem; }
.wd-card-ic {
	display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
	border-radius: 12px; background: color-mix(in srgb, var(--tint) 22%, transparent); color: var(--tint); font-size: 1.15rem;
}
.wd-card-bg {
	position: absolute; right: -14px; top: -10px; font-size: 6rem; line-height: 1;
	color: var(--tint); opacity: .07; transform: rotate(-12deg); pointer-events: none;
}

/* shots */
.wd-shots { padding-top: 0; }
.wd-shots-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wd-shots figure { margin: 0; }
.wd-shots img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.wd-shots figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); text-align: center; }

/* cases */
.wd-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wd-case { min-width: 0; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.wd-case h3 .bi { color: var(--accent-2-hi); margin-right: 6px; }
.wd-case pre {
	margin: 0; padding: 16px 18px; border-radius: 12px; overflow-x: auto;
	background: #111113; border: 1px solid var(--line);
	font: .82rem/1.6 var(--mono); color: var(--accent-hi);
}

/* security */
.wd-sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wd-sec { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.wd-sec > .bi { font-size: 1.5rem; color: var(--accent-hi); flex-shrink: 0; }
.wd-sec p { margin: 0; font-size: .9rem; }

/* themes */
.wd-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wd-swatch {
	width: 52px; height: 36px; border-radius: 10px; cursor: pointer;
	border: 0; padding: 0;
	background: linear-gradient(90deg, var(--sa) 50%, var(--sb) 50%);
	transition: transform .2s, box-shadow .2s;
}
.wd-swatch:hover { transform: translateY(-2px); }
.wd-swatch.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.wd-theme-name { margin-top: 14px; font-weight: 600; color: var(--text); }

/* downloads */
.wd-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wd-dl-card {
	padding: 32px 28px; border-radius: var(--radius); text-align: center;
	border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), var(--panel));
	transition: border-color .3s, transform .3s;
}
.wd-dl-card.is-mine { border-color: color-mix(in srgb, var(--accent) 80%, #fff); transform: translateY(-4px); }
.wd-dl-card.is-mine h3::after {
	content: attr(data-mine); display: inline-block; margin-left: 8px; vertical-align: middle;
	padding: 2px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600;
	background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-hi);
}
.wd-dl-ic { font-size: 2.6rem; display: block; margin-bottom: 12px; color: var(--text); }
.wd-dl-files { display: grid; gap: 10px; margin-top: 18px; }
.wd-dl-files .wd-btn { width: 100%; }
.wd-dl-files small { display: block; font-size: .78rem; color: var(--muted); }
.wd-soon {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	background: var(--panel-2); color: var(--muted); font-size: .85rem;
}
.wd-notes {
	max-width: 720px; margin: 40px auto 0; padding: 24px 28px;
	border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
}
.wd-notes h3 { margin-bottom: 12px; }
.wd-notes ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }

/* novedades */
.wd-dl-ver { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.wd-license { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.wd-license a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.wd-mail-legal { margin: 6px 0 0; font-size: .72rem; color: var(--muted); }
.wd-mail-legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); }
.wd-dl-legal { margin: 4px 20px 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .76rem; line-height: 1.5; color: var(--muted); }
.wd-dl-legal p { margin: 0 0 4px; }
.wd-os-note { margin: 14px 0 0; font-size: .76rem; line-height: 1.5; color: var(--muted); text-align: left; }
.wd-os-note .bi { color: var(--accent-2-hi); }
.wd-os-note b { color: var(--text); font-weight: 600; }
.wd-modal .wd-os-note { margin: 0 20px 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent-2-hi) 6%, transparent); }
.wd-dl-legal b { color: var(--text); font-weight: 600; }
.wd-dl-legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.wd-cl-btn { gap: 6px; padding: 6px 14px; font-size: .82rem; }
.wd-cl-btn .bi { color: var(--ok); }
.wd-cl-btn:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
.wd-cl { width: min(760px, calc(100vw - 32px)); }
.wd-cl-bd { padding: 0 20px 20px; overflow-y: auto; max-height: calc(100vh - 140px); }
.wd-cl-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin-top: 10px; }
.wd-cl-item > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.wd-cl-item > summary::-webkit-details-marker { display: none; }
.wd-cl-item > summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; color: var(--muted); transition: transform .2s ease; }
.wd-cl-item[open] > summary::after { transform: rotate(180deg); }
.wd-cl-item > summary b { font: 600 .95rem var(--mono); color: #fff; }
.wd-cl-item time { color: var(--muted); font-size: .8rem; }
.wd-cl-tag { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: var(--ok); border: 1px solid currentColor; }
.wd-cl-item > :not(summary) { margin-left: 16px; margin-right: 16px; }
.wd-cl-item > :last-child { margin-bottom: 16px; }
.wd-md { color: var(--muted); font-size: .9rem; }
.wd-md h1, .wd-md h2, .wd-md h3 { color: var(--text); font-size: 1rem; margin: 12px 0 6px; }
.wd-md ul { padding-left: 20px; margin: 6px 0; }
.wd-md code, .wd-cl-fixes code { font: .78rem var(--mono); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }
.wd-md a { color: var(--ok); }
.wd-cl-type { display: flex; align-items: center; gap: 8px; margin: 14px 16px 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.wd-cl-type.is-security { color: var(--err); }
.wd-cl-type.is-feature  { color: var(--ok); }
.wd-cl-type.is-fix      { color: #6ea8fe; }
.wd-cl-fixes { list-style: none; padding: 0; font-size: .88rem; }
.wd-cl-fixes li { padding: 6px 0; border-top: 1px solid var(--line); }
.wd-cl-fixes li:first-child { border-top: 0; }
.wd-cl-fixes p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.wd-cl-bd { -webkit-user-select: text; user-select: text; }

/* licencias de terceros */
.wd-tp-langs { display: flex; gap: 12px; margin-left: auto; font-size: .85rem; }
.wd-tp-langs a { color: var(--muted); }
.wd-tp-langs a[aria-current] { color: var(--text); font-weight: 600; }
/* mismo ancho para encabezado, licencia propia, lista y nota */
.wd-tp { --tp-w: 760px; }
.wd-tp .wd-head, .wd-tp-list, .wd-tp-empty, .wd-tp-note { max-width: var(--tp-w) !important; margin-left: auto; margin-right: auto; }
.wd-tp .wd-head { margin-bottom: 20px; }
.wd-tp .wd-head > p { max-width: none; }
.wd-tp .wd-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.wd-tp-own { max-width: none; margin: 20px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: left; }
.wd-tp-own .wd-license b { color: var(--text); }
.wd-tp-own-desc { margin: 6px 0 0; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.wd-tp-list { margin-top: 0; display: grid; gap: 12px; }
.wd-tp-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px 20px; }
.wd-tp-hd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.wd-tp-hd h2 { font-size: 1.05rem; margin: 0; }
.wd-tp-hd h2 a { color: var(--text); }
.wd-tp-hd code { font: .75rem var(--mono); color: var(--muted); }
.wd-tp-lic { margin-left: auto; font: 600 .75rem var(--mono); padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); }
.wd-tp-lic a { color: var(--ok); }
.wd-tp-copy { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.wd-tp-text { margin: 10px 0 0; max-height: 240px; overflow: auto; padding: 12px; border-radius: 10px; background: var(--panel-2); font: .75rem/1.5 var(--mono); color: var(--muted); white-space: pre-wrap; -webkit-user-select: text; user-select: text; }
.wd-tp-empty, .wd-tp-note { text-align: center; color: var(--muted); font-size: .85rem; max-width: 760px; margin: 24px auto 0; }
.wd-tp-back { text-align: center; margin-top: 24px; }

/* confirmar / baja suscripción */
.wd-sub { min-height: 100vh; display: flex; align-items: center; }
.wd-sub-in { text-align: center; max-width: 560px; }
.wd-sub-in img { border-radius: 18px; margin: 0 auto 12px; }
.wd-sub-in h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 20px; }
.wd-sub-ico { font-size: 2rem; margin: 0 0 8px; }
.wd-sub-ico.is-confirm { color: var(--ok); }
.wd-sub-ico.is-unsubscribe { color: var(--muted); }
.wd-sub-ico.is-error { color: var(--warn); }
.wd-sub-note { font-size: .82rem; }
.wd-sub-note a { color: var(--muted); text-decoration: underline; }

/* botón de descarga mientras verifica */
.wd-files .is-loading { opacity: .7; pointer-events: none; }
.wd-files .is-loading .bi { animation: wd-spin 1s linear infinite; }
@keyframes wd-spin { to { transform: rotate(360deg); } }

/* reCAPTCHA: badge oculto, aviso en el modal (permitido por Google) */
.grecaptcha-badge { visibility: hidden; }
.wd-recaptcha { margin: 0 20px 10px; font-size: .7rem; color: var(--muted); opacity: .8; }
.wd-recaptcha a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); }

/* consentimiento cookies */
.wd-cookies { position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 60; max-width: 680px; margin: 0 auto; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.65); font-size: .92rem; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wd-cookies-ico { font-size: 1.6rem; line-height: 1; color: var(--accent-2); flex-shrink: 0; }
.wd-cookies[hidden] { display: none; }
.wd-cookies p { margin: 0; flex: 1 1 300px; color: var(--muted); line-height: 1.5; }
.wd-cookies p a { color: var(--text); text-decoration: underline; }
.wd-cookies-act { display: flex; gap: 8px; }

/* final */
.wd-final { overflow: hidden; }
.wd-final-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wd-final-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.wd-quote { font-style: italic; margin: 0; font-size: 1.05rem; }
.wd-coffee { margin-top: 32px; }
.wd-coffee p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; max-width: 42ch; }
.wd-btn-coffee { background: #ffdd00; color: #1a1a1a; box-shadow: 0 8px 24px -8px rgba(255,221,0,.45); }
.wd-btn-coffee:hover { background: #ffe433; color: #1a1a1a; }
.wd-btn-coffee .bi { font-size: 1.05rem; }
.wd-final-art { position: relative; display: block; }
.wd-final-art::before {
	content: ''; position: absolute; inset: 10% 5% 0; z-index: -1;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
	filter: blur(30px);
}
.wd-final-art img {
	width: 100%; max-width: 360px; margin: 0 auto;
	-webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
	animation: wd-float 6s ease-in-out infinite;
}
@keyframes wd-float { 50% { transform: translateY(-10px); } }

/* footer */
.wd-foot { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .88rem; background: linear-gradient(180deg, transparent, rgba(255,255,255,.015)); }
.wd-foot p { margin: 0; }
.wd-foot a { color: var(--muted); transition: color .2s; }
.wd-foot a:hover { color: var(--text); text-decoration: none; }
.wd-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.wd-foot-about .wd-brand { color: var(--text); }
.wd-foot-about img { border-radius: 8px; }
.wd-foot-tag { margin-top: 12px !important; color: var(--muted); max-width: 30ch; }
.wd-foot-love { margin-top: 16px !important; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.wd-foot-love b { color: var(--text); font-weight: 600; }
.wd-heart { color: #f5574b; display: inline-block; animation: wd-beat 1.6s ease-in-out infinite; }
@keyframes wd-beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.2); } }
.wd-flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.wd-foot-col { display: flex; flex-direction: column; gap: 8px; }
.wd-foot-col h3 { margin: 0 0 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); }
.wd-foot-col a[aria-current] { color: var(--text); font-weight: 600; }
.wd-foot-col .bi { font-size: .7rem; }
.wd-foot-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
@media (max-width: 860px) {
	.wd-foot-grid { grid-template-columns: 1fr 1fr; }
	.wd-foot-about { grid-column: 1 / -1; }
	.wd-foot-bar { justify-content: center; text-align: center; }
}

/* modal descarga */
.wd-modal {
	width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
	border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--text);
	box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.wd-modal::backdrop { background: rgba(8,8,10,.7); backdrop-filter: blur(6px); }
.wd-modal[open] { animation: wd-pop .25s ease; }
@keyframes wd-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.wd-modal-hd { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.wd-modal-hd h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; }
.wd-modal-hd img { border-radius: 8px; }
.wd-modal-ver { font: .75rem var(--mono); color: var(--muted); }
.wd-x { background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 6px; border-radius: 8px; }
.wd-x:hover { color: var(--text); background: var(--panel-2); }
.wd-os-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.wd-os-tabs button {
	background: none; border: 0; padding: 10px 14px; color: var(--muted); font-family: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
	box-shadow: inset 0 -2px transparent;
}
.wd-os-tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px var(--accent-hi); }
.wd-files { list-style: none; margin: 0; padding: 12px 20px 20px; display: grid; gap: 10px; }
.wd-file {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2);
}
.wd-file-info { min-width: 0; }
.wd-file b { display: flex; align-items: center; gap: 8px; }
.wd-file small { display: block; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.wd-files-empty { padding: 24px 0; text-align: center; color: var(--muted); }
.wd-badge {
	padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600;
	background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-hi);
}
.wd-link { background: none; border: 0; padding: 0; color: var(--accent-hi); font: inherit; font-size: .78rem; cursor: pointer; }
.wd-link:hover { text-decoration: underline; }
.wd-sha { margin-top: 4px; color: var(--muted); }
.wd-done { text-align: center; padding: 12px 24px 4px; }
.wd-done .bi { font-size: 2.6rem; color: var(--ok); }
.wd-done h3 { margin-top: 8px; font-size: 1.2rem; }
.wd-mail { margin: 8px 20px 20px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.wd-mail h3 { margin-bottom: 4px; }
.wd-mail p { font-size: .88rem; margin-bottom: 12px; }
.wd-mail-row { display: flex; gap: 8px; }
.wd-mail input[type=email] {
	flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--bg); color: var(--text); font: inherit; font-size: .9rem;
}
.wd-mail input[type=email]:focus { outline: 2px solid var(--accent-hi); outline-offset: 1px; }
.wd-optin { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.wd-optin input { accent-color: var(--accent); }
.wd-mail-msg { min-height: 1.2em; margin: 8px 0 0 !important; color: var(--text) !important; }
.wd-mail .wd-link { display: block; margin: 6px auto 0; color: var(--muted); }
.wd-dl-files small { margin-top: 2px; }
@media (max-width: 520px) {
	.wd-file { flex-direction: column; align-items: stretch; }
	.wd-mail-row { flex-direction: column; }
	.wd-os-tabs { padding: 0 8px; }
	.wd-os-tabs button { flex: 1; padding: 10px 4px; font-size: .8rem; }
}

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
.wd-hero .wd-window[data-reveal].is-in { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.no-js [data-reveal] { opacity: 1; transform: none; }

.wd-btn-icon { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
.wd-btn-icon .bi { font-size: 1rem; margin: 0; }

/* pantallas amplias */
@media (min-width: 1440px) {
	.wd-container { max-width: 1320px; padding: 0 32px; }
	.wd-hero-in { grid-template-columns: 1fr 1.3fr; gap: 96px; }
	.wd-hero h1 { font-size: clamp(3.4rem, 3.6vw, 4.1rem); }
	.wd-lead { font-size: 1.22rem; }
	.wd-head { max-width: 760px; }
}
@media (min-width: 1800px) {
	body { font-size: 17px; }
	.wd-container { max-width: 1520px; }
	.wd-hero { padding: 201px 0 160px; }
	.wd-hero-in { gap: 120px; }
	.wd-hero h1 { font-size: 4.6rem; }
	.wd-lead { font-size: 1.3rem; }
	.wd-head { max-width: 840px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	[data-reveal] { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
	.wd-panel:hover, .wd-panel[data-reveal].is-in:hover { transform: none; }
}

@media (max-width: 1024px) {
	.wd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.wd-final-in { grid-template-columns: 1fr; gap: 16px; text-align: center; }
	.wd-final-art { order: -1; }
	.wd-final-art img { max-width: 260px; }
	.wd-coffee p { margin-left: auto; margin-right: auto; }
	.wd-section { padding: 72px 0; }
	.wd-hero { padding-top: 133px; padding-bottom: 88px; }
	.wd-hero-in, .wd-split, .wd-split-rev { grid-template-columns: 1fr; gap: 40px; }
	.wd-hero .wd-window, .wd-hero .wd-window[data-reveal].is-in { transform: none; }
	.wd-hero-copy { text-align: center; }
	.wd-hero-copy .wd-lead { margin-left: auto; margin-right: auto; }
	.wd-hero-copy .wd-cta { justify-content: center; }
	.wd-duck { width: 84px; left: auto; right: 12px; bottom: -28px; }
	.wd-pillars, .wd-shots-in, .wd-dl, .wd-cases, .wd-sec-grid { grid-template-columns: 1fr; }
	.wd-links {
		display: none; position: absolute; top: 68px; left: 0; right: 0;
		flex-direction: column; gap: 0; padding: 8px 16px 16px;
		background: var(--bg); border-bottom: 1px solid var(--line);
	}
	.wd-links.is-open { display: flex; }
	.wd-links a { padding: 12px 0; }
	.wd-burger { display: block; }
	.wd-nav-in { gap: 12px; }
	.wd-lang { margin-left: auto; }
	.wd-nav-cta { display: none; }
}
@media (max-width: 520px) {
	.wd-grid { grid-template-columns: 1fr; }
	.wd-cta .wd-btn { width: 100%; }
	.wd-node { width: 42%; padding: 8px 9px 7px; }
	.wd-node-tools { display: none; }
	.wd-case { padding: 20px 16px; }
	.wd-case pre { padding: 12px 14px; font-size: .74rem; }
}
