/* Escuela WOPE online: catálogo, página de venta y área de alumnos */
.wc { max-width: var(--w3-wrap, 1280px); margin: 0 auto; padding: calc(var(--nav-h, 76px) + 28px) var(--w3-gutter, 20px) 80px; color: var(--w3-text, var(--w3-text)); }
.wc a { color: inherit; }
.wc h2 { font: 800 clamp(22px, 3vw, 28px)/1.2 var(--w3-sans, Inter, sans-serif); margin: 0 0 14px; }
.wc-mut { color: var(--w3-muted, #a9a49b); font-size: 14px; }
.wc-ok { color: #7be0a6; font-weight: 700; }
.wc-lead { font-size: clamp(16px, 2vw, 19px); color: var(--w3-soft, #cfcac1); max-width: 720px; line-height: 1.5; }
.wc-hero { padding: 20px 0 10px; }
.wc-buscar { display: flex; gap: 8px; max-width: 640px; margin: 18px 0 14px; }
.wc-buscar input { flex: 1; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--w3-line); background: var(--w3-bg); color: inherit; font-size: 16px; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wc-chips a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--w3-line); font-size: 14px; font-weight: 600; }
.wc-chips a.is-on, .wc-chips a:hover { border-color: var(--w3-orange, #f0a418); color: var(--w3-orange, #f0a418); }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.wc-card { display: flex; flex-direction: column; text-decoration: none; background: var(--w3-card, var(--w3-card)); border: 1px solid #2c2c2c; border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s; }
.wc-card:hover { transform: translateY(-3px); border-color: var(--w3-orange, #f0a418); }
.wc-card-img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #4607c7, var(--w3-bg)) center / cover; display: grid; place-items: center; font-size: 48px; }
.wc-tag { position: absolute; top: 10px; left: 10px; font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--w3-bg); color: var(--w3-orange, #f0a418); }
.wc-tag.is-ok { background: #1f5c3a; color: #c8f5da; }
.wc-tag.is-gratis { background: var(--w3-orange, #f0a418); color: var(--w3-bg); }
.wc-card-c { display: grid; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.wc-card-c b { font-size: 17px; line-height: 1.3; }
.wc-card-c small { color: var(--w3-muted, #a9a49b); font-size: 13px; }
.wc-precio { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 18px; color: var(--w3-orange, #f0a418); }
.wc-precio s, .wc-precio-g s { color: var(--w3-muted, #a9a49b); font-weight: 500; font-size: .7em; }
.wc-vacio { grid-column: 1 / -1; color: var(--w3-muted, #a9a49b); padding: 30px 0; }
.wc-porque { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 40px; }
.wc-porque div { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: var(--w3-card); border: 1px solid #2c2c2c; }
.wc-porque span { color: var(--w3-muted, #a9a49b); font-size: 14px; }
/* página de venta */
.wc-vhero { background: linear-gradient(150deg, rgba(70,7,199,.45), var(--w3-bg) 70%); border: 1px solid #2c2c2c; border-radius: 22px; padding: clamp(22px, 4vw, 44px); }
.wc-vhero h1 { font: 800 clamp(28px, 4.5vw, 48px)/1.1 var(--w3-sans, Inter, sans-serif); margin: 6px 0 12px; max-width: 780px; }
.wc-migas { margin: 0; font-size: 14px; color: var(--w3-orange, #f0a418); }
.wc-migas a { text-decoration: none; }
.wc-datos { color: var(--w3-soft, #cfcac1); font-size: 15px; }
.wc-vcuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; margin-top: 26px; align-items: start; }
.wc-vcuerpo.is-uno { grid-template-columns: minmax(0, 820px); }
.wc-vmain { display: grid; gap: 34px; }
.wc-vside { position: sticky; top: calc(var(--nav-h, 70px) + 16px); margin-top: -170px; }
.wc-compra { background: var(--w3-card); border: 1px solid var(--w3-line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.wc-compra > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wc-compra-c { padding: 18px 20px 20px; display: grid; gap: 8px; }
.wc-compra-c.is-libre { padding: 0; max-width: 380px; }
.wc-precio-g { margin: 0; font-weight: 900; font-size: 36px; color: var(--w3-text, var(--w3-text)); }
.wc-desc em, .wc-precio-g em { font-style: normal; font-size: 15px; color: #7be0a6; }
.wc-ars { margin: 0; color: #7fd3ff; font-size: 14px; }
.wc-btn { display: flex !important; justify-content: center; width: 100%; text-align: center; font-size: 17px !important; padding: 15px !important; }
.wc-gar { font-size: 14px; color: var(--w3-soft, #cfcac1); margin: 4px 0 0; }
.wc-incl-t { font-weight: 700; margin: 10px 0 0; }
.wc-incl { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--w3-soft, #cfcac1); }
.wc-box { border: 1px solid var(--w3-line); border-radius: 16px; padding: 22px; }
.wc-checks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.wc-checks li { position: relative; padding-left: 26px; line-height: 1.4; }
.wc-checks li::before { content: "✓"; position: absolute; left: 0; color: #7be0a6; font-weight: 800; }
.wc-puntos { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--w3-soft, #cfcac1); }
.wc-temario { border: 1px solid var(--w3-line); border-radius: 14px; overflow: hidden; }
.wc-temario details { border-bottom: 1px solid #2c2c2c; }
.wc-temario details:last-child { border-bottom: 0; }
.wc-temario summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--w3-card); cursor: pointer; list-style: none; }
.wc-temario summary::before { content: "▸"; margin-right: 8px; transition: transform .2s; }
.wc-temario details[open] summary::before { transform: rotate(90deg); }
.wc-temario summary b { flex: 1; }
.wc-temario summary small, .wc-temario li small { color: var(--w3-muted, #a9a49b); }
.wc-temario ul { margin: 0; padding: 6px 18px 12px; list-style: none; }
.wc-temario li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.wc-temario li a { color: var(--w3-orange, #f0a418); }
.wc-desc { line-height: 1.7; color: var(--w3-soft, #cfcac1); }
.wc-instr > div { display: flex; gap: 16px; align-items: flex-start; }
.wc-avatar { flex: 0 0 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: var(--w3-line); }
.wc-instr p { color: var(--w3-soft, #cfcac1); margin: 4px 0 0; }
.wc-faq details { border-bottom: 1px solid #2c2c2c; padding: 12px 0; }
.wc-faq summary { cursor: pointer; font-weight: 700; }
.wc-faq p { color: var(--w3-soft, #cfcac1); }
.wc-vid { position: relative; aspect-ratio: 16 / 9; background: #000; }
.wc-vid iframe, .wc-vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wc-sinvideo { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--w3-bg); color: var(--w3-muted, #a9a49b); padding: 20px; text-align: center; }
.wc-barra { display: block; height: 8px; border-radius: 999px; background: #2c2c2c; overflow: hidden; margin: 6px 0 2px; }
.wc-barra i { display: block; height: 100%; background: linear-gradient(90deg, #7be0a6, var(--w3-orange, #f0a418)); }
.wc-libro { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.wc-libro h1 { font: 800 clamp(28px, 4vw, 44px)/1.1 var(--w3-sans, Inter, sans-serif); margin: 6px 0 12px; }
.wc-libro-img img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.wc-libro-img span { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(135deg, #4607c7, var(--w3-card)); font-size: 80px; }
/* mis cursos (en /cuenta/) */
.wc-mis { display: grid; gap: 10px; }
.wc-mi { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 10px; border-radius: 12px; background: var(--w3-bg); border: 1px solid #2c2c2c; }
.wc-mi:hover { border-color: var(--w3-orange, #f0a418); }
.wc-mi-img { flex: 0 0 96px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--w3-line) center / cover; display: grid; place-items: center; font-size: 26px; }
.wc-mi-c { display: grid; gap: 2px; flex: 1; }
.wc-mi-c small { color: var(--w3-muted, #a9a49b); }
@media (max-width: 960px) {
	.wc-vcuerpo { grid-template-columns: 1fr; }
	.wc-vside { position: static; margin-top: 0; order: -1; }
	.wc-checks { grid-template-columns: 1fr; }
	.wc-libro { grid-template-columns: 1fr; }
	.wc-libro-img { max-width: 260px; }
}

/* ===== área de alumnos (/aprender/) ===== */
.ap-body { margin: 0; background: #121212; color: var(--w3-text); font: 400 16px/1.55 Inter, system-ui, sans-serif; }
.ap-body a { color: inherit; }
[hidden] { display: none !important; }
.ap-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: #0b0b0b; border-bottom: 1px solid var(--w3-line); }
.ap-logo { font: 900 22px/1 Inter, sans-serif; letter-spacing: .08em; color: #f0a418 !important; text-decoration: none; }
.ap-curso { flex: 1; min-width: 0; text-decoration: none; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-prog { position: relative; width: 44px; height: 44px; }
.ap-prog svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ap-prog circle { fill: none; stroke-width: 3.2; }
.ap-prog-f { stroke: var(--w3-line); }
.ap-prog-v { stroke: #7be0a6; stroke-linecap: round; transition: stroke-dasharray .4s; }
.ap-prog b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10.5px; }
.ap-salir { text-decoration: none; font-size: 14px; padding: 8px 12px; border: 1px solid var(--w3-line); border-radius: 10px; }
.ap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: calc(100vh - 65px); }
.ap-main { padding: 0 0 60px; min-width: 0; }
.ap-main > .wc-vid, .ap-main > .wc-sinvideo { max-height: 72vh; }
.ap-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 18px 24px 8px; }
.ap-bar h1 { font-size: clamp(20px, 2.6vw, 28px); margin: 2px 0 0; }
.ap-mod { margin: 0; color: #f0a418; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ap-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ap-b { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 12px; background: #f0a418; color: var(--w3-bg) !important; font: 700 15px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.ap-b.is-sec { background: #222; color: var(--w3-text) !important; border: 1px solid var(--w3-line); }
.ap-b.is-ok { background: #1f5c3a; color: #c8f5da !important; }
.ap-previa { margin: 8px 24px; padding: 12px 16px; border-radius: 12px; background: rgba(70,7,199,.25); border: 1px solid #4607c7; }
.ap-previa a { color: #f0a418; font-weight: 700; }
.ap-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--w3-line); margin-top: 14px; overflow-x: auto; }
.ap-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; color: #a9a49b; padding: 12px 14px; font: 700 15px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.ap-tabs button.is-on { color: var(--w3-text); border-color: #f0a418; }
.ap-tab { padding: 18px 24px; max-width: 860px; color: #d8d3ca; }
.ap-mut { color: #a9a49b; }
.ap-rec { list-style: none; padding: 0; display: grid; gap: 8px; }
.ap-rec a { color: #f0a418; }
.ap-side { border-left: 1px solid var(--w3-line); background: var(--w3-bg); max-height: calc(100vh - 65px); overflow-y: auto; position: sticky; top: 65px; }
.ap-side-t { margin: 0; padding: 16px 18px; font-weight: 800; border-bottom: 1px solid var(--w3-line); }
.ap-side details { border-bottom: 1px solid var(--w3-line); }
.ap-side summary { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; background: var(--w3-card); list-style: none; }
.ap-side summary small { color: #a9a49b; }
.ap-side ul { margin: 0; padding: 0; list-style: none; }
.ap-side li > a, .ap-side li > span.is-bloq { display: flex; gap: 10px; padding: 10px 18px; text-decoration: none; font-size: 14.5px; }
.ap-side li > a:hover { background: #1f1f1f; }
.ap-side li.is-act > a { background: rgba(240,164,24,.12); box-shadow: inset 3px 0 #f0a418; }
.ap-side li i { font-style: normal; flex: 0 0 20px; color: #a9a49b; }
.ap-side li.is-ok i { color: #7be0a6; font-weight: 800; }
.ap-side li span { display: grid; }
.ap-side li small { color: #8a857c; font-size: 12.5px; }
.ap-side li .is-bloq { opacity: .55; }
.ap-bloq, .ap-vacio { display: grid; place-items: center; text-align: center; gap: 6px; padding: 80px 24px; }
.ap-bloq span { font-size: 56px; }
.ap-fin { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgb(var(--w3-tinte) / .75); padding: 20px; }
.ap-fin > div { background: var(--w3-card); border: 1px solid var(--w3-line); border-radius: 20px; padding: 30px; text-align: center; max-width: 420px; display: grid; gap: 10px; justify-items: center; }
.ap-fin span { font-size: 60px; }
@media (max-width: 960px) {
	.ap { grid-template-columns: 1fr; }
	.ap-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--w3-line); }
	.ap-bar, .ap-tab { padding-left: 16px; padding-right: 16px; }
	.ap-tabs { padding: 0 16px; }
	.ap-salir { display: none; }
}
/* reseñas */
.wc-rat { display: flex; align-items: center; gap: 6px; margin: 2px 0; color: #f6c453; font-size: 14px; }
.wc-rat b { color: #f6c453; }
.wc-rat span:last-child { color: var(--w3-muted, #a9a49b); }
.wc-est { color: #f6c453; letter-spacing: 1px; }
.wc-nuevo { background: var(--w3-line); color: #f6c453; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.wc-res-top { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; margin-bottom: 18px; }
.wc-res-prom { display: grid; justify-items: center; gap: 2px; }
.wc-res-prom b { font-size: 54px; line-height: 1; color: #f6c453; }
.wc-res-prom small { color: var(--w3-muted, #a9a49b); }
.wc-res-dist div { display: grid; grid-template-columns: 40px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; margin: 3px 0; }
.wc-res-dist i { height: 8px; border-radius: 999px; background: #2c2c2c; overflow: hidden; }
.wc-res-dist em { display: block; height: 100%; background: #f6c453; }
.wc-res-lista { display: grid; gap: 12px; }
.wc-res { padding: 14px 16px; border-radius: 14px; background: var(--w3-card); border: 1px solid #2c2c2c; }
.wc-res p { margin: 6px 0 0; color: var(--w3-soft, #cfcac1); }
.wc-res small { color: var(--w3-muted, #a9a49b); }
.wc-res-f { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px dashed var(--w3-muted); }
.wc-res-f textarea, .wc-cupon input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--w3-line); background: var(--w3-bg); color: inherit; font: inherit; box-sizing: border-box; }
.wc-res-est { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.wc-res-est input { display: none; }
.wc-res-est span { font-size: 32px; color: var(--w3-line); cursor: pointer; }
.wc-res-est label:has(input:checked) span, .wc-res-est label:has(input:checked) ~ label span { color: #f6c453; }
.wc-res-est:hover label span { color: var(--w3-line); }
.wc-res-est label:hover span, .wc-res-est label:hover ~ label span { color: #f6c453 !important; }
.wc-cupon { display: flex; gap: 6px; margin-top: 4px; }
.wc-cupon input { padding: 9px 10px; text-transform: uppercase; }
.wc-cupon button { padding: 0 14px; border-radius: 10px; border: 1px solid var(--w3-line); background: var(--w3-line); color: inherit; font-weight: 700; cursor: pointer; }
/* preguntas y notas */
.ap-form { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; }
.ap-form textarea { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--w3-line); background: var(--w3-bg); color: inherit; font: inherit; resize: vertical; }
.ap-form.is-resp { margin: 10px 0 0 18px; }
.ap-q { padding: 14px 16px; border-radius: 14px; background: var(--w3-card); border: 1px solid var(--w3-line); margin-bottom: 12px; }
.ap-q p { margin: 0 0 6px; }
.ap-q small, .ap-r small { color: #8a857c; }
.ap-r { margin: 10px 0 0 18px; padding: 10px 14px; border-left: 3px solid #f0a418; background: var(--w3-bg); border-radius: 0 10px 10px 0; }
.ap-notas { list-style: none; padding: 0; display: grid; gap: 8px; }
.ap-notas li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--w3-card); }
.ap-notas li span { flex: 1; }
.ap-min { background: #f0a418; color: var(--w3-bg); border: 0; border-radius: 8px; padding: 3px 8px; font: 700 13px Inter, sans-serif; cursor: pointer; }
.ap-x { background: none; border: 0; color: #8a857c; cursor: pointer; }
@media (max-width: 700px) { .wc-res-top { grid-template-columns: 1fr; } .ap-form { flex-direction: column; } .ap-form textarea { width: 100%; box-sizing: border-box; } }
