/* ═══════════ ZED — Página de cursos (/cursos/) ═══════════ */
.zcat { --zcat-a: #1559e6; --zcat-t: #0f172a; --zcat-g: #64748b; --zcat-b: #e6ebf3; font-family: inherit; color: var(--zcat-t); background: #f7f9fc; padding-bottom: 72px; }
.zcat *, .zcat *::before, .zcat *::after { box-sizing: border-box; }
.zcat svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.zcat-in { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.zcat-hero { position: relative; overflow: hidden; padding: 64px 0 88px; background: var(--zcat-a); color: #fff; }
.zcat-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.18), transparent 38%), radial-gradient(circle at 5% 100%, rgba(0,0,0,.18), transparent 45%); }
.zcat-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent); }
.zcat-hero .zcat-in { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.zcat-hero__eti { display: inline-flex; padding: 6px 14px; border-radius: 30px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #fff; }
.zcat-hero h1 { margin: 16px 0 10px; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; color: #fff !important; }
.zcat-hero p { margin: 0 auto; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.85) !important; }
.zcat-buscar { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 28px auto 0; padding: 0 18px; height: 56px; border-radius: 16px; background: #fff; color: var(--zcat-g); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.zcat-buscar input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: none !important; font: inherit; font-size: 16px; color: var(--zcat-t); box-shadow: none !important; padding: 0 !important; }

.zcat-cuerpo { position: relative; margin-top: -40px; }
.zcat-aviso { margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 14.5px; line-height: 1.55; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.zcat-aviso a { margin-left: 6px; color: #92400e; font-weight: 700; }
.zcat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px; margin-bottom: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--zcat-b); box-shadow: 0 10px 30px rgba(15,23,42,.06); scrollbar-width: none; }
.zcat-chip { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 42px; padding: 0 16px; border-radius: 12px; color: var(--zcat-t) !important; text-decoration: none !important; font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s; }
.zcat-chip span { min-width: 24px; padding: 1px 8px; border-radius: 20px; background: #eef2f8; font-size: 12px; text-align: center; color: var(--zcat-g); transition: background .2s, color .2s; }
.zcat-chip:hover { background: #f3f6fd; }
.zcat-chip.zcat-on { background: var(--zcat-a); color: #fff !important; }
.zcat-chip.zcat-on span { background: rgba(255,255,255,.22); color: #fff; }

.zcat-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.zcat-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--zcat-b); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; animation: zcatEntra .5s cubic-bezier(.2,.8,.2,1) both; }
.zcat-card:nth-child(2) { animation-delay: .05s; } .zcat-card:nth-child(3) { animation-delay: .1s; } .zcat-card:nth-child(4) { animation-delay: .15s; }
@keyframes zcatEntra { from { opacity: 0; transform: translateY(14px); } }
.zcat-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(15,23,42,.1); }
.zcat-card[hidden] { display: none; }
.zcat-card__img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c); }
.zcat-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.zcat-card:hover .zcat-card__img img { transform: scale(1.05); }
.zcat-card__letra { font-size: 64px; font-weight: 800; color: rgba(255,255,255,.9); }
.zcat-card__cat { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255,.95); color: var(--zcat-t); font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.zcat-card__cuerpo { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.zcat-card h2 { margin: 0 !important; font-size: 18.5px !important; line-height: 1.3 !important; font-weight: 700 !important; letter-spacing: -.01em; }
.zcat-card h2 a { color: var(--zcat-t) !important; text-decoration: none !important; }
.zcat-card h2 a:hover { color: var(--zcat-a) !important; }
.zcat-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--zcat-g); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zcat-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--zcat-g); }
.zcat-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.zcat-card__meta svg { width: 16px; height: 16px; color: var(--zcat-a); }
.zcat-card__avance { height: 6px; border-radius: 6px; background: #eef2f8; overflow: hidden; }
.zcat-card__avance span { display: block; height: 100%; background: var(--zcat-a); border-radius: 6px; }
.zcat-card__pie { margin-top: auto; padding-top: 14px; border-top: 1px solid #eef1f6; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zcat-card__autor { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; font-weight: 500; color: #334155; }
.zcat-card__autor img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.zcat-card__precio { font-size: 17px; font-weight: 800; color: var(--zcat-t); white-space: nowrap; }
.zcat-card__precio--gratis { color: #16a34a; }
.zcat-card__btn { padding: 9px 14px; border-radius: 10px; background: var(--zcat-a); color: #fff !important; text-decoration: none !important; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.zcat-card__btn--ok { background: #dcfce7; color: #166534 !important; }

.zcat-vacio { padding: 30px; text-align: center; color: var(--zcat-g); }
.zcat-vacio--grande { padding: 70px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--zcat-b); }
.zcat-vacio--grande svg { width: 44px; height: 44px; color: var(--zcat-a); }
.zcat-vacio--grande h2 { margin: 14px 0 6px; font-size: 22px; color: var(--zcat-t); }
.zcat-vacio--grande p { margin: 0; }
@media (max-width: 640px) {
	.zcat-in { width: calc(100% - 28px); }
	.zcat-hero { padding: 44px 0 76px; }
	.zcat-grilla { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .zcat-card { animation: none; } }
.zcat-card__img, .zcat-card__img:hover { text-decoration: none !important; }

