/* Páginas de la prueba de 3 días (/prueba, /prueba/<oposición>, /prueba/no-esta). 2-nov-2026.
   Se apoyan en landings.css (variables --l-*, botones .l-btn, nav, footer) y añaden lo propio con prefijo .pr- */

.pr-main { max-width: 760px; margin: 0 auto; padding: 0 16px 120px; }
.pr-hero { padding: 36px 0 12px; }
.pr-hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; margin: 10px 0 12px; font-weight: 800; }
.pr-hero .lead { color: var(--l-muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 18px; }
.pr-micro { font-size: .88rem; color: var(--l-muted); margin: 10px 0 0; }
.pr-sec { padding: 28px 0 8px; }
.pr-sec h2 { font-size: 1.45rem; letter-spacing: -0.01em; margin: 0 0 10px; font-weight: 800; }
.pr-sec > p { color: var(--l-muted); line-height: 1.6; margin: 0 0 14px; }
.pr-box { background: var(--l-card); border: 1px solid var(--l-border); border-radius: var(--l-radius); padding: 18px; box-shadow: var(--l-shadow); }
.pr-box + .pr-box { margin-top: 12px; }
.pr-lista { margin: 0; padding-left: 20px; line-height: 1.6; }
.pr-lista li { margin: 6px 0; }
.pr-aviso { border-radius: 14px; padding: 12px 14px; font-size: .95rem; line-height: 1.5; margin: 12px 0; }
.pr-aviso.amb { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.pr-aviso.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.pr-aviso.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.pr-aviso.inf { background: var(--l-bg2); border: 1px solid var(--l-border); color: var(--l-text); }
[data-theme="dark"] .pr-aviso.amb { background: rgba(210,153,34,.12); border-color: rgba(210,153,34,.45); color: #e3b341; }
[data-theme="dark"] .pr-aviso.ok { background: rgba(46,160,67,.12); border-color: rgba(46,160,67,.45); color: #7ee2a8; }
[data-theme="dark"] .pr-aviso.err { background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.45); color: #ffa198; }
.pr-btn-full { width: 100%; justify-content: center; text-align: center; }
.pr-btn-full[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.pr-oculto { display: none !important; }

/* Buscador y lista de oposiciones */
.pr-buscar { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--l-border); border-radius: 12px; background: var(--l-card); color: var(--l-text); }
.pr-etq { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--l-muted); margin: 18px 0 8px; }
.pr-opos { display: flex; flex-direction: column; gap: 8px; }
.pr-opo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--l-border); border-radius: 14px; background: var(--l-card); color: var(--l-text); text-decoration: none; min-height: 48px; }
.pr-opo:hover { border-color: var(--l-primary); }
.pr-opo b { display: block; font-size: 1rem; }
.pr-opo small { color: var(--l-muted); }
.pr-chip { flex: 0 0 auto; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: 5px 10px; background: var(--l-bg2); color: var(--l-primary); white-space: nowrap; }
.pr-chip.amb { background: #fffbeb; color: #92400e; }
.pr-chip.gris { background: var(--l-bg); color: var(--l-muted); border: 1px solid var(--l-border); }
[data-theme="dark"] .pr-chip.amb { background: rgba(210,153,34,.15); color: #e3b341; }

/* Pasos */
.pr-pasos { display: grid; gap: 10px; }
.pr-paso { display: flex; gap: 12px; align-items: flex-start; }
.pr-num { flex: 0 0 32px; height: 32px; border-radius: 10px; background: var(--l-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pr-paso b { display: block; margin-bottom: 2px; }
.pr-paso p { margin: 0; color: var(--l-muted); line-height: 1.55; }

/* Demo de tarjetas */
.pr-demo { background: var(--l-card); border: 1px solid var(--l-border); border-radius: 20px; padding: 18px; box-shadow: var(--l-shadow); }
.pr-demo-cab { display: flex; justify-content: space-between; color: var(--l-muted); font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.pr-tarjeta { min-height: 150px; border: 1px solid var(--l-border); border-radius: 16px; padding: 18px; background: var(--l-bg); font-size: 1.08rem; line-height: 1.5; }
.pr-tarjeta .pr-resp { border-top: 1px dashed var(--l-border); margin-top: 14px; padding-top: 14px; }
.pr-botones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.pr-botones button { font: inherit; font-size: .85rem; font-weight: 800; border-radius: 12px; padding: 9px 2px; min-height: 54px; cursor: pointer; border: 1px solid; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pr-botones button span { font-size: .75rem; font-weight: 600; }
.pr-b1 { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.pr-b2 { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.pr-b3 { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pr-b4 { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
[data-theme="dark"] .pr-b1 { background: rgba(248,81,73,.12); color: #ffa198; border-color: rgba(248,81,73,.4); }
[data-theme="dark"] .pr-b2 { background: rgba(210,153,34,.12); color: #e3b341; border-color: rgba(210,153,34,.4); }
[data-theme="dark"] .pr-b3 { background: rgba(56,139,253,.12); color: #79c0ff; border-color: rgba(56,139,253,.4); }
[data-theme="dark"] .pr-b4 { background: rgba(46,160,67,.12); color: #7ee2a8; border-color: rgba(46,160,67,.4); }
.pr-feedback { margin: 10px 0 0; font-size: .95rem; color: var(--l-text); }

/* Cobro (línea de tiempo) */
.pr-linea { display: grid; gap: 0; }
.pr-hito { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.pr-hito::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--l-primary); margin-top: 5px; }
.pr-hito:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 20px; bottom: 0; width: 2px; background: var(--l-border); }
.pr-hito b { display: block; }
.pr-hito p { margin: 2px 0 0; color: var(--l-muted); line-height: 1.5; }

/* Planes */
.pr-planes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pr-plan { position: relative; display: block; border: 2px solid var(--l-border); border-radius: 16px; padding: 14px; background: var(--l-card); cursor: pointer; }
.pr-plan input { position: absolute; opacity: 0; pointer-events: none; }
.pr-plan:has(input:checked) { border-color: var(--l-primary); background: var(--l-bg2); }
.pr-plan:focus-within { outline: 2px solid var(--l-primary); outline-offset: 2px; }
.pr-plan .pr-precio { display: block; font-size: 1.6rem; font-weight: 800; margin: 2px 0; }
.pr-plan small { color: var(--l-muted); }
.pr-acepto { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.pr-acepto input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--l-primary); }

/* FAQ */
.pr-faq details { border-bottom: 1px solid var(--l-border); padding: 12px 0; }
.pr-faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after { content: '+'; float: right; color: var(--l-muted); }
.pr-faq details[open] summary::after { content: '–'; }
.pr-faq p { margin: 8px 0 0; color: var(--l-muted); line-height: 1.6; }

/* Formularios (no está) */
.pr-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.pr-campo label, .pr-campo .pr-lbl { font-size: .9rem; font-weight: 700; }
.pr-campo select, .pr-campo input[type="text"] { font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--l-border); border-radius: 12px; background: var(--l-card); color: var(--l-text); }
.pr-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pr-chips label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px; border: 2px solid var(--l-border); border-radius: 12px; font-size: .88rem; font-weight: 600; cursor: pointer; background: var(--l-card); }
.pr-chips input { position: absolute; opacity: 0; pointer-events: none; }
.pr-chips label:has(input:checked) { border-color: var(--l-primary); background: var(--l-bg2); }
.pr-ia { background: linear-gradient(135deg, var(--l-bg2), var(--l-card)); border: 1px solid var(--l-border); border-radius: 20px; padding: 20px; }
.pr-ejemplo { display: grid; gap: 6px; background: var(--l-card); border: 1px solid var(--l-border); border-radius: 14px; padding: 14px; font-size: .95rem; margin-top: 12px; }
.pr-ejemplo span { font-size: .75rem; font-weight: 800; color: var(--l-muted); text-transform: uppercase; letter-spacing: .05em; }

/* Barra de «estás dentro de Instagram/TikTok» */
.pr-redes { background: #0f172a; color: #fff; padding: 10px 16px; font-size: .9rem; line-height: 1.45; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pr-redes button { font: inherit; font-weight: 700; font-size: .85rem; border-radius: 8px; border: 0; padding: 8px 12px; background: #fff; color: #0f172a; cursor: pointer; }

@media (max-width: 520px) { .pr-planes { grid-template-columns: 1fr; } }

/* «Reenviar el enlace» dentro del aviso de confirmar el correo */
.pr-reenviar { display: inline; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pr-reenviar:disabled { opacity: .6; cursor: default; }
