/* Página de curso (template-curso.php) y estado "cerrado" en /cursos/.
   Tokens de la marca: ink #050B14 · nieve #EDF3F9 · humo #8DA2BA · gold #E8A33D
   signal #E2452F · mar #3FA7C4 · esme #3DBE8B · papel #F4F7FA · tinta #0A1626 */

.a8i-curso { --pc-acento: #E8A33D; }
.a8i-curso[data-color="mar"] { --pc-acento: #3FA7C4; }
.a8i-curso[data-color="esme"] { --pc-acento: #3DBE8B; }
.pc-acento { color: var(--pc-acento); }

/* ── Cabecera ── */
.pc-migas { display: flex; gap: .6rem; align-items: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8DA2BA; }
.pc-migas a { color: #8DA2BA; text-decoration: none; }
.pc-migas a:hover { color: #EDF3F9; }
.pc-migas [aria-current] { color: #EDF3F9; }

.pc-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 2rem; align-items: start; }
.pc-temario, .pc-pasos { grid-template-columns: minmax(0, 1fr); }
.pc-opciones-2 > * { min-width: 0; }
@media (min-width: 1024px) {
  .pc-hero { grid-template-columns: minmax(0, 1fr) 440px; gap: 4rem; margin-top: 3rem; }
  /* Sin sticky: la columna de texto es más corta que la caja y la sección (overflow:hidden) la cortaba abajo. */
}
.pc-hero-texto { max-width: 36rem; }
.pc-hero-texto h1 { font-size: 2.7rem; line-height: 1; }
@media (min-width: 640px) { .pc-hero-texto h1 { font-size: 4rem; line-height: .95; } }

.pc-claves { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pc-claves li { border: 1px solid rgba(255,255,255,.15); background: rgba(8,18,32,.6); border-radius: 9999px; padding: .45rem .9rem; font-size: 13.5px; color: #EDF3F9; }

/* ── Caja de compra ── */
.pc-caja { position: relative; overflow: hidden; border-radius: 1.5rem; background: rgba(8,18,32,.97); border: 1px solid #24405F; padding: 1.75rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
@media (min-width: 640px) { .pc-caja { padding: 2rem; } }
.pc-caja-borde { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--pc-acento); }

.pc-estado { display: inline-flex; align-items: center; gap: .5rem; border-radius: 9999px; padding: .35rem .8rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.pc-estado .pc-punto { width: 8px; height: 8px; border-radius: 9999px; background: currentColor; }
.pc-estado.is-abierto { color: #3DBE8B; background: rgba(61,190,139,.12); }
.pc-estado.is-cerrado { color: #F3C97A; background: rgba(232,163,61,.12); }

.pc-aviso { margin: 0 0 1rem; border-radius: .75rem; padding: .75rem 1rem; font-size: 13px; line-height: 1.45; }
.pc-aviso-previa { background: rgba(63,167,196,.14); border: 1px solid rgba(63,167,196,.5); color: #EDF3F9; }

.pc-eje { border: 0; margin: 1.5rem 0 0; padding: 0; min-width: 0; }
.pc-eje legend { padding: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8DA2BA; }
.pc-opciones { display: grid; gap: .6rem; margin-top: .75rem; }
.pc-opciones-2 { grid-template-columns: 1fr 1fr; }
.pc-opcion { position: relative; display: block; cursor: pointer; }
.pc-opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-opcion-cuerpo { display: flex; flex-direction: column; gap: .35rem; height: 100%; border: 1.5px solid #24405F; border-radius: .9rem; padding: .85rem .95rem; background: rgba(255,255,255,.02); transition: border-color .2s ease, background-color .2s ease; }
.pc-opcion:hover .pc-opcion-cuerpo { border-color: rgba(232,163,61,.55); }
.pc-opcion input:checked + .pc-opcion-cuerpo { border-color: var(--pc-acento); background: rgba(232,163,61,.08); box-shadow: inset 0 0 0 1px var(--pc-acento); }
.pc-opcion input:focus-visible + .pc-opcion-cuerpo { outline: 2px solid #EDF3F9; outline-offset: 2px; }
.pc-opcion-nombre { font-family: Archivo, system-ui, sans-serif; font-weight: 700; font-size: 15.5px; color: #EDF3F9; line-height: 1.2; }
.pc-badge { display: inline-block; margin-left: .15rem; font-size: 11px; font-weight: 700; color: #E8A33D; white-space: nowrap; }
.pc-opcion-nota { font-size: 12.5px; color: #8DA2BA; line-height: 1.4; }
.pc-ayuda { margin: .6rem 0 0; font-size: 12.5px; color: #8DA2BA; line-height: 1.45; }

.pc-precio { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.pc-precio-mes { margin: 0; font-family: Archivo, system-ui, sans-serif; font-weight: 900; font-size: 2.9rem; line-height: 1; color: #EDF3F9; font-variant-numeric: tabular-nums; }
.pc-precio-mes small { font-size: 17px; font-weight: 700; color: #8DA2BA; }
.pc-precio-mat { margin: .5rem 0 0; font-size: 13.5px; color: #8DA2BA; }
.pc-precio-mat[hidden] { display: none; }

.pc-caja .pc-boton { margin-top: 1.25rem; display: block; width: 100%; border: 0; border-radius: 9999px; padding: 1rem 1.5rem; background: #E2452F; color: #fff; font-family: Archivo, system-ui, sans-serif; font-weight: 700; font-size: 16.5px; cursor: pointer; }
.pc-caja .pc-boton:disabled { cursor: not-allowed; opacity: .7; transform: none; box-shadow: none; }
.pc-caja .pc-boton.is-cerrado { background: transparent; color: #F3C97A; border: 1.5px dashed rgba(232,163,61,.6); opacity: 1; }
.pc-boton-nota { margin: .6rem 0 0; text-align: center; font-size: 12.5px; color: #8DA2BA; }
.pc-avisame { display: block; margin-top: .9rem; text-align: center; font-size: 13.5px; color: #EDF3F9; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232,163,61,.6); }
.pc-avisame:hover { color: #F3C97A; }
.pc-proximamente { margin: .8rem 0 0; text-align: center; font-size: 14px; line-height: 1.45; color: #EDF3F9; }

.pc-notas { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.pc-notas li { font-size: 12.5px; color: #8DA2BA; line-height: 1.5; }
.pc-notas li + li { margin-top: .35rem; }

.pc-debug { margin-top: 1rem; border: 1px dashed rgba(255,255,255,.2); border-radius: .75rem; padding: .6rem .8rem; font-size: 12px; color: #8DA2BA; }
.pc-debug p { margin: 0; }
.pc-debug p + p { margin-top: .3rem; }
.pc-debug [hidden] { display: none; }
.pc-debug a { color: #3FA7C4; }

/* Avisos WooCommerce dentro de la caja */
.pc-caja .woocommerce-error, .pc-caja .woocommerce-message, .pc-caja .woocommerce-info { list-style: none; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: .75rem; font-size: 13.5px; background: rgba(226,69,47,.14); border: 1px solid rgba(226,69,47,.5); color: #EDF3F9; }
.pc-caja .woocommerce-error::before, .pc-caja .woocommerce-message::before, .pc-caja .woocommerce-info::before { display: none; }

/* ── Temario ── */
.pc-temario { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 768px) { .pc-temario { grid-template-columns: 1fr 1fr; } }
.pc-tema { position: relative; border-radius: 1.25rem; padding: 1.5rem 1.5rem 1.5rem 4.25rem; }
.pc-tema-num { position: absolute; left: 1.4rem; top: 1.5rem; width: 2rem; height: 2rem; border-radius: 9999px; background: var(--pc-acento); color: #050B14; display: flex; align-items: center; justify-content: center; font-family: Archivo, system-ui, sans-serif; font-weight: 700; font-size: 14px; }
.pc-checks { list-style: none; margin: 1rem 0 0; padding: 0; }
.pc-checks li { display: flex; gap: .6rem; font-size: 14.5px; line-height: 1.4; color: rgba(10,22,38,.85); }
.pc-checks li + li { margin-top: .45rem; }
.pc-checks span { color: #B8801F; font-weight: 700; flex-shrink: 0; }
.pc-no-incluye { margin: 1.25rem 0 0; font-size: 14px; color: #55677E; }

.pc-material { margin-top: 2.5rem; display: flex; gap: 1rem; align-items: flex-start; border-radius: 1.25rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid #DDE5EE; border-left: 4px solid var(--pc-acento); }
.pc-material-icono { font-size: 1.8rem; line-height: 1; }

/* ── Pasos ── */
.pc-pasos { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .pc-pasos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pc-pasos { grid-template-columns: repeat(4, 1fr); } }
.pc-pasos li { display: flex; flex-direction: column; gap: .5rem; border-radius: 1.25rem; padding: 1.5rem; background: rgba(8,18,32,.96); border: 1px solid #24405F; }
.pc-pasos b { font-family: Archivo, system-ui, sans-serif; font-weight: 900; font-size: 1.9rem; color: #E8A33D; }
.pc-paso-t { font-family: Archivo, system-ui, sans-serif; font-weight: 700; font-size: 17px; color: #EDF3F9; }
.pc-paso-d { font-size: 14px; color: #8DA2BA; line-height: 1.5; }
.pc-volver-caja { display: inline-block; border-radius: 9999px; padding: .8rem 1.4rem; border: 1px solid rgba(255,255,255,.2); color: #EDF3F9; font-size: 14px; text-decoration: none; }
.pc-volver-caja:hover { border-color: rgba(255,255,255,.45); }

/* ── Estado cerrado en las tarjetas de /cursos/ ── */
.a8i-cerrado { background: transparent; color: #F3C97A; border: 1.5px dashed rgba(232,163,61,.6); cursor: default; }
a.a8i-cerrado { cursor: pointer; }
.bg-papel .a8i-cerrado, .bg-blanco .a8i-cerrado { color: #B8801F; border-color: rgba(184,128,31,.55); }
.a8i-ver-curso { display: block; margin-top: .6rem; text-align: center; font-size: 13px; color: #8DA2BA; text-decoration: underline; text-underline-offset: 3px; }
.a8i-ver-curso:hover { color: #EDF3F9; }
.bg-papel .a8i-ver-curso, .bg-blanco .a8i-ver-curso { color: #55677E; }
.bg-papel .bg-ink .a8i-cerrado, .bg-blanco .bg-ink .a8i-cerrado { color: #F3C97A; border-color: rgba(232,163,61,.6); }
.bg-papel .bg-ink .a8i-ver-curso, .bg-blanco .bg-ink .a8i-ver-curso { color: #8DA2BA; }
.a8i-proximamente { display: block; margin-top: .6rem; text-align: center; font-size: 13.5px; line-height: 1.4; color: #EDF3F9; }
.bg-papel .a8i-proximamente, .bg-blanco .a8i-proximamente { color: #1A2433; }
.bg-papel .bg-ink .a8i-proximamente, .bg-blanco .bg-ink .a8i-proximamente { color: #EDF3F9; }

/* ── Página de curso (plugin) ── */
.pc-badge-grande { display: inline-block; margin-top: 1rem; border: 1px solid rgba(232,163,61,.6); color: #E8A33D; border-radius: 9999px; padding: .3rem .9rem; font-family: Archivo, system-ui, sans-serif; font-weight: 700; font-size: 14px; }
.pc-alternativa { display: block; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #8DA2BA; text-decoration: none; }
.pc-alternativa:hover { color: #EDF3F9; }
.pc-extras { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pc-extras span { border-radius: 9999px; border: 1px solid #DDE5EE; background: #fff; padding: .4rem .8rem; font-size: 13px; color: rgba(10,22,38,.8); }
