/* Página «Programa» */
.prog-wrap { padding-top: 2.5rem; padding-bottom: 3rem; }
.prog-head { max-width: 760px; margin-bottom: 2.2rem; }
.prog-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); margin-bottom: .6rem; }
.prog-head p { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-2); line-height: 1.55; }
.prog-cifras { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.prog-cifras li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1.1rem; flex: 1 1 150px; max-width: 220px; }
.prog-cifras b { display: block; font: 600 1.7rem/1 var(--serif); color: var(--brand-2); }
.prog-cifras span { font: 500 .78rem/1.3 var(--sans); color: var(--muted); }
.prog-lista { display: grid; gap: 1.4rem; }
.prog-mod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: box-shadow .4s; }
.prog-mod:hover { box-shadow: 0 24px 60px -30px rgba(10, 50, 14, .5); }
.prog-mod:nth-child(even) .prog-cover { order: 2; }
.prog-cover { position: relative; min-height: 280px; background: #17142e; overflow: hidden; }
.prog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.prog-mod:hover .prog-cover img { transform: scale(1.06); }
.prog-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 22, 8, .55)); }
.prog-num { position: absolute; left: 1.2rem; bottom: .6rem; z-index: 1; font: 600 4.6rem/1 var(--serif); color: rgba(255, 255, 255, .92); text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.prog-body { padding: clamp(1.2rem, 2.6vw, 2rem); display: flex; flex-direction: column; gap: .7rem; }
.prog-top { display: flex; align-items: center; justify-content: space-between; }
.prog-body h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prog-res { margin: 0; color: var(--ink-2); }
.prog-preg { margin: .3rem 0; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--brand); font: italic 500 1.12rem/1.5 var(--serif); }
.prog-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0; padding: 0; }
.prog-chips li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand-2); font: 600 .8rem/1 var(--sans); }
.prog-det { margin-top: .4rem; }
.prog-det summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; padding: .7rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.prog-det summary::-webkit-details-marker { display: none; }
.prog-det summary svg { transition: transform .25s; }
.prog-det[open] summary svg { transform: rotate(90deg); }
.prog-lecs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.prog-lecs li { display: flex; align-items: center; gap: .8rem; }
.pl-img { width: 64px; height: 40px; border-radius: 9px; overflow: hidden; flex: none; background: var(--surface-3); }
.pl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-t b { display: block; font: 600 .92rem/1.3 var(--sans); }
.pl-t small { color: var(--muted); font-size: .76rem; }
.prog-mod.pronto { border-style: dashed; opacity: .75; }
.prog-mod.pronto .prog-cover { min-height: 160px; }
@media (max-width: 860px) { .prog-mod { grid-template-columns: 1fr; } .prog-mod:nth-child(even) .prog-cover { order: 0; } .prog-cover { min-height: 190px; } .prog-num { font-size: 3.4rem; } }

/* Tests y examen final */
.tests-pag { max-width: 1100px; }
.tests-head { max-width: 720px; margin-bottom: 1.6rem; }
.tests-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: .5rem; }
.tests-head p { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); line-height: 1.55; }
.tests-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; }
.tests-chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand-2); font: 600 .82rem/1 var(--sans); }
.test-final { position: relative; border-radius: 26px; overflow: hidden; padding: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: 2rem; color: #fff; background: radial-gradient(120% 140% at 85% 0%, #4b2fd1 0%, #2a1f66 55%, #16122e 100%); isolation: isolate; }
.test-final::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(179, 234, 92, .28), transparent); z-index: -1; }
.test-final .eyebrow { color: #b9a6ff; }
.test-final h2 { color: #fff; margin: .2rem 0 .5rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); max-width: 18ch; }
.test-final p { color: rgba(255, 255, 255, .85); max-width: 56ch; }
.tf-datos { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.1rem 0; padding: 0; }
.tf-datos li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: .6rem 1rem; min-width: 96px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tf-datos b { display: block; font: 600 1.5rem/1 var(--serif); }
.tf-datos span { font: 500 .74rem/1.2 var(--sans); opacity: .8; }
.tf-acc { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.test-final .btn { background: #b9a6ff; color: #120f27; }
.test-final .badge { background: rgba(255, 255, 255, .16); color: #fff; }
.tf-aviso { margin-top: .8rem; color: rgba(255, 255, 255, .75) !important; }
.tests-sub { font-size: 1.4rem; margin: 0 0 .9rem; }
.tests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.test-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .35s, transform .35s; }
.test-card:hover { box-shadow: 0 22px 50px -30px rgba(10, 50, 14, .5); transform: translateY(-2px); }
.test-card.pronto { opacity: .65; border-style: dashed; }
.tc-cover { position: relative; height: 120px; overflow: hidden; background: #17142e; }
.tc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 22, 8, .6)); }
.tc-num { position: absolute; left: .9rem; bottom: .4rem; z-index: 1; font: 600 2.6rem/1 var(--serif); color: rgba(255, 255, 255, .95); }
.tc-nota { position: absolute; right: .8rem; top: .8rem; z-index: 1; padding: .3rem .65rem; border-radius: 99px; font: 700 .8rem/1 var(--sans); background: rgba(255, 255, 255, .92); }
.tc-nota.ok { color: #3d2aa8; }
.tc-nota.no { color: #a33; }
.tc-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tc-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.tc-meta { list-style: none; margin: .2rem 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; font: 500 .8rem/1.3 var(--sans); color: var(--ink-2); }
.tc-meta li { display: flex; align-items: flex-start; gap: .4rem; }
.tc-meta li:first-child { grid-column: 1 / -1; }
.tc-meta svg { flex: none; margin-top: 1px; color: var(--brand); }
.tc-acc { display: flex; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.tc-acc .btn { flex: 1; justify-content: center; }
