/* ============================================================
   Test Entrenamiento (te) - Estilos del curso psiquico
   Namespace: .te-app
   ============================================================ */

.te-app {
    --te-gradiente: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --te-verde: #10b981;
    --te-dorado: #f59e0b;
    --te-purpura: #8b5cf6;
    --te-sombra: 0 8px 25px rgba(16,185,129,0.22);
    --te-radio: 16px;
    --te-trans: all 0.3s ease;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6; color: #e2e8f0;
    max-width: 650px; margin: 0 auto;
}
.te-fase { animation: teFadeIn 0.4s ease; }
@keyframes teFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.te-header { text-align: center; margin-bottom: 1.5rem; }
.te-titulo { font-size: 1.5rem; font-weight: 700; background: var(--te-gradiente); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.te-subtitulo { opacity: 0.65; font-size: 0.9rem; }
.te-loading { text-align: center; padding: 2rem; opacity: 0.5; }

.te-modulos-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.te-modulo-btn {
    background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); border-radius: var(--te-radio);
    padding: 1rem 1.2rem; cursor: pointer; color: #e2e8f0; text-align: left; transition: var(--te-trans);
    display: flex; align-items: center; gap: 1rem;
}
.te-modulo-btn:hover { border-color: var(--te-verde); transform: translateX(6px); background: rgba(16,185,129,0.1); }
.te-mod-icon { font-size: 2rem; flex-shrink: 0; }
.te-mod-info { flex: 1; }
.te-mod-info strong { display: block; }
.te-mod-dur { font-size: 0.75rem; opacity: 0.5; }
.te-mod-flecha { font-size: 1.2rem; opacity: 0.3; }

.te-btn-volver { background: none; border: 1px solid rgba(255,255,255,0.15); color: #e2e8f0; padding: 0.5rem 1.2rem; border-radius: 20px; cursor: pointer; font-size: 0.85rem; margin-bottom: 1.5rem; transition: var(--te-trans); }
.te-btn-volver:hover { border-color: var(--te-verde); }

.te-modulo-header { text-align: center; margin-bottom: 1.5rem; }
.te-mod-header-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.te-modulo-contenido, .te-modulo-ejercicio { margin-bottom: 1.5rem; }
.te-modulo-contenido h3, .te-modulo-ejercicio h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; opacity: 0.8; }
.te-modulo-contenido p { opacity: 0.85; line-height: 1.7; }
.te-ejercicio-box { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); border-radius: 12px; padding: 1.2rem; }
.te-ejercicio-box p { opacity: 0.85; line-height: 1.7; }

.te-modulo-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.te-btn-nav { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #e2e8f0; padding: 0.6rem 1.2rem; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: var(--te-trans); }
.te-btn-nav:hover:not(:disabled) { background: rgba(16,185,129,0.2); border-color: var(--te-verde); }
.te-btn-nav:disabled { opacity: 0.3; cursor: default; }

.te-completado-box { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); border-radius: var(--te-radio); padding: 1.5rem; text-align: center; margin-top: 1rem; }

@media (max-width: 480px) { .te-modulo-btn { padding: 0.8rem; } .te-modulo-nav { flex-direction: column; gap: 0.5rem; } }
@media (prefers-contrast: high) { .te-modulo-btn { border: 2px solid white; } }
@media (prefers-reduced-motion: reduce) { .te-fase { animation: none; } }
